|
Download README.md from EliovpAI/Inkling-2-Mini-W3-INT3-Paiton-RDNA4: direct link, hf CLI and curl.
- Browser
- Download file 9.89 kB
-
https://huggingface.co/EliovpAI/Inkling-2-Mini-W3-INT3-Paiton-RDNA4/resolve/main/README.md
- Command line
-
hf download hf://EliovpAI/Inkling-2-Mini-W3-INT3-Paiton-RDNA4/README.md
-
curl -L -o README.md https://huggingface.co/EliovpAI/Inkling-2-Mini-W3-INT3-Paiton-RDNA4/resolve/main/README.md
9.89 kB
| license: apache-2.0 | |
| base_model: thinkingmachines/Inkling-2-Mini | |
| base_model_relation: quantized | |
| library_name: paiton | |
| pipeline_tag: image-text-to-text | |
| inference: false | |
| tags: [paiton, vllm, amd, rocm, rdna4, gfx1201, int3, 3-bit, gptq, moe] | |
| # Inkling 2 Mini 3-bit experts for Paiton on RDNA4 | |
| These files hold the routed expert weights of | |
| [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) in 3 bits, for the opt-in | |
| 3-bit start of the | |
| [Paiton Inkling 2 Mini release](https://github.com/Eliovp-BV/paiton-vllm-plugin/blob/main/models/Inkling-2-Mini/README.md) | |
| on a single R9700. They are an add-on to the base checkpoint and do not run on their own: attention, embeddings, the | |
| vision tower and every other tensor come unchanged from the base model, which the launcher downloads and checks. | |
| The experts take 8.90 GiB instead of 14.59 GiB, so each generated token reads less memory. The 3-bit start reads | |
| prompts in 2,048-token steps and still keeps the model's full context of 1,048,576 tokens per request; its KV cache | |
| holds 1,218,579 tokens in all, against 1,074,776 for the default start. With these files and its fast settings, one | |
| request generates 179.7 tok/s instead of 93.9 and four requests 400.5 instead of 249.7 (LocalMaxxing, temperature | |
| 1.0, no context; table below). | |
| The 3-bit weights are lossy, so replies differ from those of the default start. On our 35-task check set both starts | |
| pass 34 of 35 tasks with greedy decoding; at temperature 1.0 with three seeds the default start passes 96 of 105 and | |
| the 3-bit start 102 of 105. Three seeds can move such a total by about 5, so these totals don't rank the two; the | |
| teacher-forced measurement below shows the accuracy the 3-bit experts lose. | |
| Some accuracy loss is normal for 3-bit weights, and in return this start is much faster. These files are version 1 | |
| of the 3-bit experts. As with the 3-bit Qwen 3.8 27B, we will improve their accuracy step by step. | |
| ## Requirements | |
| | Component | Requirement | | |
| |---|---| | |
| | GPU | A single R9700 (AMD Radeon AI PRO R9700, gfx1201, 32 GB) | | |
| | Host | Linux with a working AMD GPU driver, and Docker | | |
| | Runtime image | `ghcr.io/eliovp/paiton-vllm-plugin:inkling-2-mini-w3-rdna4-v1.2.0@sha256:7f1eaad71457b00f548d97fa66af9389ee6730dc8e718339cfeee5d7ed3a449e` | | |
| | Launcher | `models/Inkling-2-Mini/serve-docker.sh --w3` in the [public plugin repository](https://github.com/Eliovp-BV/paiton-vllm-plugin) | | |
| | Base checkpoint | `thinkingmachines/Inkling-2-Mini` at `7a67ae2314b44ef05c87fd1d4d311c58aaeb18f6` (the launcher downloads it) | | |
| | These weights | This repository at `0b824fcf035916564fbdd9962acf5177d0ed332a` (the launcher downloads it) | | |
| ## Quick start | |
| ```bash | |
| git clone --depth 1 https://github.com/Eliovp-BV/paiton-vllm-plugin.git | |
| cd paiton-vllm-plugin | |
| ./models/Inkling-2-Mini/serve-docker.sh --w3 | |
| ``` | |
| `--w3` picks the 3-bit image. Its first start downloads the base checkpoint and these files (9.6 GB) at the pinned | |
| revisions, checks every file and keeps them in the launcher's cache. The API is the same as with the default start: | |
| port 8042, model name `inkling-2-mini`. | |
| To serve a copy you downloaded yourself, point `PAITON_W3X` at its folder (this implies `--w3`): | |
| ```bash | |
| mkdir -p "$HOME/paiton-w3x" | |
| hf download EliovpAI/Inkling-2-Mini-W3-INT3-Paiton-RDNA4 \ | |
| --revision 0b824fcf035916564fbdd9962acf5177d0ed332a --local-dir "$HOME/paiton-w3x/inkling-2-mini-w3" | |
| (cd "$HOME/paiton-w3x/inkling-2-mini-w3" && sha256sum -c SHA256SUMS) | |
| PAITON_W3X="$HOME/paiton-w3x/inkling-2-mini-w3" ./models/Inkling-2-Mini/serve-docker.sh | |
| ``` | |
| The launcher mounts the parent of that folder (here `$HOME/paiton-w3x`) read-only into the container, so keep the | |
| files in a folder of their own. | |
| The 3-bit start also uses the release's fast settings: prompts are read in 2,048-token steps, and one request | |
| drafts four tokens ahead instead of five. At temperatures above 0 it keeps a drafted token when the model gives it at | |
| least 10 % probability (or 30 % of the probability of its most likely token, if that is lower), and it stores the | |
| attention projections as 8-bit rows. So its output is not the model's exact output. | |
| The [release guide](https://github.com/Eliovp-BV/paiton-vllm-plugin/blob/inkling-2-mini-rdna4-v1.2.0/models/Inkling-2-Mini/README.md#super-fast-3-bit-image) | |
| lists these settings. | |
| ## Method | |
| The 128 routed experts of all 24 layers (gate/up and down matrices) are stored as int3 codes from -4 to 3, with one | |
| e4m3 scale per 64 inputs and one fp32 factor per matrix: 3.125 bits per weight, plus the factors. | |
| We quantized each expert with GPTQ on calibration text. Its Hessian came from the inputs the expert receives when | |
| served, in the base checkpoint's activation formats (NVFP4 on layers 0 to 19, MXFP8 on layers 20 to 23). An expert | |
| that received fewer than 4,096 calibration rows was topped up to 4,096 rows with the layer's mean per-row Hessian. | |
| ## Accuracy and memory | |
| Served on a single R9700 at the 300 W power cap with the v1.2.0 images, 26 November 2026: | |
| | | Default start (exact) | 3-bit start | | |
| |---|---:|---:| | |
| | Expert weights | 14.59 GiB | 8.90 GiB | | |
| | Context per request | 1,048,576 | 1,048,576 | | |
| | KV cache | 1,074,776 tokens | 1,218,579 tokens | | |
| | Peak VRAM | 29.92 GiB | 29.42 GiB | | |
| | 35-task set, greedy | 34 / 35 | 34 / 35 | | |
| | 35-task set, temperature 1.0, three seeds (a total can move by about 5) | 96 / 105 | 102 / 105 | | |
| | Decode, one request, no context (tok/s) | 93.9 | 179.7 | | |
| | Decode, one request, 128K context (tok/s) | 93.8 | 149.4 | | |
| | Decode, four requests, no context (tok/s in total) | 249.7 | 400.5 | | |
| | Prompt reading at 8K / 128K (tok/s) | 3,897 / 3,088 | 5,702 / 4,153 | | |
| The speed rows are LocalMaxxing cells (`lmx` 0.1.66): a long encyclopedia article at temperature 1.0, 8,192 tokens | |
| per request, total tok/s. | |
| The 35-task set has 10 arithmetic tasks, 10 code-output tasks, 10 tool calls and 5 facts to find in long texts (two | |
| at 31,000 tokens, three at 130,000); the | |
| [benchmarks](https://github.com/Eliovp-BV/paiton-vllm-plugin/blob/inkling-2-mini-rdna4-v1.2.0/models/Inkling-2-Mini/BENCHMARKS.md#quality) | |
| list every result. | |
| ### Next-token accuracy of the 3-bit experts | |
| We also compared the 3-bit experts with the checkpoint's own experts outside the server, on an AMD Instinct MI355, | |
| teacher-forced: both read the same tokens, and at every scored position we compare their next-token distributions. | |
| The 3-bit weights are decoded from the files in this repository. Both runs use the checkpoint's 4-bit and 8-bit | |
| activation formats and differ only in the experts, so this measures the experts alone, not the other fast settings of | |
| the 3-bit start. The scored text is the model's | |
| own reply to each short prompt, the real assistant turns of coding sessions, and the ends of long documents and code | |
| dumps, each with four planted access codes. | |
| As a floor we ran the reference again with only the order of the attention sums changed. On texts with near ties | |
| that alone changes some next-token choices, so it shows how much of the difference is noise. | |
| | Prompts | Count | Scored tokens | Same top token, 3-bit | Same top token, reference run again | Added KL per token (95 % interval) | | |
| |---|---:|---:|---:|---:|---| | |
| | Short chat, code and tool prompts | 21 | 2,572 | 94.87 % | 98.06 % | 0.0235 (0.0188 to 0.0283) | | |
| | Short prompts with an image | 3 | 385 | 97.40 % | 98.38 % | 0.0123 (0.0074 to 0.0175) | | |
| | 2K tokens | 12 | 5,003 | 93.34 % | 95.91 % | 0.0271 (0.0226 to 0.0319) | | |
| | 8K tokens | 7 | 4,043 | 95.45 % | 96.94 % | 0.0106 (0.0081 to 0.0137) | | |
| | 32K tokens | 6 | 3,623 | 96.69 % | 97.90 % | 0.0171 (0.0124 to 0.0230) | | |
| | 128K tokens | 5 | 2,085 | 93.91 % | 95.88 % | 0.0228 (0.0173 to 0.0285) | | |
| | 256K tokens | 5 | 2,085 | 94.24 % | 95.94 % | 0.0137 (0.0098 to 0.0175) | | |
| | 512K tokens | 5 | 2,085 | 95.01 % | 97.09 % | 0.0167 (0.0130 to 0.0207) | | |
| The added KL is the KL divergence from the reference minus that of the floor, in nats per token. The intervals cover | |
| token noise within a row, not the choice of prompts; the 256K and 512K rows rest on five documents each. The | |
| 3-bit experts pick the reference's top token 1.0 to 3.2 points less often than the floor does up to 128K tokens, 1.7 | |
| points less at 256K and 2.1 at 512K. In the 2K to 512K documents they give every token of all 76 planted codes the | |
| highest probability, as the reference does. | |
| ## Limitations | |
| - The weights are lossy. Outputs differ from the default start, and greedy replies can diverge after a few tokens. | |
| - Next-token accuracy was measured up to 524,288 tokens. The full 1,048,576-token context is served and passes the | |
| release's served checks: the 3-bit start found all ten facts hidden in a 1,038,311-token text, greedy and at | |
| temperature 1.0. Its next-token accuracy at that length was not measured. Multilingual, tool-calling and image | |
| quality were not measured on their own. | |
| - Only the Paiton 3-bit image loads these files. They are tied to the base revision above and to the W3X format. | |
| - Tested on the R9700 only. | |
| ## Files and verification | |
| | File | Contents | | |
| |---|---| | |
| | `layer_00.safetensors` to `layer_23.safetensors` | One file per layer, 398,132,792 bytes each: the codes, scales and factors of both matrices of all 128 experts | | |
| | `manifest.json` | Format, shapes, and per layer the file, the factor form and its SHA-256 | | |
| | `config.json` | A descriptor for Paiton tooling and download counts; it is not a Transformers config | | |
| | `LICENSE` | The Apache License 2.0 | | |
| | `SHA256SUMS` | SHA-256 of every other file | | |
| ```bash | |
| sha256sum -c SHA256SUMS | |
| ``` | |
| Layers 0 to 19 store each factor as the matrix's absolute maximum together with a denominator of 2688, which is | |
| the form the runtime's NVFP4 expert kernels take. Layers 20 to 23 store a power-of-two factor. | |
| [Paiton](https://eliovp.com/products/paiton) · [Public Paiton plugin](https://github.com/Eliovp-BV/paiton-vllm-plugin) | |