Benchmarked 4-bit GEMV kernels on RTX 3060: two ran slower than plain FP32
Gauri_the_great · x · 2026-11-30
Developer Shreyas Dixit benchmarked four W4A16 GEMV kernels on an RTX 3060 Laptop GPU and found that shrinking LLM weights from FP32 to INT4 (8x less memory) doesn't automatically mean faster inference:
- FP32 baseline: 0.2089 ms
- Two-pass unfused dequant: 0.5766 ms — 2.76x slower than FP32
- Scalar byte-by-byte fused unpack: 0.2987 ms
- Fused vectorized uint4 streaming: 0.0861 ms — 2.43x faster (up to 2.64x on 4096x11008)
Same 4-bit math, but a nearly 7x gap between slowest and fastest implementation. The difference comes down to extra DRAM round-trips, narrow memory transactions, and ALU overhead in the inner loop. A commenter notes the two-pass version writes and re-reads a full FP16 copy (4.5 bytes of traffic per weight vs 4 for FP32), so it starts out behind on traffic alone. The author published a blog post with interactive bit-level visuals.
More from Infra
- Ex-Fortnite producer explains how Drake's 19.4M-player concert ran as 194,000 parallel copies — aakashgupta · 2026-12-06
- HybridAFD splits DeepSeek-V4.1-Flash across Blackwell GPU and Macs; TB5 RDMA only 3% faster — AIFlow_ML · 2026-12-06
- Yacine builds a game-engine demo to argue datacenter water cooling is fine — yacineMTB · 2026-12-06
- AI-generated GPU specs revealed: 1.87 PFLOP/s per chip across 148 tiles in simulation — mike64_t · 2026-12-06
- SealKV: 2-4bit KV cache quantization cuts memory 3.5x losslessly, headed to Trainium4 — tri_dao · 2026-12-06
- Founder: self-building AI compute means $50M prepaid rentals or a $150M cluster — wonderwomancode · 2026-12-06