Skip to content

Commit

Permalink
add TransformerEngine in rocm6.2.x.dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yukirora authored Sep 19, 2024
1 parent 6bd784e commit 9f3be29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dockerfile/rocm6.2.x.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ RUN cp -r /opt/superbench/third_party/hipBLASLt/build/release/hipblaslt-install/
RUN cd third_party/Megatron/Megatron-DeepSpeed && \
git apply ../megatron_deepspeed_rocm6.patch

# Install transformer_engine
git clone --recursive https://github.com/ROCm/TransformerEngine.git
cd TransformerEngine
export NVTE_FRAMEWORK=pytorch #optionally set framework, currently only support pytorch and jax
export PYTORCH_ROCM_ARCH=gfx942 # CK fused attn only support MI200 and MI300 and fp8 features are only supported on MI300
pip install .

ADD . .
ENV USE_HIP_DATATYPE=1
ENV USE_HIPBLAS_COMPUTETYPE=1
Expand Down

0 comments on commit 9f3be29

Please sign in to comment.