44# which always occur error
55
66set -e # Exit immediately on error
7-
7+ export SETUPTOOLS_USE_DISTUTILS=local
88echo " =========================================="
99echo " Starting deep learning dependencies installation..."
1010echo " =========================================="
@@ -55,8 +55,8 @@ echo "Using CUDA architecture: $TORCH_CUDA_ARCH_LIST"
5555
5656# Install latest base packages
5757echo " "
58- echo " Installing peft, accelerate, transformers, modelscope, oss2 ..."
59- pip install --upgrade peft accelerate transformers " modelscope[framework]" oss2
58+ echo " Installing peft, accelerate, transformers, modelscope..."
59+ pip install --upgrade peft accelerate transformers " modelscope[framework]"
6060
6161# Install latest vllm
6262echo " "
@@ -71,7 +71,9 @@ echo "Site-packages path: $SITE_PACKAGES"
7171
7272CUDNN_PATH=$SITE_PACKAGES /nvidia/cudnn \
7373CPLUS_INCLUDE_PATH=$SITE_PACKAGES /nvidia/cudnn/include \
74- pip install --no-build-isolation " transformer_engine[pytorch]" megatron_core --no-cache-dir
74+ pip install --no-build-isolation " transformer_engine[pytorch]" --no-cache-dir
75+
76+ pip install megatron_core mcore_bridge --no-cache-dir
7577
7678# Install flash-attention (force local build)
7779echo " "
@@ -87,11 +89,6 @@ pip install flash-linear-attention -U
8789echo " "
8890echo " Installing numpy==2.2 and deep_gemm..."
8991pip install numpy==2.2
90- pip uninstall deep_gemm -y
91- cd /tmp
92- git clone --recursive https://github.com/deepseek-ai/DeepGEMM.git
93- cd DeepGEMM
94- pip install . --no-build-isolation
9592
9693# Verify installation
9794echo " "
@@ -100,7 +97,7 @@ echo ""
10097python -c "
10198import pkg_resources
10299
103- packages = ['peft', 'accelerate', 'transformers', 'modelscope', 'oss2', ' vllm', 'transformer_engine', 'megatron_core', 'flash_attn', 'numpy']
100+ packages = ['peft', 'accelerate', 'transformers', 'modelscope', 'vllm', 'transformer_engine', 'megatron_core', 'flash_attn', 'numpy']
104101
105102print('Installed package versions:')
106103print('-' * 40)
0 commit comments