Re-checked 2026-11-23 (Curator Pass B)

The thesis (focus and polish beat runnability) still holds. ds4 and pi-ds4 have broadened since May: more models, more hardware, a few settings. The Mac Studio RAM-shortage remark was not re-verified.

Armin Ronacher’s argument that local model inference is held back not by model quality or hardware, but by fragmentation and lack of end-to-end polish. The gap between “runnable” and “finished” is where the real work lies — and almost nobody is doing it.

The Experience Gap

Putting an API key into Pi and using a hosted model is boring — pick a provider, paste the key, done. Running locally on even a high-end Mac is a completely different experience: choose an inference engine, pick a model, select a quantization, configure a template, set a context size, throw JSON configs around, then discover one of those choices silently made the model worse.

The thesis

Hosted model providers do not ship a bag of weights and ask you to figure out the rest. Local models need to approach that standard.

Runnable Is Not Finished

A lot of local model work optimizes for making models runnable. That’s necessary, but not sufficient. The illustrative example: tool parameter streaming.

Most local inference setups don’t support streaming tool call parameters, despite the completions API supporting it. The consequences are surprisingly significant:

  • A dead connection is a weird connection — local models are slow; without streaming tokens, you can’t tell if the connection died or if it’s still thinking. Inactivity timeouts become pointless.
  • You won’t see what will happen — the model might be concocting a destructive bash invocation, and you won’t be able to interrupt until it’s too late.
  • It’s not state-of-the-art — tool parameter streaming is as important as text token streaming. See Streaming in Agent Harnesses for why progressive rendering and early-abort supervision matter.

The Fragmentation Problem

The local stack is fragmented across many engines: llama.cpp, Ollama, LM Studio, MLX, Transformers, vLLM, and more. All amazing projects. The problem isn’t that they exist — it’s that for a given model, the behavior you get depends on a long chain of small decisions most users don’t have the energy for:

  • Did the chat template render correctly?
  • Are reasoning tokens handled in the intended way?
  • Is the tool-call format translated correctly?
  • Is the context window real? Are KV caches actually working?
  • Did you pick the right quantized model from Hugging Face?
  • Does the model need its previous reasoning content preserved?
  • Is the coding agent set up correctly for it?

The result: people try a local model, get a result that is neither a fair evaluation of the model nor a polished product experience, and dismiss local models entirely. Energy gets distributed across too many separate efforts instead of getting one effort great end-to-end.

The critical mass problem

Every week there’s a new model and attention moves to making the next thing run instead of making one thing run really well in one harness. Too little critical mass accumulates behind any one model + hardware + inference engine + harness combo to discover how good it can really become.

The ds4 Bet

This is why Ronacher is excited about ds4.c — Salvatore Sanfilippo’s (antirez, creator of Redis) deliberately narrow inference engine that launched for DeepSeek V4 Flash on Macs with 128GB+ RAM. By late 2026 it also runs on 96GB Macs, NVIDIA CUDA (DGX Spark) and AMD ROCm (Strix Halo).

ds4.c is not a generic GGUF runner. It is:

  • Model-specific — hand-built per model (started with DeepSeek V4 Flash; now a short curated list incl. GLM and Qwen), not a generic GGUF runner
  • Hardware-specific — Metal is the primary path; CUDA and ROCm backends added later
  • Self-contained — model-specific loading, prompt rendering, KV handling, server API glue, tests
  • No dependencies — doesn’t need MLX, Ollama, or anything else

DeepSeek V4 Flash is a good candidate because it’s:

  • Large enough to feel meaningfully different from smaller dense models
  • Sparse enough (MoE) that active parameter count makes local inference plausible
  • Has a very large context window
  • Metal-targeted ds4.c can move KV caches to SSDs — critical for coding agent workloads

pi-ds4: Embedding It In Pi

Ronacher built pi-ds4 — a Pi extension that embeds ds4 directly into the agent. Zero configuration, first-class provider treatment.

The extension:

  • Registers a ds4/ provider with several models (DeepSeek V4/V4.1 Flash, V4 Pro, GLM 5.2 at various quants)
  • Compiles and starts ds4-server on demand
  • Downloads and builds the runtime if needed
  • Chooses quantization based on the machine automatically
  • Keeps a lease while Pi is using it
  • Exposes logs
  • Shuts down via watchdog when no clients remain
  • Few knobs, defaults first — launched with none; optional settings (~/.pi/ds4/settings.json, DS4_* env vars) were added later

Install: pi install https://github.com/mitsuhiko/pi-ds4

This is the Self-Extending Agents philosophy applied to inference

The complexity isn’t hidden — it’s put in one place where it can be improved. The extension treats local inference as a product bug surface: if a tool call breaks, if reasoning is malformed, if latency is worse than it should be — it’s a bug, no matter where in the stack it failed.

The Deeper Argument

The experiment isn’t “can a local model run?” — we know it can. The question is: for people with beefed-out Macs, can we get as close as possible to the ergonomics of a hosted provider with decent tool-calling performance?

Ronacher wants:

  • Engineers to have hammers that aren’t locked behind subscriptions in data centers
  • A critical mass of people to focus on one thing, tinker with it, improve it — in the open
  • Not locked by what hyperscalers make available

The hardware barrier is real (128GB Mac ≈ astronomical price tag, Apple not even selling Mac Studios with that much RAM due to RAM shortage). But the bet is that these barriers go down, and the learnings from polishing one configuration transfer to the next.

Pick a winner hard

“I want someone to pick one model, pair it with one serving path, directly within a coding agent. Initially just for one hardware configuration, then for more. If a tool call breaks, that is a product bug. If the model’s reasoning stream is malformed, that is a product bug. If latency is much worse than it should be, that is a product bug.”

Connections

Sources