fix: add venv setup and proper pip install
This commit is contained in:
@@ -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