Run this model with HF Jobs

Run lzty/Inkling-2-Mini-Basalt-Packs on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/lzty/Inkling-2-Mini-Basalt-Packs. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/lzty/Inkling-2-Mini-Basalt-Packs on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Inkling 2 Mini β€” Basalt packs

.basalt files for Basalt, built from Thinking Machines Lab's release (thinkingmachines/Inkling-2-Mini) with tools/convert/convert.py --checkpoint. Every file is self-contained β€” weights, vision encoder, tokenizer, chat template and a drafter β€” so one download is all an engine needs.

The first file is byte-for-byte the official pack from jesdga/Inkling-2-Mini-Basalt (same size, same SHA-256), kept here so every arm sits in one place; the rest are variants of it that I built and measured on one Radeon AI PRO R9700.

One file is different in kind: Inkling-2-Mini-UD-Q4_K_XL.basalt is built from unsloth's GGUF with convert.py --gguf, not from the checkpoint. It exists because RAD loads GGUFs and basalt loads packs, and a same-weights comparison needs both engines running the same numbers.

file size size (B) what it is
Inkling-2-Mini-NVFP4-MX8.basalt 19.6 GB 19,606,374,189 the official pack: release bits, DSpark drafter
Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt 19.6 GB 19,591,697,818 the same experts, drafter replaced with DFlash 2 (incoai/Inkling-2-Mini-DFlash2)
Inkling-2-Mini-NVFP4-MX8-LosslessTrunk.basalt 20.2 GB 20,197,775,155 the same experts, trunk (attention / gate / output / rel / sink projections) kept BF16, bit-identical to the SQ-20 v2 trunk; DFlash 2 drafter
Inkling-2-Mini-NVFP4-DQ8.basalt 19.7 GB 19,734,300,551 layers 20-23 converted from MXFP8 to Q8_0 (the layout some engines were built around), DSpark drafter
Inkling-2-Mini-NVFP4.basalt 17.7 GB 17,696,702,353 all 24 layers NVFP4, the smallest of the set, DSpark drafter
Inkling-2-Mini-UD-Q4_K_XL.basalt 19.7 GB 19,723,856,442 from unsloth's UD-Q4_K_XL GGUF β€” the file RAD serves β€” 20 NVFP4 + 4 Q8_0 expert layers as stored there, DFlash 2 embedded

SHA-256 (also in SHA256SUMS):

28ec70723feaa037942a02f55b9d5e898276f3e62a3b1fa083745f932a041b99  Inkling-2-Mini-NVFP4-MX8.basalt
db4ac08ee5595502d0059041bd4050d565f1994af32ab6c3db3813890818d318  Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt
7e12e86f24d3e56eed7d4516f5e452ebff8fcb29d2a681bc1ee6c3226ad9f82b  Inkling-2-Mini-NVFP4-MX8-LosslessTrunk.basalt
f7b4e5f8e17681c4735a7dfc51ffd8e805c44184fad4e1778b13187d79dc3787  Inkling-2-Mini-NVFP4-DQ8.basalt
45ca652a59141c7a3651bf3b91eba7f99870ac316fe995cc3cfee579efea4c8b  Inkling-2-Mini-NVFP4.basalt
8b559bc287b6f63a5cff6c82eb680ddaf2d587d6590073f9d78d5317f559cc8b  Inkling-2-Mini-UD-Q4_K_XL.basalt

What is in each file

Read from the pack's own meta tensor records and experts.layout, not from a description: type ids are F32 = 0, Q8_0 = 8, BF16 = 30, NVFP4 = 40, MXFP8 = 46.

part …NVFP4-MX8.basalt …NVFP4-MX8-DFlash2.basalt …NVFP4-MX8-LosslessTrunk.basalt …NVFP4-DQ8.basalt …NVFP4.basalt
size (B) 19,606,374,189 19,591,697,818 20,197,775,155 19,734,300,551 17,696,702,353
Routed experts, layers 0-19 (128 per layer, top 8) NVFP4 codes and E4M3 scales, bit for bit from the release same same same same
Routed experts, layers 20-23 the release's MXFP8 values, as stored same same MXFP8 values as Q8_0 NVFP4, like layers 0-19
Attention, gate, short-convolution and output projections Q8_0 (short convolutions F32) same BF16, short convolutions F32 same as the first column same as the first column
Output head BF16 (the engine rounds it to Q8_0 at load) same same same same
Token embedding BF16 same same same same
Norms, router, biases, loop's small tensors F32 (loop controllers BF16) same same, plus attn_rel / attn_sink BF16 with the trunk same as the first column same as the first column
Vision encoder and projector vision/mmproj GGUF: BF16 tower, F32 norms, inkling2v projector same same same same
Drafter DSpark β€” BF16 weights, F32 norms DFlash 2 β€” Q8_0 weights, 3 BF16 selector tensors, F32 norms, 5 layers DFlash 2, as the previous column DSpark DSpark

Inkling-2-Mini-UD-Q4_K_XL.basalt (the GGUF-converted one)

Nothing in this file was requantized: the expert blobs are byte-identical to the source GGUF (all 3,072 of them, verified against Inkling-2-Mini-UD-Q4_K_XL.gguf), so it is the file RAD loads, in a container Basalt reads.

  • experts: layers 0-19 NVFP4 (type 40) and layers 20-23 Q8_0 (type 8) β€” "unsloth's UD" is not uniform
  • embedding and head widened to BF16 (the engine requires token_embd.weight as BF16) with the vocabulary sliced from the padded 201,024 rows to the model's 200,058
  • attn_rel_bias transposed from [16, 1024] to [1024, 16] β€” the GGUF stores the relative-position bias the other way round, and packing it verbatim produces fluent-looking token salad
  • DFlash 2 embedded: the 81 dflash2.* tensors plus the 16 inkling2.dflash2.* keys the engine reads
  • carries three runtime keys unsloth's GGUF omits: inkling2.expert_gate_softcap 4.0, inkling2.expert_up_softcap 25.0, inkling2.image_token_id 200054

Those three keys are not optional. With the softcaps missing the engine runs the uncapped MoE path: the same pack prefills a 15.4K prompt at 6,727 tok/s instead of 8,849, and the answers are numerically wrong, because the caps belong to the model's forward pass. It still serves and answers fluently, so the only way to catch it is a key-set diff against a pack made from the checkpoint.

Which one to use

  • Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt β€” the default here. DFlash 2 drafts longer windows on prose and repetition: counting +8.9 %, prose decode +11 %, long-context decode +3 %, but code βˆ’25 % (155.5 vs 207.1 tok/s, acceptance 61 % vs 67 %, because it drafts shorter windows on code).
  • Inkling-2-Mini-NVFP4-MX8.basalt β€” best on code with DSpark, and the reference file: it is what everyone else compares against.
  • Inkling-2-Mini-NVFP4-MX8-LosslessTrunk.basalt β€” for work where the trunk's exact values matter: the 176 Q8_0 projection tensors are BF16, bit-identical to Inkling-2-Mini-SQv2-20.strata's trunk (9 tensors hashed). Cost is decode: the trunk read per token goes from 1.018 GB to 1.916 GB, which is 80.7 vs 99.1 tok/s without a drafter and 122.6 vs 151.7 with DFlash 2. Prefill is unchanged.
  • Inkling-2-Mini-NVFP4-DQ8.basalt β€” for engines or docs that expect layers 20-23 as Q8_0. Same quality story as the release, slightly larger file.
  • Inkling-2-Mini-NVFP4.basalt β€” the smallest and the lightest on VRAM; all experts NVFP4.
  • Inkling-2-Mini-UD-Q4_K_XL.basalt β€” for comparing against an engine that serves the unsloth GGUF (RAD, llama.cpp tooling), or when you want exactly the GGUF's numbers in a pack. Same experts as RAD's file, so it is the fair side of a cross-engine table.

Run

hf download lzty/Inkling-2-Mini-Basalt-Packs Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt --local-dir models

bin/basalt serve models/Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt \
    --max-context 262144 --kv fp8 --vision dynamic --api-key-file ~/.config/basalt-key

The lossless-trunk pack carries a BF16 trunk. An engine with the BF16-trunk change recognises it from the pack's own tensor types, so there is no switch to set:

bin/basalt serve models/Inkling-2-Mini-NVFP4-MX8-LosslessTrunk.basalt --max-context 262144

BASALT_TRUNK_BF16=2 runs the same pack as the control arm (Q8_0 trunk only, no BF16 decode copy); =0 refuses it. A stock build without the change stops with blk.0.attn_q.weight is not Q8_0 of the expected rows β€” see the compatibility table below.

Engine compatibility

file what the engine must have
Inkling-2-Mini-NVFP4-MX8.basalt Basalt 0.5.6 or newer, as released
Inkling-2-Mini-NVFP4-MX8-DFlash2.basalt same (dflash2.* tensors were added upstream in #736)
Inkling-2-Mini-NVFP4-DQ8.basalt same
Inkling-2-Mini-NVFP4.basalt same
Inkling-2-Mini-NVFP4-MX8-LosslessTrunk.basalt a build with the BF16-trunk change β€” jesdga95/basalt#1012 loads it and decodes from the BF16 rows on both backends (the Q8_0 copy stays for prefill and the output projection). Before that PR, a stock build stops with blk.0.attn_q.weight is not Q8_0 of the expected rows
Inkling-2-Mini-UD-Q4_K_XL.basalt a build whose serve/models dialect table knows inkling2, and whose loader accepts the 200,058-row vocabulary (the pack records what it holds, so a build that reads packs generally will read this one)

On an AMD card every file needs the ROCm/HIP fork rather than the CUDA build, as does the official pack.

Measured here

One Radeon AI PRO R9700 (gfx1201, 32 GB), Basalt 0.5.7 HIP, 131,072-token context, fp8 KV, one request, engine-reported tokens/s:

probe …MX8.basalt (DSpark) …MX8-DFlash2.basalt
counting 319.4 347.8
code 207.1 155.5
JSON 229.2 207.9
decode at 14.65K 156.2 161.3
decode at 59.5K 145.4 149.8
prefill at 14.65K 8,020 8,078
prefill at 59.5K 6,508 6,555

At 262,144 tokens the KV pool is 10.1 GiB with every expert resident and about 10 GiB of VRAM still free; prefill reads ~6,800 tok/s at 16K and decode stays above 100 tok/s out to 171K of context.

Inkling-2-Mini-UD-Q4_K_XL.basalt, 262,144-token context, fp8 KV, one seat, greedy, thinking off, DFlash 2 on, 320 generated tokens: prefill 8,849 tok/s on a 15,398-token prompt and 7,295 on 53,437; decode 151.0 from a 517-token prefix and 128.4 from 53,437 (170 of 273 drafts accepted). Same prompt shape, same box, RAD 0.34.0 on the source GGUF: 4,146 / 3,641 prefill and 120.1 / 106.5 decode.

Decode is mostly draft acceptance, not the engine: the same pack reaches 350-397 tok/s on counting and JSON (98 % acceptance) and 132-145 tok/s on original prose (45-61 %).

Converting your own GGUF

tools/convert/convert.py --gguf your.gguf --sections-from reference.basalt --out your.basalt --compat-bf16 reproduces this file. Five things beyond the flags are needed, all of them silent when wrong:

  1. rename inkling2_loop.* metadata keys and general.architecture to inkling2 (otherwise: no dialect, then missing or zero inkling2.block_count);
  2. serve token_embd.weight and output.weight as BF16, sliced to the unpadded vocabulary;
  3. transpose attn_rel_bias to [1024, 16];
  4. copy the dflash2.* tensors and the inkling2.dflash2.* keys from a pack that has a drafter, or the pack serves with drafting silently off;
  5. carry inkling2.expert_gate_softcap, inkling2.expert_up_softcap and inkling2.image_token_id β€” a current convert.py does this from --sections-from and prints carried N runtime key(s).

Check any pack's meta.gguf_kv for expert_gate_softcap 4.0 and expert_up_softcap 25.0 before trusting its speed or its answers.

Sources and licence

Weights: thinkingmachines/Inkling-2-Mini, Apache-2.0. The GGUF-converted pack starts from unsloth's Inkling-2-Mini-UD-Q4_K_XL.gguf. Base drafter: DSpark from the release; DFlash 2 from incoai/Inkling-2-Mini-DFlash2. Engine: Basalt (MIT) β€” the HIP fork that built and served every pack here is losingle/basalt β€” a fork of Strata. The comparison numbers above were taken with RAD v0.34.0 on the same GGUF.

These are unofficial repacks, quantized and modified forms of the original weights, not a Thinking Machines Lab release. The base model's Apache-2.0 licence applies.

Downloads last month
3,380
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for lzty/Inkling-2-Mini-Basalt-Packs

Finetuned
(195)
this model