In this article
The b12291 CM2 attention update contains two mechanisms; record head alignment and dequantization dispatch before attributing a measured speedup.
llama.cpp b12291 enables a KV-dequantization optimization with cooperative matrix 2 and repairs alignment classification for some head shapes. Upstream explicitly separates these mechanisms. A large benchmark gain from the combined change therefore cannot automatically be attributed entirely to dequantization or generalized to head shapes that never had the alignment defect.
Two changes can affect the same timing
The PR describes the new dequantization route and a separate case where aligned head shapes were incorrectly treated as unaligned. Fixing that classification can help even when the dequantization heuristic does not select its optimized path. A benchmark on one affected shape measures the combined implementation state. Its ratio is not a clean estimate of either mechanism alone unless the experiment controls the other one.
The heuristic is workload dependent
Upstream gates KV dequantization using query-token count and grouped-query structure. Those inputs vary across prompt and generation work. A proposed comparison should record the query shape, GQA ratio and KV length, then confirm which path actually runs. A neutral result can be correct if the optimized route is ineligible. Conversely, a gain on an alignment-fixed shape does not prove that the dequantization route was selected.
Include unaffected controls
Choose a head shape without the reported alignment issue as a control, alongside an affected shape. Within each, compare cases where the dequantization heuristic applies and does not apply where feasible. Keep cache precision and model weights fixed. This small experiment matrix can distinguish a classification repair from a new data path more clearly than a single end-to-end throughput number with several simultaneously changed attention settings.
Do not collapse upstream numbers into one promise
The upstream discussion reports shape-specific results and explains their different causes. Preserve that attribution and avoid advertising the largest ratio as the universal CM2 benefit. A local report should show both correctness and the actual route for the tested device. This article identifies the causal split and a test design; it does not add an independent benchmark or claim identical gains across all Vulkan implementations.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.