Skip to content

Commit 031be8f

Browse files
committed
add no-cache-dir
1 parent 6558796 commit 031be8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

INSTALL_MEGATRON.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ echo "Using CUDA architecture: $TORCH_CUDA_ARCH_LIST"
5656
# Install latest base packages
5757
echo ""
5858
echo "Installing peft, accelerate, transformers, modelscope..."
59-
pip install --upgrade peft accelerate transformers "modelscope[framework]"
59+
pip install --upgrade peft accelerate transformers "modelscope[framework]" --no-cache-dir
6060

6161
# Install latest vllm
6262
echo ""
6363
echo "Installing latest vllm..."
64-
pip install --upgrade vllm
64+
pip install --upgrade vllm --no-cache-dir
6565

6666
# Get site-packages path and install transformer_engine and megatron_core
6767
echo ""
@@ -83,12 +83,12 @@ MAX_JOBS=8 \
8383
FLASH_ATTENTION_FORCE_BUILD=TRUE \
8484
pip install flash-attn --no-build-isolation --no-cache-dir
8585

86-
pip install flash-linear-attention -U
86+
pip install flash-linear-attention -U --no-cache-dir
8787

8888
# Install numpy
8989
echo ""
9090
echo "Installing numpy==2.2 and deep_gemm..."
91-
pip install numpy==2.2
91+
pip install numpy==2.2 --no-cache-dir
9292

9393
# Verify installation
9494
echo ""

0 commit comments

Comments
 (0)