Repository navigation
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.