Topic 5 of 5 · 4 min read
Release gates for tuned models
Goal: Review a release checklist for a fine-tuned model and name the missing gate.
A release gate is a check with a pass threshold that must be met before a tuned model ships, and the gates should cover every risk in this skill, not only the task you tuned for. Write thresholds before you see the results.
Check yourself · 1 of 3
When should a release gate's pass threshold be set?
Why it matters
A tuned model can improve on its task, forget general skills, lose refusals, carry a backdoor and leak private rows, all at once. Teams usually check the first and trust the rest. A checklist forces the other checks to happen and leaves a record of who approved what.
The gates
- Task eval. The target metric on a held-out set the model never saw in training, compared with the base model and with the previous version.
- General regression eval. Instruction following, structured output, maths and code. Allowed drop, for example no more than 2 points against the base.
- Safety eval. The refusal set, benign near-misses and off-domain probes. Allowed drop set in advance.
- Red-team pass. People, or a separate model, try jailbreaks and role-play wrappers for a fixed time. Findings are logged and fixed or accepted by name.
- Data gate. Dataset hash, provenance, trigger scan result, redaction and deduplication report.
- Leak test. Canary and prefix probe results.
- Licence check. The base model's licence terms, the dataset licences and any rule on using outputs to train other models.
- Model card. Intended use, training data summary, eval results, known limits, base model and version, owner. The Hugging Face docs describe the fields.
- Rollback plan. The previous model stays deployable, and one person can switch back.
Before and after
Weak checklist: "accuracy above 90%, manager approval". Missing gates: general regression, safety, leaks, licence. Fixed: each gate has a metric, a threshold, an owner and a linked result, and a failed gate blocks the pipeline automatically.
What goes wrong
- Setting thresholds after seeing results, so every model passes.
- Running evals on the training set, or on a test set that leaked into it.
- Gates that nobody owns, so nobody blocks a release.
- Skipping the licence check, then discovering the base model forbids your use.
Examples
Reading a checklist for the missing gate
A checklist lists: task accuracy above 90%, p95 latency under 800 ms, product manager sign-off, model card written. It has no general regression eval, no safety eval and no leak test, and nobody checked the base model's licence. The most urgent missing gate depends on context, but with customer-facing chat and private tuning data the safety and leak gates come first.
A gate as a table
Gate: JSON validity. Metric: share of 500 prompts returning parseable JSON. Base 98%. Threshold: at least 96%. Result: 94%. Owner: platform lead. Decision: blocked, retune with lower learning rate. Each row names the number, the bar, the owner and the decision.
Key points
- A release gate is a check with a threshold set before the run and an owner who can block the release.
- Cover the task, general regression, safety, red-team, data and leak results, not just the tuned task metric.
- Compare every score with the base model and with the previous production version.
- Record licence terms for the base model and every dataset, and publish a model card with intended use and limits.
- Keep a rollback path so a bad release can be reversed quickly.
Common mistakes
- Choosing thresholds after looking at the results.
- Evaluating on data that overlaps the training set.
- Listing gates with no owner and no power to stop the release.
- Leaving out the licence and model card because they are not technical.
Check yourself · 2 of 3
A checklist for a tuned model includes task accuracy, latency and manager sign-off. Which gate is missing that this skill covers?
Check yourself · 3 of 3
What should a model card for a tuned model record?
Practice items, not counted towards your mastery.
Start here
- Fine-tuning Aligned Language Models Compromises Safety (Qi et al.) (opens in a new tab)PaperFree
Shows 10 adversarial examples broke a hosted model's guardrails, and that benign datasets also degrade safety.
- Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs (opens in a new tab)PaperFree
Narrow fine-tuning on insecure code produced broad misaligned behaviour far outside coding.
- A small number of samples can poison LLMs of any size (Anthropic) (opens in a new tab)ArticleFree
250 poisoned documents backdoored models from 600M to 13B parameters, regardless of data volume.
More for this topic
- Model Cards (Hugging Face Hub docs) (opens in a new tab)DocsFree
What a model card should record: intended use, training data, evaluation results, limits and licence.