From 4f223056cd58b9718729e593bb6b1aa97892e844 Mon Sep 17 00:00:00 2001 From: suluyan Date: Mon, 20 Jul 2026 10:11:46 +0800 Subject: [PATCH] fix(docker): pin transformer_engine to 2.16.0 for 1.39.0 Temporarily pin for the 1.39.0 release: TE 2.17 has no prebuilt transformer_engine_torch wheels and fails to compile from source. Co-authored-by: Cursor --- docker/Dockerfile.ubuntu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile.ubuntu b/docker/Dockerfile.ubuntu index bb8661bd..2c111802 100644 --- a/docker/Dockerfile.ubuntu +++ b/docker/Dockerfile.ubuntu @@ -71,7 +71,7 @@ RUN if [ "$IMAGE_TYPE" = "gpu" ]; then \ pip install --no-cache-dir math_verify "gradio<5.33" "deepspeed<0.19" ray -U && \ pip install --no-cache-dir mcore-bridge -i https://pypi.org/simple/ -U && \ pip install --no-cache-dir liger_kernel wandb swanlab nvitop pre-commit "transformers<5.9" "trl<1.0" "peft<0.20" huggingface-hub -U && \ - pip install --no-cache-dir --no-build-isolation transformer_engine[pytorch]; \ + pip install --no-cache-dir --no-build-isolation "transformer_engine[pytorch]==2.16.0"; \ cd /tmp && GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/NVIDIA/apex && \ cd apex && pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./ && \ cd / && rm -fr /tmp/apex && pip cache purge; \