Checking how many agents are working

How this works
Contact
← Blog
A glowing olive wireframe cube holding a dense web of neurons, on a near-black navy ground.
✎blog post

A 73M Model That Calls Our Tools

The short version

A 72,632,320 parameter model trained from scratch for 405 seconds used a real tool result in 22 of 56 held-out questions (the gate counts a result as used when the answer shares a word with it), against 0 of 56 for a prompt-only control, while its LAMBADA perplexity worsened from 45.5 to 80.2.

Part 1 of 9 in Training Metis. Next: Closed at 63M: What Lost

A model with 72,632,320 parameters answered 22 of 56 held-out questions by calling one of our tools and giving an answer that our gate counts as using what came back. A prompt-only control model that had never seen a tool row scored 0 of 56. The trained model needed 405 seconds on one gaming GPU. In the same run its general reading skill got worse.

That is the first result of Metis, our own small model. This series follows it for nine parts: what we built, what won, and a long list of things that did not work. Every number comes from a run we kept the log of.

Why build a model this small

The first prototype only had a calculator. The next ask was more tools: looking something up in our notes, fetching a page, and running a small read-only script. Our handoff note put it this way: a 73M model learns tools from examples, not from the prompt.

The architecture is small: Metis has 5 layers, a model width of 1,024, 16 attention heads, a feed-forward width of 2,816 and a vocabulary of 8,192 tokens. Its context window is 4,096 tokens. The later x4096 checkpoint of this architecture takes 290,778,336 bytes as a 32-bit file and 77,475,104 bytes at 8 bits.

We named the family after ancient wisdom gods: metis, thoth, nabu, enki. The plan reserves bigger sizes for the last three. This series is only about the first.

Metis Sleep Pipeline, interactive. This series starts at its first box, the pretraining. Open full page ↗

The model copies a standard layout so other tools can run it

Metis uses the layout of the Qwen3 family of open models. That choice is practical. The llama.cpp engine already reads that layout, so a Metis file runs in it with only an exporter of ours, and our own code can check its output against llama.cpp token by token.

The layout has one feature we had to respect. It normalises the query and key vectors inside every attention head, which is called QK-norm. When we first exported a checkpoint trained without it, the output diverged from llama.cpp at the fourth greedy token. A checkpoint trained with QK-norm gave a token-identical 24-token continuation. Part 2 comes back to this, because QK-norm only tied in our own tests.

The tokenizer follows the same rule. We built an 8,192-token BPE vocabulary (byte pair encoding, which splits text into common pieces) by cutting real merges from the Qwen3 vocabulary, and we added 9 special tokens for chat turns, thinking and tool calls. On 522,346 test ids it matched the Hugging Face tokenizer exactly, and the round trip back to text was byte exact. It averages 3.83 bytes per id, against 3.59 for a plain 8k vocabulary.

Four tools, trained on real calls

Metis can call calc(expr), brain_ask(query), web_fetch(url) and run_js(code). The first is a calculator. The second asks our notes network. The third fetches a page in a browser tab we open and close. The fourth runs one JavaScript snippet that reads files, under a Node permission mode that denies writes, subprocesses, network and environment variables.

A 73M model does not learn a tool from a description in the prompt. It learns from examples. So we made them from real calls. The tool results are real, redacted, and cut to 1,200 bytes. The model's answer in each row is taken from the real result. We held out 10% of the subjects so the test questions use topics the model never saw.

tool training rows held-out rows
run_js 858 128
brain_ask 472 66
web_fetch 224 12

Each call has 2 phrasings. We also shrank the system prompt to about 40 tokens, which cut the math-with-tools training file from 14,286,453 to 10,975,914 bytes (23% smaller) for the same 7,473 examples.

The training mix of the first prototype, whose parts the trained model reuses, was 68.8 million ids: 60 MB of Wikipedia, 59 MB of our redacted notes, 40 MB of MetaMathQA, 14 MB of math word problems rewritten with calls, and 19.6 MB of redacted transcripts of our own agent sessions. That last part is under review. We have not finished reading the terms of the service that produced those sessions, so we make no claim yet about training on them. The weights stay private until we decide otherwise.

A template bug meant the model never saw the prompt it was trained on

Our first served prompt was wrong, and nothing told us. Our chat template wrapped the tool list in an {% if tools %} block, and a whitespace setting in the template engine dropped one newline before the word "Tools:". The served prompt never matched the trained text. Nothing crashed. The model just saw an unfamiliar prompt.

We wrote a gate that renders the same conversation two ways, through our training formatter and through llama-server, and compares the bytes. After the fix it passed 2 of 2 rows byte for byte. A copy of the template with one extra space passed 0 of 2, which is the point: a gate we have seen fail is a gate that means something.

The control scored 0 of 56, and the trained model scored 22

We froze our predictions in a file before the run. The control was our first prototype, a 2,400-update model that had seen only the calculator. We gave it the four tool declarations in its prompt and nothing else. The trained model, prototype 2, used the same recipe and the same 2,400 updates of 16,384 ids each, on a 71,530,925-byte corpus that now held tool rows. It trained in 405 seconds at 168.3 ms per update.

We ran 56 held-out questions: 30 for run_js, 20 for brain_ask and 6 for web_fetch. We counted a call as "used" when the final answer used the tool result. The script checks this by looking for a word shared between the answer and the real result, which is a weak test of answer quality.

tool control called / used trained called / used our prediction (used)
run_js (30) 0 / 0 30 / 10 at least 8
brain_ask (20) 0 / 0 17 / 10 at least 6
web_fetch (6) 0 / 0 3 / 2 at least 3 (missed)
total (56) 0 22 at least 17

Read the table with care. The model called run_js on all 30 questions, but only 22 of those calls ran as valid code and only 10 answers used the result. Calling a tool and using it are different skills, and the second one is harder. We also had planned 10 web questions and had 6, which we noted as a deviation.

The price was general language skill

The same run made the model worse at plain text. On LAMBADA, which asks a model to guess the last word of a passage, perplexity rose from 45.5 to 80.2, against our bar of 55 or less. On ARC-Easy, a grade-school science quiz, accuracy fell from 0.297 to 0.280. PIQA, a common-sense test, went from 0.549 to 0.550, no change. An untrained control scored 0.518 on it, so neither version is far above chance.

The first prototype also scored 0.0 on GSM8K, a set of grade-school math word problems, with or without the calculator. It never solved one. Our GSM8K run for the second prototype was cancelled at 280 of 1,319 problems.

The same note named the main limiter: 39 million training tokens for 73 million parameters, about 0.5 tokens per parameter. That is half a token of training text per parameter. Part 3 gives the same model ten times more.

What this shows and what it does not

It shows that a tool format can be learned from examples by a very small model, in minutes, with the held-out subjects left out. It does not show that Metis answers well. Only 22 of 56 answers used a result, one web bar was missed, the language scores fell, and this was one training run, not several seeds. The weights are private, and we have no license for them yet.

To check the claim, run the 56 held-out questions against the untrained control and against the trained model. If the control uses a result in more than 3, or the trained model in fewer than 17, we were wrong. Next, part 2 covers the training recipe, and why we ended with plain AdamW.

Comments

No comments yet.

Log in to comment.