SParsh003 commited on
Commit
5821db8
·
verified ·
1 Parent(s): 9ed1791

Upload runner.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. runner.py +3 -2
runner.py CHANGED
@@ -45,9 +45,10 @@ def main():
45
  os.chdir("LifeOS")
46
 
47
  log("Installing Unsloth, TRL, and dependencies (this takes a few minutes)...")
 
48
  os.system("pip install unsloth")
49
- os.system("pip install --no-deps trl peft accelerate bitsandbytes datasets transformers sentencepiece")
50
- os.system("pip install matplotlib pydantic fastapi requests")
51
 
52
  log("Starting GRPO Training (50 episodes)...")
53
  cmd = [
 
45
  os.chdir("LifeOS")
46
 
47
  log("Installing Unsloth, TRL, and dependencies (this takes a few minutes)...")
48
+ # FIX: Splitting dependencies to ensure 'transformers' installs its own sub-dependencies correctly
49
  os.system("pip install unsloth")
50
+ os.system("pip install --no-deps trl peft accelerate bitsandbytes")
51
+ os.system("pip install datasets transformers sentencepiece pydantic fastapi requests matplotlib")
52
 
53
  log("Starting GRPO Training (50 episodes)...")
54
  cmd = [