Inkling 2 Mini Routing Oracle (I2O2)
Two small INT8 predictors used by the Betelgeuse v0.8.0 native Inkling 2 Mini runtime to prefetch nonresident MoE experts during decode. They are not model weights. They do not replace, modify or quantise the target checkpoint, and they do not change router decisions or generated tokens. They only move expert weights into the GPU cache earlier, inside already idle PCIe windows.
The predictors were trained on outputs of thinkingmachines/Inkling-2-Mini
(hidden-state taps, router logits and routing IDs) and are derived artifacts of
that Apache-2.0 model. The upstream model card
and Model Acceptable Use Policy
apply to any use of these artifacts.
Files and checksums
| File | Bytes | SHA-256 |
|---|---|---|
best_coda_tap01_i8.bin |
5,532,704 | 6216a46913f684fbeafe39eb8571753e624a9031915c13207c102b0010ae58c7 |
best_pre_tap6_i8.bin |
3,959,840 | 14852cc61cb3aa434635415278f75337c87a143c25a114c15b463bf40349def9 |
LICENSE-APACHE-2.0.txt |
11,358 | cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 |
The INT8 matrix payloads are 5.21875 + 3.71875 = 8.9375 MiB ("8.94 MiB
pair"); the on-disk files additionally contain a 32-byte header and float
scale/bias tables, so the two files total 9,492,544 bytes. Verify with
sha256sum -c SHA256SUMS after download.
Compatibility
Both files use the I2O2 binary format, magic 0x324f3249, version 1:
| Field | Coda tap0+1 | Prelude tap6 |
|---|---|---|
d_in |
6912 | 3840 |
t_dim |
512 | 512 |
lh |
128 | 128 |
depth |
2 | 2 |
nl |
6 | 6 |
use_gb |
1 | 1 |
They are read by tools/inkling2/ink2_oracle.cpp in Betelgeuse v0.8.0 and
later. The loader checks magic, version and shape ranges; no recompilation is
needed to replace either file. INK2_ORACLE_CODA_TAP selects the coda tap
index (default 1, auto-detected as 3 when tap03 appears in the filename).
The prelude variant is selected by shape: this file has d_in=3840 and is the
no-next-token-embedding tap6 head. The separate tap6emb head has
d_in=6144 and is not part of this release pair.
The predictors affect only expert residency. Routing, arithmetic, sampling, KV precision and model weights are unchanged.
Download and use
hf download Betelgeuse-AI/Inkling-2-Mini-Routing-Oracle \
best_coda_tap01_i8.bin best_pre_tap6_i8.bin \
--local-dir ./inkling2-oracle
cd ./inkling2-oracle && sha256sum -c SHA256SUMS
Enable them in Betelgeuse v0.8.0 without rebuilding:
INK2_ORACLE=1 \
INK2_ORACLE_CODA="$PWD/inkling2-oracle/best_coda_tap01_i8.bin" \
INK2_ORACLE_PRE="$PWD/inkling2-oracle/best_pre_tap6_i8.bin" \
build/bin/bel-server -m <checkpoint-dir> -c 16896 -t 5 \
--host 127.0.0.1 --port 8080 --no-webui \
--cache-type-k q8_0 --cache-type-v q4_0 -fa on
INK2_ORACLE=0 (the default) disables the conveyor. Files are loaded at
startup; swapping them and restarting the process needs no build step. The
conveyor requires the native Inkling engine (LLAMA_BUILD_INKLING2_ENGINE=ON)
and an x86-64 CPU with AVX-VNNI, validated here on an Intel Core i5-12400 with
five engine threads.
Training methodology
Trajectories were collected from real bel-server greedy decode runs on the
original checkpoint: FP16 hidden states at tap0 (end of layer 5) and tap1
(first recurrent pass), router logits/probabilities, emitted routing IDs and
nonresident masks. The final training set contains 250,823 decode tokens from
697 prompts; validation used held-out request IDs and a sealed test of 8,176
tokens from 16 unseen prompts. Labels are binary top-8 nonresident expert
membership, reconstructed from sigmoid(router_logit) + gate.bias and checked
against emitted IDs (318,725/318,816 = 99.9715% agreement).
The model is a shared RMSNorm residual trunk (depth 2, width 512), per-layer
affine modulation, 128-wide skip heads, a gate-bias residual and a routing EMA.
Training used AdamW with soft router distillation (weight 1.0), byte-weighted
top-8 BCE (0.7), hard-negative pairwise ranking (0.6), MXFP8 byte weighting
(1.75x negatives, 1.35x positives), deadline weighting, 0.08-0.10 input
dropout, and best-validation checkpoint selection over 36-44 epochs. Weights
were exported as exact symmetric per-row INT8 with float scale/bias tables.
Reproducible harnesses are in tools/inkling2/benchmarks/learned-routing-oracle/
in the Betelgeuse repository.
Results
Held-out sealed test (unseen prompts, 8,176 tokens): Top-8 recall 72.32% for coda tap0+1 and 64.42% for prelude tap6. In an equal-VRAM cache replay the pair removed 47.2-47.4% of exposed PCIe stall time.
Live bel-server measurements on RTX 3060 12 GB / i5-12400 / 16 GB DDR4,
512 generated tokens, greedy:
| Configuration | Median | Peak |
|---|---|---|
| Oracle disabled | 45.15 tok/s | 47.01 tok/s |
| Coda tap0+1 only | 47.64 tok/s | 48.74 tok/s |
| Prelude tap6 only | 47.08 tok/s | 48.39 tok/s |
| Combined, default threshold 0.22 | 50.31 tok/s | 50.74 tok/s |
Held-out and sealed runtime suites reported 50.33 and 50.37 tok/s median with
6/6 and 16/16 identical greedy completions. Numerical parity checks found
max_abs_diff = 0.00000000 across all 200,058 vocabulary logits at a sampled
decode position. Fresh v0.8.0 release measurements through bel-server gave
48.42 tok/s median and 49.99 tok/s peak on five real prompts, versus 43.99 and
46.25 tok/s with the oracle disabled; all six matched outputs had identical
SHA-256 hashes.
Scope and limitations
- Accuracy depends on workload, prompt distribution and host memory bandwidth.
- The predictors are trained for the specific Inkling 2 Mini router and layer layout in this checkpoint; they are not portable to other models.
- They are an optimisation aid, not a model of task correctness. Generated text must still be validated by the caller.
- No private training trajectories, prompts, raw routing traces, target-model weights or credentials are included in this repository.
Licence and attribution
Licensed under Apache-2.0; see LICENSE-APACHE-2.0.txt. These are derived
artifacts of thinkingmachines/Inkling-2-Mini, Copyright 2026 Thinking
Machines Lab, Inc., released under Apache-2.0. Redistribution terms were
checked against the upstream model card and the
Model Acceptable Use Policy
before publication: the model card declares Apache-2.0 with open-weight
redistribution and fine-tuning explicitly supported, and the AUP governs use
of model materials without prohibiting redistribution of derived artifacts.
The AUP still applies to any use of these files. Betelgeuse engine code is MIT
licensed and retains llama.cpp and Strata notices in the source repository;
those notices are not replaced by this model card. Betelgeuse is an independent
project and is not endorsed by Thinking Machines Lab or the llama.cpp authors.