Views
No views yet
Supervised Fine-Tuned LoRA adapter on NVIDIA Nemotron Mini 4B — cross-architecture validation of the KG-agent approach.

nvidia/Nemotron-Mini-4B-Instruct. It serves as a cross-architecture baseline for the Sangue e Grafi project, demonstrating that the KG-agent approach generalizes beyond a single model family.| Parameter | Value |
|---|---|
| Method | SFT (Supervised Fine-Tuning) |
| Base model | nvidia/Nemotron-Mini-4B-Instruct (4B params) |
| Training data | 500 adversarial kinship scenarios with teacher traces |
| Teacher | Gemini 2.5 Flash — generated gold reasoning traces |
| Format | SafeTensors LoRA adapter |
| Model | Hard Dev-Set Accuracy |
|---|---|
| Gemma 4B (SFT+GRPO) | 5/10 (50%) |
| Nemotron 4B (SFT+GRPO) | 4/10 (40%) |
| Gemini 2.5 Flash (no KG) | 3/10 (30%) — easy set |
Both 4B models with KG-agent outperform the frontier model without KG grounding — validating that the approach is architecture-agnostic.
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = AutoModelForCausalLM.from_pretrained("nvidia/Nemotron-Mini-4B-Instruct")
5model = PeftModel.from_pretrained(base, "cyberandy/sangue-e-grafi-nemotron-nano-sft-v7")
6tokenizer = AutoTokenizer.from_pretrained("nvidia/Nemotron-Mini-4B-Instruct")Note: This is the SFT-only checkpoint. For the full pipeline, merge this adapter first, then apply the GRPO adapter.
| Resource | Link |
|---|---|
| 🚀 Live Demo | HF Space |
| 📦 GitHub | cyberandy/sangue-e-grafi |
| 📄 Paper | RLM-on-KG (arXiv:2604.17056) |
| 🎯 GRPO Adapter | sangue-e-grafi-nemotron-nano-grpo |
| 📊 Agent Traces Dataset | sangue-e-grafi-agent-traces |
1@misc{sangue-e-grafi-2026,
2 title = {Sangue e Grafi: Small Models Beat Frontier LLMs on Adversarial Kinship Reasoning with Knowledge Graph Agents},
3 author = {Andrea Volpini},
4 year = {2026},
5 url = {https://github.com/cyberandy/sangue-e-grafi},
6 note = {Hugging Face Build Small Hackathon 2026}
7}