From c49c1d0337e471ff16ce6726b3e1f24f1cf4d18b Mon Sep 17 00:00:00 2001 From: hjh0119 Date: Tue, 4 Aug 2026 02:05:02 +0800 Subject: [PATCH] fix image --- docker/Dockerfile.ubuntu | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.ubuntu b/docker/Dockerfile.ubuntu index c4ffedbb..5fc24879 100644 --- a/docker/Dockerfile.ubuntu +++ b/docker/Dockerfile.ubuntu @@ -76,10 +76,17 @@ RUN export PIP_EXTRA_INDEX_URL="${PIP_EXTRA_INDEX_URL}" && \ ARG PIP_EXTRA_INDEX_URL=https://pypi.org/simple RUN export PIP_EXTRA_INDEX_URL="${PIP_EXTRA_INDEX_URL}" && \ 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 math_verify "datasets<4.8.5" "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" "trl<1.0" "peft<0.21" huggingface-hub -U && \ - pip install --no-cache-dir --no-build-isolation "transformer_engine[pytorch]==2.16.0"; \ + pip install --no-cache-dir pybind11 liger_kernel wandb swanlab nvitop pre-commit "transformers<5.15" "trl<1.0" "peft<0.21" huggingface-hub -U && \ + pip install git+https://github.com/NVIDIA/TransformerEngine.git@stable --no-build-isolation; \ + pip install git+https://github.com/deepseek-ai/DeepGEMM.git@v2.1.1.post3 --no-build-isolation; \ + pip install -U flash-linear-attention --no-build-isolation; \ + pip install -U git+https://github.com/Dao-AILab/causal-conv1d --no-build-isolation; \ + pip install git+https://github.com/Dao-AILab/fast-hadamard-transform --no-build-isolation; \ + pip install git+https://github.com/NVIDIA-NeMo/Emerging-Optimizers.git@v0.3.0; \ + mv /usr/local/lib/python3.12/site-packages/tilelang/lib/libcudart_stub.so /usr/local/lib/python3.12/site-packages/tilelang/lib/libcudart_stub.so.bak; \ + ln -s /usr/local/cuda-13.0/targets/x86_64-linux/lib/libcudart.so /usr/local/lib/python3.12/site-packages/tilelang/lib/libcudart_stub.so; \ 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; \