Inkling 2 Mini INT4 PTQR

A multimodal Inkling 2 Mini checkpoint with W4A8 language weights and a PTQR INT8 vision encoder. It accepts text and images and generates text. The four-card MI100 recipe pairs it with the PTQR INT8 DSpark drafter.

Model architecture

The target has 24 decoder layers. Inkling runs the middle 12 layers three times with shared weights, giving 48 layer applications per token. The sparse feed-forward layers route each token to eight experts. The tested context limit is 262,144 tokens. Original model card and source checkpoint

What is PTQR?

Post-training quantization with rounding-dither retraining (PTQR) fits the weights and group scales against teacher outputs on calibration activations. Dither explores neighboring rounding choices during training. The exported codes and scales are the ones used at inference. The vision projections were fitted against the original BF16 vision teacher using 48 training images and 12 held-out images.

Quantization details

Component Deployed format
Quantized language projections and routed experts Packed 4-bit weights, INT8 activations, group size 128
Vision encoder 141 INT8 projection matrices, including the patch projection, with FP16 group scales
Vision embeddings, normalization parameters and biases FP16
Target and draft KV cache INT8 with 128-element scale groups
Checkpoint Four safetensors shards, 14.94 GB total, with tokenizer, chat template and image processor
Runtime quantization method inkling2_ptqr in the MI100 vLLM fork

Serving

Run these commands from an installed MI100 fork checkout containing scripts/serve_recipe_inkling2mini.sh. The tested vLLM revision is 4e51068a8d31f2fb71f07abda0ac558abea7a98e, with sibling AITER revision a4968c8ce7ebaf2526efa3a1faa08a7219e649e8. vLLM fork 路 AITER fork

hf download voodooquant/Inkling-2-Mini-INT4-PTQR --local-dir models/inkling-target
hf download voodooquant/Inkling-2-Mini-DSpark-INT8-PTQR --local-dir models/inkling-draft
MODEL_DIR="$PWD/models/inkling-target" DRAFT_MODEL_DIR="$PWD/models/inkling-draft" \
  scripts/serve_recipe_inkling2mini.sh start

The API model ID is inkling-2-mini. To serve the target alone, set SPEC=0 on the launch command.

Reproduction and license

The fork contains the language and vision trainers in scripts/ptqr_inkling2.py and scripts/ptqr_inkling2mini_vision.py. Measurements are recorded in docs/recipes/surface_experiments_ledger.jsonl. The original weights are by Thinking Machines Lab. This release distributes the PTQR-modified weights under Apache 2.0. Upstream model card 路 License

Downloads last month
36
Safetensors
Model size
27B params
Tensor type
F32
路
BF16
路
U8
路
F16
路
I8
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for voodooquant/Inkling-2-Mini-INT4-PTQR

Quantized
(349)
this model