thinkingmachines/Inkling-2-Miniβ SM120 Multimodal Quantized Checkpoint & Local OpenAI/Anthropic Server (v1.3.0, Windows 11 & Linuxcp313)- Universal Runtime (
wv_universal_runtime v1.5.2) β Install & Serve - Verified Quality & Blackwell Benchmark Summary (
9.43 GiB/10.12 GBOn-Disk w/ BF16 Vision) - Checkpoint Files
- 3-Command Windows 11 PowerShell Setup (
RTX 5060 Ti/ Blackwell, Python 3.13) - Everyday Use: Local Multimodal OpenAI / Anthropic Server (
qfn-inkling2-serve) - Release Notes
- Running
RTX 5060 Ti(16 GB&8 GB) Benchmarks & CLI Vision
- Universal Runtime (
thinkingmachines/Inkling-2-Mini β SM120 Multimodal Quantized Checkpoint & Local OpenAI/Anthropic Server (v1.3.0, Windows 11 & Linux cp313)
Native Blackwell (sm_120 + sm_120a) CUDA inference engine, Multimodal Vision (image + text -> text) runtime, and local OpenAI/Anthropic-compatible server (qfn_inkling2_sm120==1.3.0) for thinkingmachines/Inkling-2-Mini (Apache-2.0), supporting 16 GB full-VRAM execution (32Kβ128K context) and automatic 8 GB CPU-GPU streaming tiering (<= 6.80 GiB budget) with built-in speculative decoding on Python 3.13 (cp313).
Universal Runtime (wv_universal_runtime v1.5.2) β Install & Serve
All WV6 models share a single universal runtime wheel (sm_80βsm_120a, Linux + Windows) hosted at Grawnch/wv-runtime-binaries:
pip install --no-deps https://huggingface.co/Grawnch/wv-runtime-binaries/resolve/main/wheels/wv_runtime_installer-1.5.2-py3-none-any.whl
python -m wv_runtime.cli install
python -m wv_runtime.serve --model Grawnch/Inkling-2-Mini-WV-SM120 --max-seq 8192
Verified Blackwell (RTX PRO 6000, sm_120a) v1.5.1 Throughput
| Metric | Context / Batch | Measured (v1.5.1) |
|---|---|---|
Plain M=1 Decode |
B=1 |
205.17 tok/s |
| Speculative Decode | B=1 |
code: 275.18, math: 340.03, json: 287.52, prose: 294.81, code_cont_512: 646.90, code_cont_2048: 550.11 tok/s |
| Batched Decode | B=4 / B=8 / B=16 (2K ctx) |
682.9 / 1150.4 / 1143.3 tok/s |
Prefill (S=512) |
512 tokens |
8268.2 tok/s (61.92 ms) |
Prefill (S=2048) |
2,048 tokens |
11868.3 tok/s (172.56 ms) |
Prefill (S=8192) |
8,192 tokens |
12411.1 tok/s (660.06 ms) |
Prefill (S=32768) |
32,768 tokens |
11304.3 tok/s (2898.73 ms) |
Verified Quality & Blackwell Benchmark Summary (9.43 GiB / 10.12 GB On-Disk w/ BF16 Vision)
- Blind Held-Out Validation Quality (
16,376unseen tokens):- KLD vs FP/Reference Teacher:
0.068819(92.422%Top-1 agreement) - Perplexity (
All_Val): Teacher5.30031β Quantized5.39794(C4:10.98 β 11.52,Math:4.69 β 4.89,Code:2.116 β 2.123,Chat:7.24 β 7.10)
- KLD vs FP/Reference Teacher:
100%Bit-Identical Profile, Vision & Speculative Parity:16 GB(all_vram) vs8 GB(8gb_tiered):0.0max_abs_diffacross all408tokens (100%exact greedy token match acrossM=1, speculative decode, and16 GBvs8 GB)- Unquantized
BF16Vision Tower (vision_bf16.safetensors,636.5 MB): Exact0.0-ULPparity between GPU-resident (16 GB) and< 60 MiBlayer-streamed (8 GB/128K16 GB) execution.
- Measured Throughput:
RTX 5060 Ti 16 GB(all_vram,b_max=1,max_seq=131072):101.85 tok/s@128Kallocated (13.65 GiBpeak VRAM,temp=1.0,top_p=0.95;~115β130+ tok/s@temp=0.6)NVIDIA RTX PRO 6000 Blackwell(all_vram):B=1baseline145.96 tok/sgreedy | SpeculativeB=1232.91 tok/s3-prompt average /264.78 tok/sgeneral sampled (temp=0.6,top_p=0.95) |B=32continuous batching1,603.3 tok/s- 8 GB Mode (
8gb_tiered,<= 6.80 GiBenforced cap):6.55 GiBpeak VRAM | Speculative123.05 tok/s(+ live< 60 MiBlayer-streamed vision) - HTTP Server (
qfn-inkling2-serve,v1.3.0):273.8+ tok/s(Chat JSONspeculative) |4-stream concurrent SSE wall time2.89 s(256tokens Γ4streams) | verified live multimodal vision (image_url, Anthropicimage, Responsesinput_image) in both16 GBand8 GBmodes.
1M (1,048,576-Token) Needle-in-a-Haystack Recall
Tested at full 1,048,576-token context (config.json model_max_length: 1,048,576 with attention log-scaling n_floor=8192, alpha=0.1) on NVIDIA A100-SXM4-80GB (sm_80) using wv_runtime v1.3.1 (inkling2-tc-prefill, greedy MTP-8), planting 3 passkey needles across a 64-template varied log haystack at 10% (pos 104,870), 50% (pos 524,267), and 90% (pos 943,664):
| Global KV Mode | Recall (1M Context) |
VRAM Used | 1M Prefill (A100) |
1M Decode (MTP-8) |
Mean tau |
|---|---|---|---|---|---|
bf16 |
3/3 (start / mid / end) |
48.41 GiB |
994.20 s (1,054.7 tok/s) |
14.89 tok/s |
3.803 |
q8_global |
3/3 (start / mid / end) |
30.97 GiB (fits 32 GB GPUs) |
1,008.15 s (1,040.1 tok/s) |
13.20 tok/s |
3.683 |
(Both KV modes produced identical 233-token greedy outputs and recalled all 3 keys verbatim.)
Checkpoint Files
config.json,processor_config.json,tokenizer.json,tokenizer_config.json,special_tokens_map.json,chat_template.jinja,sm120_manifest.json- Model weight shards (
10.12 GBtotal):embed_head_global.safetensors,layers_00_05.safetensors,layers_06_11.safetensors,layers_12_17.safetensors,layers_18_23.safetensors,mtp_wv63.safetensors, andvision_bf16.safetensors(BF16native vision encoder + projector) - Prebuilt Python 3.13 SASS-only wheels (
wheels/):win_amd64andlinux_x86_64(v1.3.0) - Readable non-kernel Python runtime, vision & server source (
src/qfn_inkling2_sm120/):__init__.py,cli.py,engine.py,protocol_ext.py,serve.py,vision.py(exact match to the Python layer packaged inv1.3.0wheels)
3-Command Windows 11 PowerShell Setup (RTX 5060 Ti / Blackwell, Python 3.13)
Create an empty folder (e.g., mkdir C:\inkling2 ; cd C:\inkling2), then run:
# 1. Create a clean Python 3.13 venv and install CUDA 13.0 PyTorch + HF/tokenizer/image deps
uv venv --python 3.13 .venv-inkling2 ; .\.venv-inkling2\Scripts\Activate.ps1
uv pip install torch --index-url https://download.pytorch.org/whl/cu130
uv pip install safetensors transformers huggingface_hub tiktoken pillow
# 2. Download the quantized multimodal checkpoint + prebuilt SASS-only wheels (Windows & Linux)
hf download Grawnch/Inkling-2-Mini-WV-SM120 --local-dir .\Inkling-2-Mini-WV-SM120
# 3. Install the native Windows cp313-win_amd64 (or Linux cp313-linux_x86_64) v1.3.0 wheel
pip install --no-deps https://huggingface.co/Grawnch/wv-runtime-binaries/resolve/main/wheels/wv_runtime_installer-1.5.2-py3-none-any.whl
python -m wv_runtime.cli install
# Linux cp313:
# Universal wheel (Linux + Windows): pip install --no-deps https://huggingface.co/Grawnch/wv-runtime-binaries/resolve/main/wheels/wv_runtime_installer-1.5.2-py3-none-any.whl
Hardware Requirement: Requires an NVIDIA Blackwell GPU (
sm_120, e.g.,RTX 5060 Ti8 GB/16 GBor RTX PRO Blackwell) with>= 8 GBVRAM.
Everyday Use: Local Multimodal OpenAI / Anthropic Server (qfn-inkling2-serve)
Start the server once (auto-selects all_vram vs 8gb_tiered, defaults to b_max=1, max_seq=32768 on 16 GB cards so MTP-8 stays locked in with generous Windows 11 VRAM headroom, and loads vision_bf16.safetensors automatically):
qfn-inkling2-serve --ckpt-dir .\Inkling-2-Mini-WV-SM120 --port 8000
Setting Context Limit & VRAM Budget (--max-seq, --max-batch, --vram-budget-gb)
# 64K or 128K single-stream context on 16 GB RTX 5060 Ti (~11.4 GiB @ 64K, ~13.65 GiB @ 128K):
qfn-inkling2-serve --ckpt-dir .\Inkling-2-Mini-WV-SM120 --port 8000 --max-batch 1 --max-seq 65536
qfn-inkling2-serve --ckpt-dir .\Inkling-2-Mini-WV-SM120 --port 8000 --max-batch 1 --max-seq 131072
# Explicit VRAM cap (strictly enforced across both `all_vram` and `8gb_tiered` without WDDM shared-RAM spillover):
qfn-inkling2-serve --ckpt-dir .\Inkling-2-Mini-WV-SM120 --port 8000 --max-seq 131072 --vram-budget-gb 14.5
- Default Generation Settings:
temp=0.6,top_p=0.95,reasoning_effort="medium", speculative decoding ON (--no-mtp8disables speculative drafting;--no-visionskips loadingvision_bf16.safetensors). - Multimodal Vision Support (
image + text): Acceptsdata:image/...;base64,...data URIs andhttp(s)://image URLs across OpenAI/v1/chat/completions(image_url), Anthropic/v1/messages(imageblocks inuser&tool_resultmessages), and OpenAI/v1/responses(input_image). - Supported Endpoints:
GET /health(/),GET /v1/models(/models),GET /props,GET /metrics,POST /tokenize,POST /detokenize,POST /v1/chat/completions,POST /v1/completions,POST /v1/responses, andPOST /v1/messages(+/v1/messages/count_tokens). - Features: Native streaming SSE (
reasoning_content+ Anthropicthinking_delta, or--inline-thinkfor Open WebUI), incremental JSON/tool-call streaming (tools,tool_choice),response_format(json_object/json_schema), multi-turntoolnormalization,stream_options.include_usage,n > 1,seed,stop, and optional bearer/x-api-keyauth (--api-key). - 8 GB RTX 5060 Ti: Auto-detected (
<= 6.8 GiBbudget, including< 60 MiBlayer-streamed vision); optionally pass--force-8gb-tiering --vram-budget-gb 6.8. - Connect Any Tool (
http://127.0.0.1:8000):- OpenCode / Cline / Continue / Cursor / Open WebUI / OpenAI SDK: Set Base URL to
http://127.0.0.1:8000/v1, Model toInkling-2-Mini-WV-SM120, API key tolocal. llama-swapExample (config.yaml):models: "Inkling-2-Mini-WV-SM120": cmd: | C:\inkling2\.venv-inkling2\Scripts\qfn-inkling2-serve.exe --ckpt-dir C:\inkling2\Inkling-2-Mini-WV-SM120 --max-batch 1 --max-seq 65536 --host 127.0.0.1 --port ${PORT} checkEndpoint: /health- Claude Code (
/v1/messagesAnthropic API + Screenshot Tool Support): SetANTHROPIC_BASE_URL=http://127.0.0.1:8000andANTHROPIC_API_KEY=local. - Quick Health Check:
curl.exe -s http://127.0.0.1:8000/health
- OpenCode / Cline / Continue / Cursor / Open WebUI / OpenAI SDK: Set Base URL to
Release Notes
v1.3.0(Current):- Native Multimodal Vision (
vision_bf16.safetensors): Added fullInkling-2-MiniBF16vision encoder +40x40spatial-merge preprocessor (image_url, Anthropicimage/tool_resultscreenshots, Responsesinput_image, andqfn-inkling2-bench --image), running GPU-resident when VRAM headroom permits and< 60 MiBlayer-streamed on8 GBtiered /128K16 GBsetups. - 16 GB VRAM Autotuner & Strict
--vram-budget-gbEnforcement: Defaults16 GBGPUs tob_max=1, max_seq=32768(keepingMTP-8locked on and preventing131KMaxBatch: 2Windows WDDM shared-RAM spillover) and enforces--vram-budget-gbacross bothall_vramand8gb_tieredprofiles. - Startup Warmup & CLI Ergonomics: Fixed
_warmup_startup()batch-warmup token cap assertion (max_new_tokens < 16) and unified--max-batch/--batch-sizeand--max-seq/--max-model-len/--ctx-sizeflags acrossqfn-inkling2-serveandqfn-inkling2-bench.
- Native Multimodal Vision (
v1.2.3: Hardened SASS-only extension build (stripped host/build paths and obfuscated internal device symbols) and verified full GPU + HTTP server parity acrossall_vram,8gb_tiered, and 4-way concurrency.v1.2.2: Fixed a Windows MSVC tensor-lifetime reallocation issue during engine initialization.v1.2.1: Addedqfn-inkling2-serveOpenAI/Anthropic/Responses SSE server with live streaming speculative decoding and automatic continuous batching under concurrency.v1.2.0: Initial stochastic(temp = 0.6, top_p = 0.95)GPU sampling + CUDA Graph throughput optimizations for16 GBand8 GBRTX 5060 Ti.
Running RTX 5060 Ti (16 GB & 8 GB) Benchmarks & CLI Vision
Profile A β RTX 5060 Ti 16 GB (all_vram, 32Kβ128K Context)
qfn-inkling2-bench `
--ckpt-dir .\Inkling-2-Mini-WV-SM120 `
--bench-suite `
--max-batch 1 `
--max-seq 32768 `
--temp 0.6 `
--top-p 0.95 `
--reasoning-effort medium `
--max-new-tokens 256 `
--json-out .\bench_5060ti_16gb_mtp8.json
Single-image CLI test:
qfn-inkling2-bench `
--ckpt-dir .\Inkling-2-Mini-WV-SM120 `
--image .\sample.png `
--prompt "Describe everything in this image." `
--max-new-tokens 256
Profile B β RTX 5060 Ti 8 GB & Forced Split Test (--force-8gb-tiering, peak <= 6.8 GiB)
qfn-inkling2-bench `
--ckpt-dir .\Inkling-2-Mini-WV-SM120 `
--force-8gb-tiering `
--vram-budget-gb 6.8 `
--temp 0.6 `
--top-p 0.95 `
--reasoning-effort medium `
--bench-suite `
--max-new-tokens 256 `
--json-out .\bench_5060ti_8gb_tiered_mtp8.json
- Downloads last month
- 209
Model tree for Grawnch/Inkling-2-Mini-WV-SM120
Base model
thinkingmachines/Inkling-2-Mini