AI generated

Confident
Model stylome-1.2-large
stylo.me/510a632ca6078306

**TL;DR** - Follow-up to my guide from a few days ago. All five PRs from that post are now **merged upstream** (Basalt 0.5.7 / 0.6.0), so stock Basalt already runs Inkling 2 Mini well on a 16 GB card. - This update adds the **DFlash 2** drafter, plus four open PRs that make the single-conversation, 16 GB case faster. - Against the last post: **+7% chat, +9% structured, +15% prose, +18-25% prompt reads**. - At long context: **+34-55% prompt reads**, and generation +6-22% from 30K to 147K. - Real agent coding session (opencode, the same minisql task as last time, 125 requests, up to 222K context): **215 tok/s** decode live, and **83/83** on the hidden test suite (last time 81/83). The final build replays the same session at **220 tok/s**. **Hardware** (unchanged) - RTX 5080 16GB at its stock 360W limit (no overclock, no undervolt) - Core Ultra 9 285K (8P + 16E), 2x32GB DDR5-7200, PCIe 5.0 x16, Fedora - Pack: `Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt` (19.6 GB, built from the official checkpoint, see below). int8 KV cache, 262K context, drafting on. **basalt-bench** (the engine's standard benchmark, short context, seed 7; anyone can run it with `bin/basalt-bench`) | test | tok/s (last post) | drafts accepted | tokens per draft | |---|---|---|---| | prompt read, 16K | **10,524** (8,914) | - | - | | prompt read, 64K | **8,723** (6,997) | - | - | | tg conv (sampled chat) | **248** (231) | 66% | 2.3 | | tg struct (JSON / code / tool calls) | **491** (451) | 95% | 6.4 | | tg prose (sampled long text) | **218** (190) | 55% | 2.0 | DFlash 2 guesses better than the pack's default DSpark drafter. Chat acceptance went from 55% to 66%, and prose from 41% to 55%. **Speed by context** Free-text answers about source code, so drafting is near its worst case. Real server, a fresh prompt at each depth so nothing comes from the cache, 384 tokens generated, the model's own sampling (temp 1.0 / top_p 0.95 / top_k 20). | context | prompt read (pp) | generation (tg) | last post pp / tg | |---|---|---|---| | 1.2K | 5,351 tok/s | 224 tok/s | 4,472 / 195 | | 5.8K | 9,637 tok/s | 211 tok/s | 7,505 / 218 | | 30K | 10,011 tok/s | 197 tok/s | 7,466 / 184 | | 66K | 8,609 tok/s | 203 tok/s | 6,224 / 167 | | 147K | 6,343 tok/s | 162 tok/s | 4,353 / 153 | | 239K | 5,090 tok/s | 131 tok/s | 3,275 / 132 | These are single requests with sampling, so each generation number carries a few percent of noise. Prompt reads are up at every depth. Generation is up most in the middle range and flat at the very deepest point. **Is it quantized on top of the official weights?** Mostly no. Thinking Machines ships Inkling 2 Mini's routed experts already in NVFP4 (layers 0-19) and MXFP8 (layers 20-23); there is no BF16 version of the model. The default Basalt pack (`NVFP4-MX8`) keeps those experts **bit for bit**. The only extra rounding is Q8_0 on the parts the release ships in BF16: | part | in the official release | in the pack | |---|---|---| | routed experts, layers 0-19 (most of the model) | NVFP4 | NVFP4, the release's bits | | routed experts, layers 20-23 | MXFP8 | MXFP8, the release's bits | | attention, gate, short-conv and output projections | BF16 | Q8_0 | | output head | BF16 | BF16 in the file, Q8_0 once loaded | | embedding, norms, router, small tables | BF16 / F32 | as stored | Against the release with its experts expanded to BF16 (the closest reference there is), over 100 wikitext chunks: - the default pack scores mean KLD **0.0030** and **97.8%** top-1, with fp16 KV; - the same with its RAM experts on the CPU, as on a 16 GB card: 0.0030 / 97.7%; - int8 KV adds a little: on the DQ8 pack, 0.0031 / 97.8% with fp16 KV becomes 0.0034 / 97.5%. The drafter doesn't change output at all: the model verifies every drafted token, and greedy drafted output matches plain decoding. **What's in the build** Merged upstream since the last post (all in Basalt 0.6.0): - My earlier spill/attention/prompt PRs: #606 #609 #636 #649 #650 #653 #654 #723 #724 #772 #773 #790 #847. - The maintainer's batched kernels and shared KV pool (#808), and the one-slot fix (#874) for the regression #808 caused on 16 GB cards. - DFlash 2 support inside the pack (#763). Open PRs on top (the branch below has them): - **#972** Single-conversation expert windows. A per-row finish kernel, plus deeper gate/up tiles from three rows; one- and two-row windows keep the batched kernels' tiles. Bit-identical output. **+2.5%** decode over a real agent session, then another **+0.4%** from keeping the one- and two-row tiles. - **#973** DFlash 2's drafter weights sat in buffers twice their size after conversion. Freeing that returns 159 MiB to the card, which holds 31 more expert copies. Bit-identical. **+0.6%**. - **#974** A faster DFlash 2 drafter: a sorted top-16 rescore (3x faster) and fewer, wider attention splits (2x faster). The draft step falls from 1.21 to 1.02 ms a window. Output is still the target model's (it verifies every drafted token). **+1.7%**. - **#945** (by giveen) charges the load plan only for what the run uses. It doesn't speed anything up here, but it helps smaller cards fit. All three of mine together: **+2.5%** over the 125-request agent session, compared window for window at equal width. Every change is checked with parity tests against a CPU reference and with greedy output identity against upstream main. **Guide** Branch with the exact engine I measured: https://github.com/xyehya/basalt/tree/inkling2-5080-setup-v2 (upstream main + the 4 PRs above). ``` git clone -b inkling2-5080-setup-v2 https://github.com/xyehya/basalt && cd basalt cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBASALT_MODELS=inkling2 cmake --build build -j pip install -r requirements.txt ``` Build the DFlash 2 pack. This needs the official checkpoint plus the DFlash 2 drafter, and upstream's converter puts them in one file: ``` hf download thinkingmachines/Inkling-2-Mini --local-dir ckpt/Inkling-2-Mini hf download incoai/Inkling-2-Mini-DFlash2 --local-dir ckpt/Inkling-2-Mini-DFlash2 python3 tools/convert/convert.py --checkpoint ckpt/Inkling-2-Mini --dflash2 ckpt/Inkling-2-Mini-DFlash2 \ --out models/Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt --name "Inkling 2 Mini (DFlash 2)" bin/basalt serve --config basalt_config.json ``` There's an easier option with no conversion: `hf download jesdga/Inkling-2-Mini-Basalt Inkling-2-Mini-NVFP4-MX8.basalt --local-dir models`. That's the stock pack with the DSpark drafter, about 6% slower at decode on the same build. `basalt_config.json`: ```json { "version": 2, "models": [{"model": "models/Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt", "gpu": "0", "kv": "int8", "max-context": 262144, "fit-max-tokens": true}], "engine": {"spec": 8}, "server": {"host": "127.0.0.1", "port": 8080} } ``` You need: - a Blackwell RTX card (sm_120) with CUDA 13; - about 12 GB of RAM; - about 25 GB of disk for the pack, plus about 20 GB for the checkpoint while you convert. Agent tip: Inkling thinks for a long time on hard coding prompts. In opencode, set the model's output limit to 32000 (the most opencode will ask for), so a long think doesn't run out of room for its answer. Caveats: - The four PRs are open, not reviewed or merged upstream yet. - Linux only tested; Windows compiles in CI, but I haven't run it. - Numbers are from one machine at 360 W. Huge thanks to jesdga95 for Basalt (go star the repo) and for merging the last round so quickly; to Thinking Machines for Inkling 2; to incoai for the DFlash 2 drafter; and to giveen, tjm8874 and Sypher760-gif for reviews, ideas and their own PRs.