Skip to content

gpu: one SwiGLU epilogue writes the down's q8 blocks of 32 from the up GEMM of either family: Q4_K over a card route, Q8_0 planes over a dense block, NVFP4 planes as before - #1100

Merged
juliankang4 merged 3 commits into
midagedev:mainfrom
juliankang4:dgx-spark-q38-cmn-routed-moe
Nov 1, 2026

Conversation

@juliankang4

@juliankang4 juliankang4 commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Qwen3.8 전용이던 카드 합산 결합, BF16 down 행, SwiGLU 에필로그를 공용 owner로 옮겼고, UD-Q4_K_XL 프리필이 5.4% 빨라졌으며 다른 arm의 손실은 없습니다.

What and why

The Qwen3.8 card route kept three pieces of its own code that other models need too: the card sum joined with the shared expert (q38_card_sum_shared_add{,_bf16} in q38.rs), the BF16 down rows its join reads (NVFP4 downs only), and the NVFP4-only fusion of the up GEMM with SwiGLU and the q8 quantizer. GLM-5.3 ran the same join as two launches. This PR moves each piece to a shared owner:

  1. Card join: card_slots::CardSlotKernels::enqueue_card_join (card_sum_join, card_sum_join_bf16) sums the card slots and adds the shared expert's gated output in one launch. The slot count, the weight pitch and the shared gate column are data (CardJoin, SharedJoin). Qwen3.8's wide prefill walk and decode card leg call it, and so does GLM-5.3's one-card shadow, prompt program and tensor-parallel rank, which drops one launch per card layer. The fused Qwen3.8 kernels and CardSumSharedAddArgs are removed.
  2. BF16 down rows for every down type: Gemm32Kernels::enqueue_gemm32_bf16 takes every 32-value stack (new twins gemm_q8_0f_bf16, gemm_q5_1_bf16, gemm_q5_0p_bf16, gemm_iq4nl_bf16). The route's form, RouteForm::{Rows, Native}, moves to placement::kernels, and qwen35moe/place.rs keeps only its byte constants.
  3. One SwiGLU epilogue: gemm/swiglu32.rs holds the device body that writes the down's q8 blocks of 32 from the up GEMM's tile. Both GEMM families use it: gemm_nvfp4p_swiglu (now on the common body), gemm_q4k_swiglu (grouped, card slots), and gemm_q8_0p_swiglu_all and gemm_q8_0p_slab_swiglu_all (dense, every slot). enqueue_up_swiglu32 picks the entry of the up's type and slot set, and otherwise runs the up GEMM and the split quantizer as before. Callers: the card route batch, card_leg::RouteBlock, site::gated and Qwen3.8's tier path. A new up type is one entry and one match arm.

The fold and the join are bit-equal to the launches they replace. The plan's route bytes are unchanged, and the BF16 down rows keep the rule they had (a load whose every layer runs without the host leg).

On UD-Q4_K_XL at C=1, prefill moves +5.40% and TTFT p95 +5.10% (table in What I ran). No other arm loses.

Release notes: Changed: UD-Q4_K_XL prompt processing on Qwen3.8 is about 5% faster, and the card sum, BF16 down rows and SwiGLU epilogue are shared by every model.

Code shape

  • No second copy. The join, the BF16 twins and the epilogue each have one owner (card_slots.rs, gemm32.rs, swiglu32.rs), and both GEMM families' blocks call the one swiglu32! body. Qwen3.8's fused sum kernels and GLM-5.3's separate sum-then-add pair are replaced by the join.
  • Model code holds only architecture facts. qwen35moe/place.rs keeps its two byte constants; the form enum lives in placement::kernels. The common owners gained no per-model branch.
  • Dead code is gone. q38_card_sum_shared_add{,_bf16}, CardSumSharedAddArgs and the per-model route-run type are removed.
  • No silent failure. The join refuses a slot count, a gate or an output of the wrong shape by name, and the epilogue entries refuse an up type they do not hold (no_token and short_output are cases of one shared shape test in card_slots.rs, and a_gate_among_the_routed_slots and a_gate_past_the_pitch are gate cases).
  • Comments state what is true now.
  • No relaxed gate. The two new epilogue entries carry PIN(2026-11-01) rows in the spill table (gemm_q4k_swiglu 208 B, gemm_q8_0p_slab_swiglu_all 8 B), measured on the card. The new PTX shape rows carry the same pin.
  • cargo fmt and cargo clippy are clean on what I touched; the lint count did not go up.

Duplication found or removed (path:line), or "none": q38_card_sum_shared_add and q38_card_sum_shared_add_bf16 in crates/gpu/src/q38.rs (removed); the enqueue_card_acc plus elem().enqueue_add pair in crates/gpu-glm5next/src/ffn.rs (replaced by the join).

What I ran

Every check below ran on a DGX Spark. The card line is from:

nvidia-smi --query-gpu=name,driver_version,compute_cap --format=csv,noheader
NVIDIA GB10, 595.84, 12.1

The nvidia-smi banner reads NVIDIA-SMI 595.84 Driver Version: 595.84 CUDA Version: 13.3, and bash tools/arch.sh prints sm_121a. The upstream base is 39ed53b875a0811cdaf587dd19963da24a650c48 and the PR head is 702ea214c65d5b0ad1682339454d26378a10a1b1.

Host check:

export BLOOMERY_BOX_LOCAL=1; just check
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 49.70s

It exits 0. cargo test -p bloomery-placement --lib ffn passes 2 tests and cargo test -p bloomery-model --lib qwen35moe::place passes 40.

FAIL-first. Each mutation below turns the gate red, and the gate passes with the mutation reverted. The mutations swap the epilogue's gate and up (swiglu32.rs), skip quantizing the grouped walk's refused slot (grouped.rs), drop the min term from the Q5_1 BF16 down store (kernels32.rs), and make the ten-slot join sum nine slots (card_slots.rs):

export BLOOMERY_BOX_LOCAL=1
cargo oxide build --arch sm_121a -- -p bloomery-gpu-gates --features gpu --release --bin gate_gemm
BLOOMERY_GATE_CARD=any bash tools/gpu-gate.sh gate_gemm --case swiglu_epi     # swapped gate and up, then the skipped slot
BLOOMERY_GATE_CARD=any bash tools/gpu-gate.sh gate_gemm --case g32_routed     # Q5_1 store without its min term
cargo oxide build --arch sm_121a -- -p bloomery-gpu-gates --features gpu --release --bin gate_kquant
BLOOMERY_GATE_CARD=any bash tools/gpu-gate.sh gate_kquant                     # ten-slot join summing nine slots
gpu-gate.sh: gate_gemm ran 1 s (exit 1)
gemm32 case=g32_swiglu_epi up=q4k slots=card rows=640 K=512 T=1 n_slots=4 tiny_scale_col=false planes_eq_two_launches=false faults=None/None replay_eq_eager=true act_fnv=6877e11135e17721 FAIL
gemm32 case=g32_swiglu_epi up=q4k rows=640 T=64 nan_gate=false planes_eq_two_launches=false fault_two=Some(Fault { layer: 65535, code: 1, sites: 130, arch: None }) fault_fold=Some(Fault { layer: 65535, code: 7, sites: 128, arch: None }) replay_eq_eager=true FAIL
gemm32 case=g32_routed q5_1_16x272x640 T=1 routing=Uniform slots=1 decode_vs_ggml=true unwritten=0 checked=272 worst_err_over_band=0.068 band_off=0 contract_bits_differ=0 bf16_eq_f32_rne=false y_fnv=ffc016d5bc412fd9 FAIL
gpu-gate.sh: gate_kquant ran 23 s (exit 1)
GPU GATE RED: gate_kquant (exit 1)
q38_card_hostless[stray_place] token0_is_the_rule=false token1_all_nan=true fault="an unlabelled launch site expert_id; ..."

Gates on the changed kernels (gate_gemm cases rebuilt first, then each case):

for c in swiglu_epi nvfp4_swiglu nvfp4_gate_up g32_routed g38_iq4nl q5_0p_is_the_gemv; do
  ./tools/box.sh "BLOOMERY_GATE_CARD=any bash tools/gpu-gate.sh gate_gemm --case $c"
done
bash tools/gate.sh --gpu --oxide -p bloomery-gpu --release --lib -- --include-ignored card_slots
just gate-gpu-kquant
just gate-ptx-spill
just gate-gpu-ds41-lib
BLOOMERY_TIER=fixture just gate-gpu-qwen4exp-e2e
BLOOMERY_TIER=fixture just gate-gpu-qwen38-serve
BLOOMERY_TIER=fixture just gate-gpu-glm5next-e2e
BLOOMERY_TIER=fixture just gate-gpu-glm5next-tp
BLOOMERY_TIER=real BLOOMERY_CARD_ALL_EXPERTS=1 BLOOMERY_REF_MODEL="$NVFP4_DIR" just gate-gpu-qwen4exp-nvfp4
# gate_gemm cases (PASS lines, FAIL lines; bf16_eq_f32_rne=true lines)
swiglu_epi 17, 0      nvfp4_swiglu 21, 0      nvfp4_gate_up 18, 0
g32_routed 36, 0 (36)   g38_iq4nl 35, 0 (32)   q5_0p_is_the_gemv 15, 0 (15)
# card_slots lib
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 475 filtered out; finished in 21.79s
# gate-gpu-kquant (the join's refusal cases each PASS)
gpu-gate.sh: gate_kquant ran 23 s (exit 0)
# gate-ptx-spill
ptx-spill bin=gate_qwen3vl_tower entries=26 pinned=26 nonzero=none violations=0 PASS
gemm_nvfp4p_swiglu(spill=160,jit_local=64)  gemm_q4k_swiglu(spill=208,jit_local=64)  gemm_q8_0p_slab_swiglu_all(spill=8,jit_local=8)
# gate-gpu-ds41-lib
test result: ok. 40 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.22s
# gate-gpu-qwen4exp-e2e (fixture)
card leg plan: 4 of 4 layers hold routed experts on the card, a layer's count Some(256)..Some(256) (want 256 on every layer: half the experts, the header's budget) PASS
clauses: 27 ran, 9 left to the real tier
gpu-gate.sh: gate_qwen4exp_e2e ran 420 s (exit 0)
# gate-gpu-qwen38-serve (fixture, three runs)
gate-gpu-qwen38-serve: PASS
gate-gpu-qwen38-serve: PASS
gate-gpu-qwen38-serve: PASS
# gate-gpu-glm5next-e2e (fixture)
hostless: nvfp4 forced_row host_sum_zero=true ffn_out_vs_card_plus_shared_rel=0.000e0 PASS
gate_glm5next_e2e: clauses: 43 ran, 6 left to the real tier
gpu-gate.sh: gate_glm5next_e2e ran 155 s (exit 0)
# gate-gpu-glm5next-tp (fixture)
gpu-gate.sh: gate_glm5next_tp ran 86 s (exit 0)
# gate-gpu-qwen4exp-nvfp4 (real)
(rt) the load for a route trace: host views 0 (want 0), trace positions Some(5) (want 5), every slot on the card true, logits the plain load's bit for bit true PASS
gpu-gate.sh: gate_qwen4exp_nvfp4 ran 105 s (exit 0)

The user-facing binary, built with the release feature set and started on each Qwen3.8 file:

cargo oxide build --arch sm_121a -- -p bloomery-gpu-gates --features glm5next,clef,vision,mimo2,solar2,minimaxm3,flint,gemma-embedding2,hf,checkpoint --release --bin bloomery-serve
./target/release/bloomery-serve -m "$MODEL" --host 127.0.0.1 --port 18741 --ctx-size 16896
curl -s -X POST http://127.0.0.1:18741/completion -H 'Content-Type: application/json' \
  --data '{"prompt":"The capital of France is","n_predict":24,"temperature":0,"cache_prompt":false}'

UD-Q4_K_XL loaded in 20.2 s, NVFP4 in 19.6 s and FP4-Local in 16.9 s. All three answered the short prompt with ' Paris. The capital of Germany is Berlin. The capital of Italy is Rome. The capital of Spain is Madrid. The'. Each also answered a 4,701-token prompt (160 numbered copies of one sentence and a request to summarize them, n_predict 48) coherently, for example FP4-Local: '\n\n<think>\nThe user wants me to summarize the farming pattern described across all 160 paragraphs (which are all identical) in one sentence. ...'.

Speed, TP=1, P=4096, K=128, three rounds per side on one GB10, base and head built and timed in the same run. The A/B runs print:

NVIDIA GB10, 595.84
| NVIDIA-SMI 595.84                 Driver Version: 595.84         CUDA Version: 13.3     |

Each side is built in its own checkout (base or head):

(cd head && cargo oxide build --arch "$(bash tools/arch.sh)" -- -p bloomery-gpu-gates --features glm5next,clef,vision,mimo2,solar2,minimaxm3,flint,gemma-embedding2,hf,checkpoint --release --bin bloomery-serve)

The server for the C=1 arms, with MODEL set to the UD-Q4_K_XL first shard, the NVFP4 folder or the FP4-Local folder (Hardware below), and for the FP4-Local MTP C=2 arm:

env BLOOMERY_DRAFT=off BLOOMERY_HOST_ROOM=96G ./head/target/release/bloomery-serve -m "${MODEL}" --host 127.0.0.1 --port 18731 --parallel 1 --ctx-size 16896
env -u BLOOMERY_MTP_DRAFT BLOOMERY_DRAFT=mtp BLOOMERY_HOST_ROOM=96G BLOOMERY_MTP_WIDTH=cost ./head/target/release/bloomery-serve -m "${MODEL_FP4L}" --host 127.0.0.1 --port 18731 --parallel 2 --ctx-size 16896

Each request is a POST /completion whose prompt is 4,096 token ids from a fixed window of a token-id corpus (code-fn, SHA-256 7520b471436fb307e91ee22640ad8100701d48e63e3da7de9160b705b92915d1; prose-en, d10c7044df8884fdd200304604772d81a4b56a228f802d5f05db724b245ef77a), with n_predict 128. The C=1 arms send one request at a time on code-fn at temperature 0. The C=2 arm sends two at once on code-fn and on prose-en at temperature 0.7 with seed 42. Each arm times eight windows 50,000 ids apart after two warm-up windows. Prefill and decode tok/s come from the server's timings, TTFT p95 and total tok/s from the client clock. Each cell is the median of three rounds with their range in parentheses. A positive change is faster:

metric base head change ranges overlap
UD-Q4_K_XL C=1 prefill tok/s 1691.67 (1691.2 to 1695.1) 1783.04 (1782.4 to 1783.7) +5.40% no
UD-Q4_K_XL C=1 TTFT p95 ms 2426.03 (2421.3 to 2427.1) 2302.23 (2301.0 to 2303.8) +5.10% no
UD-Q4_K_XL C=1 decode tok/s 30.85 (30.83 to 30.89) 30.81 (30.51 to 30.87) -0.15% yes
FP4-Local C=1 prefill tok/s 2892.51 (2838.8 to 2906.9) 2894.71 (2887.8 to 2900.5) +0.08% yes
FP4-Local C=1 TTFT p95 ms 1421.15 (1415.2 to 1447.9) 1419.94 (1417.8 to 1424.4) +0.09% yes
FP4-Local C=1 decode tok/s 31.27 (31.09 to 31.54) 31.54 (31.29 to 31.55) +0.85% yes
NVFP4 C=1 prefill tok/s 2602.41 (2599.1 to 2606.2) 2604.23 (2604.2 to 2609.6) +0.07% yes
NVFP4 C=1 TTFT p95 ms 1578.46 (1577.3 to 1581.1) 1578.32 (1574.3 to 1578.4) +0.01% yes
NVFP4 C=1 decode tok/s 22.78 (22.76 to 22.82) 22.75 (22.72 to 22.75) -0.15% no
FP4-Local MTP C=2 code-fn decode tok/s 31.22 (30.36 to 32.24) 33.80 (32.37 to 33.92) +8.27% no
FP4-Local MTP C=2 code-fn total tok/s 46.81 (46.74 to 48.14) 50.18 (49.92 to 50.91) +7.20% no
FP4-Local MTP C=2 code-fn prefill tok/s 2694.26 (2669.0 to 2696.8) 2705.26 (2688.0 to 2708.8) +0.41% yes
FP4-Local MTP C=2 code-fn TTFT p95 ms 3097.84 (3097.2 to 3102.3) 3078.09 (3068.0 to 3107.3) +0.64% yes
FP4-Local MTP C=2 prose-en decode tok/s 26.19 (25.92 to 26.34) 25.59 (24.34 to 25.61) -2.30% no
FP4-Local MTP C=2 prose-en total tok/s 42.47 (39.04 to 42.52) 40.37 (38.68 to 40.86) -4.94% yes
FP4-Local MTP C=2 prose-en prefill tok/s 2760.56 (2744.4 to 2762.2) 2754.82 (2750.3 to 2780.6) -0.21% yes
FP4-Local MTP C=2 prose-en TTFT p95 ms 3017.71 (3008.8 to 3031.7) 3012.64 (2998.2 to 3031.6) +0.17% yes

The gain is the UD-Q4_K_XL prompt, which runs the Q4_K routed and Q8_0 shared GEMMs through the new epilogue. The C=2 arm is sampled and this PR does not change the decode step of FP4-Local or NVFP4 (their routed layers keep the existing fused kernel), so I do not count its decode rows as a gain. Greedy UD-Q4_K_XL output first differs from the base at token 42 of the first code-fn request; the e2e gates hold their bands.

Hardware (if the change is for a machine)

NVIDIA GB10 (DGX Spark), driver 595.84, CUDA 13.3, arch sm_121a. Models:

repository revision file
unsloth/Qwen3.8-Flash-Next-GGUF 766911a6b7369840a91dbcd95f9f997acaab6cd6 UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf (SHA-256 4448186216b3af4cc558bbce2c3213f01608f8f8b2e5267a9767971dd3ec8082)
nvidia/Qwen3.8-Flash-Next-NVFP4 fc694b54fb0174e0913e6adf86691ef85a4ead47 the folder (SHA-256 of model.safetensors.index.json 660414e8300728ba80062e6a3c81cb76a65e2ab136ac9e9ceb450ba0c51c3c0d)
nvidia/Qwen3.8-Flash-Next-FP4-Local b9ce18a6887e18c089fdea8509a33e63429a3300 the folder (SHA-256 of model.safetensors.index.json 5fa166bbb1cf25adda455117563efa72a2072272001f459eedece131ffc913e1)

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot added gpu The card engine: crates/gpu*, crates/app model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja needs-gpu Changes code a card must check, and carries no gate run on a card placement Placement planning: crates/placement tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo labels Nov 1, 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: two gates now own the same card-join refusal checks.

Must fix

1. Keep card-join shape refusals in the common gate

card_slots.rs:1065 and q38_combine.rs:210 both test enqueue_card_join with zero tokens and a short output. Both reach the same slots_launch and short checks. This is kind B duplication under R14 and AGENTS' one-test-per-contract rule.
Remove the model-level copies now so future shape changes have one test owner. Keep the common hardware test, replace combine_refusals below, and update the refusal descriptions to locate those two cases in that common test.

pub(crate) fn combine_refusals(&mut self, c: &Ctx) -> Result<[CombineRefusal; 3], GateError> {
    // PIN(2026-11-01): no_token and short output are covered by
    // card_slots::tests::hw_the_card_sum_launchers_refuse_invalid_shapes.
    let stream = c.gpu.stream();
    let r_slot = self.q38.enqueue_card_shared_add(
        stream,
        CardSharedAddArgs {
            hsum: &self.hsum,
            acc: &self.acc,
            sh: &self.sh,
            w: &self.w,
            slot: W_PITCH,
            slots: W_PITCH,
            n: N38,
            m: M38,
            fault: c.gpu.unlabelled_sink(),
            y: &mut self.y,
        },
    );
    let mut y = DeviceBuffer::from_host(stream, &vec![SENT; M38 * N38])?;
    let rows = DownRows::F32(&self.y_down);
    let mut gated = |gate| {
        let shared = SharedJoin {
            sh: &self.sh,
            gate: Some(gate),
        };
        self.join(c, (rows, &self.sel, M38), Some(shared), &mut y)
    };
    let (r_routed_gate, r_gate_past) = (gated(SLOTS - 1), gated(W_PITCH));
    let what = "card_sum_join";
    Ok([
        ("q38::enqueue_card_shared_add", "slot_11_of_11", r_slot),
        (what, "a_gate_among_the_routed_slots", r_routed_gate),
        (what, "a_gate_past_the_pitch", r_gate_past),
    ])
}

Non-blocking

⚠ PTX preservation proof: grouped.rs:1809 extracts the refused-slot store used by existing unfused entries into a macro arm. Supply just canon-check 39ed53b875a0811cdaf587dd19963da24a650c48 output for the unchanged entries. AGENTS' move/split class requires unchanged canonical code and resource columns; the reported spill gate does not establish both.

Checked

Duplicates: both refusal suites reach enqueue_card_join's same shape checks; deleting the model copies adds no owner.
Silent failure: zero tokens and a short output return named shape errors before dispatch.
Tests: the common gate checks error details and output preservation; the model caller checks the error identity.
Gates: the replacement keeps the shared-gate refusals and records why the duplicate cases are removed. PTX preservation remains an evidence request.
Escape catalog: C1–C4 do not match either finding. No ledger lessons are in force.

Notes

The GPU evidence names head 86fbcf95b7c60990bc74b16c1c4c12d1618d0dc0; this review covers 22dfb10d8a5ec90bfb1a036d46132e37161e2837. GPU gates were not rerun here.

Card check: gpu-evidence. This pull request changes crates/gpu-deepseek41/src/chain/ffn.rs, crates/gpu-deepseek41/src/chain/ffn/batch.rs, crates/gpu-gates/src/bin/gate_gemm.rs … and carries a gate run on the author's card, which counts as verified.

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

@github-actions github-actions Bot added gpu-evidence Verified on the author's card: the pull request carries the gate run and its output and removed needs-gpu Changes code a card must check, and carries no gate run on a card labels Nov 1, 2026
@juliankang4
juliankang4 force-pushed the dgx-spark-q38-cmn-routed-moe branch from 22dfb10 to cf3ce06 Compare November 1, 2026 20:16
github-actions[bot]
github-actions Bot previously approved these changes Nov 1, 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.

Since the last review:

Verdict: CLEAN: the interdiff removes duplicate refusal checks while retaining their coverage in the common hardware test.

Non-blocking

⚠ PTX preservation proof: grouped.rs:1809 extracts the refused-slot store used by existing unfused entries. Supply just canon-check 39ed53b875a0811cdaf587dd19963da24a650c48 output for those entries. AGENTS' move/split class requires unchanged canonical code and resource columns; the reported spill gate establishes neither comparison.

Checked

Duplicates: 0 new items in the interdiff; three model-level cases removed. Dryer reports 0 pairs and excludes gpu/gpu-gates; the shared checks were traced manually.
Complexity: all 11 crapper targets are unchanged by the interdiff; the two edited refusal functions only lose cases.
Silent failure: 0 new suppression sites. All three removed refusal paths still return named Shape errors through slots_launch or short, including ten slots at a weights pitch of eleven.
Tests: static mutation analysis shows that removing the zero-size, short-weights or short-output guard fails the common test's expected Shape-error assertions. Both shared-gate refusal cases remain checked. The common test runs through gate-gpu-lib.
Gates: no bands move. Removed cases have dated PIN reasons naming the remaining test owner.
Escape catalog: C1–C4 do not match the interdiff.

Notes

GPU evidence names head 86fbcf95b7c60990bc74b16c1c4c12d1618d0dc0; the reviewed head is cf3ce06. CUDA gates were not rerun here.

Card check: gpu-evidence. This pull request changes crates/gpu-deepseek41/src/chain/ffn.rs, crates/gpu-deepseek41/src/chain/ffn/batch.rs, crates/gpu-gates/src/bin/gate_gemm.rs … and carries a gate run on the author's card, which counts as verified.

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

…mon launch, its slots, pitch and gate as data
…or every down type, which the card sum's join reads; the route's form moves to placement::kernels
…p GEMM of either family: Q4_K over a card route, Q8_0 planes over a dense block, NVFP4 planes as before

@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.

Since the last review:

Verdict: CLEAN: the interdiff removes an unused model-tax allowance without changing runtime behavior or gate coverage.

Non-blocking

⚠ PTX preservation proof: grouped.rs:1809 extracts the refused-slot store used by existing unfused entries, including gemm_q4k. Supply just canon-check 39ed53b875a0811cdaf587dd19963da24a650c48 output for those entries. AGENTS' move/split class requires unchanged canonical code and resource columns; the reported spill gate does not establish that comparison.

Checked

Duplicates: 0 new items in the interdiff. Dryer reports 0 pairs and excludes gpu/gpu-gates; those patches are unchanged.
Complexity: all 11 crapper targets are unchanged by the interdiff; no new function or branch growth.
Silent failure: 0 new suppression sites. A model name without an allowance remains a check failure.
Tests: no tests changed in the interdiff. Static checks confirm the removed allowance has no code uses. Previous refusal-guard mutation results still apply; CUDA gates were not rerun here.
Gates: the DeepSeek allowance for gate_kquant falls from one to zero; the sole remaining token match is a doc comment. No runtime gate or tolerance changes.
Escape catalog: C1–C4 do not match. A further check confirmed that deleting the allowance does not exempt the file from the ratchet.

Card check: gpu-evidence. This pull request changes crates/gpu-deepseek41/src/chain/ffn.rs, crates/gpu-deepseek41/src/chain/ffn/batch.rs, crates/gpu-gates/src/bin/gate_gemm.rs … and carries a gate run on the author's card, which counts as verified.

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

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit d748b6e into midagedev:main Nov 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gpu The card engine: crates/gpu*, crates/app gpu-evidence Verified on the author's card: the pull request carries the gate run and its output model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja placement Placement planning: crates/placement 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