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,376 unseen tokens):
    • KLD vs FP/Reference Teacher: 0.068819 (92.422% Top-1 agreement)
    • Perplexity (All_Val): Teacher 5.30031 β†’ Quantized 5.39794 (C4: 10.98 β†’ 11.52, Math: 4.69 β†’ 4.89, Code: 2.116 β†’ 2.123, Chat: 7.24 β†’ 7.10)
  • 100% Bit-Identical Profile, Vision & Speculative Parity:
    • 16 GB (all_vram) vs 8 GB (8gb_tiered): 0.0 max_abs_diff across all 408 tokens (100% exact greedy token match across M=1, speculative decode, and 16 GB vs 8 GB)
    • Unquantized BF16 Vision Tower (vision_bf16.safetensors, 636.5 MB): Exact 0.0-ULP parity between GPU-resident (16 GB) and < 60 MiB layer-streamed (8 GB / 128K 16 GB) execution.
  • Measured Throughput:
    • RTX 5060 Ti 16 GB (all_vram, b_max=1, max_seq=131072): 101.85 tok/s @ 128K allocated (13.65 GiB peak VRAM, temp=1.0, top_p=0.95; ~115–130+ tok/s @ temp=0.6)
    • NVIDIA RTX PRO 6000 Blackwell (all_vram): B=1 baseline 145.96 tok/s greedy | Speculative B=1 232.91 tok/s 3-prompt average / 264.78 tok/s general sampled (temp=0.6, top_p=0.95) | B=32 continuous batching 1,603.3 tok/s
    • 8 GB Mode (8gb_tiered, <= 6.80 GiB enforced cap): 6.55 GiB peak VRAM | Speculative 123.05 tok/s (+ live < 60 MiB layer-streamed vision)
    • HTTP Server (qfn-inkling2-serve, v1.3.0): 273.8+ tok/s (Chat JSON speculative) | 4-stream concurrent SSE wall time 2.89 s (256 tokens Γ— 4 streams) | verified live multimodal vision (image_url, Anthropic image, Responses input_image) in both 16 GB and 8 GB modes.

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 GB total): embed_head_global.safetensors, layers_00_05.safetensors, layers_06_11.safetensors, layers_12_17.safetensors, layers_18_23.safetensors, mtp_wv63.safetensors, and vision_bf16.safetensors (BF16 native vision encoder + projector)
  • Prebuilt Python 3.13 SASS-only wheels (wheels/): win_amd64 and linux_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 in v1.3.0 wheels)

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 Ti 8 GB / 16 GB or RTX PRO Blackwell) with >= 8 GB VRAM.


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-mtp8 disables speculative drafting; --no-vision skips loading vision_bf16.safetensors).
  • Multimodal Vision Support (image + text): Accepts data:image/...;base64,... data URIs and http(s):// image URLs across OpenAI /v1/chat/completions (image_url), Anthropic /v1/messages (image blocks in user & tool_result messages), 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, and POST /v1/messages (+ /v1/messages/count_tokens).
  • Features: Native streaming SSE (reasoning_content + Anthropic thinking_delta, or --inline-think for Open WebUI), incremental JSON/tool-call streaming (tools, tool_choice), response_format (json_object / json_schema), multi-turn tool normalization, stream_options.include_usage, n > 1, seed, stop, and optional bearer/x-api-key auth (--api-key).
  • 8 GB RTX 5060 Ti: Auto-detected (<= 6.8 GiB budget, including < 60 MiB layer-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 to Inkling-2-Mini-WV-SM120, API key to local.
    • llama-swap Example (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/messages Anthropic API + Screenshot Tool Support): Set ANTHROPIC_BASE_URL=http://127.0.0.1:8000 and ANTHROPIC_API_KEY=local.
    • Quick Health Check:
      curl.exe -s http://127.0.0.1:8000/health
      

Release Notes

  • v1.3.0 (Current):
    • Native Multimodal Vision (vision_bf16.safetensors): Added full Inkling-2-Mini BF16 vision encoder + 40x40 spatial-merge preprocessor (image_url, Anthropic image / tool_result screenshots, Responses input_image, and qfn-inkling2-bench --image), running GPU-resident when VRAM headroom permits and < 60 MiB layer-streamed on 8 GB tiered / 128K 16 GB setups.
    • 16 GB VRAM Autotuner & Strict --vram-budget-gb Enforcement: Defaults 16 GB GPUs to b_max=1, max_seq=32768 (keeping MTP-8 locked on and preventing 131K MaxBatch: 2 Windows WDDM shared-RAM spillover) and enforces --vram-budget-gb across both all_vram and 8gb_tiered profiles.
    • Startup Warmup & CLI Ergonomics: Fixed _warmup_startup() batch-warmup token cap assertion (max_new_tokens < 16) and unified --max-batch / --batch-size and --max-seq / --max-model-len / --ctx-size flags across qfn-inkling2-serve and qfn-inkling2-bench.
  • v1.2.3: Hardened SASS-only extension build (stripped host/build paths and obfuscated internal device symbols) and verified full GPU + HTTP server parity across all_vram, 8gb_tiered, and 4-way concurrency.
  • v1.2.2: Fixed a Windows MSVC tensor-lifetime reallocation issue during engine initialization.
  • v1.2.1: Added qfn-inkling2-serve OpenAI/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 for 16 GB and 8 GB RTX 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
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Grawnch/Inkling-2-Mini-WV-SM120

Quantized
(347)
this model

Collection including Grawnch/Inkling-2-Mini-WV-SM120