# Kiln Check Finetune Deprecation

Check Kiln's fine-tunable model list for deprecated or unsupported base models.

- Repository: https://github.com/Kiln-AI/Kiln (5247 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add Kiln-AI/Kiln --skill kiln-check-finetune-deprecation -g -a claude-code -y`
Codex: `npx skills add Kiln-AI/Kiln --skill kiln-check-finetune-deprecation -g -a codex -y`
Cursor: `npx skills add Kiln-AI/Kiln --skill kiln-check-finetune-deprecation -g -a cursor -y`
Gemini CLI: `npx skills add Kiln-AI/Kiln --skill kiln-check-finetune-deprecation -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Check Fine-Tune Model Deprecation in Kiln

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.

---

## Global Rules

- **Sandbox:** All `curl`, `uv run`, and `python3` commands that hit the network MUST use `required_permissions: ["all"]`. The sandbox blocks network access.
- **Env vars:** Source `.env` before running check scripts: `export $(grep -v '^#' .env | xargs)`
- **Vertex AI auth:** The Vertex check requires `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.
- **Non-destructive:** This skill only reports findings. It does not automatically remove or deprecate models.

---

## Supported Providers

| 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 |

---

## Background

Kiln has two types of fine-tunable model entries:

1. **Static entries**, Models in `libs/core/kiln_ai/adapters/ml_model_list.py` with `provider_finetune_id` set. Currently used by Together AI and Vertex AI.
2. **Dynamic entries (Fireworks)**, Fetched at runtime from `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`.

---

## Phase 1, Check Static Fine-Tune IDs

Run the check script from the repo root:

The rest: https://github.com/Kiln-AI/Kiln/blob/HEAD/.agents/skills/kiln-check-finetune-deprecation/SKILL.md
