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:

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.

Original post →

More from Infra

Infra channel →