Skip to content

feat(colab_fleet): warm GPU reuse reset, 3 tiered queues, peak-503 backfill & off-peak burst - #39

Merged
saariuslystoned merged 1 commit into
mainfrom
feat/colab-fleet-tiered-backfill-and-offpeak
Nov 27, 2026
Merged

saariuslystoned merged 1 commit into
mainfrom
feat/colab-fleet-tiered-backfill-and-offpeak

Conversation

@saariuslystoned

Copy link
Copy Markdown
Collaborator

Summary

Implements four dispatcher upgrades in tools/colab_fleet.py:

  1. Warm VM Reuse Pool + Clean Workspace Reset (--reuse-sessions, --reset-between-jobs): Keeps scarce GPUs (H100/A100_HM/A100/L4), TPUs, and CPUs alive across compatible queued jobs via colab exec, running a lightweight /tmp/fleet_job_* + torch.cuda.empty_cache() reset between jobs, and draining immediately when the queue empties or --floor-cu / SIGINT / SIGTERM hits.
  2. 3 Independent Tiered Queues (heavy-gpu, light-gpu, tpu-cpu): Auto-inferred from accelerator_class + sku_preference (or explicit tier in queue JSON) so a 503-blocked A100/H100 head never starves the remaining 6 slots.
  3. Automatic Peak-503 Backfill & Opportunistic Promotion (--peak-backfill, --max-light-gpu-slots 2): Backfills open slots up to <= 7 with light-gpu (T4_HM/T4) + TPU (V5E1) + CPU_HM when heavy GPUs return 503, and releases finishing light-gpu sessions (promotion_release_for_heavy_gpu) when heavy GPUs become ready.
  4. Off-Peak Burst Window Scheduling (00:00–07:00 EST): Allows --offpeak-max-heavy-gpu-slots 3 during off-peak vs --peak-max-heavy-gpu-slots 2 during peak, with ToS-clean immediate stop on 412/429 (COLAB_CLI_ASSIGN_RETRIES=0, zero retry hammering).

Verification

  • python3 tools/colab_fleet.py --self-test — PASS
  • python3 tools/test_colab_fleet.py -v — 12/12 PASS (including warm A100 workspace-reset reuse, peak-503 backfill across 3 independent tiered queues, off-peak EST window detection & stacking caps, polite pacing, and R2 endpoint redaction).

…ckfill & off-peak burst

Implements four dispatcher upgrades for tools/colab_fleet.py:

1. Warm VM reuse pool with clean workspace & GPU cache reset (--reset-between-jobs) between sequential jobs on scarce GPUs (H100/A100/L4), TPUs, and CPUs.
2. Three independent tiered queues (heavy-gpu, light-gpu, tpu-cpu) so a 503-blocked heavy-GPU head never starves remaining slots.
3. Automatic peak-503 backfill (--peak-backfill, --max-light-gpu-slots 2) into light-GPU (T4_HM) + TPU + CPU slots up to <=7 total, with opportunistic promotion release back to heavy-GPU as slots reopen.
4. Off-peak burst window scheduling (00:00-07:00 EST, --offpeak-max-heavy-gpu-slots 3 vs --peak-max-heavy-gpu-slots 2) with ToS-clean immediate stop on 412/429 and zero retry hammering.

Signed-off-by: Bobby Bones <saariuscrypto@gmail.com>
@saariuslystoned
saariuslystoned merged commit bb2512b into main Nov 27, 2026
2 checks passed
@saariuslystoned
saariuslystoned deleted the feat/colab-fleet-tiered-backfill-and-offpeak branch November 27, 2026 03:03
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