Inkling-2-Mini DSpark INT8 PTQR

Use this drafter with the Inkling 2 Mini INT4 PTQR target. It is the PTQR-trained INT8 version of the stock DSpark weights shipped in the upstream model's mtp.safetensors. It consumes the target's hidden states and shares its vocabulary head. The serving method is dspark. Upstream source revision

What is PTQR?

Post-training quantization with rounding-dither retraining (PTQR) fits quantized weights and group scales under the activation quantization used at inference. Training used the stock BF16 draft teacher, target log probabilities and next-token labels from real target trajectories. The run used 32 training sequences, eight independent held-out sequences and 60 training steps. On the 56 held-out proposal positions, the exported draft matched the stock drafter's top choice at 55 positions. Both matched the target's top choice at 40.

Quantization details

Component Deployed format
DSpark decoder Three layers, seven proposals per round
Attention and MLP projections All 27 matrices use signed INT8 weights and dynamically quantized INT8 activations, group size 128
Weight scales FP16
Token embedding and recurrent Markov head BF16
Draft KV cache int8_block_g128
Weight file mtp.safetensors, 378,018,080 bytes
Training record PTQR metrics and training settings

Acceptance

These measurements used the paired W4A8 target, 12 concurrent streams, four MI100s over XGMI at 105 W per card, and 256 output tokens per stream. Each figure pools accepted proposals over all measured draft rounds in three real-text runs at temperature 1.0, top-p 0.95 and top-k 20. The target's own token is excluded from the numerator.

Prompt length PTQR INT8 accepted out of 7 Stock BF16 accepted out of 7
About 2k tokens 1.97 1.99
About 33k tokens, warmed shared prefix 2.34 2.28

Serving

Follow the two-checkpoint download and launch commands on the target model card. Point DRAFT_MODEL_DIR at the directory containing this repository's config.json and mtp.safetensors. The MI100 launcher selects DSpark with seven proposals and INT8 draft KV. API requests use the target model ID, inkling-2-mini.

Reproduction and license

The capture and training programs in the vLLM fork are scripts/calibrate_inkling2mini_dspark.py and scripts/ptqr_inkling2mini_dspark.py. The tested serving revision is 4e51068a8d31f2fb71f07abda0ac558abea7a98e. The original weights are by Thinking Machines Lab. This release distributes the PTQR-modified draft weights under Apache 2.0. vLLM fork ยท Original model card ยท License

Downloads last month
46
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for voodooquant/Inkling-2-Mini-DSpark-INT8-PTQR

Quantized
(349)
this model