Commit Graph
7 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 1569e8115a fix(gpu): keep optional diagnostics and cached CUDA memory out of rejections
Admit OOM-tolerant generation diagnostics and KL capture separately from
mandatory work; when their admission fails, the existing diagnostic-skip
path runs instead of failing the phase. Mandatory demand is unchanged and
still rejects in default and strict mode.

Release unused allocator cache before observing CUDA memory at every
boundary, as the main pipeline already did, so the informed and benchmark
transitions cannot reject work the cache would serve. Resolve an explicit
unindexed "cuda" device map to the current CUDA device in admit_model_load.

Shrink the warning-scope tests by stubbing model work they do not test.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:04:12 -04:00
Joseph MaglyandClaude Opus 5.5 dde2bcde4a fix(gpu): keep dequantized and retained-score demand estimate-only
Carry dequantization provenance into the post-conversion load check so
converted weights keep their estimated tier without charging conversion
workspace twice; admit_model_load gains an additive `dequantized` keyword.
Charge generation scores and logits retained by output_scores or
output_logits as a separate estimated component instead of inflating the
calibrated forward demand, which is unchanged when they are off.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:07:16 -04:00
Joseph MaglyandClaude Opus 5.5 3be8c5c1a4 fix(gpu): keep calibrated tiers and make CPU peak bounds thread-robust
Keep basic distillation calibrated when the pipeline carries inactive SAE
metadata, and keep the ordinary-edit component calibrated when optional
operations add work on top of surgery. Emit one admission warning per
phase and device across a whole SUMMON invocation (dequantization and
load), while still running both capacity checks.

Model per-thread CPU Flash attention packing and LoRA GEMM workspace plus
allocator granularity, and pin torch threads (1/4/8) in every real-peak
test through shared helpers so the bounds hold on multi-core CI runners.
Shrink the slow admission peak tests below five seconds.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 11:43:31 -04:00
Joseph MaglyandClaude Opus 5.5 a4fcfb004a feat(gpu): tier admission by calibration confidence
Tag each demand component calibrated or estimated. Default mode rejects
only when calibrated demand exceeds free memory and warns once per phase
and device about estimated or unmodelled overage. OBLITERATUS_PHASE_ADMISSION
gains strict (reject on the total) next to off. A data-driven matrix test
checks that default mode never rejects runs main can complete.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:30:11 -04:00
Joseph MaglyandClaude Opus 5.5 bdad7ea6da fix(gpu): derive admission inputs from execution state
Share eligibility and selection helpers with execution, use realized
dtypes and per-batch lengths, deduplicate tied checkpoint storage, skip
unconsumed checkpoint keys, follow PyTorch's CPU SDPA dispatch, and
account for hidden-state outputs and validation-gate workspace.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:55:59 -04:00
Joseph MaglyandClaude Opus 5.5 0c57ed3377 fix(gpu): model effective dtypes, sliding and SDPA attention, and repair
Use the loader's effective dtype for native quantized loads, follow the
executed sliding-window cache and full-input eager prefill scores, charge
SDPA math-backend scores when that backend may run, admit repair
snapshots and workspaces before their phases, and resolve remote code
with the loader's revision, token and offline constraints.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:17:31 -04:00
Joseph MaglyandClaude Opus 5.5 8844bf8723 feat(gpu): admit per-device phase memory before pipeline work
Add a reusable phase-admission module that estimates per-device demand
(resident weights, activations/KV, staging, logits, edit workspace) for
each pipeline phase and checks it against freshly observed free memory,
utilization ceilings and lifecycle broker grants before the phase starts.
Over-budget phases fail with the device and shortfall. Load admission is
exposed as admit_model_load for reuse by UI reloads.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 12:36:55 -04:00