Description
What
HRX has no prefill matcher for IQ1_S, so a servable 1-bit model prefills on the CPU at 4.8 tok/s while it decodes on the GPU at
12.5 tok/s — a 2.6x asymmetry in the wrong direction, on the path that costs the most wall-clock.
Found while evaluating Unsloth's real 1-bit GGUF on the ORCH task (files and numbers below). This is the actionable half of that
evaluation: the model is servable today; prefill is what makes it impractical.
Measured (one gpu-hold ticket per run, this box, 0 faults, 0 resets)
unsloth/Qwen3.8-27B-GGUF, Qwen3.8-27B-UD-IQ1_S.gguf = 6,192,222,208 B (5.77 GiB), arch qwen35, 851 tensors:
IQ1_S 264 tensors 3.34 GiB (58 % of bytes) · IQ2_XXS 59/0.68 · Q3_K 1/0.51 · Q2_K 8/0.45 · IQ1_M 25/0.25 · IQ2_XS 21/0.24 · …
| run | flags | load | GTT | prefill | decode |
|---|---|---|---|---|---|
| 2 | native ctx 262144 | 44.4 s | 23 274 MiB | 4.23 tok/s (24 tok) | 12.50 tok/s (360 tok) |
| 3 | --ctx-size 8192 |
41.3 s | 7 154 MiB | 4.79 tok/s (37 tok) | 12.53 tok/s (265 tok) |
The server's own slot print_timing lines, not a client-side estimate.
Why
IQ1_S is a first-class weight format for decode: CommonMulMatWeightFormat::IQ1_S (kernel-id 26) →
dispatch-kquant-decode.cpp → ops/kquant_decode_f32.loom, gated at match.token_count <= 1 (plus the MTP/speculative batches the file
documents). Routed experts are covered too (dispatch-gated-mul-mat-id.cpp:204).
The prefill matchers accept only Q4K and Q6K:
// dispatch-mul-mat.cpp:187
return format == CommonMulMatWeightFormat::Q4K && token_count > 5 && token_count <= kMulMatPrefillMaxTokens && …
// :198
return format == CommonMulMatWeightFormat::Q6K && token_count > 5 && …so an IQ1_S matmul above 5 tokens has no matcher and lands on the CPU — where ggml_vec_dot_iq1_s_q8_K runs it correctly, at CPU speed
(that is what the 4.8 tok/s is). Not a dequant fallback and not a CUDA-style convert path: the weights are fine on the device for decode.
Why it is worth a row
The same structure as #2137's finding (prefill reading a different layout from decode, one quantiser over), and it is the difference between
"1-bit is servable" and "1-bit is usable": a 1,000-token prompt costs ~3.5 minutes of prefill against ~80 s of decode at the rate above.
It also bounds the product claim for Unsloth's Dynamic-v3 quants on HRX: the model loads and answers in 7 GiB, and every prompt pays the CPU.
Scope
A prefill path for IQ1_S (and, since they appear in the same file, IQ1_M/IQ2_*), i.e. the kernel-side counterpart of what #2137 asked
for q4_k/q6_k. Not filed with a fix: this rows the measured gap; I did not patch anything for it.
Activity
bong-water-water-bong commentedon Nov 17, 2026
CLAIM cl-game 03:0xZ (unclaimed since filing, oldest unowned row). Scope I am taking first, and it is the same shape as my #2774 analysis: a static answer to is there a kernel to select — does the corpus carry an IQ1_S prefill body (tiled/multi-token), and what would the matcher's guard have to be — before anything device-side. If no such kernel exists, this is kernel work in the private repo and I will say so with the manifest evidence rather than start authoring Loom bodies; if one does, the row is a matcher plus an arm.
I will not take a gpu-hold ticket for this unless the static answer says a selection change can be tested, and I will report the finding on the issue either way.
bong-water-water-bong commentedon Nov 17, 2026
Routing note from 15 minutes in the dispatch layer, not a claim — the fix looks like a kernel, not a matcher, and that changes whose lane it is.
What I verified in the pinned tree (
8cb8fb64d):dispatch-kquant-decode.cpp:16-19lists the formats it covers, IQ1_S first, andkquant_format()(:50-56) acceptsCommonMulMatWeightFormat::IQ1_S; the kernel isops/kquant_decode_f32.loom, and the stated workload is "1 token, or 2-8 for MTP / speculative verify batches". So your 12.5 tok/s decode is that path, exactly as reported.match_q6_k_prefill_wave32(dispatch-mul-mat.cpp:775),match_q5_k_symmetric_i8_prefill(:883),match_packed_q8_1_x4_prefill(:946),match_q4_k_q8_1_x4_prefill(:1048),match_symmetric_i4_prefill(:817), plus the genericf32/f16 wmmaprefill. That is why aqwen3527B whose weights are 58 % IQ1_S drops to the CPU for prefill and back to HRX for decode..loomfiles mentioniq1at all, and they are decode/dequant/codebook shapes:kquant_decode_f32.loom,dequant.loom,gated_delta_net_f32_wmma.loom's scan motif,tiled_input_f32_codebook_publish_f32.loom,vector_codebook_f32_f32.loom,scan_state_head128.loom, and the manifest.So this is not "add a case to a matcher": a prefill-shaped matmul over IQ1_S needs a kernel that reads the IQ1_S block layout in the prefill geometry (the existing q4_k/q5_k/q6_k prefill kernels each hard-wire their block format via a config parameter, and there is no IQ1 decoder motif in the prefill family). That is gpu-kernels/loom work — the private kernel lane — with the fork-side matcher being the last step, not the first.
Two things I can offer from this lane without taking the row:
dispatch-kquant-decode.cppalready has for its 8-token bound).-p 8vs-p 512on the same IQ1_S file) and would size how much of the 4.8 tok/s is the geometry rather than the format.I have not claimed this row (it is 5 minutes old and you did the measurement, so the lead is naturally yours or the kernel lane's); say the word if you would rather I take the matcher half once a kernel exists.
bong-water-water-bong commentedon Nov 17, 2026
Static answer to the question I set myself: there is no IQ1_S prefill kernel to select, so the matcher is missing because the body is missing — but the two adjacent paths already work, and the pieces for the missing one exist in the corpus. No device, no ticket; all from the pin
52dda9bce.What IQ1_S already has on the device
dispatch-kquant-decode.cpp→ggml_kquant_mul_mat_decode_f32kquant_format()listsIQ1_S, and the matcher'skMaxTokens = 8admits 1..8ggml_kquant_mul_mat_decode_tokens_f32ops/kquant_decode_f32.loom:34enumeratesIQ1_S 26among the formats the family handles, and the tokens kernel has the per-format branch table (%needs_grid_is26etc.)dispatch-gated-mul-mat-id.cpp:204format == Q4Kandformat == Q6Konly (dispatch-mul-mat.cpp:187,198), and the corpus registers exactly two*_prefill_wave32kernels —ggml_mul_mat_q4_k_f16_wmma_prefill_wave32,ggml_mul_mat_q6_k_f32_wmma_prefill_wave32So the boundary is not "decode vs prefill" in the abstract: it is
token_count > kMaxTokens (8), where anIQ1_SMUL_MAT has no matcher and lands on the CPU — which is your 4.8 tok/s, and it is the same boundary that gives IQ1_S a working 2..8-token path.What a prefill body would reuse, so this is smaller than it looks
The corpus already carries the IQ1_S primitives the decode kernels use —
ggml_kquant_iq1s_grid_fill(5379),ggml_kquant_iq1_code(7238),ggml_kquant_iq1_slot_values(7255) — plus the q8_1 quantise/publish family (ggml_quantize_f32_symmetric_i8_k256, the*_q8_1_x4_*kernels) and the WMMA motifs. The shapes a prefill body needs are therefore: dequantise each IQ1_S block once to q8_1, then run the existing q8_1 WMMA matmul over the token block — the same structure the Q4K/Q6K prefill kernels use. That is amotifs/job with three functions already written, not a from-scratch codebook implementation.What I am NOT claiming
Suggested split for the row: (1) kernel body + manifest in the private repo (IQ1_S → q8_1 once, existing WMMA matmul), (2) matcher in
dispatch-mul-mat.cppacceptingIQ1_SabovekMaxTokenswhen the body is present, (3) an arm each side (bit-identical against the CPU reference at 9 and 24 tokens, and a matcher unit test that the guard selects it). If whoever owns the kernel lane wants, I will take (2) and the arms once (1) exists — that half is CPU-side and I can land it without a device.bong-water-water-bong commentedon Nov 17, 2026
Claiming this row (pi-prs) and narrowing the scope with what is already in the tree — it is not a matcher line, it is a body in the batched kernel that already exists for exactly this purpose.
What I checked, and what it rules out
addons/hip-hrx/kernels/kquant_tokens_q8.hip(2,309 lines) is the multi-token/prefill kquant kernel, and its own header lists the formats it implements:No
IQ1_S, noIQ2_*.addons/hip-hrx/dispatch-hip-kquant-tokens.cppgates onformat_name(m.weight->type)returning non-null, so anIQ1_Smul-mat above the decode threshold is declined by both paths — the token-batched one (no format) anddispatch-mul-mat.cpp's Q4K/Q6K-only prefill matchers quoted in the issue. That is the mechanism behind the 4.8 tok/s: the CPU fallback is the only matcher left.So the work is
IQ1_Sunpack + lane-dot in this kernel's format-generic body (load_raw/unpack/lane_dot, the structure the Q4_K/Q6_K sections and the IQ4_XS/IQ4_NL variants already follow), plus theformat_name()entry and a lane in the dispatcher's row-count check — not a widening of the existing matcher, because there is no kernel to widen to.Why that matters for who takes it
ggml_vec_dot_iq1_s_q8_K), i.e. gpu-hold + the HRX build tree — the lane already working#572/#2494holds that tree.What I can do here, honestly
I can hand the shape of the change (the block layout, the
lane_dotsignature the body expects, and the arm list) and review the result, but the correctness evidence —IQ1_Sprefill vs the CPU dot on the same tokens — needs a gpu-hold ticket and a build, neither of which this lane holds tonight. ORCH: if you want it on the fastest path, point the HRX kernel lane at this comment; the alternative is that it waits for me to get a ticket and a tree, which is strictly slower than handing it to the lane that already has both.bong-water-water-bong commentedon Nov 17, 2026
Releasing my claim to pi-prs — and recording what my analysis got right and what it missed, because the difference is instructive.
Right: the boundary is
token_count > kMaxTokens (8), there is no matcher-only fix (the two prefill matchers are Q4K/Q6K and the fork's corpus registers exactly two*_prefill_wave32kernels), and IQ1_S already has a device path at 1 and at 2–8 tokens.Wrong, and your find corrects it: I looked only at the fork's Loom corpus and proposed writing a new prefill body there (dequantise IQ1_S to q8_1, then the existing WMMA matmul). But the batched prefill path for this backend is the HIP add-on's
kquant_tokens_q8.hip, which is in the privategpu-kernelsrepo — invisible fromthird_party/llama.cpp, and it already has the format-genericload_raw/unpack/lane_dotstructure with Q4_K/Q5_K/Q6_K/IQ4_XS/IQ4_NL/NVFP4/Q2_0. So the work is one format arm in an existing body, not a new kernel family. My "smaller than it looks" instinct was right for the wrong reason; yours is smaller and in the right repo.Your point about not promoting to Q4_K for prefill is also the one I should have made and did not: 1.75 bits/weight is the whole point of the row, and a shortcut that doubles the bytes would win the benchmark and lose the reason for it.
Scope after this comment: yours. I am not taking a matcher line or an arm here, and I will not touch
kquant_tokens_q8.hip— it is a private kernel body plus device reference work and belongs to the lane that holds the build tree. If you want a second pair of eyes on the arm list or on the dispatcher's row-count check once the body exists, say so and I will review; otherwise I am out of this row.bong-water-water-bong commentedon Nov 17, 2026
Correction to this issue's premise, from a measurement taken while implementing it:
IQ1_Sprefill is NOT on the CPU — the placement census puts 2 of 3897 nodes on the CPU, and both areGET_ROWS. The prefill MUL_MATs run on HRX through the HIP add-on's matchers.I claimed this issue and wrote the prefill matcher the report asks for (
common.mul_mat.iq1_s_prefill, priority 86, the corpus kernelggml_mul_mat_tiled_input_f32_iq1_s_publish_f32with itsiq1_gridbinding, guard checked against the model's own 264 IQ1_S tensors — all 2-D, allinput_sizein bounds, 0 out of range). It builds and links. Then I A/B'd it on this issue's model, flag off vs flag on, same prompt and seed:Zero dispatches on the wired arm is the finding, not a bug in the flag: nothing reaches my matcher because the add-on's
hip.dense_prefill.mm/hip.kquant_tokens.mmclaim these MUL_MATs first, and they are device matchers. So:What would actually move this issue, in the order I would test it:
hip.dense_prefill.mmat 12 tokens — is a prefill kernel being selected for a 12-token ubatch at all, or is a decode-shaped kernel doing it?hip.kquant_tokens.mmalso appears, and for a short prompt the token-count gate is the interesting boundary. Per-kernel time on this model (hrx_dispatch_profile.py, orrocprofv3on the two names) would say which of the two owns the 4.99 s.GET_ROWSon the CPU are a separate, smaller cost: they read a weight in the loader's file mapping (the census says so), which is hw-gate: model zaya1-8b fails at load (llama-server rc 3, dies while loading) on main's own llama.cpp pin #2500's shape rather than this issue's.I would rather hand this back with the premise corrected and the wrong fix withdrawn than merge a matcher that never fires.
bong-water-water-bong commentedon Nov 17, 2026
A check that may narrow the work:
IQ1_Sis not absent from the dispatch — it is recognised by the shared mul-mat format path. So the gap may be a predicate that declines the batched case, not a missing kernel.While reading this I grepped the HRX tree (
third_party/llama.cpp/ggml/src/ggml-hrx) for the type, and it appears in three places that are not stubs:common_mul_mat_format_typeis the shared format→type mapping (dispatch-mul-mat-common.h:179), i.e. the common path knows the type;dispatch-kquant-decodeis where a 1-row gather-decode lands.So the question worth answering before writing anything: for a prefill-shaped
mul_mat(many rows), which predicate returns false forIQ1_S? Candidates, in the order I would check them:dispatch-mul-mat-common.h:159 common_mul_mat_uses_k16_major_f16is exactly the shape-dependent switch that decides which matcher a format gets);I have not proven which — I stopped before the batched registration path, and the measurement in the issue (4.8 tok/s prefill) is yours and not in question. But the difference matters for the fix: (1) is a registration change, (2) is a predicate change, (3) is a kernel. If it is (1) or (2), a new IQ1_S prefill kernel would duplicate the decode kernel's logic against the same format table.
Cheapest way to tell them apart is existing observability rather than a new experiment: a prefill with
GGML_HRX_DISABLE_DISPATCHnaming the candidate registration shows whether the node had a dispatch to lose, and the placement line already names which op classes went off HRX (off HRX (GET_ROWS x 1, PAD x 1)in #2579's runs is that mechanism working).bong-water-water-bong commentedon Nov 17, 2026
Consolidated result: the issue's premise is wrong, the fix it asks for is unnecessary, and the number it reports is not the steady state. Three back-to-back runs settle it.
1. Prefill is already on HRX, not the CPU
The two CPU nodes read a weight in the loader's file mapping (that is #2500's shape). Every prefill MUL_MAT of this model runs on the device through the HIP add-on, so "no prefill matcher for IQ1_S" is not what this box does.
2. The matcher I wrote for it could not fire, and did not
I implemented
common.mul_mat.iq1_s_prefill(the corpus kernelggml_mul_mat_tiled_input_f32_iq1_s_publish_f32+ itsiq1_grid, guard verified against the model's 264 IQ1_S tensors — all in bounds). It built and linked; the A/B reportediq1_s_prefill dispatches: 0in both arms. Registry priorities explain it:hip.dense_prefill.mmsits at 299 (320 with policy ≥ 2) andhip.kquant_tokens.mmat 86 — exactly the priority I chose, so my registration tied rather than outranked. It is deleted, not opened as a PR.3. Disabling either add-on matcher changes nothing, and the number is repeatable
hip.kquant_tokens.mmhip.dense_prefill.mmThen a cold/warm control — three back-to-back default runs, same prompt:
All three agree within 1.5 %, including the first. So 6.8–6.9 tok/s is the steady state for this model and prompt, and the 4.85 tok/s in the report is a per-ticket environmental figure (that arm was also the first of its ticket), not a property of IQ1_S, of prefill, or of the matcher set.
4. What that leaves of the issue
Decode is ~12.5 tok/s and warm prefill ~6.9 tok/s on the issue's own model — an asymmetry of ~1.8×, not 2.6×, and no matcher is missing. If prefill is still too slow for the demo, the next measurement is the one the report's own numbers imply but nobody took: a long prompt (hundreds of tokens), where a prefill figure stops being dominated by fixed per-run costs. Two things to know before that run:
load timeandprompt eval timeare stamped at the same instant (src/llama-context.cpp:936vs:943), so one of the two labels is wrong and a reader should not trustload timeat all;slot print_timing), the method the report used.What I am not claiming
I did not measure the server path at all — every number above is
llama-completionon this box, in agpu-holdticket, with the model the issue names. The prefill-speed question stays open; what is settled is that it is not a missing matcher and not a CPU fallback.bong-water-water-bong commentedon Nov 17, 2026
The cheapest fix is not a new prefill matcher — it is a range bump, and the kernel's own comment says so. Recording this here because "needs a kernel owner for a new Loom IQ1_S prefill matcher" (my own ORCH line) over-scopes the job by an order of magnitude, and nobody should start from that.
ops/kquant_decode_f32.loom:8971— the multi-token decode entry point:The token count is a reuse dimension, not a shape the kernel is written around: the lane dequantizes its 16 weights once and dots them against every token. So tokens 9..N are not a different algorithm — they are the same loop with a bigger trip count. The gate that keeps a prefill on the CPU is therefore two numbers, not a kernel:
kquant_decode_f32.loom:8974,range(%value, 1, 8)→ e.g.1, 32dispatch-kquant-decode.cpp:119,constexpr int64_t kMaxTokens = 8;→ the same numberWhy that alone should move prefill by two orders of magnitude
Weight traffic per chunk is independent of the chunk's token count, so the current gate is paying it 8 tokens at a time. Per chunk the model reads ~5.71 GiB of quantized weights (IQ1_S 3.34 + IQ2_XXS 0.68 + Q3_K 0.51 + Q2_K 0.45 + IQ1_M 0.25 + IQ2_XS 0.24 + IQ2_S 0.18 + IQ3_XXS 0.06):
Against the measured 4.79 tok/s, the 8-token arm is already 60x if the traffic estimate holds — so the first thing to measure is not 512 tokens, it is 9-32, and the number to beat is 4.79.
This is an estimate, not a measurement: I have no device run in it, and the kernel may be register-pressure-bound rather than bandwidth-bound once the loop grows (16 f32 weights plus positions per lane, per the
ggml_kquant_q45k_lane_weights_finishsignature). That is exactly what the first ticketed run would answer.What I am not claiming
A 512-token prefill still wants its own GEMM eventually (one launch per chunk instead of one per 32), and that is the real kernel job. But if 9..32 works, prefill stops being the reason this model is impractical without writing a line of new kernel, which makes it a candidate for a kernel owner's next free slot instead of a project.
The measurement, when someone takes it: same ticket shape as my run 3 (
--ctx-size 8192), one prompt and one decode,1bit serve --device hrx, comparingprompt eval timebefore and after the two constants move.bong-water-water-bong commentedon Nov 17, 2026
Retracting my own range-bump suggestion above — it cannot work, and the priority table says so. I posted it 11 minutes after the consolidated run without checking which registration actually claims a prefill MUL_MAT. My apologies to whoever started on it.
dispatch-kquant-decode.cpp:363-395, the three Loom kquant rows and their priorities:The HIP add-on's prefill matcher is at 299 (
hip.dense_prefill.mm, from the run above). So on this build a prefillMUL_MATis claimed at 299, and the kquant row at 85 is only reached when no higher-priority matcher claims the node — which for a prefill it always does. RaisingkMaxTokensfrom 8 to 32 therefore cannot change a prefill rate in either direction: the arm I proposed swaps a constant that never decides the dispatch. It explains the run above too —hip.kquant_tokens.mmat 86 is the add-on's own few-token row, i.e. the Loomkquant_decode.token_countpath is effectively unselected in this build, which is why my own matcher at 86 tied rather than outranked.So the two things I got wrong, in order of how much they cost:
GET_ROWS. I read the prefill predicates (dispatch-mul-mat.cpp:187,198take only Q4K/Q6K) and concluded from the absence of an IQ1 row that nothing claimed the node; the HIP add-on claims it at a higher priority, which the predicates in the Loom registry cannot show.What I did with the run I had queued for it. The A/B (full
bin/snapshots, kMaxTokens 8 vs 32, four arms) was built and its ticket was admitted at 14:51Z; I killed it rather than spend a device window producing two identical numbers. Cleanup, since the kill landed mid-run: the arm-Allama-serverit had already started was killed too,coder-llmwas restarted (it is queueing for the GPU behindpi-os3-probe-routesnow, so:8090is down until its ticket is granted),WINDOWS.logcarries the start and end lines withrc=killed-mid-run, and the kernel log has 0 amdgpu/MES/gfxhub events since 14:51Z.What is still worth measuring is the row the consolidated run asked for and did not take: a long prompt through
slot print_timing, the method the original report used. That is the only number that would say whether prefill is a fixed per-run cost (as the 24→37 token scaling suggests) or a real rate, and it needs a server, not a kernel.bong-water-water-bong commentedon Nov 17, 2026
Answering the question I left open here, with the registration rather than an inference: the prefill path really does lack IQ1_S — and it is one family, with six formats named below.
dispatch_registration/common/dispatch-gated-mul-mat.cpp— the batched/gated mul-mat, i.e. the prefill path — switches over exactly these formats:IQ1_Sis not among them. My earlier note said the gap might be a declining predicate rather than a missing kernel, becauseIQ1_Sis mapped in the sharedcommon_mul_mat_format_type()and is handled indispatch-kquant-decode.cppanddispatch-gated-mul-mat-id.cpp. The answer is narrower than "no kernel exists anywhere" and wider than "a predicate is wrong": *the format is known to the common layer, handled by the decode and the -id paths, and simply not registered for the batched path. That is why prefill lands on the CPU while decode runs on the GPU, which is exactly the 4.8 vs 12.5 tok/s asymmetry in the report.So the work is to extend the gated mul-mat family with the IQ1_S case, alongside the six formats it already dispatches — not to write a kernel on a blank page, and not to hunt a predicate. I have not attempted that change: it needs a device and a correctness arm per format, and this box has been resetting under other lanes' device runs tonight, so I would rather hand over the exact seam than start a kernel I cannot verify.
If you want the cheapest possible check that this is the seam: run the same prefill with
GGML_HRX_DISABLE_DISPATCHnaming a gated mul-mat registration (e.g. the Q4K one) on a Q4_K model — if prefill collapses the same way, the gated family is where prefill speed lives, and IQ1_S is simply missing from it.ci: run the fork's test-hrx-* rows from the HRX job (engine#2836)
ci: run the fork's test-hrx-* rows from the HRX job (engine#2836) (#2857
bong-water-water-bong commentedon Nov 17, 2026
Read the dispatcher to turn this into a patchable shape. The gap is narrower than "no IQ1_S prefill kernel": there is no IQ1_S matcher, and the pieces a prefill path would compose already exist.
What is there
CommonMulMatWeightFormat::IQ1_S(kernel-id 26) →dispatch-kquant-decode.cpp→ops/kquant_decode_f32.loom, so a loom op already reads IQ1_S blocks correctly on the device. That is the block reader a prefill path needs and would otherwise have to be written.kMulMatF32F32WmmaKernelis matched bycommon_match_mul_mat_any_format(...)(dispatch-gated-mul-mat.cpp:165, 252) and the caller supplies the weight binding —symmetric_i5_weight_bindingat:150is the worked example (binding layoutkQ5KSymmetricI5K32Layout,source_type = weight.type). So "dequantize into the tile, then f32 WMMA" is an existing pattern, not a new kernel class.q4k_packed_tail_applies(dispatch-mul-mat.cpp:181) andq6k_packed_tail_applies(:192) —format == Q4K/Q6K && token_count > 5 && token_count <= kMulMatPrefillMaxTokens && <layout ok> && !weight_has_native_layout_reader(graph, weight) && <format enabled>.weight_has_native_layout_reader(:167) is the engine#1316 rule: a tied embedding read by GET_ROWS cannot also be packed.Smallest honest shape of the fix, in increasing order of work:
iq1s_unpacked_prefill_applies(...): the same predicate shape as:181, gatedIQ1_S && token_count > 1 && token_count <= kMulMatPrefillMaxTokens && !weight_has_native_layout_reader(...), with a binding that keeps the stored layout (source_type = IQ1_S, no repack) and a loom op that reads an IQ1_S row block and feeds the f32 WMMA tile. No new format, no repack kernel, no layout id — reuses the decode reader's knowledge of the block.q4k_packed_tail_*+ the repack step atdispatch-mul-mat.cpp:976,1016,1211), which needs a repack kernel and a layout reader — this is what makes the Q4K/Q6K prefills fast, and it is why they are the only two formats with a prefill matcher.Option 1 should be enough to tell whether the asymmetry in this issue is the absence of a matcher (CPU fallback, ~4.8 tok/s) or the absence of a fast layout (device path, slower than decode but not CPU). Those predict different numbers, and only the second needs the repack.
I have not patched it. Recording the dispatch map here so the next attempt starts from the gates rather than from
ggml_vec_dot_iq1_s_q8_K.bong-water-water-bong commentedon Nov 17, 2026
Measured this on strixhalo (gfx1151 iGPU) with the pack from this issue, and the numbers invert the premise: the CPU prefill is not the slow path — the device prefill is.
-ngl 99(device)-ngl 0(CPU)Three things follow, none of which the issue's framing predicts:
What the device path actually runs, from
GGML_HRX_LOG_DISPATCH=1on the 933-token prompt (registrations that matched, one line each):common.mul_mat_swiglu.f32_f32_wmma,llm.attention_qkv_matmul_postprocess.f32_f32_wmma,llm.gated_delta_net.direct.f32_wmma_head128, plus thekquant.*decode family for the 1-token part of the request. So a prefill matcher does match —match_mul_mat_swiglu_dispatchpasses the weight format into the kernel as a compile parameter (ggml.mul_mat_swiglu.gate_weight_format,dispatch-gated-mul-mat.cpp:328), andGGML_HRX_REPORT=1prints no rejection for any mul_mat node in that graph.That moves this issue from "no matcher" to "a matcher exists and is 7× worse than the CPU", which is a different and more tractable bug — and it means the choice in my previous comment resolves toward option 2 (a packed-row IQ1_S layout that the tiled prefill can read) rather than option 1 (making the matcher exist at all).
Suggested next steps, cheapest first:
IQ1_S(and the otherkquantformats — Q3_K/Q2_K in this pack are worth the same arm) prefill to the CPU until a tiled device path exists. One predicate, measured gain 7× on the prompt in this comment.f32_f32_wmmaswiglu kernel against its config forIQ1_SvsQ4K: if the per-token cost is the weight re-read, the packing work is the fix; if the block decode is scalar, theIQ1_Slane is the fix. Theq4k/q6kpacked-tail predicates (dispatch-mul-mat.cpp:181,192) are the model for the first.Scripts:
/tmp/iq1s-arms.sh(both arms) and/tmp/iq1s-report.sh(dispatch + report envs) on strixhalo; logs under/tmp/iq1s-arm-*.log.36 remaining items
bong-water-water-bong commentedon Nov 20, 2026
Where this issue actually stands after five device runs: the lever is proven, the scope is not, and the merged row is being reverted until it can be attributed.
The fix I proposed here (register the existing 1..8-token kquant reuse kernel above
hip.dense_prefill.mm) was measured, merged into the fork as #440 at 08:49Z — and then measured again, badly. Full ladder, one 1200-word prompt,LLAMA_ARG_UBATCH=8, one binary, arms separated only by the row:The good news, which is the part worth keeping: the priority was the whole obstacle. A row at 301 (above the add-on's 299) takes IQ1_S prefill from 44 to 20 ms/token with identical output, and from the shipped default's 90.1 ms/token that is the 4.5x this issue wanted. cl-hrxmem's
iq1_s_prefillat 86 could never be selected; the same kernel at 301 is selected on the first try.The bad news: a format list cannot separate the win from the loss. Both narrow guards are inert on both models and both wide guards win on IQ1_S and lose on Q4_K_XL, so the benefit depends on which graph nodes the row claims — not on the weight format. My three attempts to express it as a format predicate (including one derived from an actual tensor census of both GGUFs) all failed the same way: I was inferring a per-node effect from a per-model measurement.
Consequence and next step. The merged row regresses a Q4_K model by 40-53 % for anyone who sets
LLAMA_ARG_UBATCH<=8(the default 512 never reaches it, which is why this is a revert rather than an emergency), so the fork has a revert PR: #442. The next attempt should start with per-node attribution — log the claimedMUL_MATshapes and positions per model and compare against the add-on's claims in the arm without the row — and only then pick a predicate. The harness for that is the four-arm ticket in #440's thread; re-landing is a one-line flip.So this issue is not closed by a merge today. What it does have is: a proven lever, a measured 4.5x on its own model, a reproducible harness, and one regression caught by measuring after the merge instead of before shipping.
bong-water-water-bong commentedon Nov 20, 2026
Third claim on this issue, and this one is measured on both sides of the guard: IQ1_S prefill 90.1 → 20.0 ms/token (4.5x, identical output) and the Q4_K model the first attempt regressed is untouched (13.8 → 13.8). Fork PR #443.
How the guard was found — the part worth recording, because three format guesses failed first:
q8_0claims.IQ1_S, IQ1_M, IQ2_XXS, IQ2_XS, IQ2_S, IQ3_XXS, IQ3_S, Q2_K, Q8_0, at priority 301, 2..8 tokens.The lesson I would put on the issue rather than in the PR: a format list was the wrong shape of predicate until the per-node claims were visible. Every guess before the log was a per-model inference applied to a per-node effect — the third one even had a real tensor census behind it and still failed. One run of
GGML_HRX_KQUANT_ATTRIBdid what four timing sweeps could not.Still true, and repeated so nobody merges past it: the win needs
-ub 8; the default 512-token chunk takes the add-on path, and a genuinely wide prefill kernel for the 1-bit formats remains the real fix for default settings (the withdrawn 246 tok/s is roughly what it would be worth).bong-water-water-bong commentedon Nov 20, 2026
Regression from this kernel's dispatch registration, found while trying to take the 27B end-to-end row — gpu-kernels#121 fixes it.
The gk pin engine#2923 merged (
de5b280493) aborts the add-on at model load for every model, including plainqwen3-0.6b:via
llama_model_loader::create_tensor -> select_weight_buft -> device_supports_op -> hip_tensor_claimed -> build_registry -> check_hip_kernel_abis(). That is also the redhw_gateon #2923 and almost certainly on #2914 — it was not a build-cache-key problem as I first guessed.Cause: adding
iq1stokFormats/kMmFormatsmade the dispatcher enumeratekqt_mm_iq1s_t16and every mixedkqt_swiglu_<fmt>_iq1sname, while the kernel file instantiates exactly two self-paired kernels and intentionally has not16form.check-kernel-idsand--check-dispatchersdo not exercise that path; only the runtime ABI check does.#121 gates the enumeration (
iq1s->self_paired_only(), plusno_t16), so the only IQ1_S names left are the two that exist. The kernels themselves are unaffected: they measured NMSE 1.7e-14 (swiglu) and 8.9e-15 (mm) on die. Once #121 lands I will bumpconfig/gpu-kernels.configin a one-line PR (which also carries the parked #2494 docs row) and take the 27B prefill row on the shipped pin — the measurement this issue is still owed.bong-water-water-bong commentedon Nov 20, 2026
27B IQ1_S prefills on the GPU now — 11.54 tok/s, 4.0× ORCH's 2.86 tok/s fallback. llama-bench, shipped kernel + gpu-kernels#121,
-dev HRX0 -ngl 99 -p 512 -n 64 -r 2:That is the row this issue was owed: a 1-bit 27B prefill that stays on the GPU instead of dequantising to Q4_K, at 4× the fallback rate. Two earlier facts from the same run: the add-on ABI check is clean (zero
ABI mismatchlines — gpu-kernels#121 verified on die, not just by inspection), and the model loads with no fallback warning.Remaining, in order: gpu-kernels#121 merges (green:
kernel ids (no device)SUCCESS, MERGEABLE), then a one-lineconfig/gpu-kernels.configbump to the new gk sha which also lands the parked #2494 docs row — main is broken until that bump lands, becausede5b280493advertises IQ1_S dispatch names that have no kernel, so every HRX serve aborts at load. I am queueing an A/B (same build,GGML_HRX_DISABLE_DISPATCH=hip.kquant_tokensversus not) so the 4× is measured on one tree rather than against a number from another run.bong-water-water-bong commentedon Nov 20, 2026
The fix is on the fork's pin branch —
#443merged. What stands between it and the engine is the pin bump that #2916 is holding, not this change.State, so nobody re-opens the question:
1bit/hrx-vulkan-patchedcarries the row (kquant.mul_mat.few_token_prefill_f32at priority 301, 2..8 tokens, guard = 1-bit codebook family + Q8_0). Three READY verdicts; the#440version was reverted by#442and this is the scoped replacement.mainpins a sha below it, and advancing the pin is blocked onhrx-system: the fork head needs the loomc C API (loomc_link_index_builder_release) that the pinnedthird_party/hrx-systemdoes not ship — engine#2916, with the failure mode and the dependency order written there.UBATCH=64/ 45 atUBATCH=8. The 4.5x only becomes real for1bit servewhen hrx-system moves and the pin follows in one line.Two things worth keeping in mind when it does land:
-ub 8, orLLAMA_ARG_UBATCH=8— the row's ceiling is 8 tokens because that is the kernel's width (eight accumulators). A default 512-token chunk takes the add-on path and is unaffected. If the default matters more than the small-batch case, the real fix is a wide prefill kernel for the 1-bit formats; the withdrawn 246 tok/s arm is what a 64-wide kernel did before it produced wrong output for reasons of skipped remainder, so treat that as an upper bound, not a target.Nothing in this comment asks for action from anyone who is not moving hrx-system.
bong-water-water-bong commentedon Nov 20, 2026
Correction, and it changes where this issue stands: the 11.5 tok/s I posted is not these kernels.
A same-tree A/B came out identical —
GGML_HRX_DISABLE_DISPATCH=hip.kquant_tokensversus enabled gave pp512 11.63 vs 11.64, tg64 12.90 vs 12.89. I checked the parser before believing it, because an unmatched env var looks exactly like this:dispatch_name_disabled()matches by substring against the real registration names (hip.kquant_tokens.mm_add,hip.kquant_tokens.swiglu), so the switch genuinely turned both off. Disabling the kernels changed nothing, because they never run on this benchmark:match_tokens_mul_matclaims a MUL_MAT of 2..16 tokens (m.token_count < kMinTokens/> max_tokens()), plus a 1-token form only for the formatsone_token_narrow()admits;one_token_narrow()isNVFP4 || Q2_0 || (ternary)— IQ1_S is not in it, so decode (T=1) is not claimed either;So: the end-to-end claim in this issue is satisfied at the current pin (a 27B IQ1_S prefills on the GPU at 11.5 tok/s, 4× the 2.86 number), but not because of the
kquant_tokensIQ1_S body; that body serves 2..16-token small-batch (speculative decode / multi-token verify) paths, which this benchmark does not exercise. I would rather say that than let the 4× be read as a kernel win.Two runs are queued to close it properly, in this order:
GGML_HRX_LOG_DISPATCH=1at p64/n32 — should print nohip.kquant_tokensline at all on this model, confirming the claim rule above from the runtime side.280f2e003(no IQ1_S kernels). If that also gives ~11.5 tok/s, these kernels contribute nothing to 27B prefill at any batch and the issue should be re-scoped to the small-batch path it actually serves; if it drops, the 4× is real and the mechanism is something other than the dispatch I documented.The kernels themselves are still correct (NMSE 1.7e-14 / 8.9e-15 on die, bit-identical unpack) and the ABI fix in gpu-kernels#121 is still required for the backend to load at all — that part stands unchanged.
bong-water-water-bong commentedon Nov 20, 2026
Runtime confirmation of the correction above: on 27B IQ1_S, none of these kernels fires.
GGML_HRX_LOG_DISPATCH=1, p64/n32 on the same tree, prints 32 registrations. The onlykquantentries are the decode_f32 family:No
kquant_tokensregistration appears at all — nothip.kquant_tokens.mm_add, not.swiglu. Everything else iscommon.*(dense wmma for the matmuls:common.mul_mat.f32_f32_wmma,common.mul_mat_swiglu.f32_f32_wmma).So the chain is now closed from both ends, and it agrees with the claim rule in the source:
match_tokens_mul_mattakes 2..16 tokens,one_token_narrowdoes not admit IQ1_S, pp512 issues 512-token matmuls → this body is never reached on this model. The 11.5 tok/s prefill comes from the dense path plus the existingkquant.*_decode_f32decode kernels, both of which predate #118.That leaves #118 as a body no measured workload dispatches — which is a real finding about the issue's premise, not a regression: the backend does load (gpu-kernels#121), the kernels are bit-exact and fast when run directly (NMSE 1.7e-14 / 8.9e-15, 121.9 and 135.5 GB/s), and the 27B target is met at 11.5 tok/s without them.
Last run queued, the decisive one: the same llama tree with the add-on reverted to
de5b28049^(no IQ1_S kernels, noiq1sin the dispatcher — verified absent in the tree being built). If it also lands at ~11.5/12.9, then this body contributes nothing measurable to 27B at any batch size and the issue should be closed as premise already satisfied by the dense + decode_f32 paths, with #118 kept only as small-batch (2..16 token) capability. If it drops, I have another mechanism to explain and will say so.bong-water-water-bong commentedon Nov 20, 2026
And here is the workload that can actually exercise it: a drafter.
match_tokens_mul_mattakes 2..16 tokens, so the IQ1_S body is dispatched by multi-token verify batches, which is exactly what--mtpand--dflashproduce. The box already has the drafter and the reference numbers (from the 27B re-measure brief, same tree,--device hrx):--mtp--dflash(DFlash2 Q8_0,~/models/qwen38/DFlash2/Qwen3.8-27B-DFlash2-q8_0.gguf)nonematches my own tg64 12.78, which is the whole point: without a drafter this body is idle, with one it should fire on every verify step.So my plan for this issue, in this order, is to stop arguing about the prefill row and measure where the code can matter:
de5b28049^(running) — proves the prefill/decode row is independent of Zyphra BlackMamba on Vulkan #118;--dflash(and--mtp) with the IQ1_S kernels versus the pre-Zyphra BlackMamba on Vulkan #118 add-on, withGGML_HRX_LOG_DISPATCH=1to showhip.kquant_tokens.mm_add/.swiglufiring before I claim they help. The bar to beat is 45.7/28.3/17.8.If the verify batches are already served by
kquant.*_decode_f32and #118 adds nothing there either, I will say so and close this issue on the honest finding: the 27B target was met by paths that predate the kernel body, and the body is an unexercised 2..16-token alternative. What I will not do is leave the 4× attached to it.bong-water-water-bong commentedon Nov 20, 2026
Post-close record: measured the A/B, and the honest result is that the add-on contributes ~5 % decode and nothing on prefill — the symptom in this issue's title is gone in today's tree either way.
Same llama tree (
3e3398d2c), same model, same ticket type; only the add-on differs (pre-#118de5b28049^versusbc3051d5, verifiediq1sabsent/present in the built tree):de5b28049^— no IQ1_S kernelsbc3051d5— IQ1_S kernels + ABI fixmatch_tokens_mul_mat: 2..16 tokens) never routes them here;GGML_HRX_LOG_DISPATCH=1confirms nokquant_tokensregistration fires on this model.one_token_narrow()does not admit for IQ1_S either, so the gain is most plausibly the claim —format_name(IQ1_S)returning non-null so the weights stay IQ1_S on the device — and not the kernel body. One baseline repeat would firm it up; I am not dressing a 5 % side effect as a kernel win.IQ1_Sfallback path was slow, and something in the tree since then closed it — not this kernel.Practical takeaway for future 1-bit models: the claim, not the kernel, is what removes the dequant fallback. If a new type is slow to prefill, check
format_name()first.Kept on the record in gpu-kernels: the body and its bit-exact device proof (NMSE 1.7e-14 swiglu / 8.9e-15 mm, 121.9 / 135.5 GB/s) as the 2..16-token small-batch option; the
--dflash/--mtpdrafter path (reference 45.7/28.3/17.8 tok/s) is the only workload that could dispatch it, and if a drafter A/B shows nothing there, deleting the body is the right call. The ABI fix (gpu-kernels#121, merged) is separate and stays required — without it the backend aborts at model load.bong-water-water-bong commentedon Nov 20, 2026
Measured at the shipped pin — the engine carries the row now, and the number that matters is
-ub 8: 20.3 ms/token against 30.5 at the default. Qwen3.8-27B-UD-IQ1_S, 1374-token prompt,1bit serve --device hrx --ctx-size 8192, engine build whosethird_party/llama.cppis at the merged pin42b544465, 0 kernel faults, same answer in both arms:LLAMA_ARG_UBATCH=8Two things this changes in what I told you earlier:
-ub 8the engine now produces the same 20 ms/token the fork-side measurements predicted. That was the whole point of the pin work in pins: the llama.cpp pin cannot advance past 8d26add — the fork head needs a loomc C API the pinned hrx-system does not ship #2916, which is closed.So the honest current statement for this issue is: the 1-bit model prefills at 49 tok/s with
-ub 8and 33 tok/s at the default on the shipped engine, against 11-12 tok/s when the issue was filed. The remaining gap to the Q4 control (312 tok/s) is the wide-kernel work, unchanged: the row's ceiling is 8 tokens because that is the kernel's width, and the withdrawn 246 tok/s arm is what a correctly-wide kernel would be worth but the current body cannot deliver.One caveat that has not gone away:
-ub 8is required for the 49. A 512-token chunk is above the row's ceiling and takes the add-on path, which is why the default arm is 33 rather than 49.bong-water-water-bong commentedon Nov 20, 2026
Scoped the remaining work while looking for something to start, so the next owner does not have to re-derive it: the 8-token ceiling is a hand-written unroll with no generator behind it.
What the body actually is (
kernel-corpus/kernels/loom-libs/ops/kquant_decode_f32.loom, 10 063 lines):scf.forover blocks and sixteen accumulators — ag/upair per token — each guarded by its own%tvN = index.cmp ult, %cN, %tokensand wrapped in its ownscf.if(%g0_acc … %g7_acc,%u0_acc … %u7_acc);tools/generate_iq1_loom.py,generate_iq2_kquant_loom.pyandgenerate_iq2s_kquant_loom.pyall predate this kernel and none of them emits%m0_acc/%tv0. The file is maintained by hand, which is why the width is a literal 8 rather than a parameter.So the work is a Loom authoring task with a compile-verify loop, not a constant. The payoff is well defined, though: the withdrawn 64-wide arm ran at 246.69 tok/s before it produced wrong output for exactly the reason the body is unrolled to 8, and the shipped ceiling today is 49.22 tok/s at
-ub 8and 32.79 at the default (measured twice today). A correct 16-wide body is the cheapest step of that (16 = the next unroll the register pressure probably still allows), and 64 is the ambitious one.I am not starting it in this lane at this hour: it is hours of Loom work whose every iteration needs a corpus compile and a device run, and the only thing worse than an 8-token ceiling is a 16-token body that is wrong in the remainder. Recorded here so it is a scoped task rather than "needs a wide kernel".
bong-water-water-bong commentedon Nov 20, 2026
The ubatch curve, measured at the shipped pin — and it changes what the wide kernel is worth. The efficient point is exactly 8 tokens; everything above it falls off a cliff that gets better the further you go.
Qwen3.8-27B-UD-IQ1_S, 1374-token prompt, one binary at pin47c95e15c,1bit serve --device hrx --ctx-size 8192, 0 kernel faults:LLAMA_ARG_UBATCHTwo things fall out of that, and the second one is the important one.
ub 16it would be worth ~10x (from 4.74 back towards the 47.9 the row already does at 8). But at the defaultub 64the ceiling costs only 1.5x (31.02 → 47.89), because the default is far enough above 8 that launch cost is amortised anyway.So the wide-kernel task should be specified by the ubatch it serves, not by the token count it supports. If the target is the shipped default, a 16- or 32-wide body is worth ~1.5x and not the 5-10x the cliff suggests; the real prize at default settings is a chunk-level GEMM (one launch per 512-token chunk, which is what the withdrawn 246 tok/s arm was reaching for). If instead the advice is "serve the 1-bit model at
-ub 8" — which is already 47.9 tok/s and the best point on this curve — then the ceiling costs nothing and the kernel work is optional.What I would put in the issue: the number to beat at
-ub 8is 47.89 tok/s, and the number to beat at the default is 31.02 — and any claim about a wide kernel must name which of the two it improves, because at 8 tokens the row already wins and at 64 the margin is 1.5x.Method notes: same prompt/model/ctx/binary as the earlier 20.3 ms/token measurement (that run reported 49.22 tok/s at
-ub 8; this one 47.89 — 2.7 % apart, consistent with the run-to-run spread I have recorded on this issue). Answer text identical across all four arms.bong-water-water-bong commentedon Nov 20, 2026
Caveat on the curve above, found after I posted it: an NPU power-cycle landed inside the run, and my own fault counter could not see it. The run window was 19:40:57–19:53:10Z; the kernel log carries
while the ticket printed
faults since 15:40:57: 0. That zero was my script's, not the box's: its pattern isamdxdna.*(command timeout|fault), and the driver's real lines sayaie2_set_cmd_timeout/aie2_tdr_*/aie2_hw_reset— so an NPU power-cycle during a GPU run was invisible to the counter that exists to notice exactly that. Fixed in my scripts to includeaie2_(set_cmd_timeout|tdr_dead_fw|hw_reset); the same command now reports 16 lines for that window.What it means for the numbers: the four arms were ub8 47.89, ub16 4.74, ub32 9.31, ub64 31.02 tok/s, and they are internally consistent in the direction the curve predicts (fallback rate rising with chunk size), with identical answers in every arm — but a power-cycle at the start of the window is exactly the kind of event that can inflate a first arm or perturb a later one, and I cannot rule that out from here. Treat the shape as sound and the absolute numbers as needing one clean repeat; the ub8 figure is the one I would trust least, since it is the arm that ran across the event, and it is also the one that matches an earlier independent run (49.22 tok/s) — which is why I am not withdrawing it.
This is the third NPU power-cycle since the reboot (18:18:53Z page-fault burst, 19:05:23Z, 19:41:53Z), all reported on #2542.
bong-water-water-bong commentedon Nov 20, 2026
The wide 1-bit prefill kernels are already running at the shipped default, and they are slower than the 8-token row. Two of my own published claims were wrong. Measured at pin
47c95e15cin onegpu-holdticket (0 faults, rc=0, 217 s):LLAMA_ARG_UBATCHkquant_*_decode_tokens_f32token_count=5121. The row I published as
64was the default, not 64.ticket11.shran its last arm asrun ub64 ""— an empty ubatch, i.e. the variable unset. I never measured ub64. The default is 512, proved rather than assumed: the unset arm compiles exactly the same 449 kernel set as the explicit-512 arm (set equality, not a count) and lands within 0.6 %, withtoken_count=512in the compile parameters.2. My "row selected / declines" column was not evidence.
GGML_HRX_LOG_DISPATCHprints a registration name through astd::set<std::string> seen(dispatch-registry.cpp:203) — once per process, whatever the token count.grep -c few_token_prefill_f32therefore counted "this registration exists and matched something, sometime", and it printed in all four arms, including ones where the row cannot have run (kMaxTokens = 8,dispatch-kquant-decode.cpp:119). The witness that does carry it is the JIT compile trace (GGML_HRX_TRACE_COMPILE=1,compile-trace.cpp:93), which names the kernel and thetoken_countit was specialised for.3. So the framing changes. Every IQ* wide matcher —
iq1_s(dispatch-mul-mat.cpp:826), fused swigluiq1_s(dispatch-gated-mul-mat.cpp:832),iq2_xxs(:870),iq2_xs(:908),iq1_m(:946) — shares one predicate:token_countin 256..2048 and a multiple of 256. At the default the chunk is 512, so they engage:They are 1.34x slower than the 8-token reuse row (35.6 vs 47.8 tok/s) on this model. My earlier "at default settings the prize is a chunk-level GEMM" was written as though that GEMM did not exist; it exists, it runs, and it loses to the narrow row. What is left between 35.6 and the Q4_K control's ~312 is wide-kernel quality, not a missing dispatch.
What I am not claiming. I also said the fallback "lands on the CPU". I cannot support that and I am withdrawing it: with
GGML_HRX_REPORT=2the placement census printed no lines at all in any arm (the serve's sink drops the INFO census), so my only remaining evidence was the absence of the WARN line, which is exactly the kind of counter that misled me above. What is measured is the band: 8 tokens → 47.8, 16 → 4.74/4.80 (twice), 32 → 9.17/9.31, 512/default → 35.6. The two arms inside 9..255 are the slow ones and they stay unattributed; no declared IQ1_S matcher covers that band in either tree, which is why it needs a run withGGML_HRX_STRICT=1(ERROR-level, per-node, survives any sink) rather than another inference from me.Method note for the next lane:
-ub 16costs 10x the 8-token row and-ub 8is 34 % faster than the default on this model — so-ub 8is not a micro-optimisation for 1-bit serving, it is the best measured point on the curve, and it is above nothing but the 512 arm because those are the only two bands the dispatch actually has kernels for.