Swordnael commited on
Commit
756b532
·
verified ·
1 Parent(s): d1403ec

Isolate Trackio from Hub model acquisition

Browse files
training/run_fable_router_structural_smoke.py CHANGED
@@ -435,13 +435,18 @@ def main() -> int:
435
  try:
436
  import trackio
437
 
 
 
 
 
 
 
438
  trackio.init(
439
  project="autonoma-fable-router-smoke",
440
  name=f"{args.bank}-{stamp}",
441
- space_id="Swordnael/trackio",
442
  config={"bank": args.bank, "platform": args.platform, "mode": "structural-smoke"},
443
  )
444
- tracking = {"status": "started", "space": "Swordnael/trackio"}
445
  run(args, result)
446
  result["status"] = "structural_smoke_passed_nonrouting"
447
  result["passed"] = True
@@ -462,7 +467,7 @@ def main() -> int:
462
  result_path = output / "result.json"
463
  result_path.write_text(json.dumps(result, indent=2) + "\n", encoding="utf-8")
464
  try:
465
- if tracking["status"] == "started":
466
  import trackio
467
 
468
  trackio.finish()
 
435
  try:
436
  import trackio
437
 
438
+ # Structural-smoke evidence is persisted directly to the private Hub
439
+ # dataset. Keep Trackio local here: Trackio's Space mode configures a
440
+ # Hub Bucket/Xet write context, which can leak into a subsequent large
441
+ # model download in the same process. Full training uses a dedicated
442
+ # remote Trackio process after acquisition instead.
443
+ os.environ["TRACKIO_DIR"] = str(output / "trackio")
444
  trackio.init(
445
  project="autonoma-fable-router-smoke",
446
  name=f"{args.bank}-{stamp}",
 
447
  config={"bank": args.bank, "platform": args.platform, "mode": "structural-smoke"},
448
  )
449
+ tracking = {"status": "started_local", "directory": str(output / "trackio")}
450
  run(args, result)
451
  result["status"] = "structural_smoke_passed_nonrouting"
452
  result["passed"] = True
 
467
  result_path = output / "result.json"
468
  result_path.write_text(json.dumps(result, indent=2) + "\n", encoding="utf-8")
469
  try:
470
+ if tracking["status"] == "started_local":
471
  import trackio
472
 
473
  trackio.finish()