Run Inkling-2-Mini on one Tenstorrent Blackhole p150a.
This repository holds the official checkpoint converted to the layout the TT port loads (hf_sd/, 53 GB), together with the script and hashes to reproduce the conversion. The weights are Thinking Machines' Inkling-2-Mini, dequantized from NVFP4 and MXFP8 to BF16 by Transformers and split into one safetensors file per layer; nothing else is changed. The port itself, with its kernels, tests and server, is at github.com/StableFluffy/inkling-tt; a ready-to-run server image is ghcr.io/stablefluffy/inkling-tt:0.1.1.
| Decode, batch 1 | 18.2 ms/token (54.9 tokens/s); 15.8-16.1 ms/token on code and math with --mtp |
| Time to first token | 0.13 s short prompt, 3.7 s at 7.8k tokens |
| Context | 32,768 tokens |
| Agreement with HF (BF16, CPU) | 380/384 top-1, 384/384 top-5 |
| Precision | BF16 dense, attention and KV cache; BFP8_B routed experts |
Measured on a p150a with all 14 Tensix columns enabled and a 380 W board limit. Stock p150a cards (12 columns) are supported but untested. Details: benchmarks, hardware, precision.
hf download maywell/Inkling-2-Mini-TT-p150a --include 'hf_sd/*' 'convert/*' --local-dir .
hf download thinkingmachines/Inkling-2-Mini --revision b85c3cfa615fc413cc9af3379f491b963f3b586a \
--exclude '*.safetensors' --local-dir Inkling-2-Mini # tokenizer and chat template
(cd hf_sd && grep -v '^#' ../convert/SHA256SUMS.converted | sha256sum -c -)
hf_sd/vision.safetensors holds the unused vision tower and can be skipped. Device formats (BFP8_B experts, tiles) are packed when the model loads, so no TT tensor cache is distributed; the converted shards do not depend on the tt-metal version.
The converter loads the model in BF16 with Transformers on the CPU, which dequantizes the checkpoint's NVFP4 and MXFP8 tensors, and writes one safetensors file per layer. It needs about 60 GB of RAM and a few minutes, and produces 53 GB.
uv venv --python 3.12 cpu-venv
uv pip install --python cpu-venv/bin/python --index-url https://download.pytorch.org/whl/cpu torch==2.15.0
uv pip install --python cpu-venv/bin/python transformers==5.24.0 safetensors==0.8.0 huggingface_hub
REV=b85c3cfa615fc413cc9af3379f491b963f3b586a
cpu-venv/bin/hf download thinkingmachines/Inkling-2-Mini --revision $REV --local-dir Inkling-2-Mini
cpu-venv/bin/hf download maywell/Inkling-2-Mini-TT-p150a --include 'convert/*' --local-dir recipe
(cd Inkling-2-Mini && grep -v '^#' ../recipe/convert/SHA256SUMS.source | sha256sum -c -)
cpu-venv/bin/python recipe/convert/convert_checkpoint.py --src Inkling-2-Mini --out hf_sd --revision $REV
(cd hf_sd && grep -v '^#' ../recipe/convert/SHA256SUMS.converted | sha256sum -c -)
The converted hashes hold for the versions above. Other versions can produce different but still correct bytes; run the port's parity tests in that case.
docker run -d --name inkling --privileged \
--device /dev/tenstorrent -v /dev/hugepages-1G:/dev/hugepages-1G \
-e TT_VISIBLE_DEVICES=0 -p 127.0.0.1:8000:8000 \
-v "$PWD/hf_sd":/models/hf_sd:ro -v "$PWD/Inkling-2-Mini":/models/Inkling-2-Mini:ro \
-v "$PWD/cache":/cache \
ghcr.io/stablefluffy/inkling-tt:0.1.1
curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"messages": [{"role": "user", "content": "Hello"}], "max_tokens": 256}'
For greedy speculative decoding with the official DSpark drafter, also download mtp.safetensors (hf download thinkingmachines/Inkling-2-Mini mtp.safetensors --revision b85c3cfa615fc413cc9af3379f491b963f3b586a --local-dir Inkling-2-Mini) and append --mtp --lmax 8192 after the image name; it is lossless and helps code and math the most.
The first start compiles the kernels and takes about four minutes. The server speaks the OpenAI chat and completions API, returns the model's thinking as reasoning_content, and has no authentication. See serving.
One sequence at a time, text only (no vision tower), no logprobs or tool-call parsing. The limitations and safety notes of the base model apply.
The converted weights keep the base model's license. The converter, hash lists and this card are Apache-2.0. Inkling-2-Mini is by Thinking Machines Lab, under Apache-2.0 and their Acceptable Use Policy.
hf_sd/layer11.safetensors 2.1 GBhf_sd/layer17.safetensors 2.1 GBhf_sd/layer10.safetensors 2.1 GBhf_sd/layer12.safetensors 2.1 GBhf_sd/layer13.safetensors 2.1 GBhf_sd/layer14.safetensors 2.1 GBhf_sd/layer15.safetensors 2.1 GBhf_sd/layer16.safetensors 2.1 GBhf_sd/layer06.safetensors 2.1 GBhf_sd/layer07.safetensors 2.1 GBhf_sd/layer08.safetensors 2.1 GBhf_sd/layer09.safetensors 2.1 GBhf_sd/layer23.safetensors 2.1 GBhf_sd/layer05.safetensors 2.1 GBhf_sd/layer18.safetensors 2.1 GBhf_sd/layer19.safetensors 2.1 GBhf_sd/layer20.safetensors 2.1 GBhf_sd/layer21.safetensors 2.1 GBhf_sd/layer22.safetensors 2.1 GBhf_sd/layer01.safetensors 2.1 GBhf_sd/layer02.safetensors 2.1 GBhf_sd/layer03.safetensors 2.1 GBhf_sd/layer04.safetensors 2.1 GBhf_sd/layer00.safetensors 2.1 GBhf_sd/misc.safetensors 1.8 GBhf_sd/vision.safetensors 637 MB