TokenButler predictor for Inkling-2-Mini on Hibana (2026-12-03)

A trained TokenButler predictor for Hibana's sparse decode of thinkingmachines/Inkling-2-Mini on one NVIDIA GB10 (DGX Spark). On a long context, each of the model's eight full-attention visits then reads the first 128 positions, the most recent 1,024 and, of those between, the ones this predictor ranks highest for each KV head.

Status. Experimental. Hibana's page on the model (docs/inkling.md, TokenButler) and its pull requests say what the engine currently does with this file and how that measures. The measurements below were taken on the first engine path that read it (plain one-request decode, a fixed budget of keys, a ranking held for an interval of steps) and are kept as the record of the predictor itself: accuracy holds only when the ranking is made at every step and the number of keys read grows with the context.

License. Apache License 2.0, as for thinkingmachines/Inkling-2-Mini, whose attention the predictor was trained on (LICENSE).

File

tokenbutler-s4w16.safetensors: 31,721,448 bytes, SHA-256 59fdeb2238566e1e08ed614429edf336e7bf71307ee03854fa6ecd65a76bec85, 24 BF16 tensors.

  • mlp.<producer>.up [512, 2304] and mlp.<producer>.down [1536, 512] for the producer visits 4, 8, 16, 20, 28, 32, 40 and 44: a query MLP per producer, read as LayerNorm (no weights) -> Linear -> SiLU -> Linear without biases, that predicts 16-value queries for the full-attention visits that follow it.
  • key.<visit> [8, 128, 16] for the full-attention visits 5, 11, 17, 23, 29, 35, 41 and 47: the 16-value projection of each KV head's keys. A position scores as the best of its KV head's three predicted queries against its projected key.

Use

An engine build with TokenButler for Inkling downloads this file at the revision it pins. To point it at another copy, or to change what it reads, set these before starting it (the values are examples):

export HIBANA_INKLING_TOKENBUTLER_WEIGHTS=/path/to/tokenbutler-s4w16.safetensors
export HIBANA_INKLING_TOKENBUTLER_FROM=65536      # context tokens from which decode reads a selection; 0: never
export HIBANA_INKLING_TOKENBUTLER_SHARE=0.25      # the share of a context's keys a KV head then reads

The selection applies to decode and to speculative verification, ranked anew at every forward. Prefill and the sliding-window visits use their existing attention. The engine refuses a file that holds anything but the tensors above.

How it was trained

  • Target: thinkingmachines/Inkling-2-Mini at the revision Hibana pins, c9d028302cd0f035fdf8e7e91f089a4ce94d2195 (the files were first fetched under the revision id 6e7c8248f75265bdd4fbab5273304243b5d8c2cb, which the Hub no longer serves).
  • Data: 904 prompts built like the evaluation's (RULER v2 at 8K to 131K tokens, needles, many-shot) from training splits and other seeds, disjoint from the evaluated items. A reference implementation (transformers 5.25.1 with a query-chunked attention, BF16) ran each prompt and then the model's own greedy answer, and recorded the queries, keys and hidden states of the eight full-attention visits.
  • Target: at sampled refresh positions, the attention each middle position receives over the next 16 decode steps, summed over its KV head's three query heads.
  • Loss: a listwise cross-entropy of the engine's own score against that target, plus a decaying regression of the predicted queries onto the true queries read in the key basis. The key projections start from the keys' principal directions.
  • Run: 7 epochs, 6,328 steps, 3,342 s on one B300. The engine's forward on this file equals the trainer's module (cosine 1.00000 at all eight visits).

Measurements on the first engine path

One Spark, that engine's fast profile, one request, no speculation, greedy, paired item by item with dense decode. Differences carry 95% bootstrap intervals over items. Speed is time per decode token against a paired dense run; an engine that decodes in draft-and-verify rounds spends a smaller part of its time in attention and gains less.

RULER v2 32K, 120 items, budget 4,096 (dense scores 87.2):

Steps between predictions Score Difference from dense Decode speed at 32,768 / 131,072 prompt tokens
1 82.7 and 86.6 (two runs) -4.5 (-10.7 to +1.6) and -0.5 (-6.0 to +4.9) 1.06x / 1.34x
4 75.3 -11.9 (-19.3 to -4.8) 1.09x / 1.43x
16 (engine default) 66.1 -21.1 (-29.1 to -13.0) 1.11x / 1.47x

Without a file the engine ranks with seeded noise, which scores 8.4 on the first 24 of these items (dense 83.0).

RULER v2 128K, 60 items of 103,601 to 137,205 prompt tokens, predicted every step (dense scores 75.4):

Budget Score Difference from dense Decode speed at 131,072 prompt tokens
4,096 68.3 -7.1 (-13.3 to -2.1) 1.34x
16,384 81.4 +6.0 (-2.5 to +15.2) 1.28x

Dense runs to the 4,096-token answer cap on 11 of the 60 items, and six of the seven items that score higher at 16,384 are among them, so most of the +6.0 is not better reading.

  • Fidelity with the dense answer's first 256 tokens fed in (reference implementation, KL from dense in nats). At 32K and a 4,096 budget: 0.0025 predicted every step and 0.0510 every 16 steps, with the same top token on 98.95% and 97.51% of 11,306 steps (48 items). At 128K predicted every step: 0.0164 / 0.0046 / 0.0030 at budgets of 4,096 / 8,192 / 16,384 (24 items).
  • Attention kept, offline. Replaying the engine's schedule on 137 held-out prompts at a 4,096 budget and the default interval, the selection keeps 73.4% of the dense model's attention on the middle positions (seeded noise 19.5%, a ranking by that attention itself 82.8%); predicted every step it keeps 79.1%.

Limits

  • Only RULER v2 at 32K and 128K has been scored end to end. The training prompts are of the same kinds as the evaluation's, and no other kind of task has been scored.
  • A 4,096 budget loses accuracy at 128K. About 13% of the prompt held accuracy at both lengths; below about 8K prompt tokens there is no speedup.
  • A sparse score on that path is one draw. Its ranking's top-k ran in a non-deterministic mode, and the two runs above differ by 4 points.
  • The file fits this checkpoint revision and Hibana's projection layout. It is not a TokenButler checkpoint for another model or runtime.

Provenance. The training pipeline, the evaluation scripts and this card were written with AI assistance (Claude Code). The numbers are computed by script from per-item results.

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 Alwahsh/Inkling-2-Mini-sharar-tokenbutler

Finetuned
(205)
this model