Commit Graph
581 Commits
Author SHA1 Message Date
faber d8d8c024cf research: add Lexotomy (Vocab Surgery) paper, figures, and Onset-Orth module 2026-11-27 18:50:04 -05:00
Joseph Magly 03964fe0ca Merge main cd7ae6c into feat/287-e4-workload-and-probe-ram
# Conflicts:
#	CHANGELOG.md
2026-11-27 16:18:20 -05:00
Joseph Magly cd7ae6ca9f Merge pull request #700 from elder-plinius/feat/accept-nov21-recipes
feat(recipes): accept nine recipes confirmed in the 2026-11-21 validation run
2026-11-27 16:02:48 -05:00
Joseph Magly f9c0c72fc4 Merge main 56cfa4e into feat/accept-nov21-recipes
# Conflicts:
#	CHANGELOG.md
2026-11-27 15:39:48 -05:00
Joseph Magly 76e20f2aba test(distributed): cover float E4 receipt and workload values; align two-host docs
Add a receipt with greedy_steps 3.0 and float, string and mismatched
expected workloads to the E4 admission tests. The two-host protocol and
runbook, merged in #691, still said the qualification runner admits only
the E3 reference job; point them at the E4 workload worker and keep its
EXPERIMENTAL, not_qualified status.
2026-11-27 15:39:21 -05:00
Joseph Magly 26a7b45b08 Merge main 56cfa4e into feat/287-e4-workload-and-probe-ram
# Conflicts:
#	CHANGELOG.md
2026-11-27 15:37:56 -05:00
Joseph Magly 34cff6c1a5 Merge main 56cfa4e into fix/689-batched-vocab-discovery
Resolve the vocab_surgery_discovery.py conflict with #699: keep the batched
discovery structure, render discovery prompts through the pinned-date
chat-template helper, and record chat_template_date in the generation block.
2026-11-27 15:33:56 -05:00
Joseph Magly 56cfa4ee4f Merge pull request #691 from elder-plinius/feat/287-cross-host-tp2-protocol
docs(distributed): document the two-host TP2 cross-host protocol and E3/E4 runbook
2026-11-27 15:29:07 -05:00
Joseph Magly 9138ca83cf Merge main 03cd1f2 into feat/accept-nov21-recipes
# Conflicts:
#	CHANGELOG.md
2026-11-27 15:00:00 -05:00
Joseph Magly ee756af22c Merge main 03cd1f2 into fix/689-batched-vocab-discovery
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:46:25 -05:00
Joseph Magly fd541d9220 fix(vocab-discovery): batch only architectures verified to honour left padding
RWKV's forward ignores attention_mask, so left pads entered its state and
batched discovery changed results at the default batch size. The gate now
also requires an allowlisted model_type verified equivalent (gpt2, llama,
mistral, qwen2, qwen3, gemma, gemma2, phi3, mamba), transformers' own model
class, an attention_mask parameter, and static RoPE scaling; anything else
falls back to the one-prompt path. A tokenizer with neither pad nor eos
token now falls back instead of raising. Docs say batched results match up
to floating-point rounding.
2026-11-27 14:46:23 -05:00
Joseph Magly b526dfef0b Merge main 03cd1f2 into feat/287-cross-host-tp2-protocol
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:42:10 -05:00
Joseph Magly 85a57cac7e docs(distributed): survive main moves in the two-host bootstrap and fix publication phases
The registry record binds code_digest, the adapter digest and
policy_digest, so re-selecting a later main merge as the final candidate
refused at config_review. Compute those values in the registry PR's own
head from the existing attestations and check them on the merge result;
when main moves, recompute and re-review. Only a host, device, staging
mount, capacity or rendezvous_id change needs a new observation, since the
hardware digest takes no code or policy input.

List the exact job keys the worker reads, run the checker with the
checkout on PYTHONPATH, add the fault harness to the preconditions,
describe publication outcomes by phase (including the lost-ack case),
scope the Gloo-only statement to control records beside the NCCL data
plane, and keep raw artifacts out of the #287 handoff.
2026-11-27 14:42:07 -05:00
Joseph Magly def9b3a9cb Merge main 03cd1f2 into fix/690-pin-chat-template-date
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:41:01 -05:00
Joseph Magly e0131f770b Merge main 03cd1f2 into feat/287-e4-workload-and-probe-ram
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:39:41 -05:00
Joseph Magly 587fca3e1d Merge pull request #692 from elder-plinius/fix/383-qwen38-concept-arm-variant
feat(qwen38): add a cv_auc concept-arm variant and record the loadpath-333 concept variant
2026-11-27 14:28:47 -05:00
Joseph Magly ae85e60814 Merge main d0ceadd into feat/accept-nov21-recipes 2026-11-27 13:51:52 -05:00
Joseph Magly 966ab62b46 feat(recipes): accept nine recipes confirmed in the 2026-11-21 validation run
Ship as accepted v2 data the nine recipes that passed the protocol final
test and were accepted by the operator on 2026-11-27: Granite 4.1 8B,
Llama-3.2-1B, Llama-3.2-3B, OLMoE-1B-7B, Phi-4-mini, Qwen3.5-0.8B,
Qwen3.5-9B, Llama-3.1-8B-Instruct-abliterated and DeepSeek-R1-Distill-
Qwen-7B. Each ships a KL-advisory evaluation profile and value-only
confirmation and verify-edit evidence bound by SHA-256, following the two
recipes accepted in 134bd2c.

The Llama-3.2 results predate the chat-template date pin (#690) and are not
comparable with later measurements. Two recipes were confirmed with
analysis_device auto (resolved to cuda:0) and ship as confirmed; the shipped
CPU-extraction test now names them explicitly.
2026-11-27 13:51:50 -05:00
Joseph Magly 8c5c749757 Merge main d0ceadd into feat/287-e4-workload-and-probe-ram 2026-11-27 13:51:16 -05:00
Joseph Magly 54a190e78a fix(distributed): bind E4 greedy steps to the replayed count and tighten admission
The E4 receipt accepted greedy_steps 1 to 8 and the builder used the
draft's value, but the worker always replays three greedy steps and
compares them exactly, so any other value passed admission and was
guaranteed to fail after the physical run. Share REFERENCE_GREEDY_STEPS = 3
between admission, the reference builder and the worker, and refuse any
other value before building.

Also compare the live PROBE config and tokenization digests with the job in
the E4 worker, record a workload/job mismatch in the Gloo agreement so both
ranks refuse together, chain the cause of a local admission failure, and
require a plain int workload.
2026-11-27 13:51:14 -05:00
Joseph Magly 79be989671 Merge main d0ceadd into fix/690-pin-chat-template-date 2026-11-27 13:50:46 -05:00
Joseph Magly 90eae790a2 fix(chat-template): catch getattr and alias bypasses and pin operator vLLM kwargs
The completeness guard only flagged x.apply_chat_template(...) calls, so a
getattr call, a getattr or bound-method alias, or functools.partial passed
it. It now flags any apply_chat_template attribute or getattr lookup outside
the helper unless it is passed directly to callable() or hasattr(), and the
two capability probes use that form.

When an operator passes --default-chat-template-kwargs without date_string,
merge the pinned date into that JSON object (operator keys win) instead of
leaving vLLM unpinned. Document that scripts/ stays unpinned, the vLLM
version that first has the flag, that every resolved spec digest changes,
and that older verify-checkpoint references for date templates will not
match the pinned render.
2026-11-27 13:50:44 -05:00
Joseph Magly 648fa1644d fix(vocab-discovery): batch only generation configs that padding cannot change
Left padding changes greedy results when the model's generation config
uses settings that see the padded width or the pad tokens (min_length,
exponential_decay_length_penalty, repetition penalties, n-gram bans), and
beam search can return several rows per prompt, so output[index] attached
a completion to the wrong prompt.

Batch only when every set generation-config field is known batch-neutral
or at its generate default; a missing config, an unknown field or any other
value sends every prompt through the original one-prompt path. Add
mixed-length min_length and beam/return-sequence regression tests that
check each response with its audit entry.
2026-11-27 12:52:23 -05:00
Joseph Magly 814a32fa44 docs(distributed): make the two-host runbook bootstrap and launch correctly
Live preflight and the qualification runner both refuse before they
collect attestations while the registry has no matching record, so the
runbook could not bootstrap a first profile. Add an authorized
observation-only step (same probes as preflight, no admission), a
registry-only PR, and collect E2/E3/E4 on the final candidate that holds
the reviewed record.

Replace unquoted angle-bracket placeholders in shell blocks, list the full
torchrun environment the launcher requires and the job-file keys, and run
the offline checker from the exact final-candidate checkout. Mark physical
E3 fault collection pending a reviewed harness: the shipped worker
hard-codes the export id and destination.
2026-11-27 12:51:03 -05:00
Joseph Magly 7b0022ef2f fix(chat-template): pin the rendered date so prompts do not depend on the wall clock
Templates that call strftime_now (the Llama-3.2 family) rendered the run date into the system header, so stock refusal moved 0.650 -> 0.557 between two days. Every apply_chat_template render in obliteratus/ and app.py goes through obliteratus.chat_template_date, which passes a fixed date_string and strftime_now (default 26 Jul 2024) only to templates that use them. verify-edit takes the date from spec generation.date_string, records it in the report, and appends --default-chat-template-kwargs to vLLM servers it launches; reused endpoints and scripts/ stay unpinned (documented).

Fixes #690
2026-11-27 12:01:21 -05:00
Joseph Magly afde716070 feat(distributed): add rank-local LMS-E4 workload admission and a streaming reference
Adds the two-host E4 workload path. A bounded streaming reference is built from the immutable source with one layer resident at a time, so it works for models larger than any single host. run_rank_local_qualification.py admits a fully bound E4 job only when its workload exceeds the local host's physical RAM, and the worker requires both ranks to agree over Gloo before PROBE. Registry and final qualification checks are unchanged; the stack stays not_qualified. The PROBE RAM refresh was already delivered in 002e6e5.

Refs #287
2026-11-27 11:23:49 -05:00
Joseph Magly 301f4d1edc fix(admission): estimate the FLA/causal-conv1d recurrent workspace for Qwen hybrid models
Phase admission gives a conservative estimated workspace for the exact FLA 0.5.2 chunk scan and causal-conv1d 1.7.0 forwards that Transformers selects for Qwen3-Next/3.5/3.8 hybrid models, after verifying package versions, wrapper chains back to the module's own file and FLA's alternative backends without importing anything. The estimate counts every inventoried kernel allocation at FP32 width, never drops below the torch-fallback estimate and adds 512 MiB per device. It is estimated, not calibrated: fail-closed still refuses; other compiled paths stay unknown.

Refs #384
2026-11-27 11:23:33 -05:00
Joseph Magly 1aded15678 perf(vocab-surgery): batch greedy generation in discover (--batch-size)
Discovery generates prompts in left-padded greedy batches with explicit attention masks (--batch-size, default 8). Each row is cut at its first stop token, matching the unbatched call. Responses, counts, scores, ranking and prompt_audit (per-prompt input_ids, rendered digests, chat-template digest) are identical to --batch-size 1, which keeps the original path byte-for-byte. CPU tests on tiny GPT-2 and Llama models cover EOS and varied prompt lengths.

Fixes #689
2026-11-26 17:29:40 -05:00
Joseph Magly f2da875345 feat(qwen38): add a cv_auc concept-arm variant and record the loadpath-333 concept variant
Adds --loadpath-concept-layer-select {all,cv_auc} so the loadpath-333 concept arm can rerun with data-driven layer selection, alone or with --loadpath-causal-control (same recipe on the CausalLM path). Stage and edit evidence record the variant (concept_variant) and the selected layers; quality gates keep reporting without vetoing edits. The default 'all' keeps the original recipe and manifest. CPU tests cover the options with stubbed model work; the docs add the A100 command lines.

Fixes #383
Refs #333
2026-11-26 17:28:48 -05:00
Joseph Magly 7a96fa0d69 docs(distributed): document the two-host TP2 cross-host protocol and E3/E4 runbook
Documents the existing rank-local cross-host TP2 protocol (#365/#402): Gloo summary and chunk formats, vote order, coordinator-only durable publication and how each failure fails closed, in a new note so the policy digest of distributed-rank-local.md is unchanged. Adds a rented-hardware E3/E4 qualification runbook and fixes the stale two-host refusal text in conditional-testing.md. No runtime change; the reviewed rank_storage registry stays empty and status stays not_qualified.

Refs #287
2026-11-26 17:27:45 -05:00
Joseph Magly 331184df1c Merge main dd31361 into fix/679-secret-scan-false-positives
# Conflicts:
#	CHANGELOG.md
2026-11-25 18:06:17 -05:00
Joseph Magly 4a285a0484 fix(persistence): settle uncertain hard-link publishes by file identity
Grok review r1 for #682: after a hard-link error that may have succeeded,
_publish_file_no_replace compares the destination's (st_dev, st_ino) with the
temp file's before renaming: the same file counts as published by this write,
a different file is a definite FileExistsError, and only an incomparable
identity stays uncertain. The uncertain-link test is platform-correct (on
Windows a rename onto the write's own link publishes normally). Windows
winerror 1/50 (no hard links) is a definite link failure. Adds tests for a
link that took effect despite EIO, a foreign file after EIO, and a definite
link error followed by an existing destination.
2026-11-25 15:35:23 -05:00
Joseph Magly 545ed4281d fix(ci): clear gitleaks false positives without suppression
All 22 supply-chain secret-scan hits were false positives: a public
Llama-3.2-1B commit id under a "tokenizer_revision" key, and SHA-256 digests of
tokenizer fixture files keyed by filename. numeric_geometry_spec uses one
module constant for the commit (values unchanged). The analysis-first evidence
JSONs record hashes as ordered {"path","sha256"} lists (all 63 values
preserved, verified), and the two writers emit the same shape. CI scans the
clean checkout before uv sync builds into the workspace. No allowlist, ignore
file or inline allow comment is added.

Refs #679
2026-11-25 15:13:02 -05:00
Joseph Magly 5cebcf19c2 Merge main b7113e6 into fix/675-e-persistence-notes 2026-11-25 14:44:12 -05:00
Joseph Magly 285618db15 fix(persistence): keep refusal causes and report uncertain hard-link publishes
Section E of #675: both rollback-refusal re-raise paths keep the refusal's
own cause in one chain (a refusal with no cause gets the commit error); a
hard link that errored uncertainly, followed by an EEXIST or unsupported
fallback rename, is reported as possibly published by this write rather than
"Output already exists"; a definite link failure with no rename says nothing
was published. CHANGELOG wrapping and the Windows staging residual note are
fixed. Directory os.open and unknown-~user tests are gated by capability and
platform, and the ArchiveRootError docstring names expanduser/Path.home.

Refs #675
2026-11-25 14:44:10 -05:00
Joseph Magly 820af1426d Merge main e4ac974 into fix/675-a-recipe-diagnostics 2026-11-25 13:33:06 -05:00
Joseph Magly e2e7e30799 fix(recipes): make cleanup diagnostics best effort without stdout fallback or duplicates
Section A of #675: with stderr None, diagnostics are dropped instead of going to stdout; a failed flush never re-prints the line; recipe search/confirm keep exit 4 (no traceback) when stderr is closed or missing; docstrings say never raises an Exception / best effort; the contended-write test requires a failing print and the unencodable case asserts the refusal and CRITICAL lines.

Refs #675
2026-11-25 13:33:04 -05:00
Joseph Magly 4e1209e61e Merge main 11b2247 into fix/669-modelhandle-cleanup-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 12:53:38 -05:00
Joseph Magly a1959fd163 Merge main 38d3792 into fix/669-modelhandle-cleanup-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 12:23:02 -05:00
Joseph Magly b45cd77155 Merge main 38d3792 into fix/665-vocab-offload-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 12:03:55 -05:00
Joseph Magly 5c9042c807 Merge main 4898d06 into fix/665-vocab-offload-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 11:21:58 -05:00
Joseph Magly 4793e96f34 fix(vocab,offload): walk to the nearest flag-carrying tie owner; coalesce and propagate unavailable compares
_config_tie_flag lets a silent sub-model owner defer to the next enclosing
owner that declares tie_word_embeddings; the top level decides only when all
are silent (any-True across alias paths and fail-closed disagreement kept).
logical_values_identical batches narrow leading-index slices up to the chunk
budget and propagates None from recursion instead of folding it into False.
Docs: apply_all also verifies ID-only operations via a matching embedded
config pin.

Refs #665
2026-11-25 11:21:56 -05:00
Joseph Magly 312a5ae329 Merge main 4898d06 into fix/669-modelhandle-cleanup-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 11:21:48 -05:00
Joseph Magly 0030a32ccc Merge main 4898d06 into fix/644-645-checkpoint-rollback-capacity
# Conflicts:
#	CHANGELOG.md
2026-11-25 11:21:02 -05:00
Joseph Magly 4898d068d9 Merge pull request #670 from elder-plinius/fix/666-viewer-evaluator-preset-followups
fix(viewer,evaluator,presets): close #661/#663 review follow-ups
2026-11-25 11:15:54 -05:00
Joseph Magly 4ad55a64d1 Merge pull request #660 from elder-plinius/fix/652-654-recipe-cleanup-followups
fix(recipes): bound the cleanup-lock wait and keep cleanup failures primary over any close error
2026-11-25 11:11:05 -05:00
Joseph Magly 3c7a6ca920 fix(models): harden ModelHandle cleanup sites and messages
Moves cleanup_on_exit/cleanup_during_error to the light
obliteratus.handle_cleanup module (re-exported from the loader) and imports
them at module top, so no import runs after a handle exists. Stores the closed
policy before detaching the restore point, names the path to remove in
handle-surfaced SnapshotErrors, guards post-load work in candidate,
smaller_change and the sequence loaders, keeps observer-close and neuron-lab
cleanup failures from replacing the primary error or skipping state reset, and
adds failure-plus-failing-close tests for every listed site.

Fixes #669
2026-11-25 10:06:29 -05:00
Joseph Magly 2a0abae1f8 fix(viewer,evaluator,presets): close #661/#663 review follow-ups
The results viewer formats -0 and non-finite values like Python, survives
engines without toFixed(100), and shows an error when readAsText throws. CSV
export writes an empty metric name as `metric:` and orders columns by name
across all rows. StudyConfig rejects `metrics: []` at parse. The evaluator logs
the position_ids fallback and matches more rejection wordings, runs in eval
mode (restoring module modes afterwards), and handles left padding in
classification. Preset getters return deep copies.

Fixes #666
2026-11-25 09:59:06 -05:00
Joseph Magly 1418c5109c Merge main dd7cef9 into fix/644-645-checkpoint-rollback-capacity
Keep both sides: #659's snapshot close tests and this branch's snapshot plan
tests in tests/test_model_snapshot.py, and both CHANGELOG entries.
2026-11-25 07:51:30 -05:00
Joseph Magly b8de31cd5a Merge main 2e31f24 into fix/644-645-checkpoint-rollback-capacity; address Muse audit
Muse BT6 audit of 3500f9d for #664: an identity with st_ino == 0 counts as no
identity (rollback refuses, and held-staging cleanup leaves the path) on
volumes without file IDs; the move-aside is a no-replace rename and a foreign
entry found after the move is moved straight back; on filesystems without
no-replace rename nothing moves, so the promoted checkpoint and the backup are
both kept. Review r2 P3s: accurate notes when the move-aside fails, the
staging path named when kept, and a CHANGELOG entry referencing #667.
2026-11-25 07:50:35 -05:00