AI-Hypercomputer / AI-Hypercomputer/maxtext

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

未关闭
#2,193 4 条评论 0 个 reaction 已指派 1 人 已被 @bvandermoon 认领 在 GitHub 查看
bug
主要语言
Python
星标
2.4k
派生
607
平均合并
2 天 19 小时
30 天内合并 PR
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 摘要。