How to use from the
Use from the
Basalt library
# No code snippets available yet for this library.

# To use this model, check the repository files and the library's documentation.

# Want to help? PRs adding snippets are welcome at:
# https://github.com/huggingface/huggingface.js

Inkling 2 Mini (BF16 Attention) for Basalt

Self-contained .basalt model pack built from Thinking Machines Lab's official thinkingmachines/Inkling-2-Mini release for Basalt on NVIDIA Blackwell (sm_120) GPUs.

This variant keeps all nine text attention projection families in source BF16 (--inkling2-bf16-attn) instead of rounding them to Q8_0, while keeping the official release's native NVFP4 (layers 0–19) and MXFP8 (layers 20–23) routed experts, vision encoder, tokenizer, chat template, and bundled 3-layer DSpark drafter intact.

Engine compatibility note: Because this pack stores text attention projections in source BF16 rather than Q8_0, it requires a Basalt build with BF16-ATTN (bf16_sm120) support. Stock upstream jesdga95/basalt currently expects Q8_0 attention weights; a public fork / upstream PR with BF16-ATTN support will be linked here once published. For stock upstream Basalt, use jesdga/Inkling-2-Mini-Basalt.

Files

File Size Experts (L0–19 / L20–23) Text Attention Mean KLD, Top-1 (100 chunks)
Inkling-2-Mini-NVFP4-MX8-BF16-ATTN.basalt 18.82 GiB (20,210,354,301 B) Native NVFP4 / native MXFP8 (bit-for-bit) Source BF16 0.002475, 97.875%
SHA256SUMS — Checksum manifest — —
LICENSE — Apache License 2.0 (upstream model license) — —

SHA-256: 7c17a381bcf4058044be5c001f21c9f00a3b103e2dab73427711cf6acb71d17e

What Is in the File

All routed experts are copied bit-for-bit from Thinking Machines Lab's native quantization with zero re-quantization; all text attention projections stay in source BF16 (+578 MiB on disk vs. NVFP4-MX8, 1.66 GiB vs. 1.10 GiB dense weights on GPU).

Component Stored Format Source Handling
Routed experts, layers 0–19 (128/layer, top-8) NVFP4 (E2M1 + E4M3/16 + FP32 scale) Bit-for-bit from official checkpoint
Routed experts, layers 20–23 (128/layer, top-8) MXFP8 (E4M3 + UE8M0/32, type 46) Bit-for-bit from official checkpoint
Text attention projections (w.q, w.k, w.v, w.rel, w.gate, w.sink, w.k_conv_proj, w.v_conv_proj, w.out) BF16 Source BF16 as stored (unquantized)
Token embedding & output head BF16 Source BF16 as stored (padded rows past vocab dropped; head rounds to Q8_0 on load)
Norms, attention-residual queries, router, biases, conv taps, relative bias tables, clip scales F32 Exact as stored
Loop controllers (core layers 6–17, 3 passes) BF16 Source BF16 as stored
Vision encoder & projector (vision/mmproj) BF16 / F32 Whole (--vision dynamic)
Bundled DSpark drafter (dspark.*) BF16 / F32 Whole (3 layers + Markov head)

Quality

Matched 100-chunk WikiText-2 evaluation (25,500 scored rows, verify width 1, RTX 5090 @ 600 W, --max-context 262144 --kv fp16, all 3,072 experts on GPU) against the official release with its routed experts dequantized to BF16 (base PPL 7.06334).

Reference note: No native BF16 checkpoint exists for Inkling 2 Mini — the official release trains and ships routed experts in NVFP4/MXFP8. KLD values below measure fidelity to the dequantized official checkpoint and are not comparable to true-BF16 model KLDs.

Pack Mean KLD Median KLD p99 KLD Max KLD Top-1 Agreement PPL
NVFP4-MX8 (Q8_0 attention control) 0.003046 0.001199 0.02891 0.8415 97.663% 7.06771
NVFP4-MX8-BF16-ATTN (this pack) 0.002475 (-18.8%) 0.000971 0.02240 (-22.5%) 0.3539 (-58.0%) 97.875% (+0.212 pt) 7.07025

Speed

Measured on a single NVIDIA RTX 5090 (600 W) with all 3,072 experts resident on GPU, basalt-bench --seed 42 -r 2 --spec 16 (16-row single-pass verify, hybrid DSpark + SuffixDrafter, single-graph DSpark capture):

Pack & Flags pp16384 (tok/s) tg conv (tok/s) tg struct (tok/s) tg prose (tok/s)
BF16-ATTN (--kv fp16 --draft-stop-prob 0.15) 20,726 ± 65 310 ± 4 (50.0% acc) 772 ± 11 (89.5% acc) 264 ± 1 (37.8% acc)
BF16-ATTN (--kv fp16 --draft-stop-prob 0) 20,737 ± 65 308 ± 2 (51.0% acc) 767 ± 2 (89.5% acc) 264 ± 0 (37.3% acc)
BF16-ATTN (--kv int8) 20,686 ± 61 323 ± 6 (62.1% acc) 699 ± 4 (93.4% acc) 274 ± 0 (44.6% acc)
Reference: NVFP4-MX8 (--kv int8, Q8_0 attn) 22,659 ± 48 401 ± 8 (65.7% acc) 779 ± 22 (91.3% acc) 347 ± 3 (51.2% acc)

Download, Verify, and Run

hf download harshav/Inkling-2-Mini-Basalt \
  Inkling-2-Mini-NVFP4-MX8-BF16-ATTN.basalt SHA256SUMS \
  --local-dir models

(cd models && sha256sum -c SHA256SUMS)

Serve with a BF16-ATTN-enabled Basalt build:

bin/basalt serve models/Inkling-2-Mini-NVFP4-MX8-BF16-ATTN.basalt \
  --gpu 0 --max-context 262144 --kv fp16 --spec 16 --parallel 1 --vision dynamic

Reproducing This Pack

Built directly from the official checkpoint with zero intermediate weights:

python tools/convert/convert.py \
  --checkpoint /path/to/thinkingmachines/Inkling-2-Mini \
  --out Inkling-2-Mini-NVFP4-MX8-BF16-ATTN.basalt \
  --inkling2-bf16-attn

Sources and Attribution

License

The base model weights are licensed under Apache License 2.0 (full text included in LICENSE). This repository distributes a repacked derivative (--inkling2-bf16-attn .basalt container keeping native NVFP4/MXFP8 experts and source BF16 attention projections). This is not an official Thinking Machines Lab release.

Downloads last month
30
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for harshav/Inkling-2-Mini-Basalt

Quantized
(349)
this model