You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Images in training data: a line's images (file paths relative to the file or dataset folder, or data URLs) and images inside the state, for every kind of fit and training eval on the families that read images (all but d1-3B, Laya and Julia, which refuse such data before loading). Every image is opened in the check before a model loads, and a fit's data hash covers the image files. A Clef head fit counts each image's tokens in its memory and disk estimate. d3-edge's readout fit on Oxford-IIIT Pet (37 breeds, 3,680 photos, 3.3 minutes) went from 31.6% to 86.2% on 1,850 test photos.
The data command's image shape: a Hugging Face Image column, or a column of image paths in a CSV or JSON-lines file, and its class label (--image, --label, optionally --text as the state), written into a dataset folder's images/. --show lists each line's image.
training fit --calibration auto|full|temperature|none (Python: calibration=; the Studio's New Fit: Options) picks the closing calibration. none leaves the fitted kind's answers as they are, for a program whose thresholds were tuned on the base's probabilities. The report and training.json say which calibration each question got.
A lora kind of fit for d3 and d1 LFM3 models (training fit --method lora, Python method="lora"): low-rank adapters on the MLP projections of every layer, trained with each question's readout rows through the model's own prompt and readout, on text and images. --rank and --learning-rate change its defaults (rank 8, 1e-4), --epochs defaults to 2. The fitted folder holds the adapters, fused into the base's weights when it loads, so it answers at the base's speed. auto still picks the readout fit, which takes seconds where LoRA takes minutes; the summary before a fit names both. The memory estimate counts the adapters, one recomputed layer and the vision tower's rows it keeps for every training image. In the Studio's New Fit, a panel below the method cards offers it with its own options and Start LoRA Fit.
Image datasets in the Studio: Download a Dataset previews image columns as thumbnails and downloads them in the image shape; the Datasets page shows each row's thumbnail and the image in the inspector; the Playground on a dataset shows the rows' images and sends them with Run; a batch links the images into its own folder and keeps standing alone, and Save Answers as a Dataset keeps them; Fit and Evaluate take image datasets. Adding a JSON-lines file whose lines name image files beside it explains how to make it a dataset folder.
Mixes: a dataset folder whose dataset.json lists other datasets ("mix": {"sources": [{"path": "../trec"}, ...], "cap": 2000}) is read by training fit and training eval as one dataset. Its train, report and evaluate splits are the sources' together, train rows capped per source and sampled with the mix's seed; a held_out source is scored in the report but not trained on. Example ids start with their source's name, and the data hash covers every source. A mix is written as dataset.json format 2; plain dataset folders stay at format 1. A fit on a mix reports each source dataset and question before and after (held-out ones marked) in its output, training.json and FitResult.sources; training eval on a mix adds a table per source (--json and Python: each model's sources). The Studio's Datasets page shows a mix with its sources (rows per split, caps, the held-out ones, links to them), and batches, fits and evaluations read it as one dataset. New Fit's Mix Datasets… makes one: several datasets, a cap per dataset and for the others, held-out marks, a seed and a name. A fit's and an evaluation's reports on a mix have a Per dataset table.
A finetune, head or lora fit warns that it changes the answers to questions outside its data too, without a new calibration, and that a mix keeps a question. Training explains mixes, with what one keeps and what a fit on one dataset does to the others' questions, measured on d3-edge and Laya.
training label -m TEACHER --data DATA [-o FOLDER] (Python mlx_decision.training.label): a teacher answers every row of a dataset (any training fit reads, mixes included; rows need questions, not labels) and a new dataset folder is written with its probabilities as soft labels, or its top answers with --hard (--threshold, --sample, --split, --events). On labelled data it reports the teacher's accuracy and ECE there, and it notes when the teacher's calibration is poor or unknown, which a student inherits.
Choosing a fit, a guide at the top of the training docs: which kind to pick for each family and for your data, how many rows a fit needs, when LoRA and distillation pay, what a mix of datasets trades, and which calibration to keep. New Fit in the Studio links to it.
Changed
Save Answers as a Dataset writes each answer's probabilities as soft labels by default (Top answers keeps the old hard labels), so a student learns how sure the teacher was. The dataset's source names the teacher, its fit and calibration, and the sheet and the Datasets page say when the teacher's calibration is poor or unknown, since a student inherits it.
The closing calibration after a readout, head or finetune fit is a temperature per question only: the per-option biases, fitted on the dev part (a tenth of the training part), cost accuracy on questions with many options (on Oxford-IIIT Pet 2.9 points) and changed little elsewhere. --calibration full gives the biases as before. A calibration alone (--method calibrate) keeps them when the training part holds 10 or more examples of every option.
The Studio's batch command (From a Terminal, Copy Command) runs in the batch's folder: cd into batches/NAME, then mlx-decision run -m MODEL -q questions.json --states rows.jsonl --json.
Fixed
A readout fit of a pplx or d3 model answered its yes/no questions with the release's rows once loaded: the fitted folder names the options true, false, these families read them false, true, and the served model did not match the two. Its choice and score questions were not affected. Fitted folders written before are now served with their fitted rows, without fitting again.