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>
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>
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>
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>
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>
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>
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>