Inkling-2-Mini NestQuant 1.75/4 bit

NestQuant encode of the routed experts of thinkingmachines/Inkling-2-Mini (26.4B total, 3.4B active, 24 layers, 128 experts, top-8; layers 6-17 run three times per token). Target: one 12 GB GPU with a 131,072-token context and an FP8 KV cache.

Each expert holds two nested levels in one encode:

Level Bits per weight Size, all 3,072 experts
L2 (base) 1.76 5.4 GB
L4 (base + residual) 4.13 (gate/up 4.04, down 4.35) 12.6 GB

At serve time every expert is resident at L2, and a set of hot experts per layer is upgraded to L4.

Memory plan for a 12 GB card at 131,072 tokens

Item GB
Experts at L2 5.39
Attention and output projection, FP8 (input embedding in host RAM) 0.93
Full-attention KV cache, FP8 (8 caches: 4 global layers, 2 of them looped x 3 passes) 2.15
Sliding-window KV cache 0.08
Routers, norms, working memory ~0.55
L4 residuals, 56 hot experts per layer (2.36 MB each) 3.17
Total ~12.3

The vision encoder and the MTP head are not on the GPU in this plan. A BF16 KV cache, or 262,144 tokens, leaves room for only about 17 hot experts per layer.

Contents

  • layers/L{0..23}/tp0.safetensors: the encoded experts (one shard, no tensor parallelism).
  • layers/L{L}/manifest.json: format, per-projection layout, rates and sha256 of the shard.
  • serving/predictor/: floating hot-set predictor (weights, inference module, training code). See its README.
  • COMPLETE: written last; lists every layer file with its sha256.

Only the routed experts are here. Take the attention, embedding, vision encoder and MTP weights from the original repo. Container format nestquant-v1-tp-safetensors: tensor keys E{e}.{proj}.{plane}, structure in the safetensors metadata tree. No serving kernel is published yet.

Calibration

  • Source weights: the native checkpoint (NVFP4 experts on layers 0-19, MXFP8 on 20-23).
  • Text: about 4M tokens of chat, code, reasoning and agent transcripts, in Inkling's chat template.
  • Images: 1,200 images (radiology, web screenshots, COCO, synthetic documents), 640 px, 256 image tokens each.
  • Each expert's error weighting is 75% text and 25% image.
  • Looped layers (6-17) are calibrated on the inputs of all three passes.

Quality

KLD against the native model (top-64 log-probs plus tail mass), teacher-forced on held-out data: 118,951 text tokens and 14,274 image-caption tokens.

Setting Text KLD Text KLD, trimmed Caption KLD Caption KLD, trimmed
All experts L2 0.110 0.075 0.134 0.120
Static hot 56 0.061 0.026 0.074 0.062
Floating hot 56 (12 GB plan) 0.047 0.016 0.032 0.024
All experts L4 0.036 0.009 0.023 0.017
  • "Static hot 56": the 56 most-routed experts per layer at L4.
  • "Floating hot 56": 56 experts per layer at L4, chosen per request every 16 tokens by serving/predictor/.
  • "Trimmed" leaves out tokens that change by more than 0.1 nats even when the evaluation runs with the native weights (2,162 text tokens and 169 caption tokens). These tokens carry most of the raw KLD in every row. With the native weights the evaluation scores 0.029 raw / 0.002 trimmed on text and 0.012 / 0.004 on captions.

Limits

  • The floating rows are approximate for the looped layers: each segment is first run with the static set to record routing, and the predictor picks the sets for the scored run from it.
  • The predictor is trained on calibration text, not on Inkling's own generations.
  • No serving integration is published yet.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for jarrelscy/Inkling-2-Mini-NestQuant-1.75-4bit

Finetuned
(169)
this model