Fine-tuning is the next step when prompt changes, template fixes, constrained decoding, and better tool descriptions are not enough. Use it when the base model misses your task’s semantic boundary or needs to learn a production-specific output style.
Before you fine-tune
Exhaust the cheaper levers first:
If the model still misses the task, fine-tune.
Recommended stack
Liquid Finetune is Liquid’s open-source training stack for the full customization loop:
- SFT, LoRA, DPO, and GRPO
- Text, vision, and MoE model support
- Distributed training on local GPUs, SLURM, Kubernetes, or Modal
- Dataset formatting and validation
- GGUF export and quantization for deployment
You can also use TRL or Unsloth directly if those already fit your workflow.
For distributed LFM MoE training with expert or tensor parallelism, use Halo.
Typical workflow
- Start with LFM3-1.7B for general text or the LFM3 model for your modality. Use an older checkpoint when its size or specialization fits your task better, and choose a training framework that supports its architecture. The TRL guide provides the text LoRA path.
- Prepare 500 to 5,000 task examples. Quality and distribution matter more than volume; match production inputs.
- Start with a short LoRA run to check the training setup before running a full job.
- Evaluate on a held-out set that you froze before training.
- Iterate on data, prompts, and hyperparameters before scaling to larger runs.
Two rules that save the most pain
Train with the model’s own chat template. Use apply_chat_template and keep training formatting character-for-character identical to production.
For tool calling, train on the selected model’s native format: LFM3 uses XML tool calls; LFM2 and LFM2.5 use their earlier formats. The migration guide explains the differences. Choose LoRA target modules from the selected architecture rather than copying names from another family.
Fine-tuning docs
Last modified on November 18, 2026