Check Kiln's fine-tunable model list for deprecated or unsupported base models. Use when the user wants to audit fine-tuning support, check if fine-tune base models are still valid, or mentions fine-tune model deprecation.
68
82%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Audit the fine-tunable models listed in Kiln to find base models that are no longer supported for fine-tuning by their providers. This is separate from general model deprecation — a model can still be available for inference but no longer supported as a fine-tuning base.
curl, uv run, and python3 commands that hit the network MUST use required_permissions: ["all"]. The sandbox blocks network access..env before running check scripts: export $(grep -v '^#' .env | xargs)gcloud CLI authentication. Before running, ask the user to run gcloud auth login if they haven't recently. If gcloud auth print-access-token fails, prompt the user to authenticate.| Provider | Env Var | Auth |
|---|---|---|
| OpenAI | OPENAI_API_KEY | Bearer |
| Together AI | TOGETHER_API_KEY | Bearer |
| Vertex AI | VERTEX_PROJECT_ID + gcloud CLI auth | OAuth (gcloud) |
| Fireworks AI | FIREWORKS_API_KEY | Bearer |
Kiln has two types of fine-tunable model entries:
libs/core/kiln_ai/adapters/ml_model_list.py with provider_finetune_id set. Currently used by Together AI and Vertex AI.api.fireworks.ai/v1/accounts/fireworks/models filtering by tunable=True. This list is managed by Fireworks and may include stale/unsupported models.The API endpoint that serves the fine-tune dropdown is GET /api/finetune_providers in app/desktop/studio_server/finetune_api.py.
Run the check script from the repo root:
uv run python3 .agents/skills/kiln-check-finetune-deprecation/scripts/check_finetune.py static > /tmp/kiln_finetune_static.jsonThis extracts all provider_finetune_id entries from ml_model_list.py and checks each provider's docs/API to see if the model is still available for fine-tuning:
meta-llama/Meta-Llama-3.1-8B-Instruct-Reference).gemini-2.0-flash-001).Output: JSON to stdout with per-provider results, human summary to stderr.
Fireworks fine-tunable models are fetched dynamically from their API, not stored in ml_model_list.py. The script checks the API's supervisedLoraTunable and supervisedFullParameterTunable fields (not the old tunable field, which is stale) and cross-references against our allowlist.
uv run python3 .agents/skills/kiln-check-finetune-deprecation/scripts/check_finetune.py fireworks > /tmp/kiln_finetune_fireworks.jsonThis script:
supervisedLoraTunable=True or supervisedFullParameterTunable=True from api.fireworks.ai/v1/accounts/fireworks/modelsFIREWORKS_SUPPORTED_FINETUNE_MODELS from libs/core/kiln_ai/adapters/fine_tune/fireworks_finetune.py — the same allowlist that filters the runtime fine-tune dropdownThe canonical allowlist lives in fireworks_finetune.py and is shared between the runtime dropdown filter and this audit skill. There is a single place to update when Fireworks changes their supported models.
Interpreting results: The supervised API fields return ~43 models, but our allowlist intentionally filters to ~20 that match Fireworks' documented supported models. Seeing ~23 "models in API but NOT in allowlist" is normal — these are models Fireworks marks as technically tunable but doesn't officially document or support. Only flag these if a model appears in the Fireworks docs but is missing from our allowlist. The important direction is stale allowlist entries — models we ship that the API no longer marks as supervised-tunable.
Output: JSON to stdout, human summary to stderr.
Read the JSON outputs and present findings in a clear table:
Fine-Tune Deprecation Audit Results
====================================
STATIC PROVIDERS (provider_finetune_id in ml_model_list.py):
✅ OpenAI: 5/5 found
gpt-4.1-2025-04-14, gpt-4.1-mini-2025-04-14, gpt-4.1-nano-2025-04-14,
gpt-4o-2024-08-06, gpt-4o-mini-2024-07-18
✅ Vertex AI: 2/2 found
gemini-2.0-flash-001, gemini-2.0-flash-lite-001
❌ Together AI: 2/4 missing
✅ Qwen/Qwen2.5-72B-Instruct — found
✅ Qwen/Qwen2.5-14B-Instruct — found
❌ meta-llama/Meta-Llama-3.1-8B-Instruct-Reference — NOT FOUND
❌ meta-llama/Meta-Llama-3.1-70B-Instruct-Reference — NOT FOUND
⏭️ SKIPPED (no credentials):
- vertex (VERTEX_PROJECT_ID not set)
DYNAMIC PROVIDER (Fireworks):
⚠️ 167 models marked tunable in API
⚠️ 15 models in known-good docs list
✅ 11 models in both API and docs
❌ 156 models in API but NOT in docs (likely stale)
- accounts/fireworks/models/qwen2-72b-instruct
- accounts/fireworks/models/code-llama-7b
- ...
⚠️ 4 models in docs but NOT in API
- accounts/fireworks/models/gemma-2-9b-it
- ...Note: The example above is illustrative. Actual model counts and entries will vary.
Based on findings, recommend specific actions:
provider_finetune_id):provider_finetune_id to a newer version if one existsprovider_finetune_id field to stop offering fine-tuning for that model on that providerdeprecated=True on the provider entry if the model is fully gonefetch_fireworks_finetune_models() in finetune_api.py to filter against a known-good listAlways ask the user to confirm before making any code changes.
After any changes, run the relevant tests:
uv run python3 -m pytest app/desktop/studio_server/test_finetune_api.py -q.envgcloud auth print-access-token works, or skip Vertex)ff39535
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.