strata-engine's picture
Inkling-2-Mini-DFlash2 for Strata: Q8 attention + SF4 feed-forward mix (strata-dflash2-q1), 551,600,700 bytes
04ecd36 verified
|
Raw History Blame Contribute Delete
2.5 kB
---
license: apache-2.0
base_model: incoai/Inkling-2-Mini-DFlash2
base_model_relation: quantized
tags:
- strata
- speculative-decoding
- dflash
- inkling-2-mini
---
# Inkling-2-Mini-DFlash2 for Strata
The DFlash 2 draft model of [incoai/Inkling-2-Mini-DFlash2](https://huggingface.co/incoai/Inkling-2-Mini-DFlash2) (Inco AI and z-lab, Apache-2.0), quantized for the
[Strata](https://github.com/Niko1221/Strata) engine. It is the only drafter Strata uses for Inkling 2 Mini. Only the Strata engine reads this file.
| | original | this file |
|---|---|---|
| file | `model.safetensors` | `Inkling-2-Mini-DFlash2-mix.safetensors` |
| size | 989,975,616 bytes | 551,600,700 bytes |
| SHA-256 | `217980ab00d116693fa5946df7bbfd967caf5fac1f529afd541fbd470ddb54ee` | `cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387` |
| large matrices | 16-bit | attention 8-bit (one scale per row), feed-forward 4-bit SF4 |
| format | safetensors | safetensors, `strata-dflash2-q1`, variant `mix` |
The 5 layers' q/o and gate/up/down matrices are quantized; fc, K/V and convolution projections, the selector with its two codebooks and the norms keep their values. Changes are listed in `NOTICE`.
## Measured (Strata 0.2.23 engine, Inkling-2-Mini-SQ-20, greedy, DFlash 2 against no drafter)
- Acceptance of the drafted tokens: within about 2 points of the original file on an RTX 5090 and an RTX 5060 Ti; exact-mode output identical to the original's on both cards (6 prompts).
- RTX 5090 (32 GB), end-to-end tokens/s, fast mode: 4 users +10.5%, 8 +22%, 16 +20%, 32 +8.6%; above 32 users the engine decodes without the drafter (64 users -1%).
- RTX 5060 Ti (16 GB), 1 user, decode tokens/s with / without the drafter: prose 82.9 / 83.8, json 159.3 / 83.8, code 241.5 / 83.9. 16 users +11%, 32 users +29%, 64 users +47%.
- Drafter load time 0.25 s; drafter weights 331 MiB (the original as BF16: 748 MiB). Download: 552 MB against 990 MB.
## Use
Strata's setup and update download it next to the model and check the SHA-256. By hand: save it as `dflash2.safetensors` in the model's folder; without it Inkling 2 Mini runs without a drafter.
`make_mix_from_original.py` (numpy only) rebuilds this file from the original byte for byte.
## Licence and credit
Weights: Inco AI and z-lab, Apache License 2.0 (`LICENSE`, `NOTICE`); this is a modified copy under the same licence, made on 2026-11-26. The DFlash 2 support in Strata that runs this drafter is based on the DFlash 2 port by **tjm8874**.