Upload 163 files
Browse files
hugging/td_fuse/__pycache__/td_loop.cpython-310.pyc
CHANGED
|
Binary files a/hugging/td_fuse/__pycache__/td_loop.cpython-310.pyc and b/hugging/td_fuse/__pycache__/td_loop.cpython-310.pyc differ
|
|
|
hugging/td_fuse/td_loop.py
CHANGED
|
@@ -323,6 +323,7 @@ def _run_loop_inner(cfg: LoopConfig, shutdown_requested: list):
|
|
| 323 |
# Load history
|
| 324 |
history = load_cycle_history(cfg.output_dir)
|
| 325 |
cycle_num = len(history) + 1
|
|
|
|
| 326 |
consecutive_regressions = 0
|
| 327 |
|
| 328 |
# Auto-detect model if not specified
|
|
@@ -339,7 +340,7 @@ def _run_loop_inner(cfg: LoopConfig, shutdown_requested: list):
|
|
| 339 |
print(f"\n Shutdown requested β stopping before cycle {cycle_num}")
|
| 340 |
_print_final_summary(history)
|
| 341 |
return
|
| 342 |
-
if cfg.max_cycles > 0 and
|
| 343 |
print(f"\n Reached max cycles ({cfg.max_cycles}). Stopping.")
|
| 344 |
break
|
| 345 |
|
|
@@ -615,6 +616,7 @@ def _run_loop_inner(cfg: LoopConfig, shutdown_requested: list):
|
|
| 615 |
pass
|
| 616 |
|
| 617 |
# ββ SHUTDOWN CHECK before starting next cycle ββ
|
|
|
|
| 618 |
if shutdown_requested[0]:
|
| 619 |
print(f"\n Shutdown requested β stopping after cycle {cycle_num}")
|
| 620 |
break
|
|
|
|
| 323 |
# Load history
|
| 324 |
history = load_cycle_history(cfg.output_dir)
|
| 325 |
cycle_num = len(history) + 1
|
| 326 |
+
cycles_run_this_session = 0
|
| 327 |
consecutive_regressions = 0
|
| 328 |
|
| 329 |
# Auto-detect model if not specified
|
|
|
|
| 340 |
print(f"\n Shutdown requested β stopping before cycle {cycle_num}")
|
| 341 |
_print_final_summary(history)
|
| 342 |
return
|
| 343 |
+
if cfg.max_cycles > 0 and cycles_run_this_session >= cfg.max_cycles:
|
| 344 |
print(f"\n Reached max cycles ({cfg.max_cycles}). Stopping.")
|
| 345 |
break
|
| 346 |
|
|
|
|
| 616 |
pass
|
| 617 |
|
| 618 |
# ββ SHUTDOWN CHECK before starting next cycle ββ
|
| 619 |
+
cycles_run_this_session += 1
|
| 620 |
if shutdown_requested[0]:
|
| 621 |
print(f"\n Shutdown requested β stopping after cycle {cycle_num}")
|
| 622 |
break
|