forked from philschmid/deep-learning-pytorch-huggingface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
38 lines (31 loc) · 949 Bytes
/
Copy pathsetup.sh
File metadata and controls
38 lines (31 loc) · 949 Bytes
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
#!/bin/bash
echo "Starting setup script..."
# Update system packages
echo "Updating system packages..."
apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
echo "Installing Python dependencies..."
pip install --no-cache-dir setuptools>=74.1.1
# Remove and reinstall specific NVIDIA packages
echo "Setting up NVIDIA packages..."
pip uninstall -y pynvml
pip install --no-cache-dir nvidia-ml-py
# Install flash-attention
echo "Installing flash-attention..."
pip uninstall -y flash-attn
pip install flash-attn --no-build-isolation
# Install other Python packages
echo "Installing ML frameworks and tools..."
pip install --no-cache-dir \
tensorboard \
transformers==4.48.1 \
datasets==3.1.0 \
accelerate==1.3.0 \
hf-transfer==0.1.9 \
deepspeed==0.15.4 \
trl==0.14.0 \
vllm==0.7.0 \
wandb
echo "Setup completed successfully!"