Rayugacodes commited on
Commit
9ff82e1
·
verified ·
1 Parent(s): f4c4a2c

Fix: pin trl==0.12.2, verify imports during build

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -20,13 +20,17 @@ RUN pip install --no-cache-dir \
20
  torch --index-url https://download.pytorch.org/whl/cu121
21
 
22
  RUN pip install --no-cache-dir \
23
- transformers \
24
- "trl>=0.12,<0.17" \
25
- peft \
26
- datasets \
27
- accelerate \
28
  huggingface_hub
29
 
 
 
 
 
30
  COPY train_on_hf.py .
31
  RUN chmod -R 777 /app
32
 
 
20
  torch --index-url https://download.pytorch.org/whl/cu121
21
 
22
  RUN pip install --no-cache-dir \
23
+ "transformers==4.46.3" \
24
+ "trl==0.12.2" \
25
+ "peft==0.13.2" \
26
+ "datasets>=2.18" \
27
+ "accelerate==0.34.2" \
28
  huggingface_hub
29
 
30
+ # Verify imports work
31
+ RUN python3 -c "from trl import SFTTrainer, SFTConfig, GRPOConfig, GRPOTrainer; print('TRL imports OK')"
32
+ RUN python3 -c "import torch; print('CUDA available:', torch.cuda.is_available())"
33
+
34
  COPY train_on_hf.py .
35
  RUN chmod -R 777 /app
36