Run Inkling 2 Mini Locally with llama.cpp, Ollama and MLX (b12633)

Published • guides
Local LLMsllama.cppGGUFOllama

What You're Setting Up

Inkling 2 Mini is Thinking Machines Lab's Apache 2.0 open-weight model, released on 20 November 2026. According to the model card, it is a 24-layer decoder-only transformer with sparse mixture-of-experts feed-forward layers. Each token is routed to 8 of 128 experts, and the middle 12 layers run three times with shared weights, so every token passes through 48 layer applications built from 24 layers of weights. The card lists 26.4B parameters, 3.4B active, and notes that each extra pass through the loop adds about 1.0B, so a token sees about 5.4B effective active parameters. It accepts text and images and outputs text. Context runs up to 1,048,576 tokens.

The loop is defined in config.json as core_start: 6, core_end: 18, num_passes: 3. The same file lists 20 sliding-window layers with a 1,024-token window and 4 global-attention layers (5, 11, 17 and 23). The official checkpoint is one 19.53 GB safetensors file. Its routed experts are NVFP4 in layers 0 to 19 and MXFP8 in the last four layers. A separate 0.64 GB mtp.safetensors holds the DSpark speculative-decoding draft.

This guide covers three ways to run it on one machine: llama.cpp b12633 with a GGUF on NVIDIA, AMD or CPU; Ollama on Apple silicon; and mlx-lm on Apple silicon.

November 2026 status: llama.cpp support for the looped inkling2_loop architecture was merged in PR #32694 on 20 November and first shipped in b12600. The stable v1.0.0 release predates it, so this guide pins b12633, the build every flag and download below was checked against. Ollama runs the model on Apple silicon only. mlx-lm support is still a draft pull request. A llama.cpp bug corrupts output whenever expert weights from the looped layers sit in system RAM. Its fix (#32807) was merged on 22 November but was not in a numbered release as of b12641 (23 November); Step 4 covers the flag that avoids it until then.

How this guide was checked: Every llama-server flag was checked against common/arg.cpp at the b12633 tag, and every mlx_lm.server flag against server.py at the head of mlx-lm PR #2086 (e2b5bbd). File sizes come from the Hugging Face API at the pinned revisions below. The per-layer splits come from the GGUF tensor tables, read from each file's header. Model facts come from the Thinking Machines card at commit b85c3cf. Every issue in the troubleshooting tables was checked on GitHub on 23 November 2026, and each one's state is shown in the table. Throughput figures were measured by third parties and are attributed to them.

Requirements:

  • llama.cpp path: Windows or Linux with an NVIDIA, AMD or Intel GPU, or CPU only. Budget 11.66 GB to 17.63 GB of combined VRAM and system RAM for the weights, depending on the file, plus KV cache and compute buffers (see sizing). You also need Python 3 for the Hugging Face download CLI.
  • Ollama or MLX path: an Apple silicon Mac with 32 GB or more of unified memory.
  • About 20 GB of free disk space per model file.

Choose a Path

Your machineUseWhy
Apple silicon, 32 GB or moreOllama v0.40.17The route Thinking Machines names for Macs. The library model has vision, tools and thinking, and connects to coding agents with one command.
Apple silicon, prefer raw MLXmlx-lm (PR branch)Faster prefill than llama.cpp in the one public side-by-side comparison. It does not parse tool calls yet.
Windows or Linux, any GPU sizellama.cpp b12633The only local route off the Mac today. Ollama's Windows and Linux builds cannot load the model yet.
32 GB GPU or DGX Spark, serving several usersSGLang or vLLMOfficial recipes exist. See the short section below.

Size the Machine from the Actual File Layout

These are the files that matter, with sizes read from the Hugging Face API at the revision shown:

Repository (revision)FileSizeRuns on
thinkingmachines/Inkling-2-Mini (b85c3cf)model-00001-of-00001.safetensors + mtp.safetensors19.53 GB + 0.64 GBSGLang, vLLM, Transformers, mlx-lm PR
ggml-org/Inkling-2-Mini-GGUF (e8a2cec)Inkling-2-Mini-IQ4_NL.gguf17.63 GBllama.cpp b12600+
Inkling-2-Mini-Q8_0.gguf27.82 GBllama.cpp b12600+
mmproj-Inkling-2-Mini-Q8_0.gguf (vision)0.35 GBllama.cpp, optional
unsloth/Inkling-2-Mini-GGUF (45fd087), Mainline_Support/Inkling-2-Mini-UD-Q4_K_XL.gguf_file17.63 GBllama.cpp b12611+
Inkling-2-Mini-UD-IQ3_XXS.gguf_file11.66 GBllama.cpp b12611+
bartowski/thinkingmachines_Inkling-2-Mini-GGUF (76d5702)thinkingmachines_Inkling-2-Mini-IQ4_XS.gguf15.09 GBllama.cpp b12600+
mlx-community/Inkling-2-Mini-4bit (9c0e296)safetensors shards17.31 GBmlx-lm PR #2086
Ollama inkling-2-mini (digest d183b1321cb5)MLX safetensors layers20.19 GBOllama v0.40.17, Apple silicon

Other sizes in the same repos: Unsloth's mainline folder runs from UD-IQ1_S (7.76 GB) through UD-Q8_K_XL (22.87 GB). Bartowski's runs from IQ2_XXS (10.32 GB) to Q8_0 (27.82 GB), and lmstudio-community offers Q4_K_M (17.48 GB), Q6_K and Q8_0.

Where the bytes go

The total size alone does not tell you whether a GGUF suits a small GPU. What matters is how much of it belongs to the looped blocks 6 to 17, which run three times per token. Reading the tensor table in each file's header gives this split:

FileRouted experts, looped blocks 6–17Routed experts, blocks 0–5 and 18–23Everything else (attention, embeddings, output, loop gates)File total
ggml-org IQ4_NL6.88 GB8.92 GB1.82 GB17.63 GB
Unsloth UD-Q4_K_XL (mainline)6.88 GB8.92 GB1.82 GB17.63 GB
bartowski IQ4_XS6.63 GB6.63 GB1.82 GB15.09 GB
Unsloth UD-IQ3_XXS (mainline)5.25 GB5.05 GB1.35 GB11.66 GB

The remaining 12 MB in each file is the GGUF header. In the ggml-org IQ4_NL, layers 0 to 19 hold IQ4_NL experts at 573 MB per layer and layers 20 to 23 hold Q8_0 experts at 1,083 MB per layer. That matches its model card ("4-bit experts in layers 0-19, everything else at Q8_0"). Unsloth's UD-Q4_K_XL keeps the source NVFP4 format for the experts in layers 0 to 19 and Q8_0 for layers 20 to 23.

Will it fit?

GPU and Mac memory sizes are binary (a "24 GB" card has 24 GiB), so the file sizes are converted to GiB here. Every figure in this table is arithmetic from file sizes, not a measurement. "Left over" is what remains for the KV cache, compute buffers, the CUDA or Metal context, and on a Mac, the operating system.

HardwareFileWeightsLeft overNotes
Mac, 32 GB unifiedOllama inkling-2-mini18.80 GiB13.2 GiBThinking Machines lists Apple silicon with 32 GB or more as supported. macOS and your apps share the remainder.
Mac, 32 GB unifiedmlx-community 4-bit16.12 GiB15.9 GiBNeeds the mlx-lm PR branch.
24 GB GPUggml-org IQ4_NL16.42 GiB7.6 GiBQ8_0 (25.91 GiB) does not fit. UD-Q8_K_XL (21.30 GiB) leaves 2.7 GiB.
32 GB GPUggml-org Q8_025.91 GiB6.1 GiBIQ4_NL leaves 15.6 GiB. SGLang has an RTX 5090 recipe for the official checkpoint.
DGX Spark, 128 GB unifiedAnything, including BF1648.64 GiB (BF16)79.4 GiBAn officially supported target. NVIDIA also sells a 64 GB variant through OEM partners.
8 GB GPU + 32 GB RAMggml-org IQ4_NL, split16.42 GiB totalAbout 7 GiB usable on the GPUThe looped-block experts plus all non-expert tensors come to 8.10 GiB, so some looped experts must sit in RAM. --no-op-offload is required (Step 4).
8 GB GPU + 32 GB RAMUnsloth UD-IQ3_XXS, split10.86 GiB total0.85 GiB inside the GPU budgetThe looped-block experts plus non-expert tensors come to 6.14 GiB, which fits in about 7 GiB. The other 4.71 GiB of experts go to RAM. Tight.

"About 7 GiB usable" comes from llama.cpp's --fit, which is on by default and leaves a 1,024 MiB margin per device (--fit-target).

KV cache. Again this is arithmetic, not a measurement. Only the 4 global-attention layers keep a full-length cache, and 2 of them (11 and 17) sit inside the loop. The ggml-org card says each pass keeps its own KV cache, which gives 8 full-length layer applications. Each stores 8 KV heads of 128 dimensions for K and V, so an f16 cache costs about 32 KiB per token: 256 MiB at 8K tokens, 1 GiB at 32K, 4 GiB at 128K and 32 GiB at the full 1M. The sliding-window layers keep only a 1,024-token window, so their cache does not grow with context. llama-server prints the real figures at load time; trust those over this estimate.

Compute buffers can rival the weights. In a comment on mlx-lm PR #2086, FezVrasta reported llama.cpp's compute buffer at 64K context as 6,646 MiB with -ub 512, 13,296 MiB with -ub 1024 and 26,604 MiB with -ub 2048 on an M5 Pro. A commenter on issue #32707 traced the size to the relative-position bias, which is materialised as a large F32 tensor. Keep --ctx-size modest and do not raise -ub. To budget other models the same way, use the VRAM calculator.


Path 1: llama.cpp

Step 1: Get llama.cpp b12633

Build from the release tag so the binary you test is the one you can rebuild. These commands follow the project's build documentation:

git clone --branch b12633 --depth 1 https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j --target llama-server
./build/bin/llama-server --version

Leave out -DGGML_CUDA=ON for a CPU-only build. On macOS, Metal is enabled by default.

Prebuilt binaries. The b12633 release publishes each Windows CUDA build alongside a separate archive of CUDA DLLs:

PlatformBuild archiveCUDA runtime archive
Windows x64, CUDA 12llama-b12633-bin-win-cuda-12.4-x64.zip (358.0 MB)cudart-llama-bin-win-cuda-12.4-x64.zip (391.4 MB)
Windows x64, CUDA 13llama-b12633-bin-win-cuda-13.5-x64.zip (225.6 MB)cudart-llama-bin-win-cuda-13.5-x64.zip (426.3 MB)
Windows x64, Vulkanllama-b12633-bin-win-vulkan-x64.zip (38.9 MB)Not needed
Ubuntu x64, CUDA 12llama-b12633-bin-ubuntu-cuda-12.8-x64.tar.gz (220.1 MB)cudart-llama-b12633-bin-ubuntu-cuda-12.8-x64.tar.gz (594.4 MB)
macOS Apple siliconllama-b12633-bin-macos-arm64.tar.gz (16.6 MB)Not needed

NVIDIA's CUDA release notes pair CUDA 13.5 with the R620 driver branch and allow CUDA 13.x through minor-version compatibility from driver 580. CUDA 12.x needs driver 525 or newer. If your driver is older than R620, the CUDA 12.4 build is the safer choice.

Builds older than b12611 load Unsloth's mainline files but give wrong output. PR #32704 fixed the missing per-expert NVFP4 scales on the second and third loop passes; its author measured perplexity of 130.43 before the fix against 7.65 expected.

Step 2: Download a GGUF

Install the Hugging Face CLI and download the ggml-org IQ4_NL, pinned to the revision this guide was checked against:

pip install -U huggingface_hub
hf download ggml-org/Inkling-2-Mini-GGUF \
  --revision e8a2cecf0e78914f07cc27b9be711a9b2c7561d9 \
  --include "Inkling-2-Mini-IQ4_NL.gguf" \
  --local-dir ~/models/inkling-2-mini

Per the ggml-org card, IQ4_NL is imatrix-calibrated. Measured on wikitext-2 against BF16, it has a KL divergence of 0.0095 and picks the same top token 95.5% of the time; Q8_0 scores 0.0030 and 97.6%. For image input, add mmproj-Inkling-2-Mini-Q8_0.gguf to the --include pattern.

Unsloth files. Use the Mainline_Support folder only. Unsloth's README says the files in the repo root use Unsloth's own looped layout and need Unsloth Studio or Unsloth's llama.cpp builds. The mainline files carry a .gguf_file extension on purpose, and you rename them after download:

hf download unsloth/Inkling-2-Mini-GGUF \
  --revision 45fd08764f2b0bf16b03a5483a80e5c7aaec8772 \
  --include "Mainline_Support/Inkling-2-Mini-UD-IQ3_XXS.gguf_file" \
  --local-dir ~/models/inkling-2-mini
mv ~/models/inkling-2-mini/Mainline_Support/Inkling-2-Mini-UD-IQ3_XXS.gguf_file \
   ~/models/inkling-2-mini/Mainline_Support/Inkling-2-Mini-UD-IQ3_XXS.gguf

Sampling defaults travel with the file. Thinking Machines' generation_config.json sets only temperature: 1.0, and its card gives no other sampling recommendation. The ggml-org GGUF embeds temp 1.0, top_p 1.0, min_p 0.0 and top_k 50. Unsloth's files embed top_k 0, and Unsloth recommends temperature 1.0, top-p 1.0, top-k 0 and min-p 0. llama.cpp b12633 applies a file's embedded values for any sampling flag you do not pass.

Step 3: Start llama-server (24 GB GPU or larger)

./build/bin/llama-server \
  --model ~/models/inkling-2-mini/Inkling-2-Mini-IQ4_NL.gguf \
  --alias inkling-2-mini \
  --host 127.0.0.1 \
  --port 8080 \
  --jinja \
  --ctx-size 32768 \
  --no-op-offload \
  --temp 1.0

What each flag does at b12633:

FlagWhy it is here
--jinjaUses the chat template embedded in the GGUF. It is already the default at b12633 and is written out so the intent is clear. The server includes an Inkling-specific parser (#32381) that moves reasoning into reasoning_content and turns tool calls into tool_calls.
--ctx-size 32768Without it, -c defaults to 0, which means the trained context of 1,048,576 tokens. By the arithmetic above, the KV cache for that alone is about 32 GiB.
--no-op-offloadHelp text: "whether to offload host tensor operations to device (default: true)". This flag turns it off. It only matters when some expert weights live in system RAM, and it is the workaround for the corruption bug in Step 4. --fit (on by default) can spill experts to RAM if context and buffers outgrow the card, so it is set here as insurance.
--temp 1.0The only sampling value in Thinking Machines' generation config.
--port 8080The default port at b12633 is 9931.
--host 127.0.0.1Already the default; keeps the server local. If you bind to 0.0.0.0, add --api-key.

For images, add --mmproj ~/models/inkling-2-mini/mmproj-Inkling-2-Mini-Q8_0.gguf. When the server is listening, compare the CUDA0 and CPU buffer sizes in its log with the sizing tables above.

Step 4: Run on an 8 GB GPU with System RAM

This is where most reports of broken output come from. Three issues (#32710, #32778, #32755) describe the same failure:

  • Trigger: expert weights of any looped block (6 to 17) are in system RAM, and a prompt is processed in micro-batches of 32 tokens or more. The 32-token figure comes from one tester's reading of the source, not a bisection. A single looped block on the CPU is enough.
  • Symptom: the reply is all ? or GGGG from the first token, with empty reasoning. The server then stays broken until restart.
  • Cause: contributor am17an's description in PR #32809 (closed in favour of #32807). The scheduler makes one GPU copy of a host expert tensor and fills it with the experts selected by the first pass only, so passes two and three compute with experts that were never uploaded.
  • Fix status: #32807 was merged on 22 November, and a tester on #32755 reported that it fixed their failing HIP configuration. It was not in a numbered release as of b12641 (23 November). Until your build includes commit 5bacb7c, use one of the options below. Once it does, rerun the long-prompt smoke test before dropping the flag.
  • Who hits it: reproductions cover CUDA (RTX 3070 Ti 8 GB, RTX 4070 SUPER 12 GB, RTX 4070 Ti SUPER 16 GB), Vulkan, HIP and CPU-only runs with -ngl 0.

Two settings make it more likely on a small card. --n-cpu-moe N keeps the experts of the first N layers in RAM, so any N above 6 reaches the looped blocks. And per draft PR #32777, --fit currently fills the GPU front to back, so the looped blocks are the ones that spill.

Option A: any GGUF, simplest. Let --fit place the layers and turn off op offload:

./build/bin/llama-server \
  --model ~/models/inkling-2-mini/Inkling-2-Mini-IQ4_NL.gguf \
  --alias inkling-2-mini \
  --host 127.0.0.1 \
  --port 8080 \
  --ctx-size 8192 \
  --no-op-offload \
  --temp 1.0

In #32778, mdrzn reports that --no-op-offload fixes it "at any prompt length", including 5K-token prompts, multi-turn cache reuse, images and tool calls. Two testers in #32710 confirm correct output with it on CUDA. The cost is prefill speed, because experts in RAM are then computed on the CPU.

Option B: keep the looped blocks on the GPU. With the UD-IQ3_XXS file, the looped-block experts and all non-expert tensors come to 6.14 GiB by the arithmetic above. You can then send only the other blocks' experts to RAM with -ot:

./build/bin/llama-server \
  --model ~/models/inkling-2-mini/Mainline_Support/Inkling-2-Mini-UD-IQ3_XXS.gguf \
  --alias inkling-2-mini \
  --host 127.0.0.1 \
  --port 8080 \
  --ctx-size 8192 \
  --no-op-offload \
  -ot "blk\.([0-5]|1[89]|2[0-3])\.ffn_.*_exps=CPU" \
  -ub 256 \
  --temp 1.0

The -ot pattern combines the per-range patterns that testers used in #32710. Like llama.cpp's own --cpu-moe regex, it does not end in .weight, so it also moves the small NVFP4 .scale tensors in Unsloth's files. On a 16 GB RTX 4070 Ti SUPER, mdrzn reported going from about 14 to about 36 tokens/s by keeping blocks 6 to 17 on the GPU instead of using --n-cpu-moe, using --no-op-offload and -ub 256 as here. On 8 GB the budget is tight. If loading fails, drop --ctx-size to 4096 before changing anything else.

Do not use -ub below 32 as your fix. It also avoided the bug in testers' runs, but it forces prompt processing into very small batches.

On Windows, run llama-server.exe with the same flags, and use backticks instead of backslashes for line continuation in PowerShell.


Path 2: Ollama on Apple Silicon

Ollama's v0.40.17 release notes add Inkling 2 Mini with this caveat: "inkling-2-mini is supported on Apple silicon only in this release. PC support will follow in an upcoming release." The model runs on Ollama's MLX runner; the registry manifest declares "runner": "mlx". The v0.40.17 download files are dated 21 November, the day the Inkling runner (#19799) merged, so reinstall if your copy of 0.40.17 is older than that.

ollama run inkling-2-mini

All three tags, latest, 26b-a5b and 26b-a5b-nvfp4, point to the same 20 GB build (digest d183b1321cb5). The library page lists vision, tools and thinking support and a 1M context window. Its API example:

curl http://localhost:11434/api/chat \
  -d '{
  "model": "inkling-2-mini",
  "messages": [{"role": "user", "content": "Hello!"}]
}'

Off the Mac, Ollama is not an option yet. Two routes were reported in issue #19817:

  • Library model on Windows: fails with "this model requires MLX support, but the MLX runtime is not available".
  • Hugging Face GGUF through Ollama (ollama run hf.co/...): fails with "unknown model architecture: 'inkling2_loop'". Ollama's LLAMA_CPP_VERSION pins llama.cpp b12257, which predates the architecture. A request to move the pin (#19826) is open.

An Ollama collaborator pointed Windows users with more than 24 GB of NVIDIA VRAM to the separate ollama-windows-amd64-mlx.zip runtime, calling MLX "experimental on non-macOS".


Path 3: MLX with mlx-lm on Apple Silicon

Hugging Face's launch post says MLX support was upstreamed to mlx-lm. On 23 November it was not in a release. The code is in draft PR #2086, stacked on #2061, and the latest mlx-lm release is v0.32.2 from 16 October. The mlx-community 4-bit card documents installing from the PR:

pip install -U git+https://github.com/ml-explore/mlx-lm.git@refs/pull/2086/head

The PR head was e2b5bbd on 23 November. A pull-request ref moves as commits land, so note the commit you installed alongside your results.

Download the converted weights, pinned:

hf download mlx-community/Inkling-2-Mini-4bit \
  --revision 9c0e2960609ba7cb40daf92c6f7bf8ed56e1dd62 \
  --local-dir ~/models/inkling-2-mini-mlx-4bit

Use revision 9c0e296 or later. The first upload lacked two vision_config keys and failed to load with transformers 5.24, as reported on the PR; that commit adds them back. The conversion keeps the routed experts in their original NVFP4 and MXFP8 formats and quantizes attention, embeddings and the output head to 4-bit affine. Hugging Face's launch post adds that the original Thinking Machines checkpoint (20.16 GB) works directly, without reconversion.

Serve it on an OpenAI-compatible endpoint:

mlx_lm.server \
  --model ~/models/inkling-2-mini-mlx-4bit \
  --host 127.0.0.1 \
  --port 8080 \
  --max-tokens 32768 \
  --temp 1.0

At e2b5bbd, mlx_lm.server defaults to --max-tokens 512 and --temp 0.0. The first cuts off reasoning turns; the second is not the model's configured temperature. To set a reasoning effort for every request, add --chat-template-args '{"reasoning_effort": "low"}', which passes the value to the chat template.

Tool calls do not work through mlx_lm.server yet. Users on the PR report that with tools in the request, the raw <|message_model|> markup comes back in content, because the PR has no Inkling tool parser. For agents on a Mac, use Ollama. The mlx-community oQ variants (oQ4e-mtp, oQ3e-mtp, oQ2.5e-mtp) are made for oMLX 0.8.1 or later, not mlx-lm.


Smoke Test the OpenAI-Compatible Endpoint

Send a short prompt whose answer you can check:

curl http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "inkling-2-mini",
    "messages": [{"role": "user", "content": "Solve 5x + 12 = 47. Show your work."}],
    "reasoning_effort": "low",
    "max_tokens": 4096
  }'

On llama-server, a top-level reasoning_effort is passed to the template, and "none" disables thinking. Before b12624 (fix #32763), "none" silently fell back to the template default. The template maps each name to a number:

Namenoneminimallowmediumhigh (default)xhighmax
Value0.00.10.20.70.90.990.99

You can also pass a number from 0.0 to 0.99. The card warns that the minimum "does not fully disable reasoning", and that the model can get stuck re-checking its own work. Always set max_tokens.

Then test the failure mode, not just the happy path. Send a prompt of 150 tokens or more and check usage.prompt_tokens in the reply. Send it twice, then send the short prompt again. All-? or GGGG output at any point means host-resident looped experts are being op-offloaded. Restart the server with --no-op-offload. Windows users who prefer not to write JSON in PowerShell can use the web UI that llama-server serves at http://127.0.0.1:8080.


Chat Format, Thinking and Tool Calls

You rarely need to touch the raw format, but it explains the error messages. From the template in the model repo:

  • Messages: each message opens with a role token (<|message_user|>, <|message_model|>, <|message_system|>, <|message_tool|>) and ends with <|end_message|>. The content kind follows the role token: <|content_text|>, <|content_thinking|> or <|content_image|>.
  • Thinking effort: sent as a system message, Thinking effort level: 0.9.
  • Tools: declared once in a system message, tool_declare<|content_xml|> followed by compact JSON. A call is emitted as <|message_model|>NAME<|content_invoke_tool_json|>{"name":...,"args":{...}}<|end_message|>.
  • End of turn: a model turn ends with <|content_model_end_sampling|>, the EOS token.
  • Rejected input: the template refuses tool-call arguments passed as a JSON string ("must be a parsed object") and refuses audio input.

For structured output on llama-server, use response_format with a json_schema. A raw grammar field applies to the model's whole output, including its headers, so it returns empty content. In #32745, aldehir, who wrote the Inkling parser, called this working as intended and pointed to response_format. For grammar-constrained output in llama.cpp generally, see our GBNF and Pydantic guide.


Connect a Coding Agent

  • Mac with Ollama: the library page documents ollama launch claude --model inkling-2-mini and ollama launch opencode --model inkling-2-mini. The full setup, including the environment variables, is in Run Claude Code Locally with Ollama.
  • llama-server: point OpenAI-compatible clients at http://127.0.0.1:8080/v1. llama-server also serves an Anthropic-compatible POST /v1/messages; its README notes that "Tool use requires --jinja flag". Read the tool-call rows in the troubleshooting table first.

Thinking Machines' own card warns that the model "may take destructive actions, such as deleting or overwriting files, without confirmation". Run agents in a sandbox, require confirmation for destructive commands, and cap output tokens and agent turns.


Troubleshoot with the Known Bugs

Issue states were checked on 23 November 2026. Match your symptom before changing sampling settings.

llama.cpp

SymptomWhere it was reportedWorkaround
All ? or GGGG from the first token once a prompt passes a few dozen tokens; the server stays broken#32710, #32778 (open)--no-op-offload, or keep blocks 6–17 on the GPU (Step 4). Fix #32807 merged on 22 November, but was not in a numbered release as of b12641.
Repetitive garbage or parroting on 4K–6K-token prompts with --n-cpu-moe#32755 (closed 22 November; a tester verified #32807 fixes it)Move only blocks 0–5 and 18–23 to the CPU with -ot, plus --no-op-offload.
Slow prefill; flash attention and -ub make no difference; compute buffer in the gigabytes#32707 (open)Keep context modest and leave -ub at its default. Fused-bias PR #32740 is open.
CUDA abort GGML_ASSERT(s2 <= uint32_t::max()) in binbcast.cu at about 79K-token prompts#32804 (open)None posted. Reported on a GB10 (DGX Spark class) system.
HTTP 500 "Unexpected empty grammar stack" on plain replies when tools are sent with a thinking-off template#32818 (open)The reporter's request succeeds without tools. No fix merged.
HTTP 500 with the same message partway through multi-turn tool use on Vulkan#32800 (open)None confirmed. A commenter suggested comparing a build before b12628.
Token IDs differ from Hugging Face (for example, kwargs splits into three tokens)#32798 (closed)Fixed by #32799, which first shipped in b12641. It affects token counts, not loading.
--moe-cache-mib gains less than expected; the start-up log counts the looped layers' host experts three times over#32744 (open)No fix merged. The reporter links a patch that took one Q8_0 run from 15.6 to 25.8 tokens/s. The cache is off by default.
Abort with hipErrorInvalidKernelFile on RX 6000 series (gfx1030, ROCm 7.2)#32732 (open)The reporter found -ngl 0 unaffected. No GPU workaround posted.
An Unsloth GGUF loads but gives nonsense (perplexity around 130)#32704 (merged 21 November)Use b12611 or later, and the Mainline_Support files.

Ollama and MLX

SymptomWhere it was reportedWorkaround
"This model requires MLX support, but the MLX runtime is not available" on Windowsollama #19817 (closed)Apple silicon only in v0.40.17. Use llama.cpp.
"unknown model architecture: 'inkling2_loop'" when running a Hugging Face GGUF in Ollamaollama #19817, #19826 (open)Wait for the llama.cpp pin to move past b12257, or use llama.cpp directly.
Prefix cache fully evicted past about 64K tokens on the MLX runnerollama #19819 (open)None posted.
Up to 2K tokens recomputed on every turnollama #19818 (open)None posted.
mlx_lm.server returns raw <|message_model|> markup instead of tool_callsmlx-lm PR #2086 commentsNo Inkling tool parser yet. Use Ollama for agents.

What Performance to Expect

Thinking Machines publishes no local tokens-per-second figures; its card says only that "speed varies by runtime and hardware". These are the public data points, each from the person named, on their own hardware and builds:

Reported byHardwareRuntime and filePromptGeneration
FezVrasta (mlx-lm #2086)M5 Pro, 48 GBllama.cpp c622f623f (b12619), Q8_0, 31,187-token prompt256 tok/s24.9 tok/s, 30.5 GB resident
FezVrasta (same comment)M5 Pro, 48 GBmlx-lm PR, 4-bit, same promptabout 830 tok/s28.7 tok/s, 17.4 GB resident
jundot (PR #2086 description)M3 Ultra, 512 GBmlx-lm PR, custom kernels on, 4K context1,516.3 tok/s32.07 tok/s
meckbaig (#32707)RX 9070 XT, 16 GBllama.cpp b12600, Vulkan, community IQ3_XXS fully on GPUabout 402 tok/s (2,048 tokens)about 21 tok/s
mdrzn (#32778)RTX 4070 Ti SUPER, 16 GBllama.cpp b12620, Windows CUDA, community AD-Q4_K, blocks 6–17 on GPUNot givenabout 36 t/s as reported (about 14 with --n-cpu-moe 12), 11.8 GB VRAM
maxm11 (ollama #19826)RTX 4060 Ti, 8 GBllama.cpp b12613, Linux CUDA 12.8, bartowski IQ4_XS, 10 layers on GPUNot givenabout 12 tok/s

In the one Mac comparison, mlx-lm beat llama.cpp on prefill and memory. On PCs, the reports agree that where the looped blocks' experts live matters more than the quantization.


When to Use vLLM or SGLang Instead

Both have official recipes, and neither is in a stable release yet:

  • vLLM: the recipe needs vLLM 0.35.0, which is not released; it points to a nightly wheel or the vllm/vllm-openai:inkling-2-mini image. It is verified on GB200, B300, GB300, H100, H200 and DGX Spark, and caps context at 262,144 tokens on H100 and DGX Spark. Consumer GPUs are not covered.
  • SGLang: the cookbook page installs from PR #51926 or an lmsysorg/sglang:inkling-2-mini image. It covers the RTX 5090 at one GPU, with context capped at 65,536 tokens for the Balanced recipe and 32,768 with DSpark. It uses --reasoning-parser inkling and --tool-call-parser inkling2.

On a 32 GB card serving several users, SGLang is the documented route. For one user on one machine, llama.cpp and Ollama are simpler. For the multi-GPU pattern, see our vLLM self-hosting guide.


Benchmarks, Briefly

These numbers are Thinking Machines' own, from its model card, and are not independently reproduced. The comparison column is the Qwen3.8-27B result from the same table.

Benchmark (harness per the card)Inkling 2 MiniQwen3.8-27B
SWE-bench Verified (bash only)79.2%77.8%
SWE-bench Pro v2, Hard (mini-swe-agent v2.4.6)77.9%73.8%
Terminal Bench v2.1 (pi v0.83.0)71.6%73.0%
MCP Atlas (public)82.7%77.3%
BrowseComp (with compaction)79.0%61.6%
HLE-Diamond15.2%15.3%
AA-Omniscience v1.1, non-hallucination rate63.4%71.4%

The card's own limitations section matches the last two rows. It describes the model as weaker on factual recall and more likely than larger models to state incorrect information confidently. Pair it with retrieval rather than relying on what it remembers.


Practical Verdict

On a 32 GB Mac, ollama run inkling-2-mini is the shortest path and the one Thinking Machines names. Use mlx-lm only if you want the faster prefill and can live without tool calls.

On Windows and Linux, llama.cpp b12633 with the ggml-org IQ4_NL works today. It is still an evaluation setup:

  • 24 GB card or larger: use the Step 3 command, and keep --no-op-offload in case --fit spills anything.
  • 8 to 16 GB card: --no-op-offload is not optional until your build includes PR #32807, which merged on 22 November but was not in a numbered release as of b12641. A file small enough to keep blocks 6 to 17 on the GPU is the bigger speed lever.
  • Long prompts: prefill is the slow phase and compute buffers are large, so start at 8K to 32K context and raise it only after the server reports headroom.

Record your build number and GGUF revision with your results. Rerun the long-prompt smoke test after every upgrade, since four relevant fixes landed in the first two days after release.


Frequently asked questions

Can llama.cpp run Inkling 2 Mini?

Yes. Support for the looped inkling2_loop architecture was merged in llama.cpp PR #32694 on 20 November 2026 and first shipped in build b12600. The stable v1.0.0 release (13 November) predates it, so use a numbered build. b12633 (22 November) also includes the fix for Unsloth's NVFP4 files (#32704) and the reasoning_effort none fix (#32763). Several bugs are still open, so test repeated and long prompts before relying on it.

How much memory does Inkling 2 Mini need?

The official checkpoint is 20.16 GB (19.53 GB of weights plus a 0.64 GB draft model), and Thinking Machines supports one DGX Spark, Apple silicon with 32 GB or more, or GPUs with 32 GB or more VRAM. The ggml-org IQ4_NL GGUF is 17.63 GB and Unsloth's smallest mainline GGUF is 7.76 GB. Add KV cache (about 1 GiB per 32K tokens by arithmetic from the config) and llama.cpp's compute buffer, which one reporter measured at 6,646 MiB at 64K context.

Why does Inkling 2 Mini output only question marks or GGGG in llama.cpp?

That is an open llama.cpp bug (#32710, #32778, #32755). When expert weights of the looped blocks 6 to 17 sit in system RAM, op offload copies only the experts chosen by the first pass, so passes two and three compute with the wrong experts. It hits partial-offload setups such as 8 to 16 GB GPUs. Start llama-server with --no-op-offload. The fix, PR #32807, was merged on 22 November 2026 but was not yet in a numbered release as of b12641 (23 November), so keep the flag until your build includes it.

Does Ollama run Inkling 2 Mini on Windows or Linux?

Not in Ollama v0.40.17. Its release notes say inkling-2-mini is supported on Apple silicon only in this release, and the library model uses Ollama's MLX runner. Loading a Hugging Face GGUF through Ollama also fails, because Ollama pins llama.cpp b12257, which predates the architecture. On Windows and Linux, use llama.cpp b12600 or later.

Which GGUF should I download for Inkling 2 Mini?

Start with ggml-org/Inkling-2-Mini-GGUF IQ4_NL (17.63 GB), the conversion from the llama.cpp team. Unsloth's GGUFs for mainline llama.cpp are in the repo's Mainline_Support folder with a .gguf_file extension that you rename to .gguf. The files in the root of that repo use Unsloth's own layout and need Unsloth's llama.cpp builds.

Related Guides