liquid-finetune) is Liquid’s repo for the full model customization loop: data preparation, training, evals, checkpointing, and export for Liquid Foundation Models (LFMs).
Use it when you want a repo-driven workflow that Claude Code or Codex can operate end to end from intent to runnable configs, tests, launches, and follow-up evals.
What it includes
Choose a model
Start with LFM3-1.7B for general text adaptation. Use the tested TRL smoke test first, then check Liquid Finetune’s current configs and architecture support before moving a run into its managed workflow. The older LFM2.5 configs below remain useful for their tested workflows; copying a model ID alone does not verify a new training path.Agent quickstart
Clone the repo and install the locked environment:AGENTS.md, CLAUDE.md, and mirrored skills under .agents/skills/ and .claude/skills/. Those files help the agent choose the right workflow for data prep, training configs, eval suites, rewards, backend launch, checkpoint inspection, and export.
Good starter prompts:
- “Check support for
LiquidAI/LFM3-1.7B, then prepare an SFT LoRA smoke test on the Hugging FaceHuggingFaceTB/smoltalkdataset, sweep learning rate and LoRA rank, and tell me which run looks best.” - “Fine-tune an LFM vision model on a chart question-answering dataset from Hugging Face, add a small eval suite, and show me the launch command.”
- “Evaluate my latest
support_sftcheckpoint with vLLM, compare it against the base model, and write the metrics toresults.json.” - “Set up a GRPO experiment that rewards valid JSON answers, run a small smoke test, and suggest the next config to try.”
CLI usage
Run from the repo environment when you are developing configs or changing LFT itself:uv tool:
liquid_finetune from another uv project, add it as a dependency:
Python usage
run_config accepts YAML paths or typed config objects. A config with slurm, modal, or kuberay submits to that backend; otherwise local training expects visible CUDA devices.
Fine-tuning with evals
Fine-tuning with evals
Standalone evals
Standalone evals
Eval-only runs use
EvalRunConfig, not JobConfig, because they do not include a training dataset or training settings.short_answer, the final assistant turn is treated as the ground truth.