AI-Hypercomputer / AI-Hypercomputer/maxtext

Run pretraining of llama 7b/8b models on GPUs using a3/1vm.sh

オープン
#2,193 コメント 4 件 リアクション 0 件 担当者 1 名 @bvandermoon が担当を希望しています GitHub で見る
bug
主要言語
Python
スター
2.4k
フォーク
607
平均マージ
2日 19時間
マージ済み PR(30日)
158

説明

### Bug report

It looks like there is no valid workflow to build a docker image for GPUs to run the MaxText/configs/a3/llama2_7b/1vm.sh script.

I have been relying on the `docker_build_dependency_image.sh` and tried different combinations of input arguments:

1) DEVICE=gpu
2) MODE=pinned DEVICE=gpu
3) DEVICE=gpu MODE=stable_stack BASEIMAGE=us-central1-docker.pkg.dev/deeplearning-images/jax-ai-image/gpu:jax0.5.1-cuda_dl25.02-rev1

Each of the above fails at some point, wether during the building process of the docker image or runtime.

Case 1) fails when trying to run the script, since the attention mask is of type float but transformer-engine's dot product attention expects a bool mask.

Case 2) fails when building the image, because pip can't resolve the requirements and constraints at the same time.

In Case 3) I get a RESOURCE_EXHAUSTED jax compilation error.

I also fixed the issues in 1) (patched the code) and I eventually got the script to run, until JAX compilation broke due to RESOURCE_EXHAUSTED.

I am running the script on 1 node with 8 H100, so the current configs for llama2 7b and llama3 8b should run.

I have also tried all the above not from master but the latest available tag (i.e. `tpu-recipes-v0.1.4`).

Any suggestion on how to get a working and stable Docker image for GPU execution?

Any suggestion

### Logs/Output

_No response_

### Environment Information

_No response_

### Additional Context

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。