Capabilities · Conversation
Structured output
The model returns valid JSON, or any fixed format, every time.
1Where it comes from
DesignNot here
Pre-trainingA little
Fine-tuningMost
PreferencesNot here
RLA little
DeploymentMost
Design and pre-training
A base model has seen plenty of JSON and code.
Post-training and deployment
Fine-tuning teaches the format. Constrained decoding at serving time can enforce it.
2How to measure it
- JSONSchemaBenchStructured outputs tested against real JSON schemas.
- Format validity rateThe share of answers a parser accepts. Report it next to accuracy.
3Common datasets and methods
- Efficient Guided GenerationGuiding generation with a finite-state machine so the output always fits a pattern.
4Recipes
Held steadyHemma on Gemma 4 12B: Pushing Swedish grammar to 95.3% Sv-BLiMP at homePreserves Swedish JSON schema keys, non-editing controls, and clean Python codeRenaissance Labs × NAISS · Complete on Apple M5 (32 GB). Published on RenaissanceLabsEU and naiss-se Hugging Face orgs in both 4-bit MLX and on-device GGUF formats.ImprovedHemma on Inkling-2-Mini: Fine-tuning a 26.4B MoE for Swedish in 27 minutes at homeAdds input validation in Swedish Python code while preserving exact raw JSON and non-editing controlsRenaissance Labs × NAISS · Complete on Apple M5 (32 GB). Fused 4-bit MLX weights and unfused step-400/step-2000 LoRA adapters ready.Held steadyHemma v0.1: Training a 9B Swedish model at home on an Apple M5 laptopPreserved exact Swedish JSON schema keys and non-editing controlsRenaissance Labs · Part 1 complete on Apple M5 (32 GB). Fused 4-bit MLX weights and unfused LoRA adapters published on Hugging Face for Part 2 continuation.Held steadyHemma v0.2 (Part 2): Prelude 9B on expanded Swedish data + on-device GGUFPreserves Swedish JSON schema keys and non-editing controlsRenaissance Labs × NAISS · Part 2 complete on Apple M5 (32 GB). Published on RenaissanceLabsEU and naiss-se Hugging Face orgs in 4-bit MLX and verified Q4_K_M / Q6_K GGUF formats.ImprovedSingle-token MLX LoRA and temperature scaling for calibrated Swedish agency decisionsSingle-forward-pass calibrated probability distributions over A–E criteriaRenaissance Labs · Run once on Apple M5 (32 GB). Evaluated once on two untouched frozen holdouts. Companion open datasets published on Hugging Face.5Findings
- A right answer in the wrong format earns half credit on one alignment benchmark, and does not pass.OpenEuroLLM
- After preference tuning, one model card lists five malformed-format responses and six prompt echoes.OpenEuroLLM
- Well-formed tool-call JSON ended up inside the reasoning span and never reached the agent.Marin
6Wanted
- Format validity reported next to accuracy on public leaderboards.I have this
7Who works on it
Labs and people whose published work is cited on this page. Not a complete list.