Repository navigation
Conversation
There was a problem hiding this comment.
Verdict: MUST_FIX: the prompt fallback aborts generation, and empty offset metadata panics.
Must fix
1. Use the effective prompt mode in generate_ds41
crates/gpu-deepseek41/src/body/prefill.rs:256 switches an unsupported batch to Steps. The CLI retains Batch in feed_mode and batched; its check_plan then compares the steps' absent need with a batch plan and aborts. Default feed on istadense, with residency off, reaches this path.
Fix this before publishing the new file support. Replace let call = log.call.take(); at crates/gpu-gates/src/bin/generate_ds41.rs:1037 with:
let feed_mode = if check_finite {
body::PrefillMode::Steps
} else {
s.model().body("generate_ds41")?.prefill_mode()
};
let batched = feed_mode == body::PrefillMode::Batch;
let call = log.call.take().filter(|_| batched);Resolve call/load records after preparation too. Cover this with a default-feed istadense CLI run.
2. Refuse an empty per-site offset array
crates/gguf/src/facts.rs:285 accepts empty ple.head_offsets with nonzero sites. Hash::from_gguf → hash_constant → per_site then calls chunks(0), panicking instead of returning the keyed metadata error.
Close this boundary before more publisher headers use the converter. Replace the guard:
if v.is_empty() || sites == 0 || !v.len().is_multiple_of(sites) {3. Reuse the scalar IQ decoders
crates/gpu-gates/src/iq_rows.rs:145 reimplements the three decoders added at crates/gguf/src/quant.rs:1690. These are the same scalar ggml decode, separate from the optimized card rule (R14). The claim that dequant_row lacks them is false.
Remove the copies now, before fixes must be repeated. Replace the whole function and remove its unused table/half imports:
pub fn ref_dequant(fmt: IqFormat, bytes: &[u8], out: &mut [f32]) -> Result<(), QuantError> {
dequant_row(fmt.ggml(), bytes, out)
}Replace decode_matches' three-type dispatch with dequant_row(ty, row, &mut want)?; and correct its comment.
4. Reuse the Engram table-name owner
crates/gguf/src/arch/deepseek41.rs:71 repeats crates/engram/src/lib.rs:67's table-name fact. Use one owner for this fact (R14).
Reuse it now so the names cannot drift. Replace the Engram helper:
fn site_name(layer_id: u32) -> String {
gguf::arch::deepseek41::table_name(u64::from(layer_id))
}5. Share the snapshot digest
crates/gpu-gates/src/bin/gate_deepseek41_step.rs:699 copies crates/gpu-gates/src/bin/gate_deepseek41_step.rs:768's entire snapshot/hash algorithm (R14).
Reuse the helper now, before snapshot checks diverge. Replace the trait method:
fn state_hash(&self, m: &mut Deepseek41Model) -> Result<u64, GateError> {
snap_hash(m)
}6. Correct the published card restriction
README.md:279 says all non-Q3_K/Q4_K V4.1 experts run on the host. This PR's ds41_pair and CardStacks run the listed IQ types on the stage card.
Correct this with the implementation so users do not plan against a false restriction:
- DeepSeek V4.1 expert tier cards run Q3_K gate·up with a Q4_K down. The stage card also runs the common card leg's
supported types, including ISTA-DASLab's IQ1_M, IQ2_XXS and IQ2_XS.
Optimization headroom
- E, Less work: crates/gpu-deepseek41/src/chain/ffn/batch.rs:2553 copies q3 and d8 planes for common-leg layers that read
b.xinstead. Skip those two device copies per chunk on that path.
Checked
Duplicates: confirmed the scalar decoders, table-name construction and snapshot digest share their facts; all three fixes reuse existing owners.
Behavior: traced the fallback through preparation, prompt dispatch and check_plan; traced empty offset metadata through hash_constant to chunks(0).
Suggestions: both replacement ranges are added lines; the Rust guard and Markdown replacement are valid.
Headroom: common-leg execution reads b.x; the two copied planes are consumed only by the fused path.
Escape catalog: none of the cited findings matches C1–C4.
Notes
Static validation; hardware gates were not run.
Card check: needs-gpu. This pull request changes crates/app/src/arch/deepseek41/mod.rs, crates/gpu-deepseek41/src/body.rs, crates/gpu-deepseek41/src/body/prefill.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
| /// A [`Conv::PerSite`] fact made per-site: each of `sites` equal chunks | ||
| /// counted from its own first row. | ||
| fn per_site(key: &str, v: Vec<u64>, sites: usize) -> Result<Vec<u64>, FactError> { | ||
| if sites == 0 || !v.len().is_multiple_of(sites) { |
There was a problem hiding this comment.
With nonzero sites, an empty offset array reaches chunks(0) and panics instead of returning FactError::Bad.
| if sites == 0 || !v.len().is_multiple_of(sites) { | |
| if v.is_empty() || sites == 0 || !v.len().is_multiple_of(sites) { |
| - DeepSeek V4.1 runs routed experts on a card only as Q3_K gate·up with a Q4_K down; other expert types (ISTA-DASLab's | ||
| IQ1_M, IQ2_XXS and IQ2_XS) run on the host tier. |
There was a problem hiding this comment.
The new common leg runs these IQ types on the stage card; the fused-format restriction applies to expert tier cards.
| - DeepSeek V4.1 runs routed experts on a card only as Q3_K gate·up with a Q4_K down; other expert types (ISTA-DASLab's | |
| IQ1_M, IQ2_XXS and IQ2_XS) run on the host tier. | |
| - DeepSeek V4.1 expert tier cards run Q3_K gate·up with a Q4_K down. The stage card also runs the common card leg's | |
| supported types, including ISTA-DASLab's IQ1_M, IQ2_XXS and IQ2_XS. |
There was a problem hiding this comment.
Since the last review
Verdict: MUST_FIX: two earlier behavior defects remain open, and the new loading check breaks --levers.
Must fix
1. Use the effective prompt mode
Still open: crates/gpu-gates/src/bin/generate_ds41.rs:1037. Default batch feed on istadense, with residency off, makes the body fall back to Steps. The CLI retains Batch and its printed batch plan. After the prompt runs as steps, check_plan sees no batch needs and aborts before decoding.
Fix the CLI handoff with the new format support so these files can generate. Replace let call = log.call.take(); with:
let feed_mode = if check_finite {
body::PrefillMode::Steps
} else {
s.model().body("generate_ds41")?.prefill_mode()
};
let batched = feed_mode == body::PrefillMode::Batch;
let call = log.call.take().filter(|_| batched);Print batch call records only after format checks confirm that the effective mode is Batch.
2. Reject empty per-site offsets
Still open: crates/gguf/src/facts.rs:285. A header with empty ple.head_offsets and nonzero sites reaches Hash::from_gguf → hash_constant → per_site. Zero values pass the divisibility guard, then chunks(0) panics instead of returning a keyed metadata error.
Close the shared input boundary before more publisher headers use it. Replace the guard:
if v.is_empty() || sites == 0 || !v.len().is_multiple_of(sites) {3. Parse CLI inspection before checking CUDA
New: crates/gpu-gates/src/bin/gate_deepseek41_load.rs:141. With CUDA_MODULE_LOADING unset, gate_deepseek41_load --levers returns an error before at_main, which prints the lever table and exits successfully. This inspection command previously needed no CUDA setup.
Restore inspection alongside the new prerequisite so callers retain that behavior. Move the existing statement at lines 150–151 before let loading:
let levers =
bloomery_levers::at_main(&[CARD_BUDGET, HOST_POPULATE, HOST_LOCK, CARD_DONTNEED, R8])?;Keep the loading check before gate_card::init().
Checked
Duplicates: 1 new constant checked, no duplicate. No diagnostic pair touches this increment.
Complexity: no crapper target changes in this increment; the load gate gains one rejection branch.
Silent failure: the new default leads to a named loading-mode error; both carried behavior paths remain reachable.
Tests: static control-flow validation only; GPU gates were not run.
Gates: loading-mode precondition added; generated PTX table excluded from findings.
Escape catalog: C1–C4 do not match the new hunks. The recipe preserves the runner's exit status.
Card check: needs-gpu. This pull request changes crates/app/src/arch/deepseek41/mod.rs, crates/gpu-deepseek41/src/body.rs, crates/gpu-deepseek41/src/body/prefill.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
There was a problem hiding this comment.
Since the last review
Verdict: MUST_FIX: all three earlier behavior defects remain open. The interdiff adds no finding.
Must fix
1. Use the effective prompt mode
Still open: crates/gpu-gates/src/bin/generate_ds41.rs:1037. With default batch feed and residency off, istadense falls back to Steps. The CLI retains Batch and its planned needs. After feeding the prompt, check_plan rejects the missing batch needs and generation aborts.
Fix the handoff now so the newly supported formats can generate. Replace let call = log.call.take(); with:
let feed_mode = if check_finite {
body::PrefillMode::Steps
} else {
s.model().body("generate_ds41")?.prefill_mode()
};
let batched = feed_mode == body::PrefillMode::Batch;
let call = log.call.take().filter(|_| batched);
if let Some(c) = &call {
c.print(false, &hp, &[]);
}In Log::plan, replace its if let Some(c) = &call print block so ordinary runs print only after that confirmation:
if a.plan && let Some(c) = &call {
c.print(true, &inputs.hp, &plan.n_l);
}2. Reject empty per-site offsets
Still open: crates/gguf/src/facts.rs:285. Empty ple.head_offsets with nonzero sites reaches Hash::from_gguf → hash_constant → per_site. Zero values pass the divisibility guard, then chunks(0) panics instead of returning the keyed metadata error.
Close the shared boundary before more publisher headers use it. Replace the guard:
if v.is_empty() || sites == 0 || !v.len().is_multiple_of(sites) {3. Parse inspection options before checking CUDA
Still open: crates/gpu-gates/src/bin/gate_deepseek41_load.rs:141. With CUDA_MODULE_LOADING unset, gate_deepseek41_load --levers errors before at_main can print the lever table and exit successfully.
Restore inspection now so callers retain its CUDA-independent behavior. Move the existing statement at lines 150–151 before let loading:
let levers =
bloomery_levers::at_main(&[CARD_BUDGET, HOST_POPULATE, HOST_LOCK, CARD_DONTNEED, R8])?;Keep the loading check before gate_card::init().
Checked
Duplicates: the three findings describe distinct failures; no diagnostic pair overlaps the changed unsafe-count pins.
Complexity: the interdiff changes no crapper-flagged function.
Silent failure: unset loading mode returns an explicit error; the other two carried failure paths remain reachable.
Tests: static control-flow checks only; GPU gates were not run. The inline replacement targets added line 285 and preserves the keyed error path.
Gates: the changed unsafe-count pins retain dated reasons.
Escape catalog: C1–C4 do not apply to these findings; no ledger lessons are in force.
Notes
The supplied PR text omits the card/driver line and complete gate command output.
Card check: needs-gpu. This pull request changes crates/app/src/arch/deepseek41/mod.rs, crates/gpu-deepseek41/src/body.rs, crates/gpu-deepseek41/src/body/prefill.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
| /// A [`Conv::PerSite`] fact made per-site: each of `sites` equal chunks | ||
| /// counted from its own first row. | ||
| fn per_site(key: &str, v: Vec<u64>, sites: usize) -> Result<Vec<u64>, FactError> { | ||
| if sites == 0 || !v.len().is_multiple_of(sites) { |
There was a problem hiding this comment.
Reject empty offsets before the zero-sized chunk iterator panics.
| if sites == 0 || !v.len().is_multiple_of(sites) { | |
| if v.is_empty() || sites == 0 || !v.len().is_multiple_of(sites) { |
There was a problem hiding this comment.
Since the last review
- Fixed: effective prompt mode and batch-plan handoff, crates/gpu-gates/src/bin/generate_ds41.rs:1039.
- Fixed: empty per-site offsets return a keyed error, crates/gguf/src/facts.rs:285.
- Fixed: lever inspection precedes the CUDA check, crates/gpu-gates/src/bin/gate_deepseek41_load.rs:141.
Verdict: CLEAN: all three earlier findings are fixed; no new defect survives review of this increment.
Checked
- Duplicates: 0 new definitions. Five facts.rs dryer pairs read; their shared shapes introduce no duplication in this increment. Remaining pairs concern unchanged code.
- Complexity: no crapper-flagged function changes in this increment.
- Silent failure: 2 sites followed. Dropped plans belong to step feeds; an unset CUDA loading mode still returns an explicit error before context creation.
- Tests: the extended offsets test protects facts.rs:285. Removing
v.is_empty()reacheschunks(0)and fails the test by panic (static mutation analysis). Tests were not executed. - Gates: no pins, bands or cases relaxed. Batch runs retain plan validation; step feeds omit batch records.
--planstill prints before loading. - Escape catalog: C1–C4 do not match this increment. No ledger lessons are in force.
Notes
The supplied PR text and changed files omit the card/driver line and complete gate-run evidence. GPU gates were not run.
Card check: needs-gpu. This pull request changes crates/app/src/arch/deepseek41/mod.rs, crates/gpu-deepseek41/src/body.rs, crates/gpu-deepseek41/src/body/prefill.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
One owner (gguf::v41_facts) reads the header's facts under each publisher's spelling: ISTA-DASLab's set carries both expert_gating_func and expert_scoring_func, and the alias owner holds them equal or refuses by name. The Engram hash constants open as header keys or as tensors, and a set that stores its Engram tables in a GGUF of its own opens that file as a further shard: beside the first shard, then in the sibling directory of the file's stem, or at BLOOMERY_V41_ENGRAM. Co-Authored-By: Claude Opus 5.5 <[email protected]>
hw_ds41_open_* reads only headers (seconds) and pins the 1017 Q3_K_M set's facts; BLOOMERY_V41_MODEL points it at another publisher's shards of the model. Real-only: no fixture carries a second publisher's spelling. Co-Authored-By: Claude Opus 5.5 <[email protected]>
dequant_row reads the three types as ggml's dequantize_row_iq1_s, _iq1_m and _iq2_s do, over the iq1s and iq2s grids (generated by tools/ref/gen-iq-tables.py beside the existing ones); their rows name dequant and the Q8_K host activation. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rnel Each type's dot sums in ggml's vec_dot order and is held to the mainline oracle by qdot's generic tests, FAIL-first on each type's sign, delta and scale fields. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…iant gates them The V4.1 routed rule in coverage passes a stack that a card format loads or a fused host kernel serves at its row width (routed_unrun, one owner). The istaexp fixture variant retypes the fixture's routed experts as ISTA's set mixes them (IQ1_M, IQ2_XXS, IQ2_XS); a host-only variant's budget holds through the plan (check_budget_variant), and the step gate reads the card-expert launch count through nodes::has_card_experts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…type Each of IQ2_S, IQ1_S and IQ1_M gets a gate·up and a down selector entry (iq2_s_*_sel, iq1_s_*_sel, iq1_m_*_sel) as RawSb arms over the file's blocks, and a prompt GEMM (gemm_iq2s, gemm_iq1s, gemm_iq1m) as a GemmWeight arm; IQ2_XS gains its GEMM (gemm_iq2xs). The four rows' card columns name KQuant for layout and routed, so their routed stacks load on a card and the common leg runs them. IQ1's weights fold the delta into int8 8g ± 1 over a d/8 scale, so a group is one exact i32 sum. Tests that used IQ2_XS or IQ1_S as the type with no card path now use MXFP4 and Q2_K (PIN lines). ptx-compare 3a0e7ec generate_ds41: 426 → 436, 10 added, none changed or removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s to ggml's decode gate_iq_sel takes IQ2_S, IQ1_S and IQ1_M; gate_gemm's --case runs each new GEMM over three shapes, four routings and eight T against the reference decode transcribed from ik's dequantize_row_iq2_s/iq1_s/iq1_m (iq_rows::ref_dequant). FAIL-first per type: IQ2_S's sign byte, IQ1_S's delta sign, IQ1_M's delta nibble and d-nibble order, IQ2_XS's sign index. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e cc 8.6 scan's values until a cc 12.1 scan runs Co-Authored-By: Claude Opus 5.5 <[email protected]>
… matrix as one expert The head column of Q5_K's row names Head::Q5k: the q8_1 quantizer, the _sel Q5_K gemv (enqueue_gemv_q5k_sel), then argmax_fault, one row a step. A head of m > 1 rows is refused by name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nnot read fed as steps The V4.1 dense sites read what ISTA's set ships: attn_output_a in Q5_K, the compressor and indexer projections in BF16, the HC functions in F32, the shared expert and the head in Q5_K. A file whose attention tensors the prompt batch's launches do not read is fed as steps (PrefillMode::Steps), and Body::batch_refusal names the tensor that decided it; under a residency the steps feed is refused by name with both facts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… types --feed holds a Q3_K file to the prompt batch with no refusal and any other file to the step feed, its prompt call the same ids stepped one by one. The istadense fixture variant retypes 104 dense tensors as ISTA's set types them, and every clause reads that file's own oracle sets. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The step's embedding reads Q5_K rows through the common super-block decode (EmbedSb, behind embed_rows_q5k), and the Engram tables' rows read IQ4_NL (iq4nl_embed_value) in the step image, the card rows and the prompt batch's glue: ds41_glue_embed_q5k and ds41_glue_engram_rows_iq4nl. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A variant's map never retypes the draft, so a variant directory with no draft answers the fixture's one, an identical draft of its own answers that, and a differing one or a fixture with none is refused by name (exit 66). check-recipes holds the four cases, and reads a recipe with parameters as a recipe. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…that names token_embd A variant map's role may name a tensor outside the layers (token_embd, output). istaglue retypes the token embedding to Q5_K and the Engram tables to IQ4_NL; gate-gpu-ds41-step and -prefill read it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…2.1 tables, at the cc 8.6 scan's values until a cc 12.1 scan runs Co-Authored-By: Claude Opus 5.5 <[email protected]>
…xperts Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d qdot Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s::of Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts own arch file facts.rs reads a fact under several spellings (keys or tensors, typed conversion, a conflict refused by name) with no model name in it; engram.rs attaches a companion file from a table it is handed. V4.1's spellings, gating and companion rows live in gguf/src/arch/deepseek41.rs, found through the file's general.architecture (arch::engram_facts), so engram reads its table by key and its callers keep their signatures. Refusal texts are unchanged; check-arch and check-model-tax are green. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the common leg's arms accepts::ds41_pair decides a V4.1 layer's card leg: the fused triple (Q3_K gate and up, Q4_K down) keeps its own launches, and a layer whose gate·up the common leg runs (card_gate_up_runs) over a Q8Act down (card_q8act_down_runs) runs the common leg; a mix of the two stays on the host. RoutedRule::Leg carries the pair rule. The expert tier still takes fused layers only, its image holding Q3_K planes and scales. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e fused triple does not The step enqueues a leg layer through CardLeg::enqueue_rows_quantized on the already quantized activation (10 launches a layer, as the fused one); the prompt batch runs it in pieces of 64 tokens; the residency swap reads each layer's types from the plan and refuses the r8 sidecar unless every gate·up is Q3_K. ptx-compare 4567096 generate_ds41: 451 = 451, nothing changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ds41_shadow names the kernels a layer's types launch instead of Q3_K's, and the routed-leg table holds the leg layers. FAIL-first on the istaexp variant: a leg layer read as fused is refused (192 card experts need gate/up 98304 x 550, got 98304 x 280). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
a534227 moved its sm_86 spill 484 -> 608 and kept the older jit_local 104, which only a cc 8.6 card measures; gate-ptx-spill was red on main's own PTX (ptx-compare 4307309..qt-train: changed none). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…bundle's load Lazy module loading maps a kernel's code at its first launch, inside load 1, and the context keeps that 2 MiB granule past the drop; the glue entries the type train added pushed that code over a granule boundary, and the first drop read 2097152 B short. The recipe runs the binary under CUDA_MODULE_LOADING=EAGER and the binary refuses by name any other value. Under EAGER load and drop trade the same 6467616768 B. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… split into empty chunks An empty ple.head_offsets passed the divisibility guard and reached chunks(0). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…k, so --levers prints without CUDA Co-Authored-By: Claude Opus 5.5 <[email protected]>
… mode A file the batch cannot read loads with the step feed; the call is printed and checked only for a batched feed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ies a LoadError stays narrow FactError::Conflict names two keys and two values; inline it widened ModelError past clippy's result_large_err bound. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e-type check without a loop Co-Authored-By: Claude Opus 5.5 <[email protected]>
The box no longer holds the 127 GiB IQ4_XS set; the gate reads headers only. The stub's four rows are pinned at prometheusAIR/Solar-Open2-250B-GGUF 9b867c45, whose LFS sha256s equal the files the gate was pinned against. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…6 jit_local; its PIN below holds the measured one Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Since the last review
- Fixed: prompt mode and batch-plan handoff remain correct at crates/gpu-gates/src/bin/generate_ds41.rs:1039.
- Fixed: empty offsets still return a keyed error at crates/gguf/src/facts.rs:285.
- Fixed: lever inspection still precedes the CUDA check at crates/gpu-gates/src/bin/gate_deepseek41_load.rs:141.
Verdict: CLEAN: no new behavior or quality defect was found in the interdiff.
Checked
- Duplicates: 1 new conversion checked; no duplicate owner. All 10 dryer pairs read; none introduces a copy in this interdiff.
- Complexity: ref_dequant only replaces slice iterators; no added branches. Other crapper-flagged functions are unchanged in this interdiff.
- Silent failure: 0 new defaults or ignored Results. Six changed fact-error conversions still abort companion loading with the key and cause in the message. Complete-chunk iteration and parity selection preserve their behavior.
- Tests: static mutants dropping the stream write (chain/glue.rs:486), dropping the Q5_K GEMV (gpu/src/head.rs:423), admitting BF16 (arch/coverage.rs:1547), and changing hidden width (solar2/spec.rs:84) reach existing failure assertions. Tests were not executed. Static checks passed for all four census shard rows, the fixture path, and all seven unchanged Solar assertion tables.
- Gates: rebased unsafe counts retain dated PINs and reasons. The PTX edit removes a stale comment. The sparse fixture preserves headers and file lengths; the metadata gate does not consume tensor data. No new gate relaxation.
- Escape catalog: C1–C4 do not match these edits. No ledger lessons are in force.
Notes
The supplied PR text and changed files omit complete card/driver, commit-hash and gate command/output evidence. GPU gates and model-file tests were not run.
Card check: needs-gpu. This pull request changes crates/app/src/arch/deepseek41/mod.rs, crates/gpu-deepseek41/src/body.rs, crates/gpu-deepseek41/src/body/prefill.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
Fixture tier union batch on f1f9f22 (rebased on af74ea4), box, lead ledger: |
bloomery reads more of the weight types publishers ship, first ISTA-DASLab's DeepSeek-V4.1-Flash-1017 GSQ-RCO 2.00 bpw set (Strata's default), with no re-encode.
Open. A V4.1 set opens under each publisher's header spellings (ISTA, Unsloth, the Q3_K_M set). The fact mechanism is common code (
gguf::facts,gguf::engram); V4.1's spellings live ingguf/src/arch/deepseek41.rs. The Engram companion GGUF is found beside the first shard or in the sibling directory of its stem (BLOOMERY_V41_ENGRAMoverrides). New real-only gategate-ds41-open: green on the 1017 set and on ISTA's.Host. IQ1_S, IQ1_M and IQ2_S decode (
dequant_row) and dot against Q8_K in qdot's generic AVX2 kernel, held to the mainline oracle with FAIL-first per field.Card. IQ1_S, IQ1_M and IQ2_S get gate·up and down selector entries and a prompt GEMM; IQ2_XS becomes a full routed card type. All are arms of the common owners (
RawSb,GemmWeight); the IQ1 delta folds into int88g ± 1overd/8.gate_iq_selandgate_gemm --casehold them to ggml's decode (clean / mutant / clean per type). ptx-compare generate_ds41: 10 added, none changed.V4.1. The dense sites read ISTA's types (Q5_K attn_output_a, shared expert and head; BF16 compressor and indexer; F32 HC). The token embedding reads Q5_K, and the Engram rows read IQ4_NL. A prompt the batch's launches cannot read is fed as steps, and
Body::batch_refusalnames the tensor. V4.1's card leg is no longer fixed to Q3_K/Q4_K: a layer whose types the common leg runs goes to the card throughCardLeg. The fused triple keeps its launches (ptx-compare: nothing changed).Fixture variants
istaexp(routed IQ1_M/IQ2_XXS),istadense(104 dense tensors),istaglue(token_embd Q5_K, Engram IQ4_NL), each with its own oracle sets. A variant's draft is the fixture's own (ref-paths.sh).Not measured. The cc 12.1 (Spark) ptx-shapes rows of the 12 new entries are at the cc 8.6 scan's values until a cc 12.1 scan runs, as in 479adb2. The prompt batch's leg pieces for the new types are derived at ~34 ms a layer at P = 512 (the tiles' path ~4 ms); a tile form is the next lever. The real ISTA end-to-end run is the release batch's.
Evidence. Each round's clean / mutant / clean lines are in its commits. The union fixture batch (this branch stacked on #813) is in a comment below.
AI use: the change was written by Claude Code rounds (Sonnet 5.5) under a lead session (Opus 5.5); the lead reviewed each diff and ran the gates.
🤖 Generated with Claude Code