Maggio33 commited on
Commit
7594762
·
verified ·
1 Parent(s): 250763a

Upload eval_push.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. eval_push.py +3 -0
eval_push.py CHANGED
@@ -40,4 +40,7 @@ client = RunClient(api_url=os.environ.get("FABRYKA_API_URL", "https://track.fabr
40
  api_key=os.environ["FABRYKA_API_KEY"])
41
  client.init(project="gollem-v5", name=name)
42
  client.log({k: float(v) for k, v in metrics.items()}, step=step)
 
 
 
43
  print(f"[eval_push] pushed {metrics} @ step {step} -> run {run_id}", flush=True)
 
40
  api_key=os.environ["FABRYKA_API_KEY"])
41
  client.init(project="gollem-v5", name=name)
42
  client.log({k: float(v) for k, v in metrics.items()}, step=step)
43
+ # SDK _atexit calls finish(state="failed") on exit; null run_id so this short-lived push does NOT
44
+ # override the live pusher's run-state (we only append a metric, never own/finish the run).
45
+ client.run_id = None
46
  print(f"[eval_push] pushed {metrics} @ step {step} -> run {run_id}", flush=True)