SonicBoom: A Python-Free C++ Runtime Beats llama.cpp Decode by 14% on a Laptop 3050

nalaginrut · reddit · 2026-10-13

Developer open-sourced SonicBoom (v0.0.1, GPL-3.0), a pure C++/CUDA tensor runtime with a C ABI and zero Python, targeting local LLM inference on consumer GPUs.

Numbers (Gemma 4 E4B-it Q3KM, laptop RTX 3050 8GB, same GGUF as llama.cpp):

Why it matters: the quantized matmul kernels are ported from ggml—identical to llama.cpp's. The 14% decode lead comes entirely from the graph compiler layer above them: activations quantized once and reused, norm/activation fused with quantization, dead computation removed, and each decode step captured and replayed as a single CUDA Graph. ggml-derived code is only 8% of the core.

Limitations: prefill is a real batched path (int8 tensor cores + cuBLAS) but still slow; only Gemma 4 E4B verified; only Q3K/Q4K/Q5K formats (most HF Q4KM files won't load); tested on sm86 only; greedy sampling only. Roadmap: MLIR GPU codegen, speculative decoding, Qwen support.

Original post →

More from Infra

Infra channel →