zagreus-3B-sft-v3.2
an advanced bilingual model for agentic tasks
2 min read
The new open-weight language model with 3 billion parameters was trained from scratch on Italian and English. The SFT v3.2 version is optimized for precise tool-calling, hybrid reasoning, and interactive dialogue with external tools. The main difference from the previous version is its improved ability to understand when a tool should not be called, ask clarifying questions when arguments are missing, and correctly process complex requests. The model will be useful for developers of voice assistants, bots, and agentic systems with Italian and English support.
Key features
- Smart tool-calling: the model is trained to decline when suitable tools are missing and request missing data.
- Context up to 64k tokens: support for long texts is implemented using YaRN rope scaling without additional training.
- Two languages: native support for Italian and English (pre-training also included French, Spanish, Portuguese, and code).
- Reasoning mode: support for switching the thinking mode via a system prompt or chat template parameters.
What you can do
- Build an agent: integrate the model into a Telegram bot or web server via vLLM to perform tasks involving external functions and API calls.
- Analyze long documents: process large volumes of text and code thanks to support for a context of up to 65,536 tokens.
- Develop a bilingual assistant: set up a bot for technical support or consultations in Italian and English.
Example
import json, re, torch
from transformers import AutoTokenizer, AutoModelForCausalLM
repo = "giux78/zagreus-3B-sft-v3.2"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
def chat(messages, tools=None, think=False, max_new_tokens=1024):
text = tok.apply_chat_template(messages, tools=tools, add_generation_prompt=True,
enable_thinking=think, tokenize=False)
inputs = tok(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=max_new_tokens, do_sample=False)
return tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True)
print(chat([{"role": "user", "content": "Spiegami in tre frasi cos'è la fotosintesi."}]))
Read more
Details• Parameters: ~3B (3.08B), Llama-3.2 tokenizer (128,256 vocabulary).
• Training: over 3 trillion tokens during pre-training, 13.6 billion token SFT dataset.
• Metrics: MMLU 54.8, irrelevant tool call recognition accuracy (BFCL irrelevance) 82.5%.
• Limitations: errors are possible during parallel tool calls and number crunching based on function results.










Comments