Anbeeld

ProjectsArticlesSupportContactX

KV Cache Precision Tail: Implementation and Benchmarks

A small exact recent tail can recover much of a low-bit KV cache's lost precision, as shown on Qwen 3.6 27B and Gemma 4 31B across standard and KVarN formats.

  1. 1. Why Keep Recent Tokens Exact
  2. 2. What A Precision Tail Does
  3. 3. How To Read The Results
  4. 4. The Effect Of Tail Size
  5. 5. Standard Quants Versus KVarN
  6. 6. Practical Recommendations
  7. 7. Why Gemma Is Harder
  8. 8. What This Does Not Prove
  9. 9. Method And Full Benchmark Data
    1. 9.1 Qwen 3.6 27B Q5_K_S 64k
    2. 9.2 Gemma 4 31B Q5_K_S 16k
    3. 9.3 Decode Throughput By Context Depth

1. Why Keep Recent Tokens Exact

Quantizing the whole KV cache treats every retained token alike, even though the newest tokens are often carrying the unfinished sentence, the current code block, or the tool output the model is about to act on. BeeLlama v0.4.0 adds a new precision tail feature: a configurable exact suffix that gives that recent span full-precision storage while leaving older history in the selected low-bit body.

The effect is easy to see in the Qwen controls. Standard q4_0 starts at 0.001846 median KLD and 1152.00 MiB with tail 0. tail 128 moves the median to 0.001206 for 1160.00 MiB; tail 1024 reaches 0.001057 for 1248.00 MiB; tail 2048 reaches 0.001019 for 1312.00 MiB. The first exact tokens do most of the work, and the second thousand buy a smaller change.

2. What A Precision Tail Does

The tail changes storage precision, not the attention pattern. Full-attention layers still attend across the exact suffix and quantized body. Sliding-window layers still observe their configured window. As tokens arrive, the boundary advances: once a token falls behind the exact span it is stored in the quantized body.

Standard caches in these runs use a BF16 tail. KVarN quantizes in groups of 128 tokens, and each group is quantized only when its last token arrives. The newest tokens have not filled a group yet, so they stay in F16 until they do. BeeLlama floors the tail at one full group, so a raw request of 0 becomes an effective 128-token exact suffix. The tables display that minimum as 128*, and KVarN has no tail 0 rows, as they are impossible to achieve.

3. How To Read The Results

The full tables are deliberately symmetric: K and V use the same type in every non-BF16 row. That covers all eleven symmetric standard types, including the _1 variants, and all six symmetric KVarN types, which isolates body width and tail size before the broader practical review introduces asymmetric pairs. Qwen includes standard tails 0, 128, 1024, and 2048 plus KVarN tails 128*, 1024, and 2048. Gemma stops at 1024 because that already covers its visible sliding window.

Median KLD ranks the typical scored position. Mean and upper percentiles show whether a similar median hides a heavier error tail, and section 5 puts that check to work. Same-top probability asks whether the most likely token agrees with the BF16-cache baseline. Tok/s is prompt processing from the quality run, not generation speed. Persistent KV memory sums the row-matched runtime cache buffers.

4. The Effect Of Tail Size

Low-bit bodies have the largest recoverable error. On Qwen, standard q2_0 falls from 0.019374 median KLD at tail 0 to 0.007521 at 128, 0.004648 at 1024, and 0.003696 at 2048. KVarN2 begins from a stronger intrinsic 128* configuration at 0.007108, then falls to 0.003811 and 0.002820. At eight bits the curve is almost flat: standard q8_0 moves from 0.000909 at tail 0 to 0.000895 at 2048, while kvarn8 is 0.000871 at 128* and 1024 and 0.000877 at 2048.

CacheTailKV cache (MiB)Median KLD
q2_00640.000.019374
q2_01024736.000.004648
kvarn2128*672.000.007108
kvarn21024720.000.003811
q4_001152.000.001846
q4_010241248.000.001057
kvarn4128*1184.000.001111
kvarn410241232.000.000994
q8_002176.000.000909
q8_010242272.000.000897
kvarn8128*2208.000.000871
kvarn810242256.000.000871

Tail 128 is valuable here as a control and fairness point. It is not automatically the best working size. Teacher-forced Wikitext continually gives the most recent text a chance to matter, which can flatter even a short exact suffix. For a real long-context workload, tail 1024 is the more practical first step when recent source or tool output is privileged, while tail 2048 and above are a task-specific purchase after that.

5. Standard Quants Versus KVarN

On Qwen, KVarN records lower median KLD than the standard cache at the same nominal width and published tail. At 128 tokens, kvarn4 records 0.001111 against 0.001206 for standard q4_0. At 1024 the comparison is 0.000994 against 0.001057. At two bits the gap widens instead, from 5.5% at tail 128 to 18.0% at 1024 and 23.7% at 2048, and three bits behaves the same way. The longer exact suffix helps the low-bit KVarN body more than it helps the low-bit standard body.

Those are median rankings, and the mean sometimes disagrees. At tail 1024, kvarn4 records the lower median against q4_0, 0.000994 against 0.001057, and the higher mean, 0.003059 against 0.002881; kvarn5 against q5_0 behaves the same way. This is partually a matter of noise and is hard to draw conclusions from, because even doing the same benchmarks at different batch sizes would results in mean extremes shifting significantly.

Memory runs the other way as the tail grows. The KVarN body is smaller than the standard body at the same width, 1136.00 MiB against 1152.00 at four bits, while its intrinsic exact group costs 48.00 MiB where a standard tail 128 overlay costs 8.00 MiB. That leaves KVarN 24.00 MiB larger at tail 128. At tail 1024 and 2048 both sides carry the same overlay, only the body difference remains, making every Qwen KVarN row 16.00 MiB smaller.

The standalone KVarN article uses the same baseline structure. Standard tail 0 is a diagnostic control for suffix effects; standard tail 128 versus KVarN 128* compares deployable configurations at the same suffix length. The comparison is not a pure quantizer ablation because KVarN uses F16 for the suffix and retains an exact prefix sink on non-SWA layers.

6. Practical Recommendations

For Qwen, a low-bit body benefits materially from the first 1024 exact tokens. At five bits and above the tail's measured contribution shrinks, though the body is still a measurable step below BF16 at every width. On the KLD axis alone the tail is often the better purchase: q4_0 at tail 1024 records 0.001057 for 1248.00 MiB, while q5_0 at tail 0 records 0.001154 for 1408.00 MiB. This review still prefers body precision for workloads that value old and recent tokens equally, because teacher-forced Wikitext rewards the recent span more heavily than a long agent session does.

A balanced starting point is a KVarN4 or KVarN5 body with tail 1024 when the backend supports it; standard q4/q5 is useful when prefill speed or portability matters more. Tail 2048 makes sense when the newest two thousand tokens are genuinely the privileged working set, such as a long compiler trace or a source file just loaded into context. It is less persuasive for retrieval-first workloads where an instruction or definition from much earlier must survive.

The standard path is faster in Qwen prefill throughout these symmetric rows. At the four-bit matched point it processes 871.68 tokens/s for standard q4 tail 128 versus 822.51 for KVarN4 128*. Within every symmetric Qwen series, measured prefill throughput also falls as the published tail grows. Generation throughput stayed solid, as shown separately below.

7. Why Gemma Is Harder

Gemma's 50 sliding-window layers see 1024 tokens while ten layers use full attention. In these benchmark artifacts, tail 1024 makes the complete visible window exact in most layers, alongside a large KLD improvement and a sharp memory/throughput transition. Standard q4 moves from 0.134091 at tail 0 to 0.044082 at 1024, while KVarN4 moves from 0.058185 at 128* to 0.037354 at 1024.

CacheTailKV cache (MiB)Median KLD
q2_00387.502.95758
q2_010241080.860.382933
kvarn2128*698.982.091697
kvarn210241090.860.194587
q4_00697.500.134091
q4_010241240.860.044082
kvarn4128*1008.980.058185
kvarn410241250.860.037354

The exact window also weakens the normal memory ladder. Standard q4 tail 1024 uses 1240.86 MiB against 1250.86 for KVarN4 at the same tail, while q8 tail 0 uses 1317.50 MiB and keeps much higher prefill throughput. Gemma therefore needs a separate decision: exact-window configurations are compelling when recent context dominates, while a standard high-bit body is a strong general default.

8. What This Does Not Prove

KLD measures how the full output distribution shifts at every scored position, so it is sensitive to cache changes that perplexity can hide, but it is not coding accuracy, long-range retrieval, instruction retention, tool reliability, or error accumulation. A tail that cuts median KLD in half on Wikitext may do far less for a task where the model needs to recall a function signature from 3000 tokens ago, or far more for a task where the last few lines of context carry most of the signal.

Tail 128 produces some of the largest KLD improvements in these tables because even a small exact suffix keeps the newest tokens in full precision format. Real tasks are not scored token-by-token across an encyclopedic corpus. Instruction following, code completion, and tool use depend on retaining specific earlier context, and the tokens that matter may sit well beyond 128 positions back. A working tail for those tasks likely starts at 1024 or 2048 and may need to be even larger, depending on how the model uses its context window.

9. Method And Full Benchmark Data

The quality matrix uses one RTX 3090 on Windows 11, BeeLlama v0.4.0, CUDA 13.1 build. Both models use Q5_K_S weights and Wikitext-2 raw with batch size 2048, micro-batch size 512, seed 1, FlashAttention, unified KV, no mmap, mlock, and no host offload. KLD is calculated against a matching BF16-cache baseline.

KV cache cells show the persistent total. Where a cache pair has a shorter reference row, a smaller (Δ...) gives the difference from that tail 0 total. KVarN 128* is its own requested-0 baseline and carries no delta, because its intrinsic exact group is already inside the total: on Qwen that group accounts for 48.00 MiB where a standard tail 128 overlay costs 8.00 MiB. Longer KVarN tails are measured from that 128* row, so KVarN and standard deltas begin from different baselines and should be read within a family rather than across the two.

9.1 Qwen 3.6 27B Q5_K_S 64k

Filters
CacheTailKV cache (MiB)Median KLDMean KLDKLD +/-90% KLD95% KLD99% KLD99.9% KLDMaximum KLDSame top pTok/sElapsed (s)
bf1604096.000000.0000160.0000230.0000370.000050.00006599.995% +/- 0.002%887.82334.479
q8_002176.000.0009090.0027540.0002470.0042620.0067750.0199070.09302922.25903997.93% +/- 0.039%886.04333.999
q8_01282184.00 (Δ8.00)0.0009010.002530.000170.0042310.0066830.0195290.09039511.78367598% +/- 0.039%874.94343.638
q8_010242272.00 (Δ96.00)0.0008970.0027180.0002350.0042190.0066650.0195250.08769916.63963997.936% +/- 0.039%866.46340.834
q8_020482336.00 (Δ160.00)0.0008950.0026440.000210.0042280.0066280.0192290.08711317.80119397.998% +/- 0.039%857.8343.684
kvarn8128*2208.000.0008710.0024720.000160.0040990.0064770.0184420.08865211.74124698.039% +/- 0.038%816.51359.779
kvarn810242256.00 (Δ48.00)0.0008710.0024010.000180.0041050.0064140.0187720.08763917.57006598.036% +/- 0.038%811.11361.748
kvarn820482320.00 (Δ112.00)0.0008770.0025920.0002050.0041120.0065140.0189980.08885714.82525398.026% +/- 0.038%802.55364.918
q6_101792.000.000950.0029410.0002870.0044330.0070110.0199640.08762221.41441597.976% +/- 0.039%884.41334.494
q6_11281800.00 (Δ8.00)0.0009120.0027440.000230.0043050.0067430.0195520.08857219.13977897.976% +/- 0.039%869.7334.481
q6_110241888.00 (Δ96.00)0.0009030.0028550.0002370.0042540.0066730.0196110.08532217.9687598.01% +/- 0.039%866.66340.834
q6_120481952.00 (Δ160.00)0.0009060.0026330.0002050.0042460.0067030.0198050.08866915.91020597.968% +/- 0.039%857.66343.974
q6_001664.000.000960.0027710.0002280.0044620.0070870.020130.09113420.71210797.906% +/- 0.04%884.75334.314
q6_01281672.00 (Δ8.00)0.0009130.0026240.0001760.0042630.0067140.0197890.09244214.5651297.99% +/- 0.039%869.65334.683
q6_010241760.00 (Δ96.00)0.0009080.0026930.0002290.0042720.0066790.0192390.08519719.611597.97% +/- 0.039%866.51340.762
q6_020481824.00 (Δ160.00)0.0009040.0026050.0001780.0042550.0067330.0191330.08987214.91594597.929% +/- 0.039%857.54343.761
kvarn6128*1696.000.0008890.0026880.0002160.0041770.006560.0190390.08899315.31993698.034% +/- 0.038%814.17360.353
kvarn610241744.00 (Δ48.00)0.0008790.002440.0001930.0040990.0064820.0189720.08462917.96243598.02% +/- 0.038%808.9362.461
kvarn620481808.00 (Δ112.00)0.0008760.0025240.0001730.0041540.0065020.0192270.08602713.38409898.01% +/- 0.039%801.99365.166
q5_101536.000.0010870.0031340.0002210.0050350.007850.0221330.09790215.78876197.783% +/- 0.041%883.44336.501
q5_11281544.00 (Δ8.00)0.000960.0029430.0002530.0045020.0070690.0202940.0914517.40897497.94% +/- 0.039%869.37334.367
q5_110241632.00 (Δ96.00)0.0009260.0028110.0002310.0043590.0067970.0196380.08489618.90888697.929% +/- 0.039%865.09341.159
q5_120481696.00 (Δ160.00)0.0009240.0027620.000240.004340.0068290.0200370.09655618.34122197.948% +/- 0.039%856.48344.288
q5_001408.000.0011540.0032690.0002410.0053670.0083460.0234670.0970720.07867897.755% +/- 0.041%883.3334.95
q5_01281416.00 (Δ8.00)0.000970.0027730.0001850.0046180.0072660.0217030.08768514.90624297.975% +/- 0.039%869.16334.391
q5_010241504.00 (Δ96.00)0.0009380.0027150.0002030.0044020.0069710.0202750.08813217.62565497.968% +/- 0.039%864.91341.636
q5_020481568.00 (Δ160.00)0.0009280.0025680.0001620.0043620.0068770.0199830.08966813.54478597.94% +/- 0.039%856.17344.366
kvarn5128*1440.000.0009270.0027290.000220.0043960.0069680.0202410.08653717.65052697.941% +/- 0.039%821.65357.442
kvarn510241488.00 (Δ48.00)0.0008970.0028510.0002590.004240.006730.0192420.08766620.3374998.009% +/- 0.039%815.52359.7
kvarn520481552.00 (Δ112.00)0.0008920.0024740.000170.0041910.0066020.0192690.08807415.33561198.01% +/- 0.039%807.75362.98
q4_101280.000.0016660.0042740.0002250.0076690.0118260.0315830.13531517.82852797.32% +/- 0.045%883.26335.34
q4_11281288.00 (Δ8.00)0.0011340.0036960.0003440.0055260.0087010.0248010.10136122.06210397.755% +/- 0.041%871.15333.547
q4_110241376.00 (Δ96.00)0.0010190.0029690.0001940.0049240.0078060.0219750.0973412.44698397.869% +/- 0.04%865.05341.923
q4_120481440.00 (Δ160.00)0.0009880.0030550.0002480.0047220.0074590.0208870.09841120.93309897.862% +/- 0.04%856.67344.404
q4_001152.000.0018460.0046730.0002310.0084830.0129580.0345320.15440820.6998197.199% +/- 0.046%884.31334.626
q4_01281160.00 (Δ8.00)0.0012060.0034060.0002390.0058760.0092560.0253250.11127121.15908197.678% +/- 0.042%871.68333.643
q4_010241248.00 (Δ96.00)0.0010570.0028810.0001430.0051010.0080560.0231550.10448611.47137497.861% +/- 0.04%866.05341.103
q4_020481312.00 (Δ160.00)0.0010190.0028820.0001820.0048750.0077180.0220270.09249913.58936797.861% +/- 0.04%857.4344.146
kvarn4128*1184.000.0011110.0032440.0002460.0054240.0085680.0239390.11278121.76760797.771% +/- 0.041%822.51356.928
kvarn410241232.00 (Δ48.00)0.0009940.0030590.0002730.0047510.0075580.0215710.09039119.71802997.878% +/- 0.04%813.17361.01
kvarn420481296.00 (Δ112.00)0.0009520.0027330.0001840.0045340.0072090.0210610.0972715.3669897.871% +/- 0.04%808.93362.72
q3_101024.000.004230.010290.00040.0196830.0299420.0755150.27969127.8156695.811% +/- 0.055%884.17334.732
q3_11281032.00 (Δ8.00)0.0018760.005520.0002240.0103660.016660.0433930.17081914.55737697.044% +/- 0.047%869.81334.407
q3_110241120.00 (Δ96.00)0.0014050.0041490.0002250.0074790.0119490.0341350.1275315.22943697.369% +/- 0.044%869.35339.538
q3_120481184.00 (Δ160.00)0.0012660.0038010.0001990.0065350.0105290.029720.12420414.23856297.581% +/- 0.042%856.4344.375
q3_00896.000.0046960.0110040.0003580.0218180.0331810.0814590.30418622.70572395.605% +/- 0.057%885.36334.421
q3_0128904.00 (Δ8.00)0.0020570.0061540.0002960.0114250.0184240.0489510.19901922.16162396.932% +/- 0.048%870.21334.152
q3_01024992.00 (Δ96.00)0.0015510.00470.0002920.0082170.0131940.0363160.16738620.20378997.305% +/- 0.045%867340.803
q3_020481056.00 (Δ160.00)0.0013820.0041170.000280.0071930.0114640.0313560.13524928.13641997.544% +/- 0.043%857.76343.812
kvarn3128*928.000.0017970.0054340.0002730.0100390.0161110.043550.18025420.40145997.05% +/- 0.047%825.77355.546
kvarn31024976.00 (Δ48.00)0.0013160.0039780.0002060.0070840.011460.0314180.13955815.25178997.472% +/- 0.043%820.69357.751
kvarn320481040.00 (Δ112.00)0.0011580.0034830.0001770.0060780.0097780.0272410.13260513.85255997.656% +/- 0.042%813.59360.368
q2_10768.000.020590.0430560.0005180.0938960.1411530.3272851.10145923.26244290.826% +/- 0.08%886.58333.891
q2_1128776.00 (Δ8.00)0.0077390.0217770.0004030.0472770.0748470.1903960.69877124.13284993.921% +/- 0.066%872.49333.498
q2_11024864.00 (Δ96.00)0.0049160.0147460.0003710.0306830.0495730.1283090.4697820.71620895.143% +/- 0.059%867.2340.82
q2_12048928.00 (Δ160.00)0.0040490.0119890.0002930.0245390.0403980.1061580.40118118.57521895.609% +/- 0.057%857.88343.837
q2_00640.000.0193740.0421070.0005890.090440.1364940.317081.19890225.11748191.176% +/- 0.078%888.39333.246
q2_0128648.00 (Δ8.00)0.0075210.0228250.0004380.0491450.0798260.2106980.80972123.87293193.878% +/- 0.066%874.48332.792
q2_01024736.00 (Δ96.00)0.0046480.0155110.000390.0318960.05390.1513910.56371325.55878495.065% +/- 0.06%870.67339.272
q2_02048800.00 (Δ160.00)0.0036960.012920.0004190.0242130.0418820.1228220.53996724.47283795.62% +/- 0.057%862.37342.255
kvarn2128*672.000.0071080.0208490.0003880.0455610.0723730.1806870.69359721.1730594.234% +/- 0.064%823.72356.612
kvarn21024720.00 (Δ48.00)0.0038110.013040.0004010.0267070.0433820.1152580.45049624.74597495.608% +/- 0.057%818.98358.301
kvarn22048784.00 (Δ112.00)0.002820.009750.0003050.0197240.0332020.0900670.34790625.21200896.214% +/- 0.053%812.89360.53

* KVarN requested tail 0 resolves to an effective 128-token F16 suffix and is displayed as 128*. Standard tails use BF16.

9.2 Gemma 4 31B Q5_K_S 16k

Filters
CacheTailKV cache (MiB)Median KLDMean KLDKLD +/-90% KLD95% KLD99% KLD99.9% KLDMaximum KLDSame top pTok/sElapsed (s)
bf1602480.000000.0000070.0000130.0000290.0000470.00006399.995% +/- 0.002%945.51407.259
q8_001317.500.03710.4559880.0037821.0653462.3406817.32269416.81392934.11612780.445% +/- 0.103%932.09410.772
q8_01281428.36 (Δ110.86)0.0369410.4465950.0037381.0425192.280767.11949516.75727135.36165280.541% +/- 0.103%859.82439.033
q8_010241560.86 (Δ243.36)0.0363250.4466570.0037581.0381632.2686547.20071316.80024736.4205480.521% +/- 0.103%749.76487.73
kvarn8128*1628.980.0356820.4364570.0037111.0044782.2179237.06682316.55668642.16725280.779% +/- 0.103%739.52493.807
kvarn810241570.86 (Δ−58.12)0.0353250.4368480.0036971.0120842.2133137.06719616.51988842.9750180.706% +/- 0.103%720.16504.573
q6_101085.000.0416910.4963180.0040021.1936822.575117.81305617.11978534.46264379.643% +/- 0.105%927.52412.792
q6_11281195.86 (Δ110.86)0.0381130.4613990.0037941.0929412.3764597.34067116.49963835.24933680.253% +/- 0.104%856.25389.712
q6_110241440.86 (Δ355.86)0.0368790.4530740.00381.0533132.309017.28236216.72694434.06584580.576% +/- 0.103%754.61485.382
q6_001007.500.0426360.5062650.0040371.2349862.6089247.88078217.3059934.82060279.496% +/- 0.105%927.41412.918
q6_01281118.36 (Δ110.86)0.0386130.4709640.003891.1181392.4009567.48291217.20565436.26326880.062% +/- 0.104%860.59436.973
q6_010241400.86 (Δ393.36)0.0370120.4540680.0037781.0563432.3215727.33157616.25282136.14740880.46% +/- 0.103%753.16486.222
kvarn6128*1318.980.0365280.4524310.0037671.0572522.3199347.19800816.5428637.14139280.56% +/- 0.103%762.59481.15
kvarn610241410.86 (Δ91.88)0.0355610.4404670.0037411.0203512.2116176.99509917.04842835.34577680.677% +/- 0.103%723.82502.106
q5_10930.000.0583510.5976360.0044571.5100553.1030618.74869418.16706135.17570577.261% +/- 0.109%932.42410.804
q5_11281040.86 (Δ110.86)0.045090.5042840.0040021.2302252.5793787.82162717.32677533.95661579.047% +/- 0.106%862.19435.146
q5_110241360.86 (Δ430.86)0.0386640.4570790.0037931.0688582.3196977.30372416.80371733.4846580.394% +/- 0.103%754.09485.46
q5_00852.500.0617470.6263470.0046211.6104243.2394719.08410118.73164736.82685976.802% +/- 0.11%929.94412.09
q5_0128963.36 (Δ110.86)0.0461190.5227040.0041121.2883012.6877458.06450516.96645940.77882878.886% +/- 0.106%861.09435.778
q5_010241320.86 (Δ468.36)0.0385960.4620.0038251.0805242.3666937.41069416.76048340.05208680.185% +/- 0.104%751.48486.962
kvarn5128*1163.980.0412620.4830870.0038961.1521292.4773637.59482516.60036333.92879979.609% +/- 0.105%773.59475.443
kvarn510241330.86 (Δ166.88)0.0357610.4450170.0037551.0444592.2678687.21283916.50267636.11311780.59% +/- 0.103%724.48501.753
q4_10775.000.1521590.829640.0051232.1829014.10719310.0224819.54700934.1062271.06% +/- 0.118%934.8409.714
q4_1128885.86 (Δ110.86)0.0937210.6313310.004431.5860013.1428388.74774917.92698333.08541975.303% +/- 0.112%866.94433.113
q4_110241280.86 (Δ505.86)0.0396690.4723970.0038021.1333792.4367557.44370116.41815235.27717679.782% +/- 0.105%753.28485.759
q4_00697.500.1340910.9016540.0055452.5062184.58185110.90931620.44223434.09912571.347% +/- 0.118%935.69410.587
q4_0128808.36 (Δ110.86)0.0800660.685970.0047511.8054693.5388779.42197518.57409935.53555375.323% +/- 0.112%867.61433.472
q4_010241240.86 (Δ543.36)0.0440820.5295470.0041381.3079842.7477388.10993417.31251936.54137478.961% +/- 0.106%752.35486.25
kvarn4128*1008.980.0581850.6029120.0044571.551433.1389058.61516417.85656736.17074277.281% +/- 0.109%785.4469.964
kvarn410241250.86 (Δ241.88)0.0373540.4590120.0037781.0808392.3634787.39357916.49867637.70634880.315% +/- 0.104%724.91501.383
q3_10620.000.4110321.4987820.0070784.3178796.76314513.24572122.97265442.41355163.91% +/- 0.125%929.26411.321
q3_1128730.86 (Δ110.86)0.2381951.0442330.0058282.8475525.00836611.24330520.87789744.06543469.846% +/- 0.12%860.69435.77
q3_110241200.86 (Δ580.86)0.0629010.6326070.0044661.6735043.2958958.64837117.77941535.90347776.455% +/- 0.11%751.5487.325
q3_00542.500.5040751.6232580.0073184.6278617.14323613.66795923.1574440.13804661.353% +/- 0.127%929.29411.375
q3_0128653.36 (Δ110.86)0.2664791.2263560.0063733.5326685.91825912.18176721.28996540.93171766.241% +/- 0.123%861.22435.892
q3_010241160.86 (Δ618.36)0.104680.8136210.0052242.2449994.20549410.24761119.886235.22964573.013% +/- 0.116%752.03486.351
kvarn3128*853.980.2504451.0505180.0056752.8902644.90785211.20455620.02510337.64443267.647% +/- 0.122%793.64466.326
kvarn310241170.86 (Δ316.88)0.0438960.5379440.0041961.3449042.8341058.20288517.90870735.75971278.86% +/- 0.106%725.03502.173
q2_10465.001.9944023.8931480.01309610.67285614.30814622.36864133.06893551.26599544.632% +/- 0.129%929.5412.603
q2_1128575.86 (Δ110.86)0.9856233.4020860.01355210.66971614.49270223.04388834.69625951.92556452.817% +/- 0.13%862.41434.906
q2_110241120.86 (Δ655.86)0.3679382.4073320.0111027.97362911.52911419.531530.59196544.87336360.195% +/- 0.127%744.03491.99
q2_00387.502.957584.167910.0112649.85496313.00825619.66532527.83496140.67254631.667% +/- 0.121%931.44411.283
q2_0128498.36 (Δ110.86)1.3298472.5923230.0091976.9493169.83161716.54757725.06512839.41727148.565% +/- 0.13%863.07435.219
q2_010241080.86 (Δ693.36)0.3829331.4102190.0067384.0075066.43067712.81950621.79235138.70036361.698% +/- 0.127%742.25492.926
kvarn2128*698.982.0916973.067690.0089417.2217049.81379816.24517623.64521439.49303440.932% +/- 0.128%803.3461.73
kvarn210241090.86 (Δ391.88)0.1945871.0204430.0058312.8215574.9713711.5793420.18176737.06407268.488% +/- 0.121%725.59501.628

* KVarN requested tail 0 resolves to an effective 128-token F16 suffix and is displayed as 128*. tail 1024 covers Gemma's visible sliding window; tail 2048 is outside this quality matrix.

9.3 Decode Throughput By Context Depth

ModelCacheTail10244096163843276865536
Gemmabf16028.3827.2323.76
Gemmakvarn4128*21.3820.7520.13
Gemmakvarn4102428.5828.0026.36
Gemmaq4_0030.9330.1626.90
Gemmaq4_0102426.6426.2524.03
Qwenbf16036.1534.8830.9526.9321.50
Qwenkvarn4128*32.8132.0930.4228.5225.30
Qwenkvarn4102432.1831.7030.0628.1425.00
Qwenq4_0036.4035.4932.6329.4624.63
Qwenq4_0102434.3834.0131.5128.5724.10