Hugging Face and Liquid AI demonstrate fine-tuning recipe to improve structured-output compliance in a 350M-parameter model
A public, low-cost fine-tuning pipeline using GRPO and TRL improves schema compliance on IFStruct from 22.6% to 29.7% in 100 steps, with full code and data released.
1 source · cross-referenced
- A joint Hugging Face–Liquid AI guide shows how to fine-tune a 350M-parameter model for better structured-output compliance using Group Relative Policy Optimization (GRPO) and the TRL library.
- The end-to-end pipeline is designed to run on free-tier Colab or Kaggle GPUs and includes evaluation on the open IFStruct benchmark.
- Fine-tuning improved IFStruct performance from 22.6% to 29.7% in 100 training steps, with the full dataset and code published on GitHub.
- The authors note the goal is not to match the RL-trained IFStruct score, but to demonstrate that small models can achieve meaningful gains with modest compute.
Hugging Face and Liquid AI published a step-by-step guide demonstrating how to fine-tune a 350M-parameter model for better structured-output compliance using Group Relative Policy Optimization (GRPO) and the TRL library.
The authors fine-tuned LiquidAI/LFM2.5-350M on a public instruction-following dataset with structured-output targets, then evaluated the result on the open IFStruct benchmark. The full pipeline is designed to run on free-tier Colab or Kaggle GPUs, with evaluation possible on a MacBook using llama.cpp.
Before fine-tuning, the base model achieved 22.6% on IFStruct under a local llama.cpp/BF16 serving setup, close to the 21.1% reported by the IFStruct release. After 100 GRPO training steps with roughly 500 samples, performance rose to 29.7%.
The guide includes a public GitHub repository with the training notebook, dataset preprocessing, LoRA configuration, reward functions, and evaluation scripts. The authors emphasize that the goal is not to recreate the RL-trained IFStruct score, but to show that task-specific fine-tuning can deliver meaningful improvements in schema compliance for smaller models.
The authors also document common error modes observed in the base model’s outputs—such as missing required fields, wrong item counts, type mismatches, and extraneous fields—and describe how the fine-tuning targets these issues via structured-output rewards and prompt augmentations.
- Oct 14, 2026 · TechCrunch — AI
Science Corporation implants vision-restoring PRIMA chip in first Stargardt disease patient
Trust78 - Oct 13, 2026 · TechCrunch — AI
Flox Intelligence raises $5M and launches edge AI devices to deter wildlife from critical infrastructure
Trust79 - Oct 13, 2026 · Hugging Face
Hugging Face releases LFM2.5-24B-A2B, a 24B-parameter reasoning agent with 2B active parameters for on-device use
Trust79