Inkling-2-Mini-exl3 / README.md
Maxrio's picture
Card for engine v2: shared KV pool, prefix caching, DFlash2 drafter, new card table, licenses and credits
dd6aa41 verified
|
Raw History Blame Contribute Delete
4.86 kB
---
license: apache-2.0
base_model: thinkingmachines/Inkling-2-Mini
base_model_relation: quantized
library_name: exllamav3
tags:
- exl3
- quantized
- moe
---
# Inkling 2 Mini EXL3
EXL3 quantizations of [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (revision `ed40e7da`). Each branch includes the original vision tower and built-in MTP drafter.
Run with the TensorFold engine release [`inkling2-mini-exl3-v2`](https://github.com/Maxrio9/TensorFold/releases/tag/inkling2-mini-exl3-v2) and the [recipes](https://github.com/Maxrio9/inkling-2-mini-exl3-recipes): `./start.sh` picks the branch for your card, downloads the engine, these weights and the drafter, checks every file and starts an OpenAI-compatible server. The recipes use FP8 KV, the DFlash2 drafter ([8-bit version for Blackwell](https://huggingface.co/Maxrio/Inkling-2-Mini-DFlash2-FP8), Inco AI's [original](https://huggingface.co/incoai/Inkling-2-Mini-DFlash2) elsewhere), one KV pool shared by all requests, and prefix caching inside that pool.
## Pick your card
| GPU memory | Branch | Parallel requests | KV pool, text | KV pool, with vision | Longest request, text |
|---|---|---:|---:|---:|---:|
| 12 GB | No current branch fits | — | — | — | — |
| 16 GB | 3.3bpw | 1 | 40,192 | — | 39,936 |
| 16 GB, long context | 3.3bpw | 1 | 77,056 | — | 76,800 |
| 24 GB | 4.0bpw | 2 | 342,272 | 263,936 | 340,992 |
| 32 GB | 4.0bpw | 4 | 762,880 | 683,776 | 761,856 |
| DGX Spark | 4.0bpw | 8 | 5,348,608 | 5,257,728 | 1,048,576 |
The KV pool counts prompt and reply tokens across all active requests; one request can use most of it while the others are short. Sizes come from TensorFold's planner, which matches the engine's allocations byte for byte, for a GPU that does not drive a display; the recipes list the smaller desktop rows. RTX 30 and 40 series cards use the 16-bit drafter and get somewhat less (about 310,000 tokens on a 24 GB RTX 4090); the launcher sizes this automatically. Speed with DFlash2, one request and an 8k prompt: about 175 tok/s on code and 98 on prose on an RTX PRO 4500 (3.3bpw), about 85 on code on a DGX Spark (4.0bpw). Measurements and install steps are in the recipes.
## Quants
Each quant lives on its own branch; `main` holds only this card and `.gitattributes`. Sizes below are text weights; vision and the drafter add approximately 0.64 GB each.
| Branch | Average bpw | Text size | KL vs official | Top-1 agreement |
|---|---:|---:|---:|---:|
| `4.75bpw` | 4.75 | 16.9 GB | 0.0079 | 96.7% |
| `4.0bpw` | 4.0 | 14.7 GB | 0.0084 | 96.7% |
| `3.3bpw` | 3.3 | 12.4 GB | 0.0121 | 95.9% |
Reference: the official mixed NVFP4/MXFP8 checkpoint served by vLLM ([thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini), revision `ed40e7da`), one sequence at a time. KL and top-1 are measured on 228 held-out conversations and approximately 378K tokens covering code, chat, German, six other languages, math, reasoning, tools and long inputs. Scoring used teacher-forced top-64 on the official model's answers, with thinking on and high effort.
For comparison, using GGUF files from Unsloth:
| Unsloth GGUF | Text size | KL vs official | Top-1 agreement |
|---|---:|---:|---:|
| UD-Q4_K_XL | 17.6 GB | 0.0089 | 96.5% |
| UD-Q3_K_XL | 13.6 GB | 0.0120 | 96.0% |
| UD-IQ3_XXS | 11.7 GB | 0.0179 | 95.1% |
| UD-Q2_K_XL | 9.1 GB | 0.0409 | 92.6% |
Task results, one seed, with thinking on and medium effort. The task reference is an export of the official weights with BF16 activations, served by SGLang; it is distinct from the vLLM reference used for KL. The 3.3bpw task run used an export served by SGLang.
| Benchmark | Reference | 3.3bpw |
|---|---:|---:|
| IFBench, prompt-loose (200) | 143/200 (71.5%) | 147/200 (73.5%) |
| BFCL multi-turn (100) | 58/100 | 51/100 |
## Limitations
KL measures closeness to the official checkpoint, not task accuracy. Image input is available with `--vision` and passed our check set, but image quality has not been benchmarked. The official model uses W4A4 expert activations; weight-only formats do not reproduce that behavior.
## License
Apache-2.0, following the base model: Inkling 2 Mini by Thinking Machines is Apache-2.0 with the [Model Acceptable Use Policy](https://thinkingmachines.ai/model-acceptable-use-policy/), which applies to these quants too. EXL3 quants by Maxrio9.
The engine is TensorFold by @ashhart and contributors (Apache-2.0), with work by @francip, @ajensenwaud, Jürgen Schmied (@jschmied), @BlivionIaG, @grantoverton and @cwschroeder, and MiaAI-Lab's structured-output, vision, prefill and decode patches. DFlash2 is by [Inco AI](https://inco.ai/blog/dflash2/) (Apache-2.0), based on [z-lab's DFlash](https://github.com/z-lab/dflash) (MIT). The recipes list the upstream pull requests and licenses.