Downloads · 30 days
19
26% of all-time downloads
XythicK/Italia-GPT
Italia-GPT is a text generation model from XythicK. Use it when you need the model to write or continue text. The card lists the license as llama3.2.
Italia-GPT is a 1.2B parameter model fine-tuned for native Italian instruction following. By focusing on linguistic nuances and cultural context, this model provides superior fluency compared to standard base models.
Downloads · 30 days
19
26% of all-time downloads
All-time downloads
74
Public
Parameters
1.2B
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
Italia-GPT is a 1.2B parameter model fine-tuned for native Italian instruction following. By focusing on linguistic nuances and cultural context, this model provides superior fluency compared to standard base models.
Below are the target benchmarks for the CALAMITA and Evalita-LLM frameworks:
| Metric | Score | Description |
|---|---|---|
| Logic & Reasoning | % | Native Italian sentence logic |
| Grammar Accuracy | % | Gender/Number agreement precision |
| Sentiment (ITA) | % | Detection of Italian irony and tone |
| Cultural Q&A | % | Localized knowledge and trivia |
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "XythicK/Italia-GPT"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Native Italian Chat Template
messages = [{"role": "user", "content": "Come si prepara una vera carbonara?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))