Articles AI

Inkling 2 Mini: From Local Inference to Working AI Agents

Inkling 2 Mini: From Local Inference to Working AI Agents

On November 20, 2026, Thinking Machines Lab released Inkling 2 Mini. Six days later, I had it running on my Windows desktop with an NVIDIA RTX 2060 and 12 GB of video memory.

After resolving a CUDA installation problem and experimenting with different context configurations, I arrived at a setup that generates 37.2 tokens per second with a 16,384-token context window.

I connected the model to Pi and asked it to read existing software, create a Python module with eight unit tests, and repair an implementation containing two known defects. All three experiments passed independent verification.

I also connected Inkling to my existing inference infrastructure and used it to analyse ten manuscript passages for editorial defects. It returned valid JSON for every case, achieving 70% precision and 78% recall on this small evaluation.

This article explains how to reproduce the installation, optimize inference on consumer hardware, access the model from Python, and use it as the intelligence engine behind a local coding agent. All the essential code and configuration examples are included.

1. Running Inkling

The headline numbers, all measured on my machine rather than quoted from a model card:

Result Measurement
AGENT generation speed 37.2 tokens/sec (median, 5 runs)
Qualified agent context 16,384 tokens
Pi calculator tests 8/8 passed, independently verified
Pi software repair 2/2 verified, independently verified
Manuscript screening 70% precision, 78% recall, 10/10 valid JSON

The machine is a Windows 11 Pro desktop (Build 26300) with an Intel i9-12900KF (16 cores, 24 threads), 128 GB of system RAM, and an RTX 2060 with 12 GB of video memory on NVIDIA driver 591.44. The inference engine is llama.cpp build 12800 (commit 47d6192fc, Clang 22.1.8). The model is unsloth/Inkling-2-Mini-GGUF:UD-Q2_K_XL: a 9.14 GB weights file plus a 0.64 GB multimodal projector. The server listens at http://127.0.0.1:8088 with model alias inkling-2-mini. Pi is 1.6.0 and Node.js is v25.8.2.

The working configuration uses a 16,384-token context, disables the vision projector, and quantizes the KV cache to 8-bit. Server-reported allocation: 7871 MiB of weights on the GPU, 833 MiB on the host, 407 MiB of KV cache, 1786 MiB of compute buffers, 421 MiB free. The next section explains what the model is, and Section 6 explains how the context ladder led here.

2. Inside the model

Inkling 2 Mini combines a mixture-of-experts layout with a looped transformer. It stores 24 physical layers. The middle 12 execute three times with shared weights, so each token passes through 48 layer applications. Routing sends each token to 8 of 128 experts.

    flowchart TD
    A[Input tokens] --> B[First 6 layers]
    B --> C[Middle 12 layers: pass 1]
    C --> D[Middle 12 layers: pass 2]
    D --> E[Middle 12 layers: pass 3]
    E --> F[Final 6 layers]
    F --> G[Next token distribution]
  

Three quantities behave differently on consumer hardware. Stored parameters determine download size and resident memory (26.4 billion in the developer’s counting; 26070390272, approximately 26.07 billion, in the runtime metadata I read from the server — I report both figures, and the exact reason for the difference is not established by my measurements). Active parameters determine per-token arithmetic (about 3.4 billion per pass, roughly 5.4 billion effective once the two extra loop passes at about 1 billion each are counted). Repeated application determines latency (48 layer passes plus expert routing per token). A 12 GB card can hold the weights while still generating slowly if the arithmetic per token is heavy. Inkling is a practical case study of that split.

Three kinds of looping appear in this article and they are independent mechanisms. Architectural looping is fixed: the middle layers always execute three times per token. The released model does not choose the pass count per question (a separate research variant runs one to five passes). Generated reasoning tokens are the model’s written chain-of-thought, controlled by the reasoning_effort request parameter and billed against the same output budget as visible text — the 512-token budget failure in Section 10 comes from this sharing. Agent execution loops are the Pi harness calling the model, running tools, and calling again. Each has its own budget and its own failure mode.

The original checkpoint is about 20 GB, stored mostly in NVFP4 with the last four layers in MXFP8, according to the developer’s materials. Training started with 384 experts per layer, pruned two-thirds of them down to 128, and healed the model with about a trillion tokens of distillation from a larger internal model. The Unsloth GGUF I run is the same weights at reduced precision: 9.14 GB at UD-Q2_K_XL. Top-token agreement for this quantization is 91.6% against the Q8 reference. That metric counts token-choice matches under a quantization test. It says nothing about coding accuracy, so I treat it as a selection hint and measure the rest directly.

Developer-reported benchmark results, with harnesses as listed on the model card (all developer-run, none transfer automatically to a quantized local build):

Benchmark Result Harness
SWE-bench Verified 79.2% bash only
SWE-bench Pro v2, Hard 77.9% mini-swe-agent
SWE-bench Multilingual 73.7% bash only
DeepSWE v1.1 48.2% mini-swe-agent
Terminal-Bench v2.1 71.6% Pi v0.83.0
Terminal-Bench v4.0 5.6% mini-swe-agent, tied best
Vibe Code Bench v1.1 77.9% openhands
BrowseComp 79.0% with compaction
MCP Atlas 82.7% public
MMMU Pro 74.9% standard 10-option
LongBench v2 66.9% —
Vals Index v2.2 46.5% —

The weak entries sit in the same table as the peaks: Terminal-Bench v4.0 at 5.6% (a tie for best, but a low absolute score), FrontierCode at 15.1%, Terminal-Bench Science at 1.4%, AutomationBench at 41.8% against Qwen’s 48.2%, GDPVal at 1319 against Qwen’s 1427, and MMMU Pro at 74.9% against Qwen’s 76.3%. The company’s own notes list multi-turn chat, heavily constrained instructions, factual recall, and occasional long reasoning loops as weak spots. One independent measurement is worth keeping in mind: Artificial Analysis needed 161 million output tokens to finish its index with this model against an 85.7 million median, which matches my finding that the model reasons verbosely unless its effort is capped.

3. Choosing a quantization

Unsloth publishes several GGUF quantizations. File size against top-token agreement with the Q8 reference:

Quantization File size Agreement with Q8
UD-IQ1_S 7.76 GB 89.4%
UD-IQ2_XXS 8.49 GB 90.6%
UD-Q2_K_XL 9.14 GB 91.6%
UD-IQ3_XXS 11.66 GB 94.7%
UD-Q3_K_XL 13.63 GB 96.3%
UD-IQ4_XS 15.73 GB 97.7%
UD-Q4_K_M 16.61 GB 97.9%
UD-Q8_K_XL 22.87 GB Reference

I selected UD-Q2_K_XL because 9.14 GB leaves room for context and compute buffers on a 12 GB card. The next step up at 11.66 GB would leave almost nothing for the KV cache once the desktop and other processes take their share. File size is not the full budget: attention KV cache, compute buffers, the projector, and the operating system all consume VRAM. A weight file that fits does not guarantee a working configuration, as Section 6 demonstrates with numbers.

4. Windows and CUDA installation

Prerequisites: Windows 10 or 11, an NVIDIA card with at least 12 GB of VRAM for this quantization, driver 591.44 or compatible (mine reports CUDA compatibility 13.1), and about 10 GB of disk for the model cache.

Download the CUDA Windows x64 release from the llama.cpp releases page:

https://github.com/ggml-org/llama.cpp/releases

Download the matching CUDA runtime DLL package where one is provided. Extract both into the same directory. I use C:\lamacpp. The directory must contain llama-server.exe alongside ggml-cuda.dll, cublas64_12.dll, cublasLt64_12.dll, and cudart64_12.dll. No CUDA toolkit install is needed.

Check the GPU, the build, and device detection:

nvidia-smi

Representative output on my machine:

Driver Version: 591.44
CUDA Version: 13.1
GPU: NVIDIA GeForce RTX 2060
Memory: 12288 MiB
C:\lamacpp\llama-server.exe --version
version: 1.1.0-dev (build 12800, commit 47d6192fc)
built with Clang 22.1.8 for Windows x86_64
C:\lamacpp\llama-server.exe --list-devices

A working CUDA installation reports:

Available devices:
  CUDA0: NVIDIA GeForce RTX 2060 (12287 MiB, 11205 MiB free)

My first installation reported (none) here while the server still answered questions at 5.17 tokens/sec. The executable resolved through PATH was a CPU-only build. I fixed it by using the explicit C:\lamacpp\llama-server.exe path with the CUDA backend and runtime DLLs beside it. I verified the fix with nvidia-smi (the server appears as a compute process), the server timings object, and the weight-allocation log — not with conversational quality. A model answering questions proves the weights load. It says nothing about which processor runs them. I could not reconstruct which historical install step originally broke CUDA detection, so I report the verified fix, not the original cause.

5. FAST and AGENT launchers

Two batch files cover the qualified profiles. Both pin the executable path, because relying on PATH is what gave me a CPU-only server. Both print the version and device list before starting, so a silent CPU fallback shows up immediately. Adjust the paths; everything else can be copied verbatim.

FAST is for short structured tasks at 4K (measured 36.1 tokens/sec generation). Save as start-inkling-fast.bat:

@echo off
setlocal EnableExtensions

set "MODEL=unsloth/Inkling-2-Mini-GGUF:UD-Q2_K_XL"
set "LLAMA_CACHE=D:\models\inkling-2-mini"
set "HOST=127.0.0.1"
set "PORT=8088"
set "CTX_SIZE=4096"

set "LLAMA_SERVER=C:\lamacpp\llama-server.exe"

if not exist "%LLAMA_SERVER%" (
    echo ERROR: llama-server.exe was not found.
    pause
    exit /b 1
)

if not exist "%LLAMA_CACHE%" mkdir "%LLAMA_CACHE%"

echo ===== VERSION =====
"%LLAMA_SERVER%" --version

echo ===== DEVICES =====
"%LLAMA_SERVER%" --list-devices

echo ===== STARTING INFERENCE SERVER =====

"%LLAMA_SERVER%" ^
  -hf "%MODEL%" ^
  --alias inkling-2-mini ^
  --device CUDA0 ^
  -ngl auto ^
  --ctx-size %CTX_SIZE% ^
  --parallel 1 ^
  --threads 8 ^
  --threads-batch 16 ^
  --jinja ^
  --verbose ^
  --host %HOST% ^
  --port %PORT%

AGENT is the qualified E05 configuration: 16,384-token context, text-only inference, 8-bit KV cache (measured 37.2 tokens/sec generation). Save as start-inkling-agent.bat; it differs only in the three flagged lines:

@echo off
setlocal EnableExtensions

set "MODEL=unsloth/Inkling-2-Mini-GGUF:UD-Q2_K_XL"
set "LLAMA_CACHE=D:\models\inkling-2-mini"
set "HOST=127.0.0.1"
set "PORT=8088"
set "CTX_SIZE=16384"

set "LLAMA_SERVER=C:\lamacpp\llama-server.exe"

if not exist "%LLAMA_SERVER%" (
    echo ERROR: llama-server.exe was not found.
    pause
    exit /b 1
)

if not exist "%LLAMA_CACHE%" mkdir "%LLAMA_CACHE%"

echo ===== VERSION =====
"%LLAMA_SERVER%" --version

echo ===== DEVICES =====
"%LLAMA_SERVER%" --list-devices

echo ===== STARTING INFERENCE SERVER =====

"%LLAMA_SERVER%" ^
  -hf "%MODEL%" ^
  --alias inkling-2-mini ^
  --device CUDA0 ^
  -ngl auto ^
  --ctx-size %CTX_SIZE% ^
  --parallel 1 ^
  --threads 8 ^
  --threads-batch 16 ^
  --jinja ^
  --no-mmproj ^
  -ctk q8_0 -ctv q8_0 ^
  --verbose ^
  --host %HOST% ^
  --port %PORT%

Parameter notes, all verified against the installed build’s --help: --ctx-size sets the prompt context in tokens; --no-mmproj skips loading the vision projector, which coding work does not need; -ctk q8_0 -ctv q8_0 store the KV cache keys and values at 8-bit precision instead of 16-bit; -ngl auto lets llama.cpp place layers across GPU and host automatically (at 16K it keeps 7.9 GB of weights on the GPU and moves the rest to host RAM); --device CUDA0 pins execution to the NVIDIA card; --parallel 1 allocates one inference slot; --jinja enables the model’s chat template, which implements tool calling and reasoning-effort control. During the experiments I passed -m with the cached file path instead of -hf to avoid re-downloading weights when the cache environment differed; fresh installs should keep -hf, which downloads and caches automatically.

Adjust LLAMA_CACHE to your preferred model storage. On first launch the server downloads the weights and projector into its Hugging Face cache; subsequent launches reuse them. If a launch starts downloading gigabytes again instead of loading, the cache resolved somewhere unexpected — point -m at the cached .gguf file directly rather than fighting it. Both launchers serve port 8088, so run one at a time.

A note on security before going further. The server as configured here is unauthenticated HTTP bound to 127.0.0.1: only processes on your own machine can reach it. Keep it that way for local development. Exposing the endpoint to other machines needs authentication, network controls, and CORS configuration that this article does not set up. Likewise, Pi executes tools with your user permissions, and the isolated working directories in Section 12 are a convenience boundary, not a sandbox.

6. Context optimization

The original 4K configuration blocked agent execution for two independent reasons. The server allocated only 4096 tokens total, and Pi keeps a 4096-token context safety margin plus 15% of input precisely so a request is never sent blind into an over-counted window. With a 4096 window and a 500-token prompt, Pi computed one token of output room and requested max_tokens: 1. Separately, Pi’s default thinking budgets (1024 minimal, 2048 low) with a 1024-token answer reservation exceeded the model’s 1024 output cap. Both constraints had to move.

Disabling the projector was appropriate because the Pi coding experiments need no image input, and the projector’s allocation competes directly with KV cache. The KV cache stores per-token keys and values for every layer so decoding does not recompute them. Its size grows with context length, layer count, embedding width, and stored precision. Quantizing model weights shrinks the stored checkpoint; quantizing the KV cache shrinks the runtime per-token memory. They are independent knobs, and the KV cache was the binding one here.

The measured ladder, same fixed prompt, temperature 0.0, low reasoning effort, five runs except where noted:

Configuration Context Median generation t/s Median prompt t/s
Original 4K CUDA 4096 36.1 54.3
8K text-only 8192 37.6 53.6
16K text-only 16384 27.7 34.8
16K text-only + Q8 KV (AGENT) 16384 37.2 54.1
32K text-only + Q8 KV 32768 13.4 19.0

Server-reported allocations explain the shape. At 8K: 8469 MiB weights on GPU, 499 MiB context, 997 MiB compute, 444 MiB free. At 16K without KV quantization, the context and compute buffers no longer fit alongside full weights, so automatic offloading moved about 1.1 GB of weights to host RAM (7572 MiB GPU / 1132 MiB host) and throughput fell to 27.7 tokens/sec. Quantizing the cache to 8-bit cut context memory from 756 to 407 MiB, pulled weights back onto the GPU (7871 MiB GPU / 833 MiB host, 421 MiB free), and restored 37.2 tokens/sec. Quantizing the KV cache allowed a fourfold context increase over the original 4K setup at effectively identical throughput. At 32K the server still loads, but 6.7 GB of weights sit on host memory while generation falls to 13.4 tokens/sec from a single probe, below my 20 tokens/sec engineering target. That pattern is consistent with host-resident weights being fetched over the PCIe bus on every pass, but I did not measure transfer-level cause and report it only as an association. CPU expert offloading (--cpu-moe) would trade speed for memory I did not need, so I verified the flag exists and left it untested.

Context usability was checked separately from allocation with a three-marker retention test at 16K: a 12,000-character document with MARKER-ALPHA-7741, MARKER-BETA-9923, and MARKER-GAMMA-5518 at spread positions, asking for the three markers in order with a 512-token budget. Result: MARKER-ALPHA-7741, MARKER-BETA-9923, MARKER-GAMMA-5518, finish stop, 139 tokens, 13.4s. That confirms short-document recall inside a 16K allocation, not full-window usability — a 12K-character document exercises a fraction of the window.

7. Python inference

This stdlib-only program is complete and runnable as written. It connects to the local endpoint, selects the model, sets reasoning effort and output budget explicitly, reads visible and reasoning content separately, and reports finish reason, token usage, and server-side timings with HTTP error handling:

"""Complete standalone inference (standard library only)."""
import json
import urllib.error
import urllib.request

BASE_URL = "http://127.0.0.1:8088"
MODEL = "inkling-2-mini"

payload = {
    "model": MODEL,
    "messages": [
        {
            "role": "system",
            "content": "You are a concise Python programming assistant.",
        },
        {
            "role": "user",
            "content": "Write a Python function that performs binary search on a sorted list.",
        },
    ],
    "temperature": 0.0,
    "max_tokens": 1024,
    "reasoning_effort": "low",
}

request = urllib.request.Request(
    BASE_URL + "/v1/chat/completions",
    data=json.dumps(payload).encode("utf-8"),
    headers={"Content-Type": "application/json"},
)

try:
    with urllib.request.urlopen(request, timeout=300) as response:
        result = json.load(response)
except urllib.error.HTTPError as exc:
    print(f"HTTP error {exc.code}: {exc.read().decode('utf-8', 'replace')[:500]}")
    raise SystemExit(1)
except TimeoutError:
    print("Request timed out after 300 seconds.")
    raise SystemExit(1)

message = result["choices"][0]["message"]
print(message.get("content", ""))
print("---")
print("reasoning chars:", len(message.get("reasoning_content") or ""))
print("finish reason:", result["choices"][0].get("finish_reason"))
print("usage:", result.get("usage"))
print("server timings:", result.get("timings"))

Run it while the AGENT server is up:

python infer.py

Representative measured output against the 16K server:

```python
def binary_search(arr, target):
    low, high = 0, len(arr) - 1

    while low <= high:
        mid = (low + high) // 2
        if arr[mid] == target:
            return mid
        elif arr[mid] < target:
            low = mid + 1
        else:
            high = mid - 1

    return -1
```

Returns the index of `target` in the sorted list, or `-1` if not found.
---
reasoning chars: 272
finish reason: stop
usage: {'completion_tokens': 195, 'prompt_tokens': 40, 'total_tokens': 235, 'prompt_tokens_details': {'cached_tokens': 0}}
server timings: {'cache_n': 0, 'prompt_n': 40, 'prompt_ms': 576.715, 'prompt_per_second': 69.36, 'predicted_n': 195, 'predicted_ms': 5590.136, 'predicted_per_second': 34.70}

The generation figure counts reasoning plus visible tokens (195 here, of which the visible function is the smaller part). Visible throughput is therefore lower than the headline number — budget for both when sizing output limits.

8. Structured output

Applications rarely want prose. They want a value they can validate. This complete program extracts release facts into JSON and checks the result deterministically, including explicit handling for invalid JSON and unexpected keys:

"""Structured JSON extraction with deterministic validation."""
import json
import urllib.request

BASE_URL = "http://127.0.0.1:8088"
MODEL = "inkling-2-mini"

DOCUMENT = (
    "Inkling 2 Mini was released on November 20, 2026. "
    "It has 26.4 billion total parameters and a native context window of 1048576 tokens."
)

payload = {
    "model": MODEL,
    "messages": [
        {
            "role": "user",
            "content": (
                "Extract release facts from the document. "
                'Return ONLY a JSON object with exactly these keys: '
                '"model" (string), "release_date" (YYYY-MM-DD string), '
                '"total_params_b" (number, billions), '
                '"native_ctx" (integer, tokens). No Markdown, no commentary.\n'
                f"Document: {DOCUMENT}"
            ),
        }
    ],
    "temperature": 0.0,
    "max_tokens": 512,
    "reasoning_effort": "low",
}

request = urllib.request.Request(
    BASE_URL + "/v1/chat/completions",
    data=json.dumps(payload).encode("utf-8"),
    headers={"Content-Type": "application/json"},
)

with urllib.request.urlopen(request, timeout=300) as response:
    result = json.load(response)

text = (result["choices"][0]["message"].get("content") or "").strip()
print("raw model output:")
print(text)
print("---")

try:
    parsed = json.loads(text)
except json.JSONDecodeError:
    print("INVALID JSON from model; raw output retained above.")
    raise SystemExit(1)

expected_keys = {"model", "release_date", "total_params_b", "native_ctx"}
if set(parsed) != expected_keys:
    print(f"UNEXPECTED KEYS: {sorted(set(parsed))} (expected {sorted(expected_keys)})")
    raise SystemExit(1)
if not isinstance(parsed["total_params_b"], (int, float)):
    print("total_params_b is not a number.")
    raise SystemExit(1)
if not isinstance(parsed["native_ctx"], int):
    print("native_ctx is not an integer.")
    raise SystemExit(1)

print("validated:", parsed)
assert parsed["model"].lower().startswith("inkling"), parsed
assert parsed["release_date"] == "2026-11-20", parsed
assert abs(parsed["total_params_b"] - 26.4) < 0.01, parsed
assert parsed["native_ctx"] == 1048576, parsed
print("All deterministic checks passed.")

Actual output:

raw model output:
{"model":"Inkling 2 Mini","release_date":"2026-11-20","total_params_b":26.4,"native_ctx":1048576}
---
validated: {'model': 'Inkling 2 Mini', 'release_date': '2026-11-20', 'total_params_b': 26.4, 'native_ctx': 1048576}
All deterministic checks passed.

Structured output is what makes a local model pluggable into software: the prompt fixes the schema, the program parses without guessing, and the assertions decide acceptance. Every manuscript case in Section 14 went through this same discipline.

9. Native tool calling

Tool calling splits the work cleanly. The model selects the function and supplies arguments; the application validates and executes a deterministic local function — never arbitrary model-generated code. This complete program reproduces the verified 23 + 19 = 42 round trip:

"""Native tool calling. The model picks the function and arguments;
this program validates and executes a deterministic local function."""
import json
import urllib.request

BASE_URL = "http://127.0.0.1:8088"
MODEL = "inkling-2-mini"


def post(payload):
    request = urllib.request.Request(
        BASE_URL + "/v1/chat/completions",
        data=json.dumps(payload).encode("utf-8"),
        headers={"Content-Type": "application/json"},
    )
    with urllib.request.urlopen(request, timeout=300) as response:
        return json.load(response)


def add(a, b):
    """Deterministic local function. The model never runs code itself."""
    return a + b


tools = [
    {
        "type": "function",
        "function": {
            "name": "add",
            "description": "Add two integers.",
            "parameters": {
                "type": "object",
                "properties": {
                    "a": {"type": "integer"},
                    "b": {"type": "integer"},
                },
                "required": ["a", "b"],
                "additionalProperties": False,
            },
        },
    }
]

history = [
    {
        "role": "user",
        "content": (
            "Use the add tool to calculate 23 plus 19. "
            "After receiving the result, return only the integer."
        ),
    }
]

base = {
    "model": MODEL,
    "messages": history,
    "temperature": 0.0,
    "max_tokens": 1024,
    "reasoning_effort": "low",
    "tools": tools,
    "tool_choice": "auto",
}

first = post(base)
assistant = first["choices"][0]["message"]
calls = assistant.get("tool_calls") or []
assert len(calls) == 1, f"expected one tool call, got: {calls}"
call = calls[0]
assert call["function"]["name"] == "add", call["function"]
args = json.loads(call["function"]["arguments"])
print("tool name:", call["function"]["name"])
print("tool arguments:", args)
assert set(args) == {"a", "b"}, args
assert all(type(v) is int for v in args.values()), args
assert sorted(args.values()) == [19, 23], args

tool_result = add(args["a"], args["b"])
print("local execution result:", tool_result)

history.append(
    {
        "role": "assistant",
        "content": assistant.get("content"),
        "tool_calls": calls,
    }
)
history.append(
    {
        "role": "tool",
        "tool_call_id": call["id"],
        "content": str(tool_result),
    }
)

final = post({**base, "messages": history})
answer = (final["choices"][0]["message"].get("content") or "").strip()
print("final response:", answer)
assert answer == "42", repr(answer)
print("Tool-calling round trip verified: 23 + 19 = 42.")

Actual output:

tool name: add
tool arguments: {'a': 23, 'b': 19}
local execution result: 42
final response: 42
Tool-calling round trip verified: 23 + 19 = 42.

Nine steps, each checkable: schema definition, request, tool call receipt, function-name validation, argument validation, local execution, history append, tool-result return, final answer. The model at no point executes anything itself.

10. Model qualification

The article edition of the qualification suite below runs the core checks with the standard library only: health, discovery, instruction, arithmetic, reasoning, JSON, conversation, grounding, abstention, streaming, tool calling, the original budget failure reproduced deliberately, and the corrected performance probe:

"""Article edition of the qualification suite (standard library only)."""
import json
import time
import urllib.request

BASE_URL = "http://127.0.0.1:8088"
MODEL = "inkling-2-mini"
TIMEOUT = 300

passed, failed = 0, 0


def check(name, condition, detail=""):
    global passed, failed
    if condition:
        passed += 1
        print(f"PASS {name}")
    else:
        failed += 1
        print(f"FAIL {name} {detail}")


def post(payload, stream=False):
    request = urllib.request.Request(
        BASE_URL + "/v1/chat/completions",
        data=json.dumps(payload).encode("utf-8"),
        headers={"Content-Type": "application/json"},
    )
    with urllib.request.urlopen(request, timeout=TIMEOUT) as response:
        if not stream:
            return json.load(response)
        chunks, done = [], False
        for raw in response:
            line = raw.decode("utf-8").strip()
            if not line.startswith("data:"):
                continue
            data = line[5:].strip()
            if data == "[DONE]":
                done = True
                break
            for choice in json.loads(data).get("choices", []):
                content = choice.get("delta", {}).get("content")
                if content:
                    chunks.append(content)
        return {"text": "".join(chunks), "done": done}


def chat(content, **options):
    payload = {
        "model": MODEL,
        "messages": [{"role": "user", "content": content}],
        "temperature": 0.0,
        "max_tokens": 512,
        "reasoning_effort": "low",
    }
    payload.update(options)
    return post(payload)


def text(response):
    return (response["choices"][0]["message"].get("content") or "").strip()


with urllib.request.urlopen(BASE_URL + "/health", timeout=30) as response:
    check("health", json.load(response).get("status") == "ok")

with urllib.request.urlopen(BASE_URL + "/v1/models", timeout=30) as response:
    ids = [m["id"] for m in json.load(response)["data"]]
    check("discovery", MODEL in ids, str(ids))

check("instruction", text(chat("Reply with exactly the word READY.")) == "READY")
check("arithmetic", text(chat("What is 17 multiplied by 23? Return only the integer.")) == "391")
check("reasoning", text(chat("Alice is older than Bob. Bob is older than Carol. Who is youngest? Reply with only the name.")).lower() == "carol")
try:
    parsed = json.loads(text(chat('Return only a JSON object with "status" equal to "ok" and "count" equal to 3. Do not use Markdown.')))
    check("json", parsed == {"status": "ok", "count": 3}, str(parsed))
except (json.JSONDecodeError, KeyError, TypeError) as exc:
    check("json", False, f"model output was not valid JSON: {exc}")

conversation = post({
    "model": MODEL,
    "messages": [
        {"role": "user", "content": "The project identifier is ZEBRA-927."},
        {"role": "assistant", "content": "Understood."},
        {"role": "user", "content": "Return only the project identifier."},
    ],
    "temperature": 0.0,
    "max_tokens": 512,
    "reasoning_effort": "low",
})
check("conversation", text(conversation) == "ZEBRA-927")
check("grounding", text(chat("Use only the supplied document.\nDocument: Project Atlas has 17 active services and four inactive services.\nHow many active services are there? Return only the integer.")) == "17")
check("abstention", text(chat("Use only the supplied document. If the information is absent, reply exactly UNKNOWN.\nDocument: Project Atlas has 17 active services.\nWho is the project manager?")) == "UNKNOWN")

streamed = post({
    "model": MODEL,
    "messages": [{"role": "user", "content": "Reply with exactly STREAMING."}],
    "temperature": 0.0,
    "max_tokens": 512,
    "reasoning_effort": "low",
    "stream": True,
}, stream=True)
check("streaming", streamed["done"] and streamed["text"].strip() == "STREAMING", repr(streamed))

tools = [{
    "type": "function",
    "function": {
        "name": "add",
        "description": "Add two integers.",
        "parameters": {
            "type": "object",
            "properties": {"a": {"type": "integer"}, "b": {"type": "integer"}},
            "required": ["a", "b"],
            "additionalProperties": False,
        },
    },
}]
history = [{"role": "user", "content": "Use the add tool to calculate 23 plus 19. After receiving the result, return only the integer."}]
first = post({"model": MODEL, "messages": history, "temperature": 0.0, "max_tokens": 1024, "reasoning_effort": "low", "tools": tools, "tool_choice": "auto"})
assistant = first["choices"][0]["message"]
calls = assistant.get("tool_calls") or []
tool_detail = ""
try:
    if len(calls) != 1:
        raise ValueError(f"expected 1 tool call, got {len(calls)}")
    fn = calls[0].get("function") or {}
    if fn.get("name") != "add":
        raise ValueError(f"unexpected function: {fn.get('name')!r}")
    try:
        args = json.loads(fn.get("arguments") or "")
    except (json.JSONDecodeError, TypeError) as exc:
        raise ValueError(f"arguments are not valid JSON: {exc}")
    if not isinstance(args, dict) or set(args) != {"a", "b"}:
        raise ValueError(f"unexpected argument keys: {args!r}")
    if not all(type(v) is int for v in args.values()) or sorted(args.values()) != [19, 23]:
        raise ValueError(f"unexpected argument values: {args!r}")
    ok = True
except ValueError as exc:
    ok, tool_detail, args = False, str(exc), {}
if ok:
    history.append({"role": "assistant", "content": assistant.get("content"), "tool_calls": calls})
    history.append({"role": "tool", "tool_call_id": calls[0].get("id", "call-0"), "content": str(args["a"] + args["b"])})
    final = post({"model": MODEL, "messages": history, "temperature": 0.0, "max_tokens": 1024, "reasoning_effort": "low", "tools": tools})
    check("tool-calling", text(final) == "42", repr(args))
else:
    check("tool-calling", False, tool_detail)

# Original output-budget failure, reproduced deliberately at 512 tokens
# with default reasoning effort: expect length + empty visible content.
budget = post({
    "model": MODEL,
    "messages": [{"role": "user", "content": "Explain how a hash table works, including collisions, resizing and average complexity of operations."}],
    "temperature": 0.0,
    "max_tokens": 512,
})
budget_msg = budget["choices"][0]["message"]
check(
    "budget-512-exhaustion",
    budget["choices"][0].get("finish_reason") == "length" and not (budget_msg.get("content") or "").strip(),
    "expected length with empty visible content",
)

# Corrected performance probe: 1024-token budget, low effort.
start = time.perf_counter()
perf = post({
    "model": MODEL,
    "messages": [{"role": "user", "content": "Explain how a hash table works, including collisions, resizing and average complexity of operations."}],
    "temperature": 0.0,
    "max_tokens": 1024,
    "reasoning_effort": "low",
})
elapsed = time.perf_counter() - start
timings = perf.get("timings") or {}
print(f"perf: {timings.get('predicted_n')} tokens in {elapsed:.1f}s, "
      f"server {timings.get('predicted_per_second'):.1f} t/s gen, "
      f"{timings.get('prompt_per_second'):.1f} t/s prompt")
check("performance", perf["choices"][0].get("finish_reason") == "stop" and bool(text(perf)))

print(f"\npassed={passed} failed={failed}")
raise SystemExit(1 if failed else 0)

Actual result against the 16K AGENT server:

PASS health
PASS discovery
PASS instruction
PASS arithmetic
PASS reasoning
PASS json
PASS conversation
PASS grounding
PASS abstention
PASS streaming
PASS tool-calling
PASS budget-512-exhaustion
perf: 495 tokens in 16.4s, server 30.9 t/s gen, 86.8 t/s prompt
PASS performance

passed=13 failed=0

The budget-512-exhaustion line documents the original failure as expected behavior rather than hiding it: with default (high) reasoning effort, 512 output tokens are consumed by reasoning and the visible answer is empty with finish length. The corrected probe with a 1024 budget and low effort completes. I repeated only the performance probe five times (Section 6 medians); the other checks are single-sample evidence at temperature 0.0.

11. Configuring Pi

Pi is developed at github.com/earendil-works/pi as the npm package @earendil-works/pi-coding-agent. (The project moved there from the old badlogic/pi-mono location in 2026; older references to that URL are stale.) Install with npm install -g --ignore-scripts @earendil-works/pi-coding-agent, which needs Node.js 22.19 or newer — I tested with Pi 1.6.0 and Node v25.8.2, and pi --version confirms the install.

The custom provider file lives at %USERPROFILE%\.pi\agent\models.json. That file is yours: entries you add there overlay the built-in catalog. models-store.json in the same directory is Pi’s generated registry — do not edit it. Back up models.json, then merge this provider block (preserving any providers already present):

{
  "providers": {
    "local-inkling": {
      "baseUrl": "http://127.0.0.1:8088/v1",
      "api": "openai-completions",
      "apiKey": "local",
      "compat": {
        "supportsStore": false,
        "supportsDeveloperRole": false,
        "supportsReasoningEffort": true,
        "maxTokensField": "max_tokens",
        "supportsStrictMode": false,
        "thinkingFormat": "deepseek"
      },
      "models": [
        {
          "id": "inkling-2-mini",
          "name": "Inkling 2 Mini - Local CUDA",
          "reasoning": true,
          "input": ["text"],
          "cost": {"input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0},
          "contextWindow": 16384,
          "maxTokens": 2048,
          "thinkingLevelMap": {
            "off": "none",
            "minimal": "minimal",
            "low": "low",
            "medium": "medium",
            "high": "high",
            "xhigh": "xhigh",
            "max": "max"
          },
          "samplingParamsByThinkingLevel": {
            "off": {"reasoning_effort": "none"},
            "minimal": {"reasoning_effort": "minimal"},
            "low": {"reasoning_effort": "low"}
          }
        }
      ]
    }
  }
}

The zero prices record the absence of an external API charge, not the absence of cost — electricity, hardware time, and your time still count. The 16384 context window must match the --ctx-size the server actually allocated; advertising the model’s native one-million-token window here would be wrong. The "input": ["text"] entry reflects the AGENT server’s --no-mmproj text-only mode — Pi validated discovery with image support removed (local-inkling inkling-2-mini 16.4K 2.0K yes no). The FAST profile keeps the projector initialized, although actual image interpretation has not been qualified and nothing in this article tests it. Check discovery and run a first response:

pi --list-models inkling
pi -p --provider local-inkling --model inkling-2-mini:low --no-tools --no-session "Reply with exactly the word READY."
READY

At 4K this same command failed with Response was truncated: the model reached its output token limit. A logging proxy captured the wire request: max_tokens: 1, with 522 tokens evaluated and 1 predicted server-side. Pi keeps a 4096-token context safety margin plus 15% of input before sending anything, so a 4096 window with a 500-token prompt left one token of output room. Separately, Pi’s default thinking budgets (1024 minimal, 2048 low) with a 1024-token answer reservation exceeded the 1024 output cap. The corrected 16K setup requests max_tokens: 2048 with reasoning effort low (retained verbatim in pi-request-evidence.json: 2 messages, 7 default tools, thinking: {type: enabled}). The 4K failure stays in the story because it is the more useful finding: it locates the exact interaction between harness margins and server allocation instead of blaming the model.

12. Pi coding examples

P1 — Read and understand

Create the fixture in an empty directory:

def mean(xs):
    s = 0.0
    for x in xs:
        s += x
    return s / len(xs) if xs else 0.0

def variance(xs):
    m = mean(xs)
    return sum((x - m) ** 2 for x in xs) / len(xs) if xs else 0.0
mkdir inkling-pi-P1
cd inkling-pi-P1
# save the fixture above as stats.py
pi -p --provider local-inkling --model inkling-2-mini:low --no-skills --no-mcp --no-context-files --system-prompt "You are concise. Use file tools to inspect before answering." "Read stats.py in the current directory and explain what mean and variance do in two sentences."

Pi’s transcript shows the file-reading tool invocation before any explanation:

{"role": "assistant", "content": [
  {"type": "thinking", "thinking": "The user wants me to read stats.py in the current directory. Let me do that first."},
  {"type": "toolCall", "id": "Q3PT7O8wpOzhp0XfQBxRE2indTNhUNbm", "name": "read", "arguments": {"path": "stats.py"}}
]}

followed by the tool result carrying the file content, then the verified explanation: mean computes the arithmetic average (0.0 for an empty list); variance averages the squared deviations from that mean (also 0.0 for empty input). Correct on both counts.

P2 — Create software

In a fresh directory, give Pi the whole task in one prompt:

mkdir inkling-pi-P2
cd inkling-pi-P2
pi -p --provider local-inkling --model inkling-2-mini:low --no-skills --no-mcp --no-context-files --system-prompt "You are a coding assistant. Create files with the write tool and run commands with bash. Be concise." "Create a Python module named calculator.py. Implement four functions: add, subtract, multiply, divide. Division by zero must raise ValueError. Create a separate file named test_calculator.py containing eight unit tests using unittest. Run the tests with python -m unittest and report the actual results. Only create or modify files within the current directory. Do not install packages or access the network."

The transcript records four tool calls: a directory listing, two write calls, and a test execution. The generated calculator.py:

def add(a, b):
    return a + b


def subtract(a, b):
    return a - b


def multiply(a, b):
    return a * b


def divide(a, b):
    if b == 0:
        raise ValueError("Division by zero")
    return a / b

The generated test_calculator.py:

import unittest

from calculator import add, subtract, multiply, divide


class TestCalculator(unittest.TestCase):
    def test_add(self):
        self.assertEqual(add(2, 3), 5)

    def test_add_negative(self):
        self.assertEqual(add(-2, -3), -5)

    def test_subtract(self):
        self.assertEqual(subtract(10, 4), 6)

    def test_subtract_negative(self):
        self.assertEqual(subtract(4, 10), -6)

    def test_multiply(self):
        self.assertEqual(multiply(3, 4), 12)

    def test_multiply_zero(self):
        self.assertEqual(multiply(5, 0), 0)

    def test_divide(self):
        self.assertEqual(divide(10, 2), 5)

    def test_divide_by_zero_raises_value_error(self):
        with self.assertRaises(ValueError):
            divide(10, 0)


if __name__ == "__main__":
    unittest.main()

Pi reported all 8 tests passing. Independent verification outside the agent, run exactly as shown:

python -m unittest discover -s . -v
test_add (test_calculator.TestCalculator) ... ok
test_add_negative ... ok
test_divide ... ok
test_divide_by_zero_raises_value_error ... ok
test_multiply ... ok
test_multiply_zero ... ok
test_subtract ... ok
test_subtract_negative ... ok

Ran 8 tests in 0.000s
OK

The code above is reproduced verbatim from the agent’s output; nothing was cleaned up for publication. This succeeded at 8K and again at 16K with a fresh set of eight tests.

P3 — Repair software

The more valuable case is an agent working with an existing artifact. In a fresh directory, save the defective implementation as buggy.py — the filename matters because the prompt and the tests refer to it:

def mean(xs):
    return sum(xs) / (len(xs) + 1)


def variance(xs):
    m = sum(xs) / len(xs)
    return sum((x - m) ** 2 for x in xs) / (len(xs) + 1)

Both functions divide by len(xs) + 1 instead of len(xs). Add the independent acceptance test as test_acceptance.py:

import unittest
from buggy import mean, variance

class TestAcceptance(unittest.TestCase):
    def test_mean(self):
        self.assertAlmostEqual(mean([2, 4]), 3.0)
    def test_variance(self):
        self.assertAlmostEqual(variance([2, 4, 4, 4, 5, 5, 7, 9]), 4.0)

if __name__ == '__main__':
    unittest.main()

Run Pi with the exact repair prompt:

pi -p --provider local-inkling --model inkling-2-mini:low --no-skills --no-mcp --no-context-files --system-prompt "You are a coding assistant. Use file tools and run commands with powershell. Be concise." "The file buggy.py has two defects. There is an independent acceptance test in test_acceptance.py. Investigate, fix buggy.py so the acceptance tests pass, run the tests, and report results. Only modify files in the current directory."

The 8K transcript shows four tool calls, including one failed approach (a broken heredoc edit) followed by a working read-and-replace repair. The corrected file:

 def mean(xs):
-    return sum(xs) / (len(xs) + 1)
+    return sum(xs) / (len(xs))


 def variance(xs):
     m = sum(xs) / len(xs)
-    return sum((x - m) ** 2 for x in xs) / (len(xs) + 1)
+    return sum((x - m) ** 2 for x in xs) / (len(xs))

Verify outside the agent, exactly as shown:

python -m unittest discover -s . -v
test_mean (test_acceptance.TestAcceptance) ... ok
test_variance (test_acceptance.TestAcceptance) ... ok

Ran 2 tests in 0.000s
OK

The repair was verified again at 16K with the same seeded defects: 2/2 pass. Use an isolated directory for these experiments, and treat it as a convenience boundary, not a security sandbox — Pi executes commands with your user privileges.

13. Worker integration

Worker already ships an OpenAICompatibleGateway and a work-direct executor, so Inkling registers as configuration rather than code. Save this test-only file as worker-inkling.json (production routing untouched — the WORKER_MODELS_CONFIG default file is not modified) and point a direct executor at the local endpoint:

{
  "server": {"host": "127.0.0.1", "port": 7320},
  "executor": {"default": "direct"},
  "executors": {"direct": {"type": "work-direct", "model_gateway": "inkling"}},
  "model_gateways": {
    "inkling": {
      "type": "openai-compatible",
      "base_url": "http://127.0.0.1:8088/v1",
      "default_model": "inkling-2-mini"
    }
  },
  "profiles": {}
}

With WORKER_CONFIG pointed at that file (PowerShell):

$env:WORKER_CONFIG = "C:\Projects\inkling-qual\worker-inkling.json"
$env:WORKER_USAGE_LEDGER = "off"
cd C:\Projects\worker
bun src/cli/cli.ts health
bun src/cli/cli.ts run --backend direct --model inkling-2-mini "Reply with exactly the word READY."

These commands run inside my Worker checkout (C:\Projects\worker, Bun runtime) — readers without it can skip this section; the Python and Pi examples above stand on their own. health needs only the config file. run executes a one-shot request without starting a server; nothing else must be launched first.

Health reports the direct executor available with gateway inkling. The run returns READY with backend direct, model inkling-2-mini, request wrq_106e4b67. An abstention probe (Project Atlas has 17 active services. Who is the project manager?) returns UNKNOWN (request wrq_a7d68313). No new provider implementation was needed because the gateway already speaks the server’s OpenAI-compatible dialect.

Negative behavior was checked too. Dead port: health reports available: false with ECONNREFUSED, and a run returns BLOCKED/EXECUTOR_UNAVAILABLE — an accurate failure, no silent fallback. Oversize prompt (about 20K tokens against the 16K server): HTTP 400, surfaced as a gateway failure. One caveat: the single-model server ignores the requested model name and serves local weights regardless, reporting inkling-2-mini even for a bogus id. Inference stays local, but the name is not enforced server-side. Timeout handling was not exercised, so I make no claim about it. Worker is existing infrastructure of mine that readers will not have installed; the Python and Pi examples above stand on their own without it.

14. Manuscript screening

Ten retained passages with known annotations went through Worker direct. The passages below are synthetic fixtures written for this test — no private manuscript material — so the measurements correspond exactly to the inputs shown. The exact screening prompt sent for each passage:

You are a manuscript editor. Review the passage. Defect types: contradiction, obsolete_commentary, stale_pending, repeated_negation, rhetorical_contrast, excessive_qualification. Return ONLY JSON: {"defects": [{"type": "<one of the six>", "quote": "<short quote>"}], "clean": true/false}. Mark clean true only if no defects. Passage:
"""
<passage>
"""

The required output schema is {"defects": [{"type", "quote"}], "clean"} where type is one of the six defect names and clean is true only with zero defects. Each case ran as a separate Worker run call at temperature 0.0.

The ten passages and their expected annotations:

  1. The reactor core operates at 350C during normal cruise. Later in the same chapter: The reactor core never exceeds 280C during cruise. — expected: contradiction
  2. The docking sequence is fully automated. TODO: replace with final docking procedure before print. FIXME: check with engineering. — expected: obsolete_commentary
  3. The treaty signing is scheduled for next Tuesday, pending approval. (The chapter is set three years after the signing.) — expected: stale_pending
  4. The captain was not unaware of the risk. She was not unprepared for the storm. — expected: repeated_negation
  5. It was not merely a ship. It was a promise. It was not just metal. It was destiny. — expected: rhetorical_contrast
  6. The result was, in some sense, arguably, perhaps, to a certain extent, somewhat successful under certain conditions. — expected: excessive_qualification
  7. The fleet has 12 ships. The fleet has 15 ships. TODO: confirm count. It was not just a fleet, it was a legend. — expected: contradiction, obsolete_commentary, rhetorical_contrast
  8. The harbour master logged three arrivals before dawn. The tide was low. Gulls circled the masts. — expected: clean
  9. Mara tightened the strap, checked the gauge, and recorded 42 litres in the log. — expected: clean
  10. A hash table stores key-value pairs. Collisions are handled by chaining. Resizing keeps load factor bounded. — expected: clean

The deterministic scoring compares defect-type sets per case: true positives are expected types the model found, false positives are found types not expected, misses are expected types not found. Precision is TP/(TP+FP), recall TP/(TP+FN), aggregated over all cases; JSON compliance is the fraction of responses that parse with a defects list. The flow each case follows:

    flowchart LR
    A[Editorial task] --> B[Worker direct executor]
    B --> C[OpenAI-compatible gateway]
    C --> D[llama.cpp server]
    D --> E[Inkling 2 Mini]
    E --> F[Structured JSON response]
    F --> G[Deterministic validation]
  

Per-case results (T = true positives, F = false positives, M = misses; time in seconds):

Case Expected Found T F M Time
Contradiction (350C vs 280C) contradiction contradiction 1 0 0 10.0
Obsolete TODO/FIXME obsolete stale x2 0 1 1 25.1
Stale pending signing stale_pending contradiction, stale_pending 1 1 0 64.2
Repeated negation repeated_negation repeated_negation 1 0 0 14.8
Rhetorical contrast rhetorical_contrast rhetorical_contrast 1 0 0 46.7
Excessive qualification excessive_qualification excessive_qualification 1 0 0 11.4
Multi (count + TODO + rhetoric) 3 defects contradiction, stale, rhetoric 2 1 1 20.7
Clean harbour log none none 0 0 0 8.7
Clean gauge log none none 0 0 0 7.5
Clean hash-table explainer none none 0 0 0 18.9

Totals: 7 true positives, 3 false positives, 2 misses — precision 0.70, recall 0.78, structured-output compliance 10/10. All clean passages were marked clean. Errors were misclassifications between neighboring defect types: obsolete TODO/FIXME markers labelled stale_pending twice, one extra contradiction on a stale-pending case, and a missed obsolete_commentary with an extra stale_pending on the multi-defect case. The deterministic check is set arithmetic on defect-type sets plus JSON-schema validation — no model grades its own homework. Valid JSON establishes format compliance, not semantic correctness; the scores measure agreement on defect-type sets, not necessarily every individual occurrence in the text.

The same ten passages through Ollama qwen3.5:latest: 4 true positives, 0 false positives, 5 misses — precision 1.00, recall 0.44, JSON compliance 7/10, 24.9-222.8s per case. Inkling gave higher recall and more reliable structured output at lower latency on this dataset; Qwen gave higher precision when it answered. These figures describe the two tested configurations only. Remote comparisons were not run.

15. Writer pipeline limitation

The narrow screening above succeeded through Worker’s direct executor. The actual Writer application path did not complete, and the distinction matters. I ran Writer’s real QualityEngine.evaluate with strategy direct on a copied chapter, through ModelsEngine and the run_typed_task seam, against Worker pointed at Inkling. Writer built its own review prompt with citation requirements, dispatched one Worker task (53.3s), and Inkling produced text — then Writer’s contract layer recorded WORKER_EXECUTION_FAILED because the direct executor returns AWAITING_ACCEPTANCE by design (“direct model output; not Evidence, Verification, Proof, or Acceptance”). Retrying through the agentic opencode-work backend with a Pi-routed local model reached BLOCKED: the Pi provider went UNAVAILABLE on a runtime error, and direct reproduction shows pi --mode rpc failing with Cannot read properties of undefined (reading 'startsWith') on this custom endpoint while print mode works. The Writer code paths all executed; the blockers are execution-contract status on one side and Pi’s RPC handling of custom providers on the other. I report them as integration boundaries found by real runs, not as model capability verdicts.

16. When to choose Inkling

Use the local build for short, well-specified work that fits the qualified context with reasoning budgeted: classification, extraction, manuscript screening passes, metadata checks, offline drafting aids, local coding agents, and small repair tasks. Keep prompts small, set reasoning effort to low or minimal, demand JSON, and verify with a deterministic checker. Route elsewhere for large-context multi-file edits, long tool chains, or high-stakes decisions. The model card’s weak spots (multi-turn chat, heavily constrained instructions, factual recall, long reasoning loops) align with what I measured: the model does its best work when the task is narrow and the output contract is strict.

Local inference carries no per-token API charge, but the metric that matters is cost per verified successful task: total execution cost divided by verified successful tasks. On the defect task, Inkling’s single-attempt JSON reliability is what made it cheap. On 4K Pi agent loops it never completes, so at that configuration it is not cheap at any price.

The configuration I would keep on the machine is the AGENT profile: 16K text-only context with the Q8 KV cache at 37 tokens/sec, low reasoning effort as the default, and Pi pointed at it for file-bound coding work. The FAST profile stays useful for short structured calls where startup memory is tight. Everything else — 32K, CPU expert offloading, the full Writer pipeline — waits for new evidence.

References

  1. Thinking Machines Lab — Introducing Inkling 2 Mini https://thinkingmachines.ai/news/inkling-2-mini/

  2. Thinking Machines Lab — Inkling 2 Mini Model Card https://thinkingmachines.ai/model-card/inkling-2-mini/

  3. Hugging Face — Official Inkling 2 Mini Model https://huggingface.co/thinkingmachines/Inkling-2-Mini

  4. Unsloth — Inkling 2 Mini GGUF Quantizations https://huggingface.co/unsloth/Inkling-2-Mini-GGUF

  5. Unsloth — Inkling 2 Mini Installation Guide https://unsloth.ai/docs/models/inkling-2-mini

  6. llama.cpp — Source Code and Documentation https://github.com/ggml-org/llama.cpp

  7. llama.cpp — Binary Releases https://github.com/ggml-org/llama.cpp/releases

  8. Pi Coding Agent — Repository and Documentation https://github.com/earendil-works/pi

  9. Pi — Local Models with llama.cpp https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/llama-cpp.md

  10. NVIDIA — CUDA Compatibility Documentation https://docs.nvidia.com/deploy/cuda-compatibility/