Horizontal dot plot of 13 measured qwen3:0.6b /api/chat wall times on a 2-core CPU box, one row per call in three groups (1, 4 and 8 tools); filled blue circles are the 7 calls that returned create_ticket with a valid title and priority (done_reason=stop), filled orange squares are the 6 calls that returned no tool call under the 128-token budget (done_reason=length); each marker is labelled with its own wall time in seconds.

Qwen3 0.6B as an Agent Tool Router: 13 CPU Calls, 10-94 s Each

The smallest Qwen3 checkpoint is 0.6B parameters and fits on a CPU in under a gigabyte of memory. That makes it tempting as the cheap routing layer of an agent: hand it eight tool definitions, let it pick create_ticket, let a bigger model do the actual work. Two numbers decide whether that idea survives contact with a real agent loop - how often it picks the right tool, and how long one call takes - and neither is on the model card. ...

November 24, 2026 · 10 min · baeseokjae

Ollama Tool Definitions Are Not Free: The Measured Prompt-Token Cost of Every Tool You Register

You register twelve tools on a local agent, send a six-word message, and prompt_eval_count comes back at 764 instead of 18. Nothing is wrong: the definitions you sent are part of the prompt, and on a 4k default context that registry has already spent 746 of your 4096 tokens before the conversation starts — and it re-pays that cost on every turn. This article measures the cost instead of estimating it. One model, one fixed message, one local server, tool sets of 0, 1, 3, 6 and 12 definitions in a deliberately terse form, and sets of 1, 3 and 6 in a deliberately verbose form, three repeats per cell, with the raw request and response records published next to the script. ...

November 12, 2026 · 11 min · baeseokjae

What You Actually Pulled: Reading Quantisation, Parameter Count and Context Out of an Ollama GGUF File

You pulled a tag. The download is 18.99 GiB for a model the card calls 31B. The agent that needed long history behaves as if it had a fraction of the context the card advertises. The quality does not match the benchmark chart that made you choose the model in the first place. None of those three surprises is a property of the model. All three are properties of the artifact: which quantisation the tag actually resolved to, how many bits per weight that quantisation really costs, and which metadata value declares the context this particular build was made for. ...

November 6, 2026 · 14 min · baeseokjae

Reading an Ollama Model's Quantization and Size From Its Registry Manifest

You ran ollama pull qwen3:32b and got a model file of about 20.2 GB, or 18.8 GiB. A nominal 32-billion-parameter model needs 64 GB for bf16 weights alone. The downloaded model file is about 31.6% of that nominal baseline, not one-fifth. The tag says 32b, but it does not spell out the quantization recipe. You can check the registry’s declared quantization and file sizes before downloading model-weight blobs. An Ollama manifest lists layers and byte sizes; its small config blob supplies file_type. Turning those bytes into bits per weight takes another step: the parameter count must describe the tensors in the same file. ...

November 3, 2026 · 11 min · baeseokjae
Four diagnostic branches from the article: request rejection, a length stop, context shifting, and slow repeated prefill without an overflow. The figure summarizes source analysis, not new measurements.

llama-server Context Overflow: Diagnose Prompt Limit Failures

An agent that has been working against a self-hosted llama.cpp server for twenty or forty turns eventually stops working, and the symptom is almost never specific enough to act on: a half-written answer, an empty completion, a tool call that never arrives, or a request that never gets a reply at all. The tempting response is to raise -c, which is exactly the fix that KV memory may not allow, and which does nothing for the two of the four failure modes below that are not really about running out of room. ...

October 30, 2026 · 15 min · baeseokjae
Local LLM Rig Cost Payback: How Long Until It Pays for Itself?

Local LLM Rig Cost Payback: How Long Until It Pays for Itself?

A local LLM rig cost payback runs from about 4.8 months to infinity, and the machine is not what decides it. The same $3,500 RTX 5090 box pays back in ~4.8 months at 20 h/day against a $2/M API tier, stretches to ~39 months at 24/7 against a $0.50/M hosted open-weight model, and never pays back at all at 12 h/day — because a $133/month API bill undercuts a $137/month local rig. Payback is a property of your queue depth, not your GPU. ...

September 29, 2026 · 19 min · baeseokjae
Vomit Claude Token Cleanup: Fix Verbose Output with a Separate LLM

Vomit Claude Token Cleanup: Fix Verbose Output with a Separate LLM

Claude’s verbose output — long caveat lists, hedging, verification dumps, and “token vomit” — wastes paid tokens and human reading time every time you copy a reply into a PR, doc, or commit. Vomit fixes this by piping Claude’s message through a separate, local LLM that rewrites it into concise prose before it ever reaches your screen. The cleanup pass runs on your own machine for zero hosted-token cost, and measured over 100 agent iterations it cut downstream token waste by roughly 20%. This guide shows you the root cause, how to set up Vomit, and why separating the reasoning model from the style model is a pattern worth stealing. ...

September 11, 2026 · 10 min · baeseokjae
Rapid-MLX DSH Provider: Native Apple Silicon Inference for the DeepSeek Harness

Rapid-MLX DSH Provider: Native Apple Silicon Inference for the DeepSeek Harness

The Rapid-MLX DSH Provider is a native npm plugin for the DeepSeek Harness (dsh) that lets the agent read its model configuration straight from a running Rapid-MLX server’s /v1/models endpoint instead of hand-written settings.yaml. Instead of copying context windows, reasoning efforts, and max_model_len values by hand — and re-copying them every time you switch models — the provider serves those facts directly from Rapid-MLX’s JSON schema, keeps reasoning control truthful, and compacts the context at the real memory limit of your Apple Silicon machine. ...

August 30, 2026 · 10 min · baeseokjae
Why Your Local LLM Feels Dumber Than It Is: Quantization, Context, and Sampling Explained

Why Your Local LLM Feels Dumber Than It Is: Quantization, Context, and Sampling Explained

If your local LLM keeps producing worse answers than the cloud model you’re used to, the cause is almost never “my model is dumb.” In most cases the model is fine, but three hidden variables — quantization, context management, and sampling parameters — are quietly degrading its output. Each one is measurable, understood, and fixable. Quantization is usually the least likely culprit; a lost-in-the-middle context problem or a badly tuned sampler is far more often the real reason a local model feels weak. Diagnose those first, and you’ll often unlock the quality you thought you lost. ...

August 25, 2026 · 9 min · baeseokjae
The Best Self-Hosted AI Agent Platform for Personality and Long-Term Memory in 2026

The Best Self-Hosted AI Agent Platform for Personality and Long-Term Memory in 2026

The best self-hosted AI agent platform for personality and long-term memory in 2026 is Open WebUI if you want an out-of-the-box conversational memory and per-chat personas with a single-binary install, Letta if you want agents that self-edit a persistent memory core, and mem0 if you want memory bolted onto an existing app. None of them alone delivers a truly zero-dependency deploy combined with a memorable, durable personality — that gap is where the real opportunity lies. ...

August 14, 2026 · 9 min · baeseokjae