Nib is an inference engine written for one model and one family of Radeon cards
A C++ engine with hand-written kernels runs the 26B Inkling 2 Mini on AMD RDNA3 and RDNA4 GPUs. The author reports 186.8 tokens per second with a 262K context on a 24 GB card.
Most local inference engines try to run every model on every GPU. Nib, from GitHub user Chromadera, goes the other way: it runs one model, Inkling 2 Mini, on one family of hardware, AMD’s RDNA3 and RDNA4 Radeon cards. The first commit landed on November 24; three days later the repo was at version 0.2.1.
How it works
Nib is C++17 with no machine learning framework underneath. The README describes Inkling 2 Mini as a 26B looped mixture-of-experts model with vision, released by Thinking Machines. Nib loads it from a 4-bit GGUF file in one of three sizes, from 14.52 to 16.42 GiB, chosen to fit 16, 20 or 24 GB cards.
The GPU code is a set of kernels written by hand in HIP, AMD’s GPU programming interface. The README makes one unusual claim about them: zero register spills across 19 kernel objects, checked by a script in the repo. A spill is when a kernel runs out of registers and has to park values in memory.
Three other pieces matter, per the README:
- A small three-layer draft model proposes one to seven tokens per round. The main model verifies them and rejected tokens are rolled back. The README calls this lossless.
- For long prompts, attention is exact up to 64K tokens. Past that, a scorer picks which pages of the context the global attention layers read.
- The context cache is stored at 8 or 4 bits to fit in VRAM.
An OpenAI-compatible server with up to eight parallel slots is built in.
The numbers
All of these are the author’s, measured on their own cards.
| Card | Context | Single stream | Best aggregate |
|---|---|---|---|
| RX 7900 XTX, 24 GB | 262,848 | 186.8 tok/s | 268.0 tok/s at 8 streams |
| RX 7900 XT, 20 GB | 262,848 | 157.2 tok/s | 207.6 tok/s at 8 streams |
| RX 9070 XT, 16 GB | 73,728 | 95.7 tok/s | 162.0 tok/s at 4 streams |
| RX 7800 XT, 16 GB | 69,632 | 98.0 tok/s | 174.9 tok/s at 8 streams |
The 16 GB cards run without the draft model. On the 24 GB card, reading a 261,526-token prompt takes 77 seconds before the first token appears, and the README reports finding three planted facts in a 251,659-token prompt.
What the README does not contain is a comparison with any other engine on the same card. The one before-and-after figure for the draft model, about 141 against 186.8 tokens per second, comes from two different test harnesses. The quality scores rest on small samples, such as 20 ARC tasks, and the hardest long-context retrieval test scores 37.28 percent. The W7900 and W7800 results are simulated.
Try it yourself
The repo is Apache 2.0 and needs Linux, AMD’s ROCm toolchain and CMake. The weights come from a Hugging Face pack the README links; it does not state the model’s own license.
We have not built or run it. This is based on the README and the commit history.