Reshaping 32 query heads into [8, 4] instead of replicating 8 KV heads into 32 removed 60 tile operations and increased throughput from 20.39 to 54.30 tok/s.
The same mapping, kv_head = query_head // group_size, takes different forms across backends. We compare pointer arithmetic, graph fan-out, and tensor shapes.
The same mapping, kv_head = query_head // group_size, takes different forms across backends. We compare pointer arithmetic, graph fan-out, and tensor shapes.
Validating a custom kernel costs more than implementing it. We trace HMX allocation, quantization, HVX lane rearrangement, and accumulated error using measurements.
Limited memory, power budgets, latency constraints, and heterogeneous hardware environments make device deployment fundamentally different from cloud inference.