Pratyush-01 commited on
Commit
17833ed
·
verified ·
1 Parent(s): 4979698

drop redundant 'progress' reward (==match in single-turn); add lineage to W&B

Browse files
Files changed (1) hide show
  1. physix/training/loop.py +9 -1
physix/training/loop.py CHANGED
@@ -150,8 +150,16 @@ def train(config: TrainingConfig) -> None:
150
  wandb.run.summary["resume/from_url"] = (
151
  f"https://huggingface.co/{config.lora_adapter_repo}"
152
  )
 
 
 
 
 
 
 
 
153
  print(
154
- f"\n[wandb] RESUMED run — warm-started from "
155
  f"https://huggingface.co/{config.lora_adapter_repo}\n",
156
  flush=True,
157
  )
 
150
  wandb.run.summary["resume/from_url"] = (
151
  f"https://huggingface.co/{config.lora_adapter_repo}"
152
  )
153
+ # If a parent W&B run is named (set by the orchestrator script),
154
+ # surface it prominently so the lineage is one click away.
155
+ parent_run = os.environ.get("WANDB_RESUMED_FROM")
156
+ if parent_run:
157
+ wandb.run.summary["resume/parent_wandb_run"] = parent_run
158
+ wandb.run.summary["resume/parent_wandb_url"] = (
159
+ f"https://wandb.ai/{wandb.run.entity}/{wandb.run.project}/runs/{parent_run}"
160
+ )
161
  print(
162
+ f"\n[wandb] WARM-STARTED run — adapter "
163
  f"https://huggingface.co/{config.lora_adapter_repo}\n",
164
  flush=True,
165
  )