mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
bug fix (#1145)
This commit is contained in:
@@ -639,14 +639,24 @@ def summarize_win():
|
||||
)
|
||||
|
||||
timeout_stats = get_timeout_stats(state.llm_data)
|
||||
coding_timeout_pct = (
|
||||
round(timeout_stats["coding"]["timeout"] / timeout_stats["coding"]["total"] * 100, 2)
|
||||
if timeout_stats["coding"]["total"] > 0
|
||||
else 0
|
||||
)
|
||||
info6.metric(
|
||||
"Timeouts (C)",
|
||||
f"{round(timeout_stats['coding']['timeout'] / timeout_stats['coding']['total'] * 100, 2)}%",
|
||||
f"{coding_timeout_pct}%",
|
||||
help=f"{timeout_stats['coding']['timeout']}/{timeout_stats['coding']['total']}",
|
||||
)
|
||||
running_timeout_pct = (
|
||||
round(timeout_stats["running"]["timeout"] / timeout_stats["running"]["total"] * 100, 2)
|
||||
if timeout_stats["running"]["total"] > 0
|
||||
else 0
|
||||
)
|
||||
info7.metric(
|
||||
"Timeouts (R)",
|
||||
f"{round(timeout_stats['running']['timeout'] / timeout_stats['running']['total'] * 100, 2)}%",
|
||||
f"{running_timeout_pct}%",
|
||||
help=f"{timeout_stats['running']['timeout']}/{timeout_stats['running']['total']}",
|
||||
)
|
||||
|
||||
|
||||
@@ -197,9 +197,9 @@ def get_sota_exp_stat(
|
||||
]
|
||||
running_exps.sort(key=lambda x: x[1], reverse=True)
|
||||
for exp, loop_id in running_exps:
|
||||
if exp.experiment_workspace.all_codes == sota_exp.experiment_workspace.all_codes and str(exp.hypothesis) == str(
|
||||
sota_exp.hypothesis
|
||||
):
|
||||
if exp.experiment_workspace.all_codes == sota_exp.experiment_workspace.all_codes and "".join(
|
||||
str(i) for i in exp.hypothesis.__dict__.values()
|
||||
) == "".join(str(i) for i in sota_exp.hypothesis.__dict__.values()):
|
||||
sota_loop_id = loop_id
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user