🤖 Privoid Jarvis 30M

A tool-calling model built completely from scratch

Own tokenizer · own model code · own training loop · 30M parameters · Apache-2.0

Privoid Jarvis turns a request into an exact tool call, as JSON. It is designed to sit behind a chat model: the chat model talks to the person and passes the request to Jarvis; Jarvis returns the call, or [] when no tool fits.

It was built from zero: its own SentencePiece tokenizer, its own Llama-style transformer and its own training loop, starting from random weights. Training had two steps on a single NVIDIA L4: an English warm-up on educational web text (0.66B tokens, 89.8 min), then tool-call training on 20,013 request-and-call examples (2.9 min).

📊 Results

Results

The two baselines are pretrained models that we fine-tuned on exactly the same data, with the same prompt format, the same development-set early stopping and the same scoring. All numbers are on official held-out test sets (massive: 2,974 requests, mobile: 961 requests, clinc_oos: 1,000 requests).

Model Parameters MASSIVE exact match MASSIVE intent accuracy MASSIVE argument F1 Mobile Actions exact match Out-of-scope correctly refused
Privoid Jarvis 30M (ours, from scratch) 29.9M 52.6% 79.6% 61.7% 78.6% 5.5%
Google FunctionGemma 270M 268.1M 67.3% 86.3% 76.1% 88.4% 19.4%
Qwen3-0.6B-Base 596.0M 69.5% 87.0% 79.3% 93.1% 41.4%
  • MASSIVE exact match: Jarvis scores 52.6% and is behind Google FunctionGemma 270M (67.3%); is behind Qwen3-0.6B-Base (69.5%).
  • MASSIVE intent accuracy: Jarvis scores 79.6% and is behind Google FunctionGemma 270M (86.3%); is behind Qwen3-0.6B-Base (87.0%).
  • MASSIVE argument F1: Jarvis scores 61.7% and is behind Google FunctionGemma 270M (76.1%); is behind Qwen3-0.6B-Base (79.3%).
  • Mobile Actions exact match: Jarvis scores 78.6% and is behind Google FunctionGemma 270M (88.4%); is behind Qwen3-0.6B-Base (93.1%).
  • Out-of-scope correctly refused: Jarvis scores 5.5% and is behind Google FunctionGemma 270M (19.4%); is behind Qwen3-0.6B-Base (41.4%).
Model MASSIVE: wrongly returned [] (lower is better) Mobile Actions: right tool names Valid JSON (lowest test set)
Privoid Jarvis 30M (ours, from scratch) 0.6% 97.3% 97.7%
Google FunctionGemma 270M 0.4% 99.1% 99.7%
Qwen3-0.6B-Base 1.8% 99.9% 100.0%

How it is scored: greedy decoding; the output must be valid JSON; calls and arguments are compared ignoring order, letter case and extra spaces.

  • Exact match needs every tool name and every argument right.
  • Argument F1 is over name-value pairs. It is not the span-based slot F1 from the MASSIVE paper, so the numbers are not directly comparable with that paper.
  • Google reports 85% for its own fine-tuned FunctionGemma on Mobile Actions with its own scoring. Our FunctionGemma row is our fine-tune under our scoring, so the numbers are not interchangeable.
  • Training: Jarvis: best epoch 3 of 7 (2.9 min, early stopping after 4 epochs without gain); Google FunctionGemma 270M: best epoch 3 of 4 (25.2 min, time budget used); Qwen3-0.6B-Base: best epoch 2 of 3 (25.3 min, time budget used).

🧪 Examples (first test requests, not cherry-picked)

massive test, request: wake me up at five am this week

  • Expected: [{"name": "alarm_set", "arguments": {"time": "five am", "date": "this week"}}]
  • Jarvis: [{"name": "alarm_set", "arguments": {"time": "five am", "date": "this week"}}]

massive test, request: quiet

  • Expected: [{"name": "audio_volume_mute", "arguments": {}}]
  • Jarvis: [{"name": "audio_volume_mute", "arguments": {}}]

mobile test, request: Can you please save a new contact for me? The name is Lena Petrova, the phone number is +359 888 123 456, and the email is lena.petrova.design@webmail.com. (now: 2024-09-15T17:35:19 Sunday)

  • Expected: [{"name": "create_contact", "arguments": {"email": "lena.petrova.design@webmail.com", "phone_number": "+359 888 123 456", "first_name": "Lena", "last_name": "Petrova"}}]
  • Jarvis: [{"name": "create_contact", "arguments": {"last_name": "Petrova", "email": "lena.petrova.design@webmail.com", "phone_number": "+359 888 123 456", "first_name": "Lena"}}]

mobile test, request: Please send an email to javier.ortega@ecotradeintl.com with the subject 'Update on Q4 Report' and the body 'I've uploaded the revised figures to the shared drive. Let me know if you have any questions.' (now: 2026-11-16T05:43:19 Monday)

  • Expected: [{"name": "send_email", "arguments": {"body": "I've uploaded the revised figures to the shared drive. Let me know if you have any questions.", "subject": "Update on Q4 Report", "to": "javier.ortega@ecotradeintl.com"}}]
  • Jarvis: [{"name": "send_email", "arguments": {"body": "I've uploaded the revised figures to the shared drive. Let me know if you have any questions.", "subject": "Update on Q4 Report", "to": "javier.ortega@ecotradeintl.com"}}]

clinc_oos test, request: how much has the dow changed today

  • Expected: []
  • Jarvis: [{"name": "qa_stock", "arguments": {"date": "today"}}]

clinc_oos test, request: how many prime numbers are there between 0 and 100

  • Expected: []
  • Jarvis: [{"name": "qa_factoid", "arguments": {}}]

🚀 How to use

Jarvis reads a short prompt and writes a JSON list of calls. Toolset picks the set of tools: assistant (voice-assistant tools from MASSIVE) or phone (the Mobile Actions functions, which also need the current date and time).

import json, torch, sentencepiece as spm
from huggingface_hub import hf_hub_download
from transformers import AutoModelForCausalLM

repo = "Privoid-ai/Privoid-Jarvis-30M"
model = AutoModelForCausalLM.from_pretrained(repo).eval()
sp = spm.SentencePieceProcessor(model_file=hf_hub_download(repo, "tokenizer.model"))

def jarvis(text, toolset="assistant", now=None):
    prompt = f"Toolset: {toolset}" + (f"\nNow: {now}" if now else "") + f"\nUser: {text}\nCall:"
    ids = [1] + sp.encode(prompt)                      # 1 = <s>
    out = model.generate(torch.tensor([ids]), max_new_tokens=256, do_sample=False, eos_token_id=2)
    return json.loads(sp.decode(out[0, len(ids):].tolist()))

print(jarvis("wake me up at five am this week"))
print(jarvis("Turn on the flashlight and email bob@example.com about lunch", toolset="phone", now="2025-06-04T15:29:23 Wednesday"))

Tips: MASSIVE requests are written like speech transcripts (lower case, little punctuation), so for the assistant toolset it helps to lower-case the text first. Argument values are copied from the request as said (for example "five am"); convert them in your tool code. The full tool list with argument names is in tools.json.

GGUF file Size Same calls as the Hugging Face model
Privoid-Jarvis-30M-F16.gguf 60.0 MB 40/40
Privoid-Jarvis-30M-Q8_0.gguf 32.0 MB 40/40

🧰 Tools it knows

  • assistant (60): alarm_query, alarm_remove, alarm_set, audio_volume_down, audio_volume_mute, audio_volume_other, audio_volume_up, calendar_query, calendar_remove, calendar_set, cooking_query, cooking_recipe, datetime_convert, datetime_query, email_addcontact, email_query, email_querycontact, email_sendemail, general_greet, general_joke, general_quirky, iot_cleaning, iot_coffee, iot_hue_lightchange, iot_hue_lightdim, iot_hue_lightoff, iot_hue_lighton, iot_hue_lightup, iot_wemo_off, iot_wemo_on, lists_createoradd, lists_query, lists_remove, music_dislikeness, music_likeness, music_query, music_settings, news_query, play_audiobook, play_game, play_music, play_podcasts, play_radio, qa_currency, qa_definition, qa_factoid, qa_maths, qa_stock, recommendation_events, recommendation_locations, recommendation_movies, social_post, social_query, takeaway_order, takeaway_query, transport_query, transport_taxi, transport_ticket, transport_traffic, weather_query
  • phone (7): turn_off_flashlight, open_wifi_settings, create_calendar_event, show_map, send_email, turn_on_flashlight, create_contact

Adding your own tools means adding examples and re-running the tool-call training step (minutes, not hours).

🧠 Architecture and training

Type Decoder-only transformer, Llama-style, written from scratch
Parameters 29.9M (25.7M without embeddings)
Layers / width / heads 8 / 512 / 8
Feed-forward SwiGLU, 1,408 hidden
Context 512 tokens
Vocabulary 8,192 tokens, own SentencePiece BPE with byte fallback
Step 1: English warm-up FineWeb-Edu, 0.66B tokens, 89.8 min (planned steps done)
Step 2: tool calls 20,013 examples, best epoch 3 of 7, 2.9 min (early stopping after 4 epochs without gain); loss on the answer only
Leak check Training requests identical to any test request were removed (29 removed)
Precision bf16 mixed precision on one NVIDIA L4

The exported Llama weights were checked against the original PyTorch model (largest logit difference 3.6e-03).

⚠️ Limitations

  • It knows a fixed set of tools. It does not read tool descriptions at run time; new tools need new training examples.
  • It is not a chat model. Pair it with a chat model for conversation and open questions.
  • Mobile Actions dates must be worked out from the current date; this is the hardest part for a model this small.
  • English only. Training and test data come from public research datasets; real users phrase things differently, so test it on your own requests before relying on it.

📚 Credits and licences

  • MASSIVE (CC-BY-4.0): FitzGerald et al., MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languages (ACL 2023).
  • Mobile Actions (CC-BY-4.0), Google.
  • CLINC150 (CC-BY-3.0): Larson et al., An Evaluation Dataset for Intent Classification and Out-of-Scope Prediction (EMNLP 2019).
  • FineWeb-Edu (ODC-By-1.0), Hugging Face.
  • Compared models: FunctionGemma 270M (Gemma terms) and Qwen3-0.6B-Base (Apache-2.0), fine-tuned here for the comparison only; their fine-tuned weights are not published.
  • This model (weights, tokenizer and code): Apache-2.0, built by Privoid.
Downloads last month
-
Safetensors
Model size
29.9M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Privoid-ai/Privoid-Jarvis-30M

Quantizations
1 model

Datasets used to train Privoid-ai/Privoid-Jarvis-30M