/mlx-vlm-skills:trainingfrom mlx-vlm-skills
Trains or fine-tunes vision-language models with MLX-VLM. Validates model/dataset compatibility, checks memory fit, and manages training runs (start, monitor, stop, continue, compare, debug) with LoRA/DoRA/full training support.
Ships in mlx-vlm-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a training request into a validated background run with mlx_vlm.train_runs, and answer training questions from what its commands report. Every command prints one JSON document; read it instead of guessing.
Work autonomously. Anything a command can tell you, find out yourself instead of asking the user. Ask only for what no command can answer: which model, which data, and what the model should learn. Make the remaining decisions, say what you chose and why, and ask for one confirmation before the step that costs time: start.
describe is the truth; if it differs from this skill, follow describe.check before every start. Start only when check reports "valid": true.start a run the user has not asked for or agreed to. A request for settings, advice, or a check is not a request to train.start, follow the run with status. Do not say a run finished until status says so.--runs-dir or the MLX_VLM_TRAIN_* variables, or split a run into pieces to get around one.stop, continue, and delete only when the user asks or agrees.Use uv run mlx_vlm.train_runs ... in a checkout, or python -m mlx_vlm train_runs ....
| Command | Purpose |
|---|---|
describe | Tasks, algorithms, and every option with type, default, choices, help, and requires. |
limits | The usage caps, active runs, runs in the last 24 hours, and the machine's memory. |
validate-model <model> | Whether the architecture can be trained, its quantization, and its weight size if it is on disk. |
inspect-dataset --options '<json>' | Splits with row counts, columns, the row format, matching algorithms, and text lengths. |
check --options '<json>' | Validate options with the real training parser. Starts nothing. |
start --options '<json>' [--name <label>] | Start a run in the background; returns its id. |
status [run] | Status, iteration, and latest metrics. No argument means the newest run. |
log [run] --lines N | The end of the run's log. |
history [run] | Every metric as [iteration, value] points. |
list | Recent runs, newest first. |
config [run] | The options a run was started with. |
sample [run] | The latest generated output of a run that generates (grpo). |
stop [run] | Stop a run. It saves its weights and trainer state first, so it can be continued. |
continue [run] | Carry on an ended run in a new run. |
delete <run> | Remove an ended run and its files. |
run is a run id, an unambiguous id prefix, or the --name label. Pass long option sets with --options-file <path> (- reads stdin). Options are a JSON object keyed by the option names from describe. Options in the managed group are set by the run manager; do not pass them.
Pick the playbook that matches the request and work through its steps in order. Each step names the command that answers it.
describe: confirm the task and note the algorithms.limits: read the caps and system.memory_gb.validate-model <model>: stop here if it is not supported.inspect-dataset: read format, algorithms, rows, and text_chars.algorithms; see algorithms.check: fix every error and repeat until valid.start, then report the run id and adapter_path.status; judge the run with runs.Steps 1 to 7 above, then stop before start. Reply with:
Offer the pilot from settings when the model and dataset have not been trained together before. Do not start it without a yes.
limits for system.memory_gb, validate-model for weights_gb and quantization_bits, inspect-dataset for lengths.status reports peak_memory and iterations_per_second.inspect-dataset. Report splits, rows, format, and text_chars.format of unknown, too few rows.status for the state, iteration, and latest metrics.history for the shape of the loss, not just the last value.grpo, sample for the latest output.status for status, error, capped, and notes.log --lines 80 for the real error.continue; see runs.config <run> returns the earlier run's options. Change only what was asked, then check and start.status and history of each run and compare the same metric at the same iteration. A comparison is fair only when one setting changed.id.train_loss 0.42 at iteration 300 of 500".inspect-dataset, validate-model, or limits would have returned.check, or after check reported errors.learning_rate at its default for lora; the default suits full training.describe.adapter_file, output_path, progress_file, resume_state, or any max_* option; the manager owns them.epochs and iters.status in a tight loop. Check at a pace that matches the run's length.capped or stopped run a failure, or continuing it without asking.references/algorithms.md (opens in a new tab)references/datasets.md (opens in a new tab)references/examples.md (opens in a new tab)references/memory.md (opens in a new tab)references/runs.md (opens in a new tab)references/settings.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/add-new-modelUse this skill when the user wants to add or port a new model architecture to MLX-VLM — mapping a Hugging Face model_type to a new file under mlx_vlm/models, writing the ModelConfig, matching layer/weight names, reusing a similar existing model, adding a test class, and validating the port. Covers vision-language, language, audio, and diffusion model ports./benchmarkingUse this skill when the user wants to benchmark an MLX-VLM change and present the numbers in a PR — fork-vs-main A/B comparisons, isolated-module micro-benchmarks, median-of-N timing with warmup, peak-memory reporting, correctness checks, parameter sweeps, and self-contained reproducible bench scripts to paste into a PR description./cli-inferencenpx claudepluginhub neywa-labs/mlx-vlm --plugin mlx-vlm-skillsOther plugins' skills for the same job