fix: add venv setup and proper pip install
This commit is contained in:
1 parent
ff0d6e8736
commit
3b771c0db5
1 file changed
+11
-3
+11
-3
@@ -5,9 +5,17 @@ set -e
|
||||
|
||||
echo "=== Cyron LoRA Training Setup ==="
|
||||
|
||||
# Install dependencies if needed
|
||||
pip install -q torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
|
||||
pip install -q transformers accelerate datasets trl peft bitsandbytes deepspeed
|
||||
# Create venv
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
|
||||
# Install dependencies
|
||||
echo "Installing PyTorch with CUDA 12.4..."
|
||||
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu124
|
||||
|
||||
echo "Installing training dependencies..."
|
||||
pip install transformers datasets trl peft accelerate bitsandbytes deepspeed
|
||||
|
||||
# Run training
|
||||
echo "Starting training with accelerate..."
|
||||
|
||||
Reference in new issue
Block a user