r/llamacpp • u/W61k3r • 14h ago
LexiSuite T21: Inkling-2-Mini at 135 tok/s with its draft head on one RX 7900 XTX (llama.cpp's newest build: 39), 524k context on 24 GB, and now a single USB image with the model already inside
Follow up to my earlier Inkling-2-Mini posts. Testing image 21 of LexiSuite (my own Rust stack: inference engine, control panel, bootable OS image, not a wrapper around llama.cpp or Ollama) is out, and this time there is an all-in-one download: one USB image with the OS, the engine, the panel and the Inkling-2-Mini file already in the model folder. Write it to a stick, boot, open the address on the screen, load the model.
All in one image, the plain image and the model file by itself:
https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA
Hardware for everything below: RX 7900 XTX 24 GB, i7-9700, 32 GB RAM, Vulkan. One card, whole model on the card, nothing in system RAM. 4-bit KV cache. Single runs, greedy decoding, nothing else running on the box. All measured November 23 on the published build.
The model file is 18.3 GB. It keeps the experts exactly as Thinking Machines shipped them (their own 4-bit format), the rest is 8-bit, and the model's own draft head is packed into the same file.
BENCHMARKS, LexiEngine
4,096 token prompt
2,430 tok/s prompt, 136.4 tok/s generation with the draft head (66.5 without it)
16,384 token prompt
2,332 tok/s prompt, 134.8 tok/s generation with the draft head (65.8 without it)
261,632 token prompt (262k context)
1,193 tok/s prompt, 65.5 tok/s generation with the draft head (50.3 without it)
523,264 token prompt (524k context)
764 tok/s prompt, 48.9 tok/s generation with the draft head (40.4 without it)
By kind of text, with the draft head after a 16,384 token prompt:
JSON records 159.0 tok/s
Rust code 121.3 tok/s
English prose 94.7 tok/s
Output with the draft head was identical to plain greedy decoding in every run. It only changes speed.
LLAMA.CPP GOT A LOT FASTER, SO I MEASURED IT AGAIN
In my last post llama.cpp was at 425 tok/s prompt and 25 tok/s generation on this model (build 12600, November 20). Its newest build (commit 1f8baae), same day, same card, same weights:
4,096 token prompt: 1,233 tok/s prompt, 40.4 tok/s generation
16,384 token prompt: 1,049 tok/s prompt, 39.2 tok/s generation
That is a big jump on their side in three days and the old 4x to 5x gap is gone. At 16k LexiEngine is now 2.2x on the prompt, 1.7x in plain generation and 3.4x with the draft head. I did not run llama.cpp at 262k or 524k this time.
DOES IT ACTUALLY READ THE CONTEXT
Ten facts planted through the prompt from 1% to 99% of its length, each asked back:
at 260,864 tokens: 10 of 10
at 523,264 tokens: 10 of 10
Against a reference run of the published weights the engine scores a mean KL of 0.0037 with the same top token on 98.6% of 510 positions (4-bit KV cache).
WHAT CHANGED SINCE THE LAST IMAGE
generation with the draft head at 4k: 110.7 -> 136.4 tok/s
generation with the draft head at 16k: 109.5 -> 134.8 tok/s
the draft head now helps at 524k too (48.9 vs 40.4 plain); two images ago it was a small loss there
Also in this build: the Linux entry is 7.4-rc4 (unmodified upstream tag) beside my own kernel, the experts of the last four layers can be stored in 4 bits (2.0 GB smaller, same speed, slightly lower accuracy), and repairs to the quantization tool in the panel.
THINGS YOU SHOULD KNOW BEFORE TRUSTING ANY OF THIS
Everything is single runs on one machine, with the card capped at 291 W. If you have a 7900 XTX I would genuinely like to know if you get the same numbers.
The model file is for my engine. Stock llama.cpp, Ollama and LM Studio do not load it: their converters decode the 4-bit experts and quantize them again (27.8 GB at 8 bits, which does not fit a 24 GB card), and they do not know the draft head's tensors.
It is tuned and measured on Radeon RDNA 3. I have not measured other cards on this build.
I trained a recovery adapter for the 4-bit expert file and it did not improve held out text measurably, so no adapter is published.
Not in this build: image input for Inkling, formats below 8 bits for its attention matrices, and a 1M context on 24 GB (the cache alone would be 9.85 GB).
This is a development image, not a production release. The all-in-one image is 17.6 GB to download and 23 GB when written, so it needs a 32 GB stick. The plain image is 353 MB and fits an 8 GB stick. Writing either one erases the stick.
LINKS
All-in-one image and model file: https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA
Base model: https://huggingface.co/thinkingmachines/Inkling-2-Mini
Download and USB instructions: https://lexipanel.com/download/
Benchmarks and method: https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks
How the Inkling runtime works: https://github.com/W61k3r/LexiSuite-Releases/wiki/LexiEngine-Inkling-2
Release notes: https://github.com/W61k3r/LexiSuite-Releases/wiki/Release-Notes