Neat, can't wait to see a llama.cpp PR for this.
Repository
Griffith-7/nf4-triton-kernel
nf4-triton-kernel
An optimized, high-performance NF4 (NormalFloat 4-bit) dequantization Triton GPU kernel achieving up to 1.41x speedup over bitsandbytes.
6stars
Griffith-7/nf4-triton-kernel
nf4-triton-kernel
Optimized high-performance NF4 (NormalFloat 4-bit) dequantization Triton GPU kernel achieving up to 1.41x speedup over bitsandbytes.
Visit project- First shared
- Jul 15, 2026
- HN activity
- 51
Show HN@Griffith-7Jul 15, 2026
Show HN: Fast NF4 dequantization Triton kernel (1.41x faster than bitsandbytes)
"I wanted to see if I could optimize the dequantization bottleneck during 4-bit LLM inference. By writing a custom kernel in Triton to optimize memory access patterns, I managed to get up to a 1.41x speedup over the standard bitsandbytes implementation. Check out the source code and benchmarks, feedback is highly appreciated!"
Community