Instructions to use Sentovara/Sentinel-7B-Tools with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sentovara/Sentinel-7B-Tools with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sentovara/Sentinel-7B-Tools") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sentovara/Sentinel-7B-Tools") model = AutoModelForCausalLM.from_pretrained("Sentovara/Sentinel-7B-Tools", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sentovara/Sentinel-7B-Tools with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sentovara/Sentinel-7B-Tools" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sentovara/Sentinel-7B-Tools", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sentovara/Sentinel-7B-Tools
- SGLang
How to use Sentovara/Sentinel-7B-Tools 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 "Sentovara/Sentinel-7B-Tools" \ --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": "Sentovara/Sentinel-7B-Tools", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Sentovara/Sentinel-7B-Tools" \ --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": "Sentovara/Sentinel-7B-Tools", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sentovara/Sentinel-7B-Tools with Docker Model Runner:
docker model run hf.co/Sentovara/Sentinel-7B-Tools
Sentinel-7B-Tools
Sentinel-7B-Tools is 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:
- 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.pywires them up. - 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 (Apache 2.0; user questions paired with a different conversation's tools) and 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
pip install torch transformers
python run.py "How many days are there between 2024-03-01 and 2025-01-17?"
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 <function_calls>\nname(key=value, ...)\n</function_calls>, 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.
- Downloads last month
- -
Model tree for Sentovara/Sentinel-7B-Tools
Base model
allenai/Olmo-3-1025-7B