fix: add venv setup and proper pip install

This commit is contained in:
Christian Medina
2026-07-01 16:22:09 -04:00
parent ff0d6e8736
commit 3b771c0db5

View File

@@ -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..."