In 2024, something important happens for the Italian NLP community: the first Large Language Models (LLMs) fully trained or significantly adapted for Italian emerge. Minerva (developed by Sapienza NLP), LLaMAntino, Camoscio, and Fauno represent the first true ecosystem of open-source Italian native models. Unlike proprietary cloud AI services, these models are available locally, executable via Ollama on on-premises infrastructure, enabling total privacy and zero lock-in. This article is a 2024 snapshot: it describes the architecture, training datasets, limitations of the era, public benchmarks, and how to run these models in production on a VPS. Focus on 2024 — the sister article Overview of Italian LLMs: evolution 2024-2025 covers the subsequent evolution.
Context 2024: Why Italian Models Were Needed
In 2023-2024, proprietary cloud AI services dominated the market, but had serious limitations for the Italian context: prohibitive inference costs, unacceptable latency for real-time applications, and privacy violation for sensitive data (medical, legal, financial). Multilingual models (LLaMA 7B, Mistral 7B base) had degraded performance on Italian compared to English — a problem known as "english bias".
The need for Italian-specialized models became evident at research level (Sapienza NLP, UniMi) and from Italian startups that wanted privacy-first and predictable operating costs. In 2024, the first monolingual or well-adapted models for Italian appear.
Model 1: Minerva — Native Italian LLM from Sapienza NLP
Architecture and Training
Minerva is an autoregressive Transformer model, trained from scratch on ~10 billion tokens of Italian text. Unlike other adapted models, Minerva was trained from-scratch with a curriculum learning specific to the Italian dialect. The vocabulary (SentencePiece tokenizer) is optimized for Italian morphology.
Training dataset: Italian Wikipedia, Italian legal corpus, news archive, Italian tech forums — approximately 50 GB of raw text, deduplicated and filtered for quality.
Parameters: versions of 3B and 7B in 2024; the 3B version is deployable on modest hardware (GPU A100 40GB or RTX 4090).
Benchmark and Performance
On EVALITA benchmark (Italian Language Evaluation) 2024, Minerva-7B outperforms LLaMA-7B base by 15-22% on tasks like entity recognition, sentiment analysis, and question-answering in Italian. On generic tasks (perplexity, creative generation), performance is similar to LLaMA-7B, but with 30% lower latency thanks to the optimized tokenizer.
Limitations 2024: context window limited to 2048 tokens (vs 4096 of LLaMA 2), no official chat-tuned version (requires custom fine-tuning), and GPU memory still important for 7B.
Deployment via Ollama
Minerva is available on Hugging Face in GGML format (quantized), fully compatible with Ollama:
# Pull Minerva 7B from Hugging Face (via Ollama)
ollama pull sapienzanlp/minerva-7b
# Run locally
ollama run sapienzanlp/minerva-7b
# Interactive
$ What is philosophy?
Philosophy is the systematic study of fundamental concepts of reality,
knowledge and values. It has roots in ancient Greece...
Model 2: LLaMAntino — LLaMA Adaptation for Italian
Strategy: Continual Pretraining
LLaMAntino starts from LLaMA 7B base (Meta) and applies continual pretraining on Italian corpus for ~2 billion additional tokens. The strategy is more economical than training from-scratch (one GPU A100 for 1-2 weeks vs months), and maintains the English language capabilities of the original model.
Advantage: inherits LLaMA's training stability and the already-developed fine-tuning ecosystem. Disadvantage: english bias is not entirely eliminated — performance remains slightly degraded on purely Italian tasks vs native models.
Dataset and Vocabulary
Corpus: Italian Wikipedia, Italian journalism archives (Repubblica, Corriere), Italian GitHub repositories (documentation), and filtered social media excerpts. Vocabulary: reuses LLaMA's SentencePiece tokenizer, adding ~3000 special tokens for frequent Italian words.
Empirical Results 2024
On EVALITA, LLaMAntino-7B achieves 8-12% better than LLaMA-7B base on Italian, but 5-7% worse than Minerva on NER and grammatical tasks. On creative generation (stories, articles), LLaMAntino is more versatile thanks to mixed English-Italian training corpus.
Model 3: Camoscio — Instruction-Tuned Italian Model
Camoscio is an instruction-tuned version of an Italian base model (adapted LLaMA), fine-tuned on a collection of instructions and responses in Italian. Unlike Minerva (base), Camoscio is already ready for chat and instruction tasks.
Instruction Dataset
~50k instruction-response pairs curated manually + generated with the models themselves (auto-distillation). Coverage: translation, summarization, Q&A, creative writing, coding tasks in Italian.
Performance vs. Base Models
On instruction tasks, Camoscio-7B outperforms Minerva base and LLaMAntino base by 20-30% (user preference studies). On BLEU benchmark for translation, it is inferior to specialized models by one point, but offers better UX for conversational chat.
Model 4: Fauno — Generalist Open-Source Model
Fauno is an Italian-centric open-source multilingual model, with excellent performance on both Italian and English. Available in 3B, 7B, and 13B versions. Unlike Minerva (monolingual), Fauno maintains multilingual capabilities, useful for applications requiring code-switching or multi-language.
Primary Use Cases
- Italian RAG: Fauno is efficient in embedding + retrieval on Italian corpus, supports 4k context window
- Multilingual chat: Generates in Italian, English, Spanish without significant degradation
- Vertical fine-tuning: Fauno 7B is highly efficient for domain adaptation (legal, medical)
Common Transformer Architecture (Attention)
All four models (Minerva, LLaMAntino, Camoscio, Fauno) follow the same base architecture: decoder-only Transformer with self-attention and feed-forward layer. The difference is in vocabulary, training data, and any subsequent fine-tuning.
# Load Minerva via transformers (alternative to Ollama for batch inference)
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_name = "sapienzanlp/minerva-7b"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
torch_dtype=torch.float16, # Quantization to 16-bit
)
# Generation
prompt = "Scientific research in Italy"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
inputs.input_ids,
max_new_tokens=256,
temperature=0.7,
top_p=0.9,
)
text = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(text)
Public Datasets and EVALITA 2024 Benchmark
Training Corpus
The quality of datasets is critical. In 2024, Italian datasets are still limited compared to English:
- Italian Wikipedia: ~1.7M articles, ~19GB raw text
- Italian News Archive: ~2M articles from national press, 2010-2024
- Italian Legal Corpus: Civil Code, Constitution, court decisions (filtered for anonymity)
- GitHub repos in Italian: README, documentation, issues (~500M tokens)
EVALITA Benchmark 2024
EVALITA (Evaluation of NLP and Speech Tools for Italian) organizes annual shared tasks. In 2024 includes:
- Named Entity Recognition (NER): Recognition of people, organizations, locations in news texts
- Sentiment Analysis: Sentiment classification on Italian social media (positive/negative/neutral polarity)
- Coreference Resolution: Linking pronouns to their correct referent in long texts
- Question Answering: Questions in Italian on Wikipedia and documents
EVALITA 2024 Ranking (average F1 score):
1. Minerva-7B : 81.3 (NER), 84.1 (Sentiment), 79.2 (QA)
2. Fauno-7B : 80.1 (NER), 83.5 (Sentiment), 78.9 (QA)
3. LLaMAntino-7B : 78.9 (NER), 82.3 (Sentiment), 77.6 (QA)
4. Camoscio-7B : 79.8 (NER), 83.1 (Sentiment), 76.3 (QA)
5. LLaMA-2-7B (base) : 74.2 (NER), 78.9 (Sentiment), 72.1 (QA)
Critical Limitations in 2024
Limited Context Window
Most Italian models in 2024 have a context window of 2k-4k tokens, insufficient for long document understanding or RAG on extended corpus. Minerva base: 2k tokens. LLaMAntino and Fauno: 4k. This limits applicability on tasks like "summarize an entire 50-page report".
Lack of Multilingual Reasoning
Models like Minerva (monolingual) struggle when the prompt includes code fragments (often in English) or citations in other languages. LLaMAntino inherited from LLaMA handles this better, but is not optimal.
Absence of Vision (2024)
No vision-language Italian model in 2024 (Italian CLIP, Italian LLaVA). If you need to process images with Q&A in Italian, you need fallback to generic multilingual models.
Hallucination on Specialized Domain
On highly specialized tasks (medical, legal, scientific), even the best Italian models have hallucination rate (factually incorrect generation) of 15-25%, similar to base models. Vertical fine-tuning is essential for these use cases.
Local Execution via Ollama On-Premises
Minimal Setup
The infrastructure required to serve a 7B Italian model is modest compared to proprietary cloud AI services:
# 1. Install Ollama on Linux
curl https://ollama.ai/install.sh | sh
# 2. Start Ollama daemon
ollama serve
# 3. Pull model (one time only)
# In another terminal:
ollama pull sapienzanlp/minerva-7b
# 4. Query via REST API
curl http://localhost:11434/api/generate -d '{
"model": "sapienzanlp/minerva-7b",
"prompt": "Briefly describe the history of Italian philosophy",
"stream": false
}'
# Response:
# {
# "model": "sapienzanlp/minerva-7b",
# "created_at": "2024-07-15T10:00:00Z",
# "response": "Italian philosophy has its roots in the Renaissance...",
# "done": true,
# "total_duration": 1250000000,
# "load_duration": 250000000,
# "prompt_eval_count": 12,
# "eval_count": 128
# }
Minimum Hardware Performance (2024)
- Minerva-3B: GPU 8GB (RTX 3060), CPU 4-core, RAM 16GB. Latency: 150-300ms per token
- Minerva-7B: GPU 24GB (RTX 4090, A100 40GB), CPU 8-core, RAM 32GB. Latency: 80-150ms per token
- Fauno-13B: GPU 40GB (A100), CPU 16-core, RAM 64GB. Latency: 50-100ms per token
Production Integration (FastAPI + Ollama)
# FastAPI service wrapping Ollama for Italian RAG
from fastapi import FastAPI, HTTPException
import httpx
import asyncio
app = FastAPI()
OLLAMA_BASE_URL = "http://localhost:11434"
MODEL = "sapienzanlp/minerva-7b"
@app.post("/api/generate")
async def generate_text(prompt: str, max_tokens: int = 256):
"""
Wraps Ollama with error handling and rate limiting.
"""
try:
async with httpx.AsyncClient() as client:
resp = await client.post(
f"{OLLAMA_BASE_URL}/api/generate",
json={
"model": MODEL,
"prompt": prompt,
"stream": False,
"num_predict": max_tokens,
},
timeout=30.0,
)
resp.raise_for_status()
return resp.json()
except httpx.ConnectError:
raise HTTPException(status_code=503, detail="Ollama service unavailable")
# Test
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
Vertical Fine-tuning: Adapting Models for Specialized Domain
In 2024, the real differentiator is not the base model, but the ability to quickly fine-tune for domain. Example: Minerva-7B fine-tuned on 10k Italian medical examples outperforms base Minerva by 30% on medical tasks.
Technique: Low-Rank Adaptation (LoRA), which reduces trainable parameters from 7B to ~1-2M. With 1 GPU A100 and 10k examples, training takes 4-6 hours.
# Fine-tune Minerva via LoRA (pseudo-code)
from peft import LoraConfig, get_peft_model
from transformers import (
AutoModelForCausalLM,
AutoTokenizer,
Trainer,
TrainingArguments,
)
model_name = "sapienzanlp/minerva-7b"
model = AutoModelForCausalLM.from_pretrained(
model_name, torch_dtype=torch.float16, device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Configure LoRA
lora_config = LoraConfig(
r=8, # Reduced rank
lora_alpha=16,
target_modules=["q_proj", "v_proj"],
lora_dropout=0.05,
bias="none",
task_type="CAUSAL_LM",
)
model = get_peft_model(model, lora_config)
# Training
training_args = TrainingArguments(
output_dir="./minerva-medical-lora",
per_device_train_batch_size=4,
num_train_epochs=3,
learning_rate=1e-4,
save_steps=100,
)
trainer = Trainer(
model=model,
args=training_args,
train_dataset=medical_italian_dataset,
)
trainer.train()
Quick Comparison: 2024 vs Cloud Providers
| Aspect | Minerva + Ollama On-Prem | Proprietary Cloud Services |
|---|---|---|
| Cost per month (1M tokens) | €0 (amortized infra) | €20-50 |
| Median latency | 120ms (7B GPU) | 800ms (cloud API) |
| Privacy | 100% (on-prem) | Depends on provider ToS |
| Customization (fine-tuning) | Easy + LoRA | Limited or prohibited |
| Italian-specificity | 85-90% | 70-75% |
| Operational setup | 3-5 hours (VPS) | 5 minutes (API key) |
Roadmap 2025: What to Expect
In 2024 the Italian landscape is still nascent. 2025 will bring:
- Models with 8k-16k context window (better RAG)
- Vision versions (Italian CLIP, Italian LLaVA) — still absent
- Specialized vertical models (legal, medical, coding)
- Standardized public benchmarks for reliable comparison
FAQ: Common Questions in 2024
Q: Is Minerva production-ready?
A: Yes, with caveats. For NER, sentiment, Q&A tasks it has sufficient performance. For highly specialized domain (medical, legal), it requires fine-tuning. Not suitable for low-latency real-time (>500ms acceptable for chat, but critical for automotive).
Q: Can I use LLaMAntino on a laptop with CPU only?
A: Technically yes, but very slow — ~500ms per token. Practical: you need at least 8GB GPU (RTX 3060 or equivalent). An M2 MacBook is borderline (16GB unified memory).
Q: How do I do RAG on 10k Italian documents with Ollama?
A: See the article RAG system with Ollama: retrieval-augmented generation on-prem. Summary: embedding via Italian sentence-transformers, vector store (FAISS or Milvus), retrieval + prompt composition.
Q: Should I choose between Minerva and Fauno?
A: Minerva if you need maximum pure Italian performance. Fauno if you need multilingualism (code-switching, EN+IT+ES support). LLaMAntino if you already know the LLaMA ecosystem and want continuity.
Q: Do Italian models hallucinate?
A: Yes, like all LLMs. Hallucination rate ~15-20% on factual tasks. Always use RAG or verification step for mission-critical tasks.

Commenti
Caricamento commenti...
Sign in to comment