Skip to content

fix(colab_fleet,h100_fast_kernels): reap READ_TIMEOUT orphans, fix workspace reset, catch IPython crash, keep GC on 80 GiB looped MoE - #41

Merged
saariuslystoned merged 1 commit into
mainfrom
fix/colab-fleet-orphan-reap-and-looped-gc
Nov 27, 2026
Merged

saariuslystoned merged 1 commit into
mainfrom
fix/colab-fleet-orphan-reap-and-looped-gc

Conversation

@saariuslystoned

Copy link
Copy Markdown
Collaborator

Summary

Fixes four reliability issues observed during live multi-tier Colab fleet runs:

  1. Reap unnamed READ_TIMEOUT orphan runtimes (tools/colab_fleet.py): When colab new hits a client read timeout after Colab finishes allocating an unnamed runtime ([?] <endpoint>), diff list_sessions() against before_eps and unassign ONLY newly appeared matching-kind unnamed endpoints (preserving all pre-existing external sessions).
  2. Fix warm-VM workspace reset CLI invocation (tools/colab_fleet.py): google-colab-cli exec does not support -c; write _reset_workspace.py atomically under cfg_dir and pass -f.
  3. Catch silent IPython exceptions (tools/colab_fleet.py): When colab exec exits 0 despite an unhandled IPython traceback and required downloads fail, mark the job failed (ipython_exception_missing_outputs / missing_outputs) and do not park the session for reuse.
  4. Keep gradient checkpointing enabled on 80 GiB GPUs for looped MoE models (tools/h100_fast_kernels.py): Auto-detect looped architectures (num_loop_steps > 1, loop_count > 1, num_loops > 1, num_recurrent_steps > 1, or explicit looped_model=True) and apply looped_disable_gc_threshold_gb=110.0 so 36-loop MoE models do not OOM on 80 GiB A100/H100 while preserving the >= 70 GiB behavior for standard transformers.

Proof

  • python3 tools/test_colab_fleet.py -v: 14/14 PASS
  • python3 tools/test_h100_fast_kernels.py -v: 7/7 PASS
  • python3 tools/colab_fleet.py --self-test: all_passed: true

… workspace reset, catch IPython crash, keep GC on 80 GiB looped MoE
@saariuslystoned
saariuslystoned merged commit 3ece630 into main Nov 27, 2026
2 checks passed
@saariuslystoned
saariuslystoned deleted the fix/colab-fleet-orphan-reap-and-looped-gc branch November 27, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant