blog · · 10 min read
Orvena 1.1 4B: training a small tool-calling model on its own attempts
Orvena 1.1 4B is a small multimodal model for tool calling and MCP that answers without a thinking step, in 30 languages. It is a LoRA fine-tune of Qwen3.5-4B and the successor to Orvena 4B, and this version was trained on its own attempts in an agent loop, first with a supervised round and then with GRPO.
The 4-bit MLX build passes 88.4% of 547 held-out agent tasks over three seeds and 58 of 70 multi-step tasks, asks for a missing detail in 27 of 30 cases and calls no tool on any of the 60 requests that no tool fits. It scores 79.9 on BFCL v4 live, level with the best model I compared, at 70 output tokens an entry where that model writes 1,070.
01 / 06
What Orvena 4B left open
Orvena 4B was trained on verified runs of a larger teacher model, and it had three problems that this version needed to fix. It called a tool when it should have asked for a missing detail or said that it couldn’t do something, it scored a few points under its base model on instruction following, and it kept searching the web after the answer was already in its context. More teacher runs wouldn’t show the model which of its own habits failed, so I trained this version on its own attempts, first with a supervised round and then with GRPO.
I recorded 160 web questions with their real search results and pages to measure the searching. Orvena 4B made five or more web calls on 34 of them and the base model on 6, and one Danish question took 22 calls. Forcing an answer at the first result that held it still passed most of the questions, and the model kept going for about two more calls on average in those turns. The base model searched far less, so the habit came from my fine-tuning.
Part of the searching came from the harness, because the page tool returned only the first 4,000 characters of a page and those held the answer in 74% of the pages I checked. I changed it to return the start of the page together with the passages that match the request, and that held the answer in 90%. The bench changed with it, so none of the bench numbers in this post compare with the ones in the Orvena 4B post.
The figure shows the habit on a held-out Estonian request about getting from a meeting to the dentist on time. Orvena 4B searched the calendar for an event name that doesn’t exist, then made six web searches that found nothing and three repeated calls that the agent loop blocked, and it failed after 16 tool calls. Orvena 1.1 4B read both events, asked for the travel time and passed in four.
held-out scenario, seed 7, bf16 on vLLM · the English request and answers are translations 02 / 06
Learning from its own attempts
Both training stages run on my agent bench. It runs a production agent loop with its system prompt and a catalog of 38 native tools against simulated device data, together with fake MCP servers that expose the real tool lists of 12 services such as Notion, Linear and Todoist. A scenario passes only when the expected tools are called with the right arguments, no forbidden tool is called, and the answer holds the decisive names, numbers or times in the user’s language. The held-out scenarios, the tool catalog and the MCP fixtures are published as Orvena bench ↗.
The supervised data for this version came from Orvena 4B itself. It ran each of 4,806 training scenarios eight times through the bench at the production sampling settings, and I kept the shortest attempt per scenario that passed every check without a repeated or refused call, which gave 4,005 of the model’s own runs.
My first version of that rule replaced runs that made several calls in one round with sequential ones, and the model trained on it lost accuracy on parallel calls. The final selection keeps Orvena 4B’s own training run where that one is shorter or calls in parallel. It also adds 3,822 answers from the base model to instruction-following prompts, math problems in 35 languages and prompts written by people in 22 languages, so the model keeps more of what the base model does well. That supervised round alone passes 443 of the 547 held-out scenarios.
The supervised model still acted on a guess in 6 of the 30 requests that miss a detail and called a tool in 11 of the 60 that no tool fits, so the next stage let the model act in the loop itself and learn from the outcome. Each iteration draws 32 training scenarios, runs each one eight times through the agent loop on a Mac, and scores every attempt. An attempt gets 1 when it passes, and it loses 0.05 for each tool round above the cheapest passing attempt, 0.2 for a repeated call and 0.5 for a call the agent loop refused or couldn’t parse. Asking and declining need no reward of their own, because a request that misses a detail fails when the model acts on a guess, and a request that nothing can do fails when a tool is called.
A GPU serves the base model with the current adapter, and the bench sends it the exact prompt tokens of the production chat template, so the trainer works on the tokens of the real turn. Each attempt’s advantage is its reward minus the mean of the eight attempts at the same scenario, divided by the spread of rewards in the batch. The update then makes the tokens of attempts with a positive advantage more likely and the rest less likely. This is GRPO, which compares attempts at the same task with each other and needs no separate value model.
The figure is one group from iteration 32, where the request is to make sure every door is locked through Home Assistant. Three attempts pass in three rounds and score 1.0, two need one extra round and score 0.95, and one needs three extra rounds and scores 0.85. One attempt calls the unlock tool on the way and scores 0 even though its answer says the doors are locked, and one makes calls that the agent loop refuses and scores −0.5.
iteration 32 of the reward stage · rewards and calls as the trainer recorded them 03 / 06
The first 100 iterations
The first run made 100 iterations on one H100, with the attempts running on a Mac. The share of training attempts that passed went from 73% in the first five iterations to 92% in the last five, and an attempt took 2.49 tool rounds at the end where it had taken 3.17. An evaluation every ten iterations on 272 held-out scenarios went from 224 to 238, and the policy stayed close to the supervised model, with a KL divergence of 0.04 at the end.
Most of the gain is in the longest tasks, with multi-step tasks going from 47 to 55 of 70 and MCP tasks from 41 to 56 of 62 on the same seed. One French request asks whether the agency has replied about the deposit and how much it will pay back. The supervised model searched the Gmail threads and answered with a wrong amount from the list of results, and the released model opened the message and answered with the 940 euros from the agency’s statement. The restraint set went to 58 of 60 without a single tool call, and the model asked in 27 of the 30 requests that miss a detail.
per-iteration metrics of the two reward runs · evaluation on 272 held-out scenarios at the production sampling 04 / 06
The reward taught it to trust snippets
The same run made the model worse at the web. The state after 100 iterations passed 37 and 40 of the 60 held-out web questions on two seeds, where the supervised model had passed 44 and 39, and it answered 44 of the 60 from the search results without opening a page. The training pool had 100 web questions and 48 of them can be passed from a search snippet. An attempt that opened the page took one round more than one that answered from the snippet, so it scored 0.95 where the other scored 1.0.
A snippet of an unseen question often holds a plausible figure such as an old price, and the page has the right one. The figure shows that on a Spanish question about adding a large suitcase to an Avlo ticket that is already bought. The snippet gives the 10 euros you pay at booking and stops before the price after booking. The state after 100 iterations answered 10 euros, and the released model opened the page and answered 15.
I ran 25 more iterations from that state with two changes. One round that only opens pages became free in a web scenario, and 38 questions whose answer is on the page and not in the snippets took four of the six web places in every batch. 12 of them came from the pool, and 26 were new ones kept from 34 that language-model agents wrote, where an attempt that opened a page passed and attempts without a page passed at most a third of the time. The held-out web questions came back to 43 and 43 with 0.61 pages opened per question, and the bench as a whole didn’t fall. The state after these iterations is Orvena 1.1 4B.
held-out web question, seed 8 · means of seeds 8 and 9, 4-bit builds on a Mac 05 / 06
Results
The released model passes 485, 485 and 481 of the 547 held-out scenarios as the 4-bit build on a Mac. It never answered in the wrong language, and it passes every scenario of five categories on every seed. I also served every model of the comparison at full precision on the same bench build, each with its own chat template and in the thinking mode its own card makes the default. Orvena 1.1 4B passes 490.3 there, Orvena 4B 445.7, and the five other phone-class models between 194.0 and 425.0. The models that think write 209 to 641 tokens a round where Orvena 1.1 4B writes 50, and on a phone every one of those tokens has to be generated before the model acts.
The bench uses the system prompt and tool catalog that the Orvena models were trained with, and the other models see them for the first time. BFCL v4 brings its own tools and formats, and none of them were in the training data. Orvena 1.1 4B scores 79.9 on its live set, level with MiniCPM5-2B with thinking at the top of the models I ran, and it declines irrelevant requests more often than Orvena 4B, with 85.8 on the non-live irrelevance set where Orvena 4B has 72.9. IFEval and MMLU stay at Orvena 4B’s level, and MGSM is 1.3 points higher.
The 4-bit build took a median of 7.3 s per task on an iPhone 17 Pro Max with mlx-swift-lm, over 14 typed requests run twice each, and it generated 22.4 tokens a second. It asked for the missing detail in all 8 of those turns without trying the action first, and it called no tool in the 6 turns of requests it can’t do.
model card tables · full precision on vLLM · each model in its default thinking mode 06 / 06
What the scores cost
The public benchmarks also record what each score cost. Orvena 1.1 4B writes 70 output tokens an entry on BFCL v4 live and MiniCPM5-2B writes 1,070 for the same score. ToolHop asks questions that need several tool calls in a row, and Orvena 1.1 4B answers 43.2% of them, within 2.7 points of the best, and the whole run of 995 queries took 199 s where the models that think needed 490 to 3,503 s. MCPMark runs long tasks on a real MCP filesystem server, and it passes 26 of the 40 easy runs at 23.8 s a task, where the models that think pass 10 to 31 at 34 to 120 s.
The models that think score higher on BFCL’s multi-turn sessions, and Orvena 1.1 4B writes 702 tokens an entry there where they write 2,838 to 10,454. Gemma 4 E4B also runs without thinking and is faster on ToolHop and MCPMark, and it scores lower on all three benchmarks in the figure. Each harness sends its own number of requests at once, so the seconds compare only within a benchmark.
model card tables · bf16 on vLLM · each model in its default thinking mode