YashashMathur commited on
Commit
48a7cf6
Β·
verified Β·
1 Parent(s): 1a5a502

Training script with WorldModel/Memory integration

Browse files
Files changed (1) hide show
  1. train.py +10 -0
train.py CHANGED
@@ -20,6 +20,16 @@ from peft import set_peft_model_state_dict
20
  # CRITICAL: Import unsloth FIRST before any other ML libraries
21
  from unsloth import FastLanguageModel
22
 
 
 
 
 
 
 
 
 
 
 
23
  # ─── Auth & Config ────────────────────────────────────────────────────────────
24
  HF_TOKEN = os.environ["HF_TOKEN"]
25
  HF_USERNAME = os.environ.get("HF_USERNAME", "YashashMathur")
 
20
  # CRITICAL: Import unsloth FIRST before any other ML libraries
21
  from unsloth import FastLanguageModel
22
 
23
+ # Import WorldModel and Memory (for full implementation)
24
+ try:
25
+ from world_model import WorldModelSimulator
26
+ from memory import MemoryLedger
27
+
28
+ WORLD_MODEL_AVAILABLE = True
29
+ except ImportError:
30
+ WORLD_MODEL_AVAILABLE = False
31
+ print("Note: WorldModel/Memory not available in this environment")
32
+
33
  # ─── Auth & Config ────────────────────────────────────────────────────────────
34
  HF_TOKEN = os.environ["HF_TOKEN"]
35
  HF_USERNAME = os.environ.get("HF_USERNAME", "YashashMathur")