-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.sh
More file actions
52 lines (39 loc) · 1.31 KB
/
setup.sh
File metadata and controls
52 lines (39 loc) · 1.31 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
sudo apt-get update
sudo apt-get install -y python3-dev build-essential ninja-build
sudo apt-get install ffmpeg libsm6 libxext6 -y
cd trl
pip install -e .
pip install torch==2.5.1 torchvision==0.20.1+cu121 torchaudio==2.5.1+cu121 --index-url https://download.pytorch.org/whl/cu121
pip install git+https://github.com/huggingface/transformers.git@8ee50537fe7613b87881cd043a85971c85e99519
pip install git+https://github.com/huggingface/accelerate.git
# CUDA_HOME=/usr/local/cuda
pip install deepspeed --no-deps
pip install mpi4py
pip install qwen-vl-utils
pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.5cxx11abiFALSE-cp312-cp312-linux_x86_64.whl
pip install trl
pip install nltk
pip install fastapi
pip install python-multipart
pip install uvicorn
pip install peft
# pip install accelerate
pip install datasets
pip install bitsandbytes
pip install flash-attn==2.7.4.post1
pip install wandb
pip install openai
pip install distro
pip install httpx
pip install anyio
pip install typing-extensions
pip install latex2sympy2-extended
pip install math_verify
pip install jsonlines
pip install Pillow
pip install numpy
pip install regex
pip install deepspeed
pip install decord timm opencv-python imageio
echo "All dependencies installed successfully!"