1. Pick B—but validate its benefit, not just its rationale
I’d spend the week on Path B: expert-grouped, multi-token IQ3_XS verification. That is a provisional engineering choice, not a conclusion that the supplied measurements prove.
Why:
- The 54 ms already comes from real speculative decoding. It cannot be treated as a batch-1 baseline or multiplied by verify width.
- Q4_0 trades cheaper decoding for more weight traffic. It reduces unpack cost; it does not eliminate it.
- A ~14.9 GB model leaves little headroom below the 16 GB dual-channel region for the OS, KV cache, scratch buffers, and other allocations. Actual physical placement matters.
- B attacks repeated unpacking without permanently increasing the weight footprint.
Flex mode is not an all-or-nothing bandwidth cliff, however. A 14.9 GB model does not automatically mean all accesses run at 12.5 GB/s. If a fraction (f) of streamed bytes comes from the slower region, a simple serialized-bandwidth approximation is
[
B_{\rm eff}\approx \frac{25}{1+f}\ {\rm GB/s}.
]
Actual placement, concurrency, and contention must be measured. Likewise, 54 + 19 = 73 ms is only a streaming estimate under the assumptions behind that +19 ms—not a measured Q4 verification time.
The fastest decisive measurement: a paired, same-routing-trace expert-pass replay, comparing Q4_0 against a minimal multi-token IQ3_XS prototype, at the actual memory footprints and intended verify width. Measure wall-clock expert-pass time, including grouping/gather/scatter overhead.
That directly tests the tradeoff: cheaper Q4 decoding versus IQ3 reuse and smaller traffic. A small isolated weight buffer would miss the flex-mode issue. If B has not been prototyped, no measurement of the current kernel alone can conclusively establish its future performance.
2. Real union growth—and the best width—are not identifiable from these numbers
For layer (\ell), log the actual routed expert sets (S_{\ell,t}) and calculate
[
U_\ell(W)=\left|\bigcup_{t=1}^{W}S_{\ell,t}\right|,
\qquad |S_{\ell,t}|=8.
]
The useful bounds are:
| Verified tokens | Expert assignments per layer | Unique experts per layer |
|---|
| 4 | 32 | 8–32 |
| 8 | 64 | 8–64 |
For the same eight-token trace, comparing its first four tokens with all eight:
[
0\le U_\ell(8)-U_\ell(4)\le 32.
]
Top-8 out of 128 does not determine where within those bounds real routing falls. Adjacent-token correlations, expert popularity, layer, and workload all matter. Even assuming “nearby tokens probably overlap” is not enough to quantify the gain.
For reference only, uniform independent routing predicts approximately 29.1 experts at width 4 and 51.6 at width 8. Those are not estimates of your real workload.
Also log the per-expert token counts (n_{\ell,e}), not just the union. Their sum is (8W), and
[
\text{mean assignments per touched expert}=\frac{8W}{U_\ell(W)}.
]
That distribution determines whether a multi-token kernel gets useful reuse or mostly encounters singleton experts. A streamed-byte-weighted union across layers is more informative than an unweighted average.
Which verify width maximizes tokens/s?
There is not enough information to name one. Neither width 4 nor width 8 is justified by the 54 ms figure and a 150 ms budget alone.
The decision is
[
W^*=\arg\max_{W:,T_{\rm step}(W)\lesssim150\text{ ms}}
\frac{\mathbb{E}[\text{committed output tokens per step at }W]}
{\mathbb{E}[T_{\rm step}(W)]}.
]
Include drafting, verification, routing/reordering, and other step overhead in the denominator. Use actual committed tokens in the numerator, including the implementation’s bonus-token behavior.
The widest width that fits is not necessarily the fastest. Extra verification work can produce little extra accepted output. Measure at least widths 4, 6, and 8 on matched workloads; include smaller widths if acceptance is poor. Log expert IDs during that same sweep.
3. One kernel change: fused, expert-grouped multi-token IQ3_XS
Change the expert projection kernel so it processes all verification-token assignments for an expert together, decoding each packed weight tile once and reusing it across those tokens’ accumulators.
The important implementation detail is tile-level reuse, not literally holding an entire decoded row in registers:
- Group assignments by expert.
- Decode an IQ3_XS tile into registers/shared memory.
- Apply it to the relevant token columns.
- Avoid writing a fully dequantized weight matrix to global memory.
- Retain an efficient path for experts receiving only one token.
This still performs the necessary token-wise matrix arithmetic; it amortizes weight decoding and potentially weight loads.
Why this change: it targets the stated expensive operation while preserving the smaller model footprint. Q4_0 remains the fallback if the replay shows too little real reuse, excessive grouping overhead, or an IQ3 kernel that remains decode-bound.
Bottom line: choose B for the implementation effort; use a real-trace, full-footprint paired replay to challenge that choice. Do not infer either real expert-union growth or an optimal verify width from 128/top-8 alone.