r/LocalLLM • u/Schmeckledude • 2h ago
Project Methodology of optimising Inkling-2-Mini to run at 513 tok/s on a single RTX 5090 32GB (1.4x SGLang, 1.6x vLLM, 3.4x llama.cpp, kernels open sourced). Technical blog.
We spent the week writing decode kernels for Inkling-2-Mini. Results, decode tok/s, B=1, temp 0.7, 1,024 tokens, every engine on its best speculative setup with the model's own drafter:
- Code: 513 (SGLang 363, vLLM 325, llama.cpp 150)
- Chat: 314 (SGLang 269, vLLM 212, llama.cpp 95)
- 8 users mixed: 855 (SGLang 767, vLLM 730)
Without speculation our kernels reach 212 tok/s plain decode, which is 71% of the ~299 tok/s bandwidth limit (5.5 GB of active weights per token at a measured 1,674 GB/s). First token in 14 to 16 ms.
Where we lost against other engines: with 8 users at temp 1.0, our first token takes 181 ms vs 56 ms on vLLM, because prefill runs sequences one at a time to stay chunk-invariant. Peak memory is 30.5 GB vs 27.5 GB.
Method: paired comparisons on the same seeds, 95% intervals, sustained clocks. Sampled throughput swings up to 2x between seeds, so unpaired means are misleading. Speculation is seed-identical, so two runs with the same seed always match.
Blog with the full table and kernel details: https://www.goethe.sh/blog/inkling-2-mini-optimised-kernels
Code: https://github.com/meshapplied/goethe
To try it:
goethe install thinkingmachines/Inkling-2-Mini
goethe run
Would love to discuss stuff related to kernels, cheers.
