Instructions to use Orvena/Orvena-1.1-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Orvena/Orvena-1.1-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Orvena/Orvena-1.1-4B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Orvena/Orvena-1.1-4B") model = AutoModelForMultimodalLM.from_pretrained("Orvena/Orvena-1.1-4B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Orvena/Orvena-1.1-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Orvena/Orvena-1.1-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Orvena/Orvena-1.1-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Orvena/Orvena-1.1-4B
- SGLang
How to use Orvena/Orvena-1.1-4B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Orvena/Orvena-1.1-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Orvena/Orvena-1.1-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Orvena/Orvena-1.1-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Orvena/Orvena-1.1-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Orvena/Orvena-1.1-4B with Docker Model Runner:
docker model run hf.co/Orvena/Orvena-1.1-4B
Orvena 1.1 4B
Orvena 1.1 4B is the language model behind Orvena, a private assistant that runs on the iPhone. It follows Orvena 4B and is trained for the same work: reading the calendar, setting alarms and reminders, finding places and how long it takes to get there, searching the web, and working with the services people connect over MCP, such as Notion, Todoist, Airtable and Gmail. It works in 30 languages and answers without a separate thinking step, which keeps it quick on a phone.
Orvena 4B learned from the runs of a larger teacher. Orvena 1.1 4B also learned from its own attempts in Orvena's agent loop, with a reward for finishing a task in few steps. The training aimed at four things: multi-step and MCP tasks, asking when a request misses a detail, leaving the tools alone when none fits, and opening a web page only when the search results don't hold the answer.
This repository holds the bf16 weights, including a retrained multi-token prediction head. The 4-bit MLX build that the Orvena app downloads is Orvena/Orvena-1.1-4B-MLX-4bit. The technical report covers the data, training and evaluation in full.
How it is built
Orvena 1.1 4B keeps the architecture of its base model, Qwen3.5-4B: 24 Gated DeltaNet layers, 8 full-attention layers and the vision encoder. A LoRA adapter of rank 16 and alpha 320 on all 248 linear layers of the language model was trained in two stages and merged into these weights.
The supervised round. Orvena 4B ran each of 4,806 training scenarios eight times on a simulated iPhone that exposes Orvena's real tool catalog and MCP servers with the tool lists of twelve services. A scenario is a request together with the phone's data and checks on the calls the assistant should make and on what its answer must contain. The shortest attempt that passed every check without a repeated or refused call was kept. That gave 4,005 of the model's own runs, and 386 runs came from Orvena 4B's training data. 3,822 general answers of the base model were added so that the model keeps following formatting instructions and solving math in many languages: IFEval-style prompts from argilla/ifeval-like-data, word problems from the training split of GSM8K translated into 35 languages, and prompts from the Aya dataset.
The reward stage. The model then acted in Orvena's agent loop itself. Each iteration ran 32 scenarios eight times, scored every attempt and updated the adapter with a group-relative policy gradient. An attempt gets 1 when it passes its scenario's checks, and it loses a little for every extra tool round, for a repeated call and for a broken call. Asking and declining need no reward of their own, because a request that misses a detail fails when the model acts and a request nothing can do fails when a tool is called. The stage ran 100 iterations and then 25 more with web questions whose answer is on the page. One round that only opens pages carries no penalty in those 25 iterations.
All of it was trained with thinking off, and the chat template in this repository answers without thinking unless you
pass enable_thinking=True. The multi-token prediction head was retrained on the model's own outputs, and the model
accepts 93.5% of its drafted tokens on 400 held-out rounds. It accepts 93.0% of the tokens drafted by the base model's
head and 93.3% of those drafted by the head of Orvena 4B.
Results
Orvena 1.1 4B and Orvena 4B run with thinking off in every result below. Each other model runs in the mode that its own card makes the default. That is thinking on for Nemotron 3.5 Bolt-E4B, Granite 4.2 3B and MiniCPM5-2B, and thinking off for Gemma 4 E4B. LFM2.5-2.6B has no switch and always thinks. The comparisons serve every model at full precision on vLLM 0.33.0 and one NVIDIA H100, with its own chat template and tool format and the sampling its card recommends. Every score has rounds or turns, output tokens and seconds beside it as the harness recorded them.
Phone tasks
The Orvena bench has 547 held-out scenarios in 30 languages, none of which were used for training. They run through Orvena's own agent loop on simulated phone data and MCP servers with the real services' tool lists. A scenario passes only when the right tools are called with the right arguments and the answer contains what it should, in the user's language. The scenarios and the tool catalog are published as Orvena/orvena-bench.
The bench is built from the app's code, and it changed after the Orvena 4B card was published: the app's page tool now returns the passages of a long page that match the request. Results from different builds do not compare, so this card repeats no bench number from the Orvena 4B card. Every bench number below comes from one build, which is the app's code of version 2.5.5 with the new page tool.
The 4-bit build that the app downloads ran on a Mac on three seeds:
| Scenarios | Orvena 1.1 4B, 4-bit | |
|---|---|---|
| All held-out scenarios, seeds 7, 8 and 9 | 547 | 485, 485, 481 (88.4%) |
| Multi-step tasks | 70 | 59, 58, 57 |
| MCP connections | 62 | 54, 53, 54 |
| Everyday requests with connections installed | 100 | 88, 90, 86 |
| Requests that miss a detail: asked | 30 | 27 |
| Requests no tool fits: passed | 60 | 59 |
| Requests no tool fits: called a tool | 60 | 0 |
| Web questions on recorded pages, seeds 8 and 9 | 60 | 43, 43 |
The three training stages ran on the same build. The supervised round alone passes 443 scenarios with seed 7, the first 100 iterations of the reward stage raise that to 482, and the released model passes 485.
The next table puts Orvena 1.1 4B beside Orvena 4B and five other phone-class models on the same bench build, on three seeds. The bench uses Orvena's system prompt and tool catalog, which the Orvena models were trained with, and the scenarios are held out for every model. Seconds are the server's time for one task while a run sent many tasks at once: 32 at once for Orvena 1.1 4B, Orvena 4B, Gemma 4 E4B and Nemotron 3.5 Bolt-E4B, and 16 for Granite 4.2 3B, MiniCPM5-2B and LFM2.5-2.6B, so the seconds compare within each group.
| Model | Thinking | All 547 | Multi-step (70) | MCP (62) | Rounds a task | Tokens a round | Seconds a task |
|---|---|---|---|---|---|---|---|
| Orvena 1.1 4B | off | 490.3 | 58.3 | 54.3 | 3.52 | 49.6 | 6.4 |
| Orvena 4B | off | 445.7 | 39.3 | 45.7 | 4.03 | 49.6 | 7.4 |
| Gemma 4 E4B | off | 318.3 | 18.3 | 23.0 | 2.93 | 42.3 | 3.1 |
| Nemotron 3.5 Bolt-E4B | on | 425.0 | 38.3 | 47.3 | 3.50 | 209.2 | 9.0 |
| Granite 4.2 3B | on | 297.7 | 16.3 | 34.0 | 4.00 | 641.0 | 19.9 |
| MiniCPM5-2B | on | 194.0 | 11.3 | 7.3 | 3.29 | 232.4 | 4.7 |
| LFM2.5-2.6B | always | 303.7 | 22.3 | 23.0 | 4.98 | 355.7 | 9.1 |
The models that think write 209 to 641 tokens a round on this bench, and Orvena 1.1 4B writes 50. Tokens a round matter on your phone because the phone has to decode every one of them.
The two Orvena models also ran with the app's own prompt tokens in place of the chat API, which is how the app talks to its model. Orvena 1.1 4B passes 490.7 scenarios that way and Orvena 4B 445.0. The categories of those runs:
| Category | Scenarios | Orvena 1.1 4B | Orvena 4B |
|---|---|---|---|
| Multi-step tasks | 70 | 57.3 | 42.3 |
| MCP connections | 62 | 54.3 | 47.7 |
| Places | 38 | 38.0 | 35.0 |
| Calendar | 31 | 26.7 | 24.3 |
| Web | 31 | 30.3 | 28.0 |
| Alarms and timers | 25 | 19.3 | 17.0 |
| No tool needed | 23 | 21.0 | 19.3 |
| Weather | 22 | 20.0 | 20.3 |
| Reminders | 21 | 19.3 | 19.7 |
| Recovering from tool errors | 19 | 19.0 | 18.3 |
| Travel times | 19 | 19.0 | 19.0 |
| Follow-up questions | 18 | 14.7 | 13.7 |
| Scheduled tasks | 16 | 15.0 | 13.3 |
| Things it can't do | 13 | 13.0 | 12.0 |
| Music | 10 | 8.0 | 9.7 |
| Health | 7 | 7.0 | 6.0 |
| Photos | 7 | 6.0 | 6.0 |
| Contacts | 6 | 5.0 | 4.7 |
| Files | 5 | 5.0 | 3.0 |
| Device | 4 | 4.0 | 4.0 |
Multi-step tasks chain several tools in one request. "take me to my next meeting" needs the calendar for the meeting and its place, and then the directions to it.
The MCP scenarios by connection, with the three seeds of Orvena 1.1 4B as labels:
The same 100 everyday requests with and without connections installed:
Web questions. 60 held-out questions run on recorded search results and pages in 10 languages. Orvena 1.1 4B passes 43 and 43 on two seeds and opens 0.61 pages per question. The supervised round's model opened 1.48 pages per question for 44 and 39 passes.
Services outside the training data
A second set leaves Orvena's prompt and tools out. It has 75 scenarios on 10 MCP services with 399 tools that are in no training or held-out data, and it runs with a short neutral system prompt and the services' tools declared directly. The set was written and validated without a model. Orvena 1.1 4B passes 58.0 of 75 scenarios on average. The models that think pass 53.3 to 60.7 and write 398 to 872 tokens a round, where Orvena 1.1 4B writes 70. Every model ran this set with 32 scenarios at once, so the seconds compare across the table.
| Model | Thinking | All 75 | Chains (32) | Rounds a task | Tokens a round | Seconds a task |
|---|---|---|---|---|---|---|
| Orvena 1.1 4B | off | 58.0 | 23.3 | 3.07 | 69.9 | 5.3 |
| Orvena 4B | off | 49.3 | 19.0 | 4.60 | 67.3 | 7.4 |
| Gemma 4 E4B | off | 36.7 | 3.7 | 1.50 | 86.1 | 2.6 |
| Nemotron 3.5 Bolt-E4B | on | 59.0 | 22.0 | 2.36 | 397.5 | 10.9 |
| Granite 4.2 3B | on | 59.0 | 24.3 | 2.93 | 872.3 | 36.0 |
| MiniCPM5-2B | on | 53.3 | 23.3 | 2.60 | 442.6 | 10.1 |
| LFM2.5-2.6B | always | 60.7 | 24.3 | 3.50 | 447.0 | 11.8 |
Public benchmarks
IFEval, MGSM and MMLU ran on the full sets with the bf16 weights and thinking off. Orvena 1.1 4B stands at Orvena 4B's level on IFEval and MMLU and is 1.3 points above it on MGSM.
| Orvena 4B | Orvena 1.1 4B | |
|---|---|---|
| IFEval, prompt level, strict | 78.2 | 78.6 |
| MGSM, 11 languages | 65.1 | 66.4 |
| MMLU | 73.8 | 73.5 |
Public tool-use benchmarks bring their own tools, formats and rules for when to call, ask or decline, and none of them were in the training data. Orvena 1.1 4B has 79.9 on BFCL live, level with MiniCPM5-2B at the top of the table, and it declines irrelevant requests more often than Orvena 4B, with 85.8 against 72.9 on the non-live set. The models that think score higher on BFCL multi-turn, three of them on the easy MCPMark runs and three of them on ToolHop, and they write 2,838 to 10,454 output tokens a multi-turn entry where Orvena 1.1 4B writes 702.
| Model | Thinking | BFCL non-live | BFCL live | BFCL multi-turn | BFCL irrelevance, non-live | BFCL irrelevance, live |
|---|---|---|---|---|---|---|
| Orvena 1.1 4B | off | 84.6 | 79.9 | 33.6 | 85.8 | 73.4 |
| Orvena 4B | off | 81.6 | 78.5 | 27.1 | 72.9 | 50.2 |
| Gemma 4 E4B | off | 84.8 | 65.1 | 13.5 | 89.6 | 92.7 |
| Nemotron 3.5 Bolt-E4B | on | 85.0 | 67.7 | 38.1 | 92.5 | 95.3 |
| Granite 4.2 3B | on | 57.2 | 76.2 | 50.6 | 89.6 | 85.1 |
| MiniCPM5-2B | on | 88.7 | 79.9 | 52.1 | 82.5 | 73.2 |
| LFM2.5-2.6B | always | 82.9 | 75.1 | 52.4 | 65.8 | 63.1 |
| Model | Thinking | MCPMark Filesystem, standard (30) | MCPMark Filesystem, easy (40) | ToolHop, tools required | ToolHop, tools free |
|---|---|---|---|---|---|
| Orvena 1.1 4B | off | 2 | 26 | 43.2 | 43.0 |
| Orvena 4B | off | 2 | 25 | 39.7 | 39.7 |
| Gemma 4 E4B | off | 0 | 7 | 38.4 | 38.1 |
| Nemotron 3.5 Bolt-E4B | on | 2 | 28 | 42.5 | 42.8 |
| Granite 4.2 3B | on | 4 | 31 | 45.9 | 46.6 |
| MiniCPM5-2B | on | 2 | 30 | 45.1 | 48.3 |
| LFM2.5-2.6B | always | 0 | 10 | 45.9 | 47.0 |
BFCL is in percent. MCPMark is the number of runs passed, and ToolHop the share of right answers in percent. A model that thinks has 5,120 tokens a request in ToolHop where the others have 256, and BFCL and MCPMark set no limit. MiniCPM5-2B runs BFCL through chat completions under BFCL's own entry for that model family, and every other model through the Responses API.
The next table has the output tokens, turns and seconds of the same runs as each harness counted them. Seconds are per entry or task under each harness's own number of parallel requests, and ToolHop's seconds are for the whole run of 995 queries. A second run with other settings completed Granite 4.2 3B's BFCL, so its seconds are left out.
| Model | Thinking | BFCL multi-turn, an entry: tokens / seconds | BFCL live, an entry: tokens / seconds | MCPMark easy, a task: turns / seconds | ToolHop: turns a query / seconds for the run |
|---|---|---|---|---|---|
| Orvena 1.1 4B | off | 702 / 21.9 | 70 / 1.2 | 11.4 / 23.8 | 6.01 / 199 |
| Orvena 4B | off | 778 / 31.3 | 138 / 2.1 | 14.2 / 25.7 | 6.25 / 203 |
| Gemma 4 E4B | off | 477 / 10.0 | 76 / 1.7 | 4.5 / 11.3 | 3.21 / 91 |
| Nemotron 3.5 Bolt-E4B | on | 2,838 / 28.8 | 430 / 5.4 | 6.9 / 34.2 | 3.25 / 490 |
| Granite 4.2 3B | on | 10,454 | 666 | 8.0 / 119.9 | 3.78 / 3,503 |
| MiniCPM5-2B | on | 5,607 / 42.1 | 1,070 / 7.4 | 8.2 / 35.4 | 4.55 / 663 |
| LFM2.5-2.6B | always | 5,196 / 31.8 | 357 / 2.5 | 8.4 / 34.8 | 5.67 / 799 |
ToolSandbox
ToolSandbox runs stateful conversations with a simulated user, played here by gpt-4o-2024-08-06. Four models ran it, and the row of Orvena 4B is the one published in the Orvena 4B technical report, not a new run. Nemotron 3.5 Bolt-E4B has the highest similarity.
| Model | Thinking | ToolSandbox similarity | ToolSandbox turns |
|---|---|---|---|
| Orvena 1.1 4B | off | 63.7 | 10.8 |
| Orvena 4B | off | 55.4 | 12.2 |
| Gemma 4 E4B | off | 61.6 | 10.1 |
| Nemotron 3.5 Bolt-E4B | on | 72.3 | 9.5 |
On an iPhone
Orvena runs the 4-bit MLX build with mlx-swift-lm. The file has the format and size of Orvena 4B's build.
iPhone 17 Pro Max with the 4-bit MLX build in the app's release build: 14 typed requests (tool chains, requests missing a detail, and requests it can't do), two rounds each, 28 turns without an error.
| Orvena 1.1 4B | |
|---|---|
| Median time per task | 7.3 s |
| Tool chains | 17.4 s |
| Requests missing a detail | 6.7 s |
| Requests it can't do | 2.7 s |
| Tokens generated per turn | 146 |
| Decoding | 22.4 tokens per second |
The model asked for the missing detail in 8 of 8 turns without trying the action first, and it called no tool in the 6 turns of requests it can't do.
Using it
vLLM
vllm serve Orvena/Orvena-1.1-4B --max-model-len 32768 --language-model-only \
--reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder
With the multi-token prediction head for speculative decoding, add
--speculative-config '{"method":"qwen3_next_mtp","num_speculative_tokens":2}'. Drop --language-model-only to send
images.
Tools go in the usual OpenAI tools field. To turn thinking on, send
"chat_template_kwargs": {"enable_thinking": true}; the fine-tune was trained without it. generation_config.json
sets the sampling Orvena uses, temperature 0.7 and top-p 0.8; runtimes that don't read it should be given these
values.
Other runtimes
The weights keep the Qwen3.5 architecture and layout, so runtimes that support it, including Transformers and SGLang, run Orvena 1.1 4B as they are. For Apple silicon, use Orvena/Orvena-1.1-4B-MLX-4bit.
Notes
- Orvena 1.1 4B was trained with Orvena's system prompt and tool catalog. Any OpenAI-style tool list works.
- The held-out sets also guided choices during training: the evaluation between iterations and the choice of the released state used them. No held-out scenario was a training example. Section 9 of the technical report has the details.
License
Apache-2.0, like Qwen3.5-4B. Built with Qwen. NOTICE lists what was changed.
- Downloads last month
- -










