Nesso-0.4B-Instruct is a bilingual English/Italian Small Language Model (SLM) optimized for conversational and instruction-following use cases. It is post-trained on top of Zagreus-0.4B-ita, a foundational model trained from scratch by the mii-llm community (Made in Italy – Large Language Model) on the Seeweb HPC infrastructure.
Designed for sovereign edge inference, Nesso-0.4B-Instruct delivers competitive instruction-following performance in both Italian and English at a fraction of the compute cost of larger models.
⚠️ This model is currently at the SFT (Supervised Fine-Tuning) stage. DPO (Direct Preference Optimization) training is planned and updated results will be published upon completion.
Model Details
Property
Value
Architecture
Modified Llama-3.2 (fully dense)
Parameters
~400M
Hidden size
960
Layers
32
Attention heads
15 (KV heads: 5)
Context length
4096 tokens
Tokenizer
Llama-3.2 (vocab_size: 128,256)
Precision
BF16
Languages
English, Italian
Base model
mii-llm/zagreus-0.4B-ita
Post-training framework
Axolotl + FSDP
Chat template
ChatML
Training Details
Base Model Pre-training
Nesso-0.4B-Instruct is built on Zagreus-0.4B-ita, which was pre-trained on approximately 1 trillion tokens using the following data mix:
Token distribution: ~400B English + ~400B Italian + ~200B Code Infrastructure: 64× NVIDIA A100 GPUs (8 nodes × 8 GPUs) on Seeweb HPC Framework: Nanotron (mii-llm fork)
Post-training (SFT)
Post-training was performed using Axolotl with FSDP across 4 nodes (32× A100 GPUs).
The instruction dataset is a proprietary bilingual (English/Italian) corpus curated by the mii-llm team, with long-term iteration across domains including instruction following, conversational AI, and general knowledge. This dataset is considered a strategic research asset and is not released as open source.
Key hyperparameters:
Hyperparameter
Value
Optimizer
AdamW (fused)
Learning rate
1e-3
LR scheduler
Cosine (constant ratio: 0.8, min ratio: 0.3)
Epochs
3
Micro batch size
1
Gradient accumulation steps
8
Sequence length
4096
Max grad norm
1.0
Precision
BF16 + Flash Attention
FSDP strategy
FULL_SHARD
Chat Template
This model uses the ChatML format:
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Ciao! Come stai?<|im_end|>
<|im_start|>assistant
Special tokens:
pad_token: <|im_end|>
eos_token: <|im_end|>
Usage
python
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
34model_id ="mii-llm/nesso-0.4B-instruct"56tokenizer = AutoTokenizer.from_pretrained(model_id)7model = AutoModelForCausalLM.from_pretrained(8 model_id,9 torch_dtype=torch.bfloat16,10 device_map="auto"11)1213messages =[14{"role":"system","content":"Sei un assistente utile e preciso."},15{"role":"user","content":"Spiegami cos'è un modello linguistico di grandi dimensioni."}16]1718input_ids = tokenizer.apply_chat_template(19 messages,20 add_generation_prompt=True,21 return_tensors="pt"22).to(model.device)2324output = model.generate(25 input_ids,26 max_new_tokens=512,27 temperature=0.7,28 do_sample=True29)3031print(tokenizer.decode(output[0][input_ids.shape[-1]:], skip_special_tokens=True))
Nesso-0.4B-Instruct achieves the highest IFEval English score (0.3465) among all compared models — including the larger Qwen3-0.6B — demonstrating strong instruction-following capability. On Italian HellaSwag, it also leads with 0.4076.
Qwen3-0.6B maintains a clear advantage on MMLU in both languages. MMLU is a widely used benchmark that is frequently represented in training corpora; we believe our results nonetheless demonstrate a highly competitive SLM for English/Italian edge deployment scenarios.
If you use this model in your research, please cite:
bibtex
1@misc{nesso2025,
2 title = {The Joy and Pain of Training an LLM from Scratch:
3 A Technical Report on the Zagreus and Nesso Model Families},
4 author = {mii-llm community},
5 year = {2025},
6 howpublished = {\url{https://github.com/mii-llm/zagreus-nesso-slm}},
7}
Acknowledgements
Antonio Baldassarra (CEO, Seeweb) and Marco Cristofanilli (Head of AI, Seeweb) for infrastructure sponsorship
The Hugging Face team for Nanotron, datatrove, FineWeb, and FineWeb-2