Repository navigation
Releases
1.4.0
Added
- The OpenAI API's structured output on
serverand the Studio:POST /v1/chat/completionsandPOST /v1/responsesanswer a JSON schema (inresponse_format/text.format, or as a forced function call) whose fields a decision model can fill: string enums and consts as choices (a const's description as its criteria), booleans as yes/no questions, bounded or consecutive integers as scores, single values filled, nested objects field by field. The system and developer messages go before each question's instructions, the user and assistant messages are the state; images as data URLs. Anything else (free text, numbers, lists, nullable fields, no schema) is refused with400naming the field. The response carries the answer in the schema's shape,decisionwith every probability, logprobs per answered value on request, and streams. The OpenAI SDK'sparseandstreamhelpers, Instructor, pydantic-ai and LangChain return the typed object in every mode that sends a schema.GET /v1/modelsalso answers in OpenAI's shape, andGET /v1/models/{id}is new. The Studio's Get Code has an OpenAI SDK tab (the questions as a pydantic class). - The
lorakind of fit for every family with a frozen network: Clef, pplx (v1.1's requests and v1.2's joint requests), Base Labs, H2O-Lightning (in the reading it is loaded with) and d1, beside d3, GLiDE and d1 LFM3. Clef's adapters train together with its decision head. Measured on SST-5 and pet photos against each family's own kind: Clef flash gains 1.5 points over its head fit; on pplx flash, joey-1, H2O-Lightning-4B and d1-3B the readout fit is as good or better at a fraction of the time (docs/TRAINING.md, "What a fit gains"). On the 27B models (Clef 27B, pplx v1.2 27B, mammoth-1) only the memory is measured: 57 to 79 GB in bf16, a 96 or 128 GB Mac. - A LoRA fit checks its dev loss four times an epoch, keeps the best check and stops early after two worse ones in a row. Stopped (the first Ctrl-C, Stop in the Studio,
fit(stop=...)in Python) once it has a check, it finishes from its best check instead of writing nothing; a second Ctrl-C, or Discard in the Studio, discards it. The Studio's loss chart shows the checks. converton a LoRA-fitted model exports it: the adapters fused into a copy of the base's weights, quantized on request (-q,--bits,--target-bits; d1 LFM3 and d1 as stored only), in a folder that carries those weights with the fit's readouts, calibration and Clef's head, and so answers without the base. A fitted model of another kind is refused with the reason.model.decide(state, Cls)takes a pydantic class and returns an instance of it (with_result=True: the instance and theResult), with the same rules; a field it cannot answer raisesDecisionErrornaming it.- The GLiDE family: Fastino's
fastino/GLiDE-9B,GLiDE-2BandGLiDE-0.8B(text only, Fastino Community License) through the same API,run,chat,server,mcp,benchmark,trainingand the Studio, and in thedownloadmenu after d3, pinned to the commits they were checked at. GLiDE-9B's midloop (two blocks of middle layers run twice in every pass) runs in the Qwen3.5 backbone. 40,000 tokens per question by default, up to 262,144; up to 255 options and score levels. The prompt and token ids match the releases' code on every question of the test set, and in bf16 the probabilities are within 0.018 (9B) and 0.039 (2B) of that code run in bf16, with no changed answer (0.8B: 0.081, one changed answer where bf16 rounding moves both sides). mlx-decision answers the test set 3.2 times as fast with the 9B. On the five benchmarks GLiDE-9B scores 74.2% on ANLI round 3, level with elephant-1, and is ahead of d3-flash on all five.downloadand the Studio show the licence's terms before downloading;convertanddownload --bitsstore quantized copies with the licence files (9B: 8-bit changed 2 answers, near ties, of 278).training fittakesreadout(the default) andlora. GLiDE-0.4B, an encoder, is refused with a message that says so.
Changed
- A LoRA fit's report (
training.json) names the dev check it kept (training.kept, with every check intraining.checks) where it named an epoch (training.best_epoch); its early stop now takes two worse checks in a row, not one worse epoch. - The summary before a fit says LoRA takes minutes on a small model and hours on a large one.
- A LoRA fit's memory estimate counts a whole training batch (up to 16 text examples) and each family's prompt, and on M1 to M4 Macs the extra memory MLX's DeltaNet layers take there to train (about 1 MB a token on d3-edge, 2 MB on the 9B models). Once its examples are tokenized, the fit checks its memory again with the counted tokens and stops before the first step if the run does not fit. Checked on pplx flash, Base Labs, H2O-Lightning, Clef flash, d1-3B and d3-edge on an M2 Ultra: the estimate is above every text fit's peak, by up to about 30%.
Fixed
-
On M1 to M4 Macs, a LoRA fit on a family with DeltaNet layers (pplx, d3, GLiDE, Base Labs, H2O-Lightning, Clef) no longer fails with a Metal error ("Impacting Interactivity") on a long example, such as a large photo, which is about 5,000 tokens for joey-1. These GPUs train the layers token by token in one GPU command, which macOS stops when it runs too long while a display is on. Training there now runs them in spans of 1,024 tokens, with the same results.
-
A pplx or d3 folder whose
decision_config.jsonhas settings their code does not apply (another prompt format, a layer loop, another runtime's options) is refused with those settings named, instead of being answered with pplx's or d3's prompt. Such releases are on the Hub today (vLLM Semantic Router's d3-turbo; Fastino's GLiDE models, which now load as their own family). -
Every family reads a release's
tokenizer.jsonwithout the truncation or padding it may have been saved with. A Laya fine-tune that saves a 48-token truncation had every state and question cut to 48 tokens, without a warning. -
training fitwithfinetuneon Laya or Julia no longer stops with "the vector kernels do not produce a logsumexp" when a batch holds a single row (a long row, or the last of an epoch). -
scripts/quantization_report.pyruns again with d3's reference fixture (it stopped on a request the wire format refuses) and compares fitted models, so a LoRA fit's export can be measured against the fit.
1.3.0
Added
- 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 andtraining evalon 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
datacommand'simageshape: a Hugging FaceImagecolumn, or a column of image paths in a CSV or JSON-lines file, and its class label (--image,--label, optionally--textas the state), written into a dataset folder'simages/.--showlists each line's image. training fit --calibration auto|full|temperature|none(Python:calibration=; the Studio's New Fit: Options) picks the closing calibration.noneleaves the fitted kind's answers as they are, for a program whose thresholds were tuned on the base's probabilities. The report andtraining.jsonsay which calibration each question got.- A
lorakind of fit for d3 and d1 LFM3 models (training fit --method lora, Pythonmethod="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.--rankand--learning-ratechange its defaults (rank 8, 1e-4),--epochsdefaults 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.autostill 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.jsonlists other datasets ("mix": {"sources": [{"path": "../trec"}, ...], "cap": 2000}) is read bytraining fitandtraining evalas one dataset. Its train, report and evaluate splits are the sources' together, train rows capped per source and sampled with the mix's seed; aheld_outsource 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 asdataset.jsonformat 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.jsonandFitResult.sources;training evalon a mix adds a table per source (--jsonand Python: each model'ssources). 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,headorlorafit 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](Pythonmlx_decision.training.label): a teacher answers every row of a dataset (anytraining fitreads, 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,headorfinetunefit 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 fullgives 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:
cdintobatches/NAME, thenmlx-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.
1.2.0
Base Labs' joey-1 and images for the Base Labs family, H2O-Lightning-4B at its current release v1.4.2 read two-way, soft labels for training, and the Studio deleting downloads. Nothing stable changes.
Added
- Base Labs'
baselabs/joey-1(2B, MIT), the family's third model, through the same API,run,chat,server,mcp,benchmark,trainingand the Studio, and in thedownloadmenu after mammoth-1. A release without a stored LM head reads its answer rows from the tied embeddings, as the release does. In bf16 it is within 0.010 of the release's runtime on the whole test set and peaks at 5.0 GB (8-bit: 3.4 GB), about four times as fast as elephant-1; its 8-bit copy changed no answer, its 4-bit copy 5 of them. On the five benchmarks it has the best Offensive accuracy of all local models. - Images for the Base Labs models (elephant-1, mammoth-1 and joey-1), as for Clef: any number per request, each scaled to between 65,536 and 16,777,216 pixels,
--max-image-mplowering the maximum. The releases' serving runtime reads images with another attention than the models were trained with, so mlx-decision reads them as their training code does: on the image test requests elephant-1 is within 0.017 of that code and joey-1 within 0.021, both in bf16. - H2O-Lightning-4B read two-way, the default of its release v1.4.2: the full-attention layers look both ways over the whole prompt, images included.
--reading one-way(onrun,chat,server,web,mcpandbenchmark; Python:reading=;info()names it) keeps the reading of earlier releases, which shares the state between a request's questions and keeps it for later requests: for many questions about one long state. A fitted model answers in the reading it was fitted in. In bf16 v1.4.2 is within 0.031 of the release's own code in both readings, 4 near ties changed of 276 answers, and the release's three probe answers within its tolerance; on the five benchmarks it is the best local model on sentiment (SST-5: 61.4%). - Soft labels in training data: a
choiceorscorelabel may be a distribution over the options and anoullabel the probability of true. Every kind of fit and the calibration train on them; a one-hot distribution trains exactly as the hard label. Fit and evaluation reports gain the log loss. Thedatacommand's presettyped-decisionsbrings LocalLLaMA's typed-decisions dataset with its gold distributions as soft labels. scripts/accuracy_benchmark.py --suite typed-decisionsscores a model on the typed-decisions test split with the leaderboard's published scorer; docs/BENCHMARKS.md has the results.- The Studio deletes downloaded models: a Hugging Face cache repo with every revision of it (files another repo uses stay), and a folder or a link in the models folder (for a link only the link goes). Models named in the config file and the default model are not deleted, and the confirmation shows what deleting frees.
Changed
- H2O-Lightning-4B:
downloadand loading by repo id take release v1.4.2, the commit mlx-decision was checked against, so a later release reaches you only with an mlx-decision that has checked it; 1.1 fetched the Hub's latest. v1.4.2 has new weights and settings: no floor for yes/no answers, the image temperature and pixel bound of itsserve_config.json, and its own temperatures for two-way. Long input is read whole up to the 40,960-token context; over it each question keeps the parts of the state most relevant to it (ranked by BM25, ported from the release), so no request is refused for its length. A v1.2.3 folder still loads with that release's settings and 32,000-token cut, read one-way only. perplexity-ai/pplx-decider-v1.1-27b:downloadand loading by repo id take the commit mlx-decision was checked against; a later update to that repo reads larger images than mlx-decision does.- In the Studio, an 8-bit or 4-bit download holds the GPU while it runs, as a conversion does, since it converts each file as it arrives: it does not start beside another GPU job or a batch, and the models answer "busy" until it is done. Full-size downloads still run beside everything.
- In the Studio's "Another dataset…", each split shows its rows and size as soon as the splits are listed, and a split larger than 50 MB is previewed by its first 5,000 rows, streamed, instead of being downloaded whole for the preview. The download still reads every row.
Fixed
- H2O-Lightning text is tokenized as H2O.ai trained the model, for v1.2.3 too: Devanagari and vowelled Arabic were split differently.
- A
training fit --overwrite(orfitted.write(overwrite=True)) stopped while it replaced a folder no longer loses both fits: the next write or load of the folder finishes the replacement. - The Studio's Playground keeps a dataset's "Ready for a fit and a batch" banner after saving its questions: the page took its own save for a change made elsewhere, read the dataset again and dropped the banner a moment after showing it.
1.1.0
Two new model families: Base Labs' elephant-1 and mammoth-1, and LiquidAI's d1-2B with pictures, each checked against its release's own code. Nothing stable changes.
Added
- Base Labs' decision models (Baseten):
baselabs/elephant-1(9B) andbaselabs/mammoth-1(27B), text only, through the same API,run,chat,server,mcp,benchmark,trainingand the Studio, and in thedownloadmenu after d3. A request's state is read once, its attention looking both ways over it as the models were trained; the questions then run together off it, each seeing the state and itself but not the other questions, and the answer is read out under letter codes. Recent states are kept, as for Clef, so new questions on a recent state cost a fraction of a second. Up to 255 options and 2 to 10 score levels; the input limit is per question, 16,384 tokens by default (the length they were trained on), raised up to 262,144 with--max-input-tokens; longer input is refused, never cut. Images are refused.convertwrites 8-bit, 4-bit and mixed-precision copies anddownload --bitsstores 8-bit or 4-bit ones; only the LM head's rows for the answer codes are kept, in float32. The prompt matches the release's runtime token for token on the whole test set; elephant-1 in bf16 is within 0.039 of that runtime in bf16, no answer changed, and 3.6 times as fast. On the five benchmarks elephant-1 is the best local model on entailment, ahead of Jev (ANLI round 3: 74.5%), and level with pplx's 27B on science questions (OpenBookQA: 96.8%). mammoth-1 was only checked as an 8-bit copy. - LiquidAI's d1-2B (
LiquidAI/d1-2B, 1.9B, on LFM3-VL-2B) as the family "d1 LFM3": noul, choice and score questions about text and pictures, through the same API,run,chat,server,mcp,benchmark,trainingand the Studio, and in thedownloadmenu before d1. A request's questions are read in sets of 16, as the model was trained: each set is one pass with the pictures and the state, the state seeing the set's questions and each question the state and itself, so answers depend on which questions share a set and their order, and nothing is kept between requests (--prefix-cacheis refused). The input limit is per set, 32,768 tokens by default and up to 128,000 with--max-input-tokens; a longer state is cut, keeping its start and end. Pictures over 1.6 MP are shrunk, as the release does. bf16 only (3.8 GB); noconvertor quantized download. The prompt and answer reading were written in a clean room from the release's behaviour; prompts, packed sets and scored tokens match the release's code for every request of the test set, and in bf16 the answers are within 0.035 of it, no answer changed, at 1.4 to 1.9 times its speed. On the five benchmarks it is level with d1-3B. Its weights are under the LFM Open License v1.0, as d1-3B's:downloadshows it and asks first. - The readout fit (
training fit --method readout,auto's choice) trains Base Labs' answer-code rows and d1-2B's code rows, as for pplx, d3, H2O-Lightning and d1.
Changed
- Requires MLX 0.32.4 or newer, the version this release was tested with.
Fixed
convertanddownload --bitshold one tensor of a weight file at a time instead of the whole file, so a release stored as one large file converts on a Mac with less memory than the file: elephant-1's 8-bit copy (one 18.8 GB file) now peaks at 10 GB instead of 23 GB.