Since #272 the "PR core tests" job runs every selected non-Gloo test in
one runner under a 10-minute timeout, and broad selections now exceed it.
Shard it like the Gloo tests: pr-select emits core_shards from a single
CORE_SHARD_COUNT constant and writes selected-core-N.txt once with
scripts/shard_pr_tests.py --kind core, balanced by per-file durations
measured from CI JUnit (ci/core-test-durations.json; unlisted files use
default_seconds). pr-core-tests becomes a matrix whose empty shards record
exit code 5, and check_pr_partitions.py requires the exact core-N and
gloo-N artifact set before "Pull request core" combines coverage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit de990f633e151f329ef5e844ed55f60a9a0b247c)
Ported for #244 (part 5/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc and policy conflicts keep upstream wording and add only the export
references. The new Gloo test file carries the gloo marker and a
duration entry. Marked experimental in user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- Rollback after a VERIFY failure now proves the whole model against the
pristine baseline (voted, with consensus) before lifecycle emission or
journal deletion. EXCISE alone proves only its edited operations. A
failed proof keeps the journals, quarantines and reports
LMS_VERIFY_STATE_UNCERTAIN instead of a clean rollback.
- Inference-mode setup moved inside the preparation vote, so nothing
fallible sits between the vote and the TP forward. Failures inside
the forward are documented as the bounded timeout / rank-loss boundary
and tested with a real internal all_reduce.
- Retained logit rows are cloned out of the padded batch, so retained
storage equals the admitted bytes.
- The hardware evidence checker validates each attempt against its own
mount attestation while still requiring the same physical host and GPUs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
(cherry picked from commit 2fbc38cd512f1130b4931ba5a7ffaf2e666d3008)
Ported for #244 (part 4/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc conflicts keep upstream wording and add only the VERIFY references.
The new Gloo test file carries the gloo marker and a duration entry.
Marked experimental in user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Re-verify consumed shards, progress.json, base-model files, and the
GSQ/model configs after save_model.py returns; refuse if any changed
during assembly.
- Require quantization_status "compressed", no input/output activation
schemes, and the static, non-reordered weight scheme the pinned
assembler writes.
- Require assembled index references to be plain top-level
assembler-named shards contained in the output directory.
- Map the GSQ source pin, CLI entrypoint, and docs to the GSQ tests, and
let mapped non-production paths select their surface tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit ba6e1bb45a964dd0980b2e1440debd93cf94da45)
Ported for #244 (part 3/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
The new Gloo test file carries the gloo marker and a duration entry.
Marked experimental in user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coverage combine only warns on an unreadable input and still combines
the rest, so validate each accepted partition database (readable,
coverage schema, at least one measured file) and fail on any combine
warning. The policy test now pins one positive shard-count constant
rather than its current value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the in-job concurrent pytest processes with separate jobs, each
with its own runner and 10-minute budget. PR test selection runs once
and publishes the selected list and deterministic duration-balanced
Gloo shard lists (shard count is one constant). PR core tests and the
PR gloo tests matrix upload candidate-bound status, JUnit, logs and
coverage data. The required Pull request core job needs all three,
runs always(), fails closed unless every upstream job succeeded and
every partition that ran supplied coverage, combines accepted data in
an isolated directory, and runs the unchanged changed-line floor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two real CI runs (37676597269 attempts 1 and 2) showed that two
concurrent Gloo shards oversubscribe the 4-vCPU hosted runner: each
shard took about as long as the whole single Gloo partition did (4m20s
to 4m36s), the core partition slowed from about 50s to 1m40s, and one
cold-start readiness bound failed. Test-step wall time did not improve
(4m38s to 4m40s versus 4m32s to 5m57s). Restore the two-process design.
This reverts commits 8681ef7 and 7f8a2d7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Detect the gloo marker by AST so tests that merely mention it in strings
(policy fixtures) do not take a Gloo-sized weight and unbalance the
shards. The duration-inventory policy test shares the same detector.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Split the selected test files into two Gloo shards by deterministic
longest-first assignment over a committed duration table measured from
CI JUnit. Every selected file lands in exactly one shard, so unlisted
Gloo files still run. pr-core now runs three concurrent pytest
processes with the same exit-code, empty-side, artifact and coverage
combine rules; an empty shard never invokes pytest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f9a289e267889c297cefcdc67eea92c4b8eb8d4d)
Ported for #244 (part 2/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Marked experimental in user docs.
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>
Add obliteratus.gsq: a pinned external GSQ source record (repository,
commit, prepared-tree SHA-256, calibration dataset revision), a
fail-closed textual adapter, a generic projection-coverage validator
(Qwen3.5/3.8 hybrid linear attention including in_proj_a/in_proj_b;
Qwen3.8 resolves to 496 projections), a standalone finite-Hessian /
damping / Cholesky-diagnostic guard that runs verbatim inside GSQ, and a
plain-environment fetch/prepare/config/run/validate/assemble CLI.
Rendered configs use num_workers 0 and keep activation capture in RAM;
the adapter asserts every capture batch was filled. No deployment
services, launcher identities, or GPU brokers are involved.
CPU tests cover coverage rejection and non-finite Hessian failure; a
gpu/download/slow conditional gate runs Qwen3.5-0.8B end to end.
Closes#248
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4caf45b04a8faa55f191b22c069f58714236689b)
Ported for #244 (part 1/6). Internal-only content from the archived
commit was dropped: .aiwg records, internal runner-policy routing, and the
internal security-docs test. Marked experimental in user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Point obliteratus at an FP8 or NVFP4 checkpoint and it just works:
the loader detects the format from config.json + safetensors metadata
(no weight loads), dequantizes shard-by-shard to a temporary BF16 copy,
then runs the normal float pipeline and saves BF16.
Supported layouts:
- FP8 DeepSeek-style block-wise (weight_scale_inv + weight_block_size)
- FP8 per-channel / per-tensor (compressed-tensors, ModelOpt)
- NVFP4 ModelOpt (uint8 nibbles + FP8 group scales + FP32 global),
including MIXED_PRECISION checkpoints (FP8 mixer + NVFP4 experts)
- NVFP4 compressed-tensors (reciprocal scales)
Design:
- New pure-torch obliteratus/models/quant_dequant.py; no new deps.
NVFP4 unpack uses torch.float4_e2m1fn_x2 when a runtime probe proves
it works, else a chunked nibble LUT (bounds transient int64 index
memory; a naive implementation OOMed at 96GB on a 30B model).
- Scale keys are dropped only when their base weight exists in the
same shard, so legitimate params ending in _scale (logit_scale et al.)
survive.
- Unsupported schemes (fbgemm, quanto, W4A4, ...) fail loudly at load,
naming the scheme.
- Surgery guards: float8 or packed uint8 reaching _dequantize_weight or
any fused-MoE path raises RuntimeError instead of silently upcasting
(bitsandbytes quant_state params are explicitly excluded).
- Save path strips quantization metadata and logs that output is BF16;
re-quantization for serving is out of scope (llm-compressor/modelopt).
- CLI: new --trust-remote-code flag; help text documents auto-detection.
Validated end-to-end on 1x A100-80GB (see PR description):
Nemotron-3-Nano-Omni-30B NVFP4 (mixed) and FP8, Qwen3-8B-FP8
(block-wise) vs Qwen3-8B BF16 baseline (perplexity 4.23 vs 4.33).