-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_cu121.sh
executable file
·39 lines (32 loc) · 1.02 KB
/
install_cu121.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# python
python3.10 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip wheel cython
pip install setuptools==69.5.1
pip install packaging
pip install torch==2.4.0
pip install -r requirements_cu121.txt
# nemo install
git clone https://github.com/NVIDIA/NeMo.git
cd NeMo
git checkout 0504c927afe61ddd40ade18f8553d0f52a65f509
git apply ../NeMo_v2.1.0rc0.patch
pip install -e .
cd ../
# apex install
git clone https://github.com/NVIDIA/apex.git
cd apex
git checkout b7a4acc1
pip install . -v --no-build-isolation --disable-pip-version-check --no-cache-dir --config-settings "--build-option=--cpp_ext --cuda_ext --fast_layer_norm --distributed_adam --deprecated_fused_adam --group_norm"
cd ../
# transformer engine install
pip install git+https://github.com/NVIDIA/TransformerEngine.git@c81733f1032a56a817b594c8971a738108ded7d0
# flash-attention install
git clone https://github.com/Dao-AILab/flash-attention -b v2.4.2
cd flash-attention
pip install -e .
cd ../
# make log and tmp directory
mkdir -p outputs
mkdir -p tmp