Commit Graph
23 Commits
Author SHA1 Message Date
Joseph Magly ccd1cd73f0 docs: synchronize release rehearsal and runtime guidance 2026-10-29 09:50:28 -04:00
Joseph Magly e223399aa1 test(admission): model bounded Bayesian work 2026-10-29 00:37:47 -04:00
Joseph Magly 63c8300887 fix(admission): inspect all recurrent callsites
Qualify all four Qwen scan and convolution fallbacks and reject Hub replacements on every model submodule. Keep unbounded compiled kernels unknown in strict mode and document the remaining source and hardware qualification gaps.

Refs #384
2026-10-28 22:46:13 -04:00
Joseph MaglyandClaude Opus 5.5 59ddd77e56 fix: address review findings (gpu-driver)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 15:26:33 -04:00
Joseph MaglyandClaude Opus 5.5 85ffaf40fd feat(gpu): multi-GPU qualification driver and per-device admission
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:48:34 -04:00
Joseph MaglyandClaude Opus 5.5 278b285525 Bound device temporaries of concept weight interventions
Finiteness checks use scalar reductions, and large embeddings and residual
writers are projected in bounded row chunks with CPU staging, so a faithful
edit including the embedding fits next to a model that nearly fills the
device. Coordinate-direction edits stay bit-exact; general chunked kernels
can differ by compute-dtype rounding.

Fixes #325

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 01:49:50 -04:00
Joseph MaglyandClaude Opus 5.5 d664199cc7 Fold post-sublayer norms in pipeline excise
AbliterationPipeline now folds Gemma 2/3 and OLMo 2 post-attention and
post-feedforward RMSNorm scales into residual-writer projections across
excise, Bayesian, SAE, LoRA-ablation and repair paths, sharing the
recognition rules with the concept API. fold_post_norms=False
(--no-fold-post-norms) reproduces the previous numerics and is recorded in
run metadata. Combinations that cannot be folded fail explicitly.

Fixes #320

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:42:35 -04:00
Joseph MaglyandClaude Opus 5.5 5f7bd87774 fix(ui): guarded UI loads with shared load admission (#246)
Route every direct UI load/reload (chat lazy reload, session switch,
A/B comparison, post-run chat reload) through one guarded attempt in the
new gradio-free obliteratus/ui_model_load.py. The attempt calls the same
phase_admission.admit_model_load the CLI loader uses, with the same
confidence-tiered semantics and no UI-specific bound, and on any failure
drops partially loaded models, clears traceback-held tensors, frees
allocator memory and releases the lifecycle once.

Model-slot ownership is exclusive and transactional: a failed switch
restores the previous session metadata (previous model cleanly unloaded,
lazily recoverable from a validated checkpoint) and never publishes
partial state. Fixes the same-model deadlock in load_bench_into_chat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:42:20 -04:00
Joseph MaglyandClaude Opus 5.5 8fdfca22ad fix(gpu): execute the activation-collection limits that were admitted
Release the CUDA cache before sizing PROBE and spectral VERIFY collections,
resolve batch and truncation limits once, admit them and reuse the same
selection during execution, clearing it on completion or failure. Before,
cleanup inside admission could let execution pick far larger shapes than
were admitted. With admission off, sizing stays where upstream does it.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:46:40 -04:00
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 e5db2ed089 test(gpu): fit admission tests in the PR core budget
Run real-peak admission tests at four CPU threads in the PR suite, with the
one- and eight-thread variants marked slow, and shrink their geometry to
the smallest size that still discriminates the modelled workspace terms.
Evaluate the differential matrix per handle so every combination keeps its
invariant at a fraction of the cost. The PR core selection had grown past
its ten-minute limit.

The smaller geometries exposed CPU estimate gaps, now modelled: autocast
parameter-copy staging, SDPA operand casts under CPU autocast and per-worker
reduced-precision GEMM scratch. These stay estimate-only; CUDA calibrated
numbers are unchanged.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:27:38 -04:00
Joseph MaglyandClaude Opus 5.5 6db084a4f2 fix(gpu): admit only the work that follows and warn once per invocation
Refinement admits the validation gate alone, not the evaluation capture it
never runs, so default mode cannot reject a run for forwards that do not
happen. Repeated admissions inside one benchmark method, Concept Lab
action, informed/Ouroboros loop or concept evaluation share a warning
scope: each boundary still observes memory afresh, but a phase/device
warns once per invocation.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 13:47:35 -04:00
Joseph MaglyandClaude Opus 5.5 06d20c7015 fix(gpu): admit refinement validation and split-layer forwards honestly
Admit VALIDATE before the iterative-refinement gate, and re-admit EXCISE
afterwards, so strict mode can reject the gate before it materialises.
Treat forward workspace as estimate-only when a decoder layer is split
across devices, since the estimator would charge every participant with
the whole layer; unsplit single- and multi-GPU numbers are unchanged.

Admit the stages that informed/Ouroboros loops, Concept Lab, concept
baseline and evaluation, checkpoint verification and the benchmark script
run outside the main pipeline. Work without a qualified bound is
unmodelled: default mode warns and proceeds, strict mode rejects.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:43:01 -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 0516260459 fix(gpu): model mixed-dtype SDPA, Mamba2 fallback and LoRA merges
Resolve attention compute dtype per projection, account for Mamba2
torch-fallback scan intermediates and the LoRA construct/merge path, and
flag Bayesian optimization as unmodelled before optimizer work.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:43:25 -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 7d41ad2bae fix(gpu): stop admission from rejecting runs main accepts
Charge native pre-quantized checkpoints at their stored sizes, treat
disk-offloaded weights as streaming workspace, model distillation demand
per method, apply the loader's FlashAttention fallback before admission
builds the model, and follow Falcon's executed KV-cache geometry. Paths
that cannot be modelled reject explicitly and name the opt-out.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:22:13 -04:00
Joseph MaglyandClaude Opus 5.5 a16b246f4a fix(gpu): harden admission against review findings
Bound unrecognised integer tensors conservatively instead of rejecting
them, wait briefly for the lifecycle grant lock and report contention
explicitly, restore export preparation state when REBIRTH is rejected,
and assert every phase's real entry work in the boundary tests.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 13:35:02 -04:00
Joseph MaglyandClaude Opus 5.5 a8f0b7db51 fix(gpu): admit native export demand and default generation cache
Use plan_native_export/native_export_host_demand as the REBIRTH host
demand when a native plan exists and the full-model accounting
otherwise. Treat an unset generation use_cache as the model default, and
surface demand-modelling failures as phase admission errors.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 13:06:33 -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