--- license: apache-2.0 base_model: allenai/Olmo-3-7B-Instruct library_name: transformers pipeline_tag: text-generation tags: - tool-calling - function-calling - olmo - sentovara language: - en --- # Sentinel-7B-Tools **Sentinel-7B-Tools** is [allenai/Olmo-3-7B-Instruct](https://huggingface.co/allenai/Olmo-3-7B-Instruct) with Sentovara's tools add-on **folded into the weights**. It is one ordinary 7B model: no add-on to load, no router. It learned two things: 1. **Hand exact jobs to small tools** instead of working them out in its head: a Sudoku solver, a calculator, date maths, Caesar / Base64 decoders, money maths (interest, loans, percentages, statistics) and UK tax (VAT, stamp duty, income tax, National Insurance, corporation tax, rates lookup). The tools are plain Python files in this repo (`sa5_tools.py`, `money_tools.py`, `tax_tools.py`, `tax_rates.json`); `run.py` wires them up. 2. **Know when not to call a tool.** When the tools on offer don't fit the question, it just answers. ## Results: plain Olmo-3-7B-Instruct vs Sentinel-7B-Tools Same questions, same settings (greedy, vLLM 0.31.0), both models scored by the same code. "Model + tool" rows mean the model called the tool and the tool produced the exact figure, which is how the model is meant to be used. | Test | Plain Olmo-3-7B-Instruct | **Sentinel-7B-Tools** | |---|---|---| | Sudoku (model + tool), 300 | 72.7% | **97.3%** | | Arithmetic (model + tool), 300 | 95.7% | **100%** | | Dates (model + tool), 300 | 46.3% | **100%** | | Codes - Caesar / Base64 (model + tool), 300 | 25.7% | **98.7%** | | UK tax (model + tool), 300 | 82.7% | **100%** | | Money maths (model + tool), 300 | 61.0% | **96.3%** | | Chemistry questions, 300 | 22.0% | **32.7%** | | Regex, 300 | 81.3% | **96.7%** | | SQL, 300 | 63.3% | **66.0%** | | Field extraction, 300 | 66.0% | **68.7%** | | Intent, 400 | 40.8% | **41.2%** | | **BFCL tool calling, overall** (3,472) | 73.2% | **75.8%** | | BFCL simple | 86.2% | 88.0% | | BFCL choosing between tools | 84.5% | 90.0% | | BFCL several calls at once | 75.0% | 80.5% | | BFCL several calls, several tools | 37.5% | 73.5% | | BFCL real-user calls (live multiple) | 66.5% | 69.4% | | BFCL knowing when NOT to call a tool | 92.5% | 90.8% | | BFCL same, real-user questions | 80.0% | 75.1% | | JSON schema bench (strict) | 70.4% | 73.1% | | JSON, fresh schemas (strict) | 98.0% | 97.2% | | Unit conversions, 300 | 39.7% | 37.3% | All Sentinel-7B-Tools numbers are from the **merged** model itself (no add-on loaded), NVIDIA L40S. BFCL here is our run of the BFCL v3 single-turn categories (non-live + live) with Olmo-3's own tool format, not an official leaderboard entry. **Where it is lower:** unit conversions (39.7% → 37.3%; it has no unit-conversion tool), "knowing when not to call a tool" on real-user questions (80.0% → 75.1%), and one small BFCL group, live parallel calls (7 → 6 of 16 questions). Everything else is level or up. ## How it was made - **Base:** allenai/Olmo-3-7B-Instruct, revision `6e5971d9eba42665f5bd5a0fcf047f299ce1dccc` (Apache 2.0). - **Training:** LoRA (rank 16, alpha 32, learning rate 1e-4, 1 pass, loss on the final reply only), then merged into the weights with PEFT `merge_and_unload`. - **12,993 training examples:** - 10,000 tool-use conversations made by Sentovara's own scripts. The tool results and final figures come from the tools themselves; no other AI model wrote them. Split: 4,000 calculator / Sudoku / dates / codes, 3,000 money, 3,000 UK tax. - 2,993 "no tool needed" conversations: questions offered tools that don't fit, answered by the **plain Olmo-3-7B-Instruct in its own words** (answers that called a tool were thrown away). Questions come from [glaiveai/glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2) (Apache 2.0; user questions paired with a different conversation's tools) and [databricks/databricks-dolly-15k](https://huggingface.co/datasets/databricks/databricks-dolly-15k) (CC BY-SA 3.0). None overlaps a BFCL test question. - An earlier version trained on the 10,000 tool examples alone learned to call a tool for *every* question (BFCL "irrelevance" fell to 1.2%). The "no tool needed" examples fixed that; this is the fixed version. ## Usage ```bash pip install torch transformers python run.py "How many days are there between 2024-03-01 and 2025-01-17?" ``` ```python from run import Sentinel s = Sentinel() # loads Sentovara/Sentinel-7B-Tools reply, calls = s.answer([{"role": "user", "content": "Stamp duty on a £425,000 house for a first-time buyer?"}]) ``` The model uses Olmo-3's own tool format: tools go in through the chat template (`tools=`), calls come back as `\nname(key=value, ...)\n`, and tool results go back as role `tool`. You can pass your own tools instead of the built-in ones. ## Limits - UK tax figures use the rates in `tax_rates.json` (UK tax year 2026 to 2027, checked against GOV.UK on 28 Nov 2026); check them before relying on them. - The model is only as exact as its tools. Without `run.py` (or your own tool runner) the tool calls are just text. - It is a 7B model. Outside the tool jobs it behaves like the plain Olmo-3-7B-Instruct, with its strengths and weaknesses. Made by [Sentovara](https://sentovara.com).