r/Compilers • • 2d ago

SonicBoom 0.1.0 released - an AI compiler based on MLIR

https://github.com/hardenedlinux/SonicBoom
0 Upvotes

3 comments sorted by

1

u/Discordbothost 1d ago

Add a wall-clock code-edit result alongside decode tok/s. For example, time an 8K-token input and 100-token edit from request to last token on both engines. That would show how much the prefill gap changes the benefit of faster speculative decoding.

1

u/nalaginrut 1d ago

The reason we kept decode-only in the main comparison is to isolate the speculative verification path (bit-identical row invariance + gate) from an unrelated prefill codegen gap: our MLIR-lowered flash-attention prefill kernel (`boom_fattn`) currently declines Qwen2.5-7B's prime GQA ratio (28/4 = 7, head_dim 128) and falls back to a slower batched path, whereas Gemma 4 hits `boom_fattn` and is ahead on prefill.

End-to-end server aggregates (TTFT included) and the 4K-32K prefill tiers are already in `docs/benchmark.md`, and adding a cold long-prompt + short-edit wall-clock row makes sense once `boom_fattn` lowers GQA-7 cleanly in the next release.

0

u/nalaginrut 1d ago

Fair point. On a cold 8K prompt with a 100-token reply, wall-clock is dominated by prefill, and Qwen2.5-7B's long-context prefill (d128/GQA-7) is currently 0.71x llama.cpp at 8K (listed in the README and docs/benchmark.md).

Two separate cases here:

- Full-file edits (what the code-edit table measures, ~1.8K output tokens) or multi-turn edits with prefix reuse are decode-dominated, where the speculative win shows up directly.

- Cold long-prompt + short-edit is prefill-dominated; the end-to-end server aggregate numbers (TTFT included) are already in docs/benchmark.md, and closing the d128/GQA-7 long-prefill gap is on the list for the next release.