Spaces:
Sleeping
Sleeping
Upload runner.py with huggingface_hub
Browse files
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
|
| 50 |
-
os.system("pip install
|
| 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 = [
|