Repository navigation
SonicBoom v0.1.0
A native tensor runtime. No Python. One .so.
On a desktop RTX 3050, SonicBoom edits code at 657.3 tok/s with Gemma 4 E4B
and 518.6 tok/s with Qwen2.5-7B — decode to decode, 1.39× and 1.38×
llama.cpp's fastest speculative mode. Its output is identical, bit for bit,
with speculation on or off; llama.cpp's differs from its own plain output on
2 of the 10 turns.
It also runs Qwen3.6-35B-A3B — 35B parameters, 3B active, 20.5 GB of weights —
on the same 8 GB card, streaming its experts from pinned host memory:
18.9 tok/s on the 512-token chat set against llama.cpp's 22.0.
SonicBoom is written from the ground up in C++ and CUDA, exposed through a
stable C ABI, with GNU Guile as its first-class language. No Python
interpreter, pip or wheel tree is involved in inference.
Highlights
- Routed-expert models on one card. Qwen3.6-35B-A3B runs on the 8 GB card:
its experts stream from pinned host memory by direct DMA through a bounded
device pool, with prefetch of predicted experts, least-used eviction and a
device-memory ledger. Its gated-delta-net blocks run on new CPU and CUDA scan
kernels with per-sequence state, checkpointed at prefill segment boundaries. - A speculative gate that prices itself. Auto prices each verify against
the plain step it replaces and learns the cost curve from the requests it
sees. Verify rows tile past 16 tokens, routed-expert verify rows run grouped
and bit-identically, and a verify that cannot allocate falls back to the
plain step. - Reproducible replies. The server keys a reply to a seed and reports the
fingerprint — engine, build, GPU, driver, tune table and model — inside which
the same request gives the same bytes.--replay-storewith
POST /sonicboom/replay/:idregenerates a stored reply, and
tools/repro-conformancechecks any OpenAI-compatible server the same way.
Every reply also carries its own timing. - Serving. Sampling parameters travel over HTTP and the reply carries the
seed it was drawn with; one model stays resident on the device and switches
on request; image generation streams its steps and can be cancelled. - A documentation site. Generated from the sources, with full-text search
over pages and symbols, extracted reference pages for every Guile module, a
PyTorch-name lookup, and the models-tested record.ctest -L docskeeps the
docstrings, examples, name map and site consistent. - One harness per metric.
tools/community-bench.shruns the canonical
comparison into one log; the code-edit rate is in-process, chat-templated and
decode-only, reproducible withtools/bench.sh --spec; Output Decay has its
own harness, tool and charts;tools/bench-toolcall.shcovers constrained
JSON tool calls. - A smaller binary surface. Every exported C symbol carries the
boom_
prefix, and implementation symbols are hidden from the dynamic table of
libsonicboom.so. - CUDA 13.0 is the default toolkit, and the build targets the host GPU's
architecture as SASS.
Packages
Every tarball contains the runtime (lib/libsonicboom.so), the stable C ABI
header, the sb-tune, sb-explain, sb-numerics, sb-range and sb-moss
tools, the GNU Guile 3.0 binding sources and the documentation.
| Variant | GPU architecture | Tarball | Debian package |
|---|---|---|---|
sm86 |
sm_86 (Ampere) | sonicboom-0.1.0-linux-x86_64-cuda13-sm86.tar.gz |
sonicboom-sm86_0.1.0-1_amd64.deb |
sm89 |
sm_89 (Ada) | sonicboom-0.1.0-linux-x86_64-cuda13-sm89.tar.gz |
sonicboom-sm89_0.1.0-1_amd64.deb |
sm120 |
sm_120 (Blackwell) | sonicboom-0.1.0-linux-x86_64-cuda13-sm120.tar.gz |
sonicboom-sm120_0.1.0-1_amd64.deb |
all |
sm_86, sm_89, sm_120 | sonicboom-0.1.0-linux-x86_64-cuda13-all.tar.gz |
sonicboom_0.1.0-1_amd64.deb |
Each package carries SASS for its architecture only and no PTX. The four
Debian packages are mutually exclusive (they all provide and conflict with
sonicboom-runtime), so only one architecture variant may be installed at a
time.
Requirements
-
Linux x86-64 (Ubuntu 24.04 packages are built and tested).
-
An NVIDIA GPU of the package's architecture and a recent NVIDIA driver
providinglibcuda.so.1. -
The NVIDIA CUDA 13.0 runtime libraries, which are not bundled. Install
them from NVIDIA's Ubuntu 24.04 apt repository:wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb sudo apt-get update sudo apt-get install cuda-cudart-13-0 libcublas-13-0 libcusolver-13-0 \ libcusparse-13-0 libcufft-13-0The
.debdeclares these inDepends, soapt install ./sonicboom-*.deb
pulls them from the NVIDIA repository once it is enabled. A runfile install
of CUDA 13.0 also satisfies the runtime requirement; in that case use
dpkg --force-dependsfor the package dependencies.NVIDIA's apt packages install the runtime under
/usr/local/cuda-13.0and
do not register that directory with the dynamic loader. Make it visible once
per machine:echo /usr/local/cuda-13.0/targets/x86_64-linux/lib \ | sudo tee /etc/ld.so.conf.d/zz-cuda-13.0.conf sudo ldconfig
or, per session, export
LD_LIBRARY_PATH=/usr/local/cuda-13.0/targets/x86_64-linux/lib. A runfile
installation that already added itscuda.confto/etc/ld.so.conf.d/
needs no extra step. -
GNU Guile 3.0.9+ (
guile-3.0) andguile-jsonare recommended for the
Scheme binding and the server; pure C ABI consumers do not need them.
Install
Debian package:
sudo apt install ./sonicboom-sm86_0.1.0-1_amd64.debTarball into /usr/local:
sudo tar -C /usr/local --strip-components=1 \
-xzf sonicboom-0.1.0-linux-x86_64-cuda13-sm86.tar.gz
sudo ldconfigThen:
sb-explain --help
guile -c '(use-modules (sonicboom ffi)) (display "ok\n")'Model files are not included. See the README and docs/ for model setup.
Verification
sha256sum -c SHA256SUMS.txtArchitecture, scope, roadmap and reproducible benchmark harnesses:
docs/architecture.md,
docs/scope.md,
docs/roadmap.md,
docs/benchmarks.md.
License
GPL-3.0-or-later. ggml/llama.cpp-derived code keeps its MIT notice (see
NOTICE and LICENSES/).