Skip to content

qdot: the IQ3_XXS and MXFP4 gates read files the box keeps; gate-deepseek4-meta retires - #950

Merged
midagedev merged 3 commits into
mainfrom
qdotfx
Oct 29, 2026
Merged

midagedev merged 3 commits into
mainfrom
qdotfx

Conversation

@midagedev

@midagedev midagedev commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

The old V4-Flash UD-Q3_K_M file is gone from the box. Only each family's newest model is verified, and V4 passes once V4.1 works.

  • gate-qdot: the IQ3_XXS case now reads Qwen3.8-Flash-Next UD-Q3_K_XL's second shard (blk.0.ffn_gate_exps, k = 2560). The MXFP4 case reads the V4.1 DSpark draft (blk.0.ffn_gate_exps, k = 5120). ik's dumps are re-made from the same tensors. BLOOMERY_IQ3XXS_MODEL and BLOOMERY_MXFP4_MODEL name the files, and BLOOMERY_V4_MODEL is refused by name. No assertion changed.

  • gate-deepseek4-meta is retired (a coverage change, dated 2026-10-29). It pinned that file's own header, so no other file can stand in for it. Its arch::deepseek41 lib tests still run in gate-ds41-meta and gate-ops.

  • Model::Deepseek4 stays in the reader on purpose. Only the synthetic lib tests run it now; no real file checks it.

Evidence (box, fixture tier, lead ledger):

  • gate-qdot: 112 passed. Gate B is 0 ULP on 64 rows for both types. FAIL-first: flipping one byte of the first row turns both predicts_ik red.
  • gate-levers is green. recipes.py check, gate_class.py check, check-levers.sh and build-qdot-ref.sh --self-test pass.

An AI agent (Claude Code) wrote this change. The maintainer reviewed it and ran the gates.

🤖 Generated with Claude Code

midagedev and others added 2 commits October 29, 2026 13:19
The old V4-Flash UD-Q3_K_M shard both gates read is gone from the box: only
each family's newest model is verified, and old files are not fetched again.
IQ3_XXS now reads Qwen3.8-Flash-Next UD-Q3_K_XL's second shard
(blk.0.ffn_gate_exps, k = 2560) and MXFP4 the V4.1 DSpark draft
(blk.0.ffn_gate_exps, k = 5120); ik's dumps are re-made from the same tensors.
BLOOMERY_IQ3XXS_MODEL and BLOOMERY_MXFP4_MODEL name them; BLOOMERY_V4_MODEL is
refused by name. Every assertion stays. Gate B is 0 ULP on 64 rows for both.
FAIL-first: one flipped byte of the first row turns both predicts_ik red.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Coverage change, 2026-10-29: the old V4-Flash UD-Q3_K_M file is no longer on
the box, and the user's rule is that V4 passes once V4.1 works; only each
family's newest model is verified. The gate pinned that file's own header, so
no other file can take its place. Its recipe, test (deepseek4_meta.rs and
common/deepseek4_pins.rs), class row, levers-direct row and the deepseek4
profile go. The arch::deepseek41 lib tests it also ran stay in gate-ds41-meta
and gate-ops. The reader keeps reading V4 files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo labels Oct 29, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MUST_FIX: the PR deletes gate-deepseek4-meta but leaves a doc comment that names it.

Must fix

1. A comment still names the retired gate

crates/model/src/arch/deepseek41/hparams.rs:1623 says the v4() layer table is what just gate-deepseek4-meta pins. That recipe, its test file and its pins file are deleted in this PR. A reader who follows the comment finds nothing, and may think the table is still checked against a real file. It is now only a synthetic table for the lib tests.
Cost: this is the only live reference in code. Fixing it in this PR keeps the retirement complete.
Fix:

    /// The V4-Flash layer table, built from the ratios alone:
    /// ratio 0 on layers 0-1, then 4 and 128 alternating from layer 2 to 42;
    /// every compressed layer owns its gated compressor (twice the latent wide
    /// at ratio 4), the ratio-4 layers their indexer and index-key compressor.

Non-blocking

⚠ V4-Flash has no file gate left: Model::Deepseek4 (hparams.rs:96, DEEPSEEK4 in arch/mod.rs:111) stays in the reader and the registry row deepseek41,deepseek4. After this PR only synthetic lib tests run it. The PR body gives a dated reason for the retirement. Say in the body whether Model::Deepseek4 is meant to stay untested on a real file, or is next to go.

⚠ Stale names in docs: docs/research/modelspec-design.md (lines 344, 601, 666, 815, 823, 923) points at deepseek4_meta.rs, deepseek4_pins.rs and gate-deepseek4-meta. It is a design record, so this is optional; a one-line "retired 2026-10-29" note would help.

Checked

  • Duplicates: 4 new items checked (model_file, FileCase, 2 levers). None duplicated. The lever pair follows the existing BLOOMERY_Q5K_MODEL pattern. dryer: 0 pairs.
  • Complexity: crapper flagged none.
  • Silent failure: 4 sites followed. BLOOMERY_V4_MODEL is refused by name in Rust (var_os) and in the script (+x), with any value, before any build. model_file panics on an unknown type. FileCase::load still asserts byte size and row count, and ik_dump asserts that the dump and the scan found the same tensor and k.
  • Tests: mutation check on the build-qdot-ref.sh self-test. Swapping the two files in the iq3xxs_ref/mxfp4_x4_ref case arms turns iq3xxs-file and mxfp4-file red. Removing the refusal turns retired-rc red. The stub's .args printf format is correct inside the quoted heredoc. No assertion in qdot.rs changed.
  • Gates: gate-deepseek4-meta is removed with a dated reason (2026-10-29) in the PR body. No band, tolerance or pin moved. gate-class.tsv, gate-paths.tsv and levers-direct.txt agree with the deletions. No other recipe, script or crate refers to the gate.
  • Hot path: none (tests, tools, registry text).
  • Escape catalog: C1 to C4 checked on build-qdot-ref.sh; none matched. The $(find ...) and $(cat ...) substitutions are only read, not used for an exit code.

Notes

  • The PR body reports gate-qdot results and a FAIL-first, but without command output. The gates are CPU-only. Tests were not run in this review.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@midagedev
midagedev enabled auto-merge (rebase) October 29, 2026 05:35

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: the new commit fixes the one must-fix, and the new lines add no defect.

Since the last review:

  • Must-fix 1 (comment names the retired gate): fixed. hparams.rs:1623 now reads "built from the ratios alone", as suggested.
  • ⚠ Model::Deepseek4 has no file gate: answered. The PR body now says it stays on purpose and only synthetic lib tests run it.
  • ⚠ Stale names in docs/research/modelspec-design.md (lines 344, 601, 666, 815, 823, 923): still open. It is a design record, so this is optional. A one-line "retired 2026-10-29" note would help.

Checked

  • Duplicates: the new commit adds one comment line and no item. Nothing to check. dryer: 0 pairs.
  • Complexity: crapper flagged none.
  • Silent failure: no code changed in the new commit.
  • Tests: no test changed. The earlier mutation check stands.
  • Gates: no pin, band or tolerance moved by the new commit.
  • Escape catalog: no pattern matched.

Notes

  • The PR body gives gate results without command output. The gates are CPU-only. Tests were not run in this review.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@midagedev
midagedev merged commit 5e743ad into main Oct 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

host Host crates: qdot, threads, engram, engram-lab, runtime, sampler, levers, decision, vision, refset model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant