Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
move torch and torch_npu install order to ensure installed version co…
…rrect
  • Loading branch information
FightingZhen committed Nov 15, 2025
commit cd7598da09c46253362817b83ba5cda6459af502
4 changes: 2 additions & 2 deletions docker/ascend/Dockerfile.ascend_8.2.rc1_a2
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ RUN ARCH=$(uname -m) && \
fi && \
source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
source /usr/local/Ascend/nnal/atb/set_env.sh && \
# Install torch & torch_npu
pip install torch==2.5.1 torch_npu==2.5.1 && \
# Install vllm
cd vllm && VLLM_TARGET_DEVICE=empty pip install -v -e . && cd .. && \
# Install vllm-ascend
cd vllm-ascend && pip install -v -e . && cd .. && \
# Install MindSpeed & Megatron
pip install -e MindSpeed && \
echo "export PYTHONPATH=\$PYTHONPATH:/Megatron-LM" >> ~/.bashrc && \
# Install torch & torch_npu
pip install torch==2.5.1 torch_npu==2.5.1 && \
# Clear extra files
rm -rf /tmp/* /var/tmp/* && \
pip cache purge
Expand Down
4 changes: 2 additions & 2 deletions docker/ascend/Dockerfile.ascend_8.2.rc1_a3
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ RUN ARCH=$(uname -m) && \
fi && \
source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
source /usr/local/Ascend/nnal/atb/set_env.sh && \
# Install torch & torch_npu
pip install torch==2.5.1 torch_npu==2.5.1 && \
# Install vllm
cd vllm && VLLM_TARGET_DEVICE=empty pip install -v -e . && cd .. && \
# Install vllm-ascend
cd vllm-ascend && pip install -v -e . && cd .. && \
# Install MindSpeed & Megatron
pip install -e MindSpeed && \
echo "export PYTHONPATH=\$PYTHONPATH:/Megatron-LM" >> ~/.bashrc && \
# Install torch & torch_npu
pip install torch==2.5.1 torch_npu==2.5.1 && \
# Clear extra files
rm -rf /tmp/* /var/tmp/* && \
pip cache purge
Expand Down
4 changes: 2 additions & 2 deletions docker/ascend/Dockerfile.ascend_8.3.rc1_a2
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ RUN ARCH=$(uname -m) && \
fi && \
source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
source /usr/local/Ascend/nnal/atb/set_env.sh && \
# Install torch & torch_npu
pip install torch==2.7.1 torch_npu==2.7.1 && \
# Install vllm
cd vllm && VLLM_TARGET_DEVICE=empty pip install -v -e . && cd .. && \
# Install vllm-ascend
cd vllm-ascend && pip install -v -e . && cd .. && \
# Install MindSpeed & Megatron
pip install -e MindSpeed && \
echo "export PYTHONPATH=\$PYTHONPATH:/Megatron-LM" >> ~/.bashrc && \
# Install torch & torch_npu
pip install torch==2.7.1 torch_npu==2.7.1 && \
# Clear extra files
rm -rf /tmp/* /var/tmp/* && \
pip cache purge
Expand Down
4 changes: 2 additions & 2 deletions docker/ascend/Dockerfile.ascend_8.3.rc1_a3
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ RUN ARCH=$(uname -m) && \
fi && \
source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
source /usr/local/Ascend/nnal/atb/set_env.sh && \
# Install torch & torch_npu
pip install torch==2.7.1 torch_npu==2.7.1 && \
# Install vllm
cd vllm && VLLM_TARGET_DEVICE=empty pip install -v -e . && cd .. && \
# Install vllm-ascend
cd vllm-ascend && pip install -v -e . && cd .. && \
# Install MindSpeed & Megatron
pip install -e MindSpeed && \
echo "export PYTHONPATH=\$PYTHONPATH:/Megatron-LM" >> ~/.bashrc && \
# Install torch & torch_npu
pip install torch==2.7.1 torch_npu==2.7.1 && \
# Clear extra files
rm -rf /tmp/* /var/tmp/* && \
pip cache purge
Expand Down
Loading