Skip to content
Karti
Karti-Small

Case study · Karti-Small-Agent-3B · Updated November 2026

The weights were fine. The template was wrong.

Karti-Small-Agent-3B is a compact tool-calling model on the open SmolLM3-3B, built to run beside ASR and TTS on one local box and improved through a human-gated loop. Its most useful result so far isn’t a score. It’s a train/serve rendering bug that made every symptom look like a model problem.

train/serve prefixes byte-identical after the fix (25 rows × 3 cut points)
75 / 75
on the failing delivery step, same weights
0/8 → 7/8
training / held-out rows in the current cycle, disjoint template families
768 / 224
held-out tasks in a live agent harness on Prime Intellect Verifiers
12

Served tool calls rendered as empty turns.

Training rendered assistant tool calls into the Hermes XML dialect in Python, then handed the chat template plain text. At serving time, vLLM applied the model’s own chat template to structured tool_calls, and SmolLM3’s stock template renders message.content only. Any assistant turn that carried a structured tool call rendered as an empty turn.

So the served model saw itself say nothing, followed by an anonymous blob of JSON. It couldn’t observe the call it had just made, and correctly re-issued its opening call. Never calling the delivery tool, repeating the first call, answering in plain text: every symptom I had attributed to the model came from that one mismatch.

Two cycles went into theorising about the corpus. What settled it was a direct-render test: give the model the identical context rendered by the training formatter, via raw completion, and see what it emits. It emitted the correct call, character for character.

Parity proven, not assumed.

The fix is a chat template that renders tool_calls and the tool role as the exact bytes training produces. It was verified at 75 of 75 byte-identical prefixes, across 25 rows at three cut points. On unchanged weights, the failing step went from 0 of 8 to 7 of 8.

  • Rule 1

    Train/serve token parity is a release input. If the two renderings aren’t shown to be byte-identical, the evaluation is measuring the template.

  • Rule 2

    Scores taken through an unverified rendering path are not evidence. Every earlier number on this model, including the base-model baseline, is withdrawn.

Fresh numbers are being collected on the verified path and will be published with the checkpoint they describe.

Each failure picks the next cycle's data.

The loop is authored evidence, verifiable rewards, bounded training, held-out evaluation and explicit human promotion. Checkpoints are cut when the evidence calls for one, not on a calendar, and nothing is promoted without a person approving it.

  1. 01

    Collect

    Reviewed public seeds and authorized, sanitized first-party evidence.

  2. 02

    Verify

    Rights, redaction, provenance and tool intent; demonstrations authored and oracle-checked.

  3. 03

    Train

    A bounded BF16 LoRA candidate from a pinned SmolLM3-3B revision.

  4. 04

    Evaluate

    Tool choice, argument exactness, routing, policy, efficiency, task success and grounding.

  5. 05

    Improve

    The measured failure picks the next cycle's data and reward. A person approves promotion.

A partial trace of the loop

  1. Cycle 1

    What the evidence said: Scored zero: the harness could not execute tools at all.

    Next · What changed next: Fixed the environment before trusting any score.

  2. Cycle 2

    What the evidence said: Collapsed onto a single opening call and looped on discovery.

    Next · What changed next: Rebalanced a corpus where one string dominated the target distribution.

  3. Cycle 3

    What the evidence said: First candidate to make correct, varied tool calls and beat its base.

    Next · What changed next: Chased the missing final delivery step, which turned out to be the rendering bug.

Graded in a live harness, not on matched answers.

Candidates run in a containerised agent harness built on Prime Intellect Verifiers, where the model calls tools over MCP and observes real results. The reward is decomposed rather than pass/fail, with hard critical-violation checks a rollout can’t score around. Decomposition is what turns “the model scored low” into “it gathered the right evidence and then failed to deliver it”, which is a fixable sentence.

  • tool_selection
  • argument_exactness
  • routing
  • policy_adherence
  • efficiency
  • task_success
  • result_grounding

The current cycle trains and grades six tools. The surface is small on purpose: the hard part is choosing the smallest capable route, forming exact arguments, and finishing through reply. Every training row ends by delivering through a tool, and none is a no-call row. The surface is read-and-propose: the model can escalate for owner approval or refuse, but holds no tool that executes a confirmed action.

phone
Read the state of a device broker: connectivity, queue depth, lease holders.
cron
Inspect the evidence a scheduled job left behind, rather than assume it ran.
browser
Take a page snapshot and read it as untrusted content.
route
Send a request to the right tier, or to an explicit stop.
tera
Perform a bounded, proposal-only workflow action.
reply
Deliver the final answer to the requesting channel.

Why a small model that keeps learning.

The motivation came from the AI Engineer World’s Fair Hackathon 2026, themed on recursive self-improvement. My team built PodMan, a voice agent that watches a shared engineering room and flags duplicated work and missed handoffs; it placed 2nd of 95+ teams. PodMan improved its context from what it observed. The open question it left was whether the same loop could improve the weights of a model small enough to run locally, without letting it promote itself.

Weights are not published yet.

That’s deliberate. The bar is a checkpoint that completes tasks on a verified rendering path and clears the promotion gate, not merely one that scores above zero. When that gate passes, the intended release is:

  • A merged BF16 checkpoint, plus the LoRA adapter and its pinned base revision.
  • A quantized build for local serving.
  • The tool-call-aware chat template, so the model works out of the box.
  • The held-out evaluation numbers that earned the promotion.

A privacy review of the current adapter is complete: the corpus scans clean across credential, host, address and identity patterns (992 rows, zero hits), and extraction probes against the served adapter recover no private content.