--- license: apache-2.0 license_link: LICENSE base_model: - incoai/Inkling-2-Mini-DFlash2 base_model_relation: quantized pipeline_tag: text-generation tags: - saber - dflash2 - speculative-decoding - draft-model - int8 - rocm - gfx1201 - radeon-ai-pro-r9700 --- # Inkling 2 Mini DFlash2 drafter (Saber pack) The public block drafter [`incoai/Inkling-2-Mini-DFlash2`](https://huggingface.co/incoai/Inkling-2-Mini-DFlash2) (Apache-2.0; revision `4f9088ea`, `model.safetensors` sha256 `217980ab00d116693fa5946df7bbfd967caf5fac1f529afd541fbd470ddb54ee`) packed for the **Saber engine**, a native ROCm inference engine for AMD RDNA4 GPUs. It is the speculative drafter for [`Launch80/Inkling-2-Mini-NVFP4-SABER`](https://huggingface.co/Launch80/Inkling-2-Mini-NVFP4-SABER) (the target pack): 5 windowed layers (2,048-row window) that propose 7 tokens a round from four of the target's hidden-state taps, a candidate selector over a pruned 32,768-id head, and the target's own embedding / `lm_head` (this repo holds neither). The drafter only proposes; the target verifies every token. **Greedy and seeded output is the same token stream as decoding without a drafter** (measured below: ids equal to the no-drafter run in every cell). This is **not** a general-purpose checkpoint: its files load only in the Saber engine. **1.39 GB.** ## What is in it | file(s) | what | |---|---| | `manifest.json` | format `ink2-dflash2/1`, the checkpoint's `config.json`, one entry a record (file, shape, dtype, sha256, form), placement `{"tp2": [0], "tp1": [0]}` (the drafter runs whole on rank 0: the ONE shard serves one card and two), and the `iu8` section | | `*.bin` (81) | every tensor of the source checkpoint, its own **bf16 bytes**, unchanged | | `*.w8.bin` + `*.w8s.bin` (36 pairs) | the 8-bit form of `fc` and the five layers' q / k / v / o / gate / up / down: int8 codes + bf16 scales per 32-wide k block (round-half-even of w / scale, scale = the smallest bf16 >= amax / 127) | | `iu8` (in the manifest) | the W8A8 matrix-core form's declaration over the same 8-bit records (no extra bytes): per record n / k / waves a workgroup; the engine refuses the form on any mismatch | | `scripts/build_ink2_dflash2.py`, `scripts/check_ink2_dflash2.py` | the builder (from the public `model.safetensors` + `config.json` only) and the checker (re-reads the source: every bf16 record == the source bytes, every 8-bit pair == the record law re-derived, the `iu8` section re-derived, no extra record; two negative controls must be caught) | | `SHA256SUMS` | sha256 of every file here | | `LICENSE` | Apache-2.0 (the source checkpoint's license) | Rebuild and check it yourself (numpy only, ~5 s): ```bash hf download incoai/Inkling-2-Mini-DFlash2 --revision 4f9088ea --local-dir src python3 scripts/build_ink2_dflash2.py --src src --out pack python3 scripts/check_ink2_dflash2.py --pack pack --src src # CHECK records 153: PASS, both controls CAUGHT ``` Script sha256: `build_ink2_dflash2.py` `24e4fd3feb9e0d0fcea12be5889dc4ef1ad069e64f18ec68a1543a926502ef6d`, `check_ink2_dflash2.py` `5b36c50d37f7e1468c67cb6e9f92be617c1c8310ba813cc7c7147b8b1c75f885` (= the Saber repo's `tools/pack/` copies); `manifest.json` `115cf0633333121f2e1ce3ff8d31efb5bebda2fc0ff9bd42cee0c1d574500dfe`. ## How to use it with Saber Put it **beside** the target pack (same parent directory, this folder name): ```bash SABER_PACKS=/mnt/nvme/saber-packs # where tools/fetch_packs.sh inkling put inkling-2-mini-nvfp4 hf download Launch80/Inkling-2-Mini-DFlash2-SABER --local-dir $SABER_PACKS/inkling-2-mini-dflash2 (cd $SABER_PACKS/inkling-2-mini-dflash2 && sha256sum -c --quiet SHA256SUMS) ``` An engine with the INK51 default finds it there (or at `/dflash2`) and serves it as the default drafter with no flag: boot line `INK51 drafter: dflash2 (the default) from ...`, iu8 layers, depth 7, gate `prod:0.4:2`; `tools/fetch_packs.sh inkling` downloads it with the target. Without the pack the engine serves the target's bundled drafter, and `--ink-drafter dspark` is the rollback. Explicitly (any engine with the DFlash2 arm, INK48 + INK50): ``` saber engine --pack --tp 2 ... --ink-serve 8080 --ink-serve-seqs 8 \ --ink-drafter dflash2 --ink-dflash2-path --ink-mtp 7 --ink-mtp-gate prod:0.4:2 --ink-draft-layers iu8 ``` (at one card: `--pack /tp1 --tp 1`, the same folder). Name the depth with the gate: an explicit gate with the depth unset serves depth 2. ## Measured (Saber, 2x / 1x Radeon AI PRO R9700, 210 W, 2026-11-25) Against the target's bundled drafter (the previous default). The BetterBench rows: one binary, boots alternated A B B A. The 32K rows: this pack's cells measured 2026-11-25 (two boots each, both orders); the bundled drafter's are the same prompts, tokens and settings from the two preceding rounds' boots (not re-run against this binary). | cell | bundled drafter | this pack (iu8, depth 7, `prod:0.4:2`) | change | |---|---|---|---| | BetterBench `--quick` single stream, TP=2 (decode t/s median) | 141.5 / 136.4 | 153.7 / 160.1 | **+12.9 %** | | BetterBench `--quick` concurrency 8, TP=2 (aggregate t/s) | 291.1 / 294.9 | 313.6 / 315.3 | **+7.3 %** | | TTFT p50, single / conc-8 (ms) | 76 / 72, 141 / 145 | 81 / 84, 143 / 145 | +8.5 ms single, tied at conc-8 | | 32K-token prompt + 4,096 greedy tokens, code / prose, TP=2 (tok/s) | 51.4 / 36.0 | 91.1 / 64.4 | **+77 % / +79 %** | | the same at TP=1 (one card, 2 x 40,960 slots) | 37.5 / 28.3 | 63.7 / 46.9 | **+70 % / +66 %** | | rank-0 VRAM taken by the drafter, TP=2 8 x 40,960 | 8.56 GiB | 1.58 GiB | -6.98 GiB | Laws held at the default boot (TP=2): greedy ids 40 / 40 vs no drafter, every `max_tokens` cut (1..11), three seeds, stop strings, stream == non-stream, seeded twice; 72 / 72 concurrent requests equal to no drafter; needle 16 / 16 at concurrency 8; the 32K cells' ids sha256 equal the no-drafter run at TP=2 and TP=1. Drafts vs an f32 host oracle of the checkpoint: 97.4 % tokens equal at depth 7, 3.370 accepted tokens a round (oracle 3.367). Every layer attends only its last 2,048 rows, so the round costs the same at any context: that is where the long-prompt gain comes from. Other GPUs are not supported. ## License Apache-2.0, as the source checkpoint [`incoai/Inkling-2-Mini-DFlash2`](https://huggingface.co/incoai/Inkling-2-Mini-DFlash2): the bf16 records are its tensors byte for byte; the 8-bit records are derived from them by the script above.