Text Classification
MLX
Safetensors
English
Japanese
gemma4
d1a
decision-model
structured-output
classification
apple-silicon
quantized
pull-requests
8-bit precision
Instructions to use mlx-community/d1a-e4b-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/d1a-e4b-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/d1a-e4b-8bit --local-dir d1a-e4b-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Card: say what D1A is first, with an example; link the source repositories
Browse files9 unmodified lines101112131415165 unmodified lines2223242526272829108 unmodified lines1381391401411421431449 unmodified lines# D1A-E4B v0.6 Β· MLX 8-bitA mirror of [JohnP1/d1a-e4b-mlx-q8](https://huggingface.co/JohnP1/d1a-e4b-mlx-q8) `v0.6`, the same files. Every version, and the PyTorch checkpoint, lives at [JohnP1/d1a-e4b](https://huggingface.co/JohnP1/d1a-e4b); the Core ML build for the Apple Neural Engine is [JohnP1/d1a-e4b-coreml](https://huggingface.co/JohnP1/d1a-e4b-coreml).**Not a chat model.** `mlx_lm.generate` and LM Studio will load the Gemma 4 backbone and write ordinary text, but D1A's answers come from its decision head, which only the `d1a` package uses (see Run it).5 unmodified linesOnly the first weight shard and the pointer head differ from v0.5: the per-layer embeddings (the second shard) and the encoders are byte-identical. The scores below were measured on this build.D1A is a small open decision model. One document and a set of typed questions go in (yes/no, choice, score), and a calibrated probability for every option comes out, in one forward pass, with no generated text. It speaks the TypeSafe System One API (`POST /v1/systemone`), so the TypeSafe SDK and existing clients work against it.**v0.6 labels pull requests the way they are labelled today.** On 487 pull requests created after all of its training, severity goes from **74.7% to 79.1%** (+4.3 points) and change type from **86.7% to 90.6%** (+3.9) against v0.5, and P1 recall returns to v0.4's 0.35 (v0.5: 0.22). It also gains on long documents (+2.0), agent-factory routing (+3.4) and held-out transfer (+1.4), with lower calibration error on most suites. It costs hard decisions (β2.7) and change type on the older frozen PR test set (β4.1), so it ships as a **release exception** (below). v0.5 stays available. See Results.**Release exception.** v0.6 does not pass D1A's release rule against v0.5. `scripts/decide.py` vetoes it (V1) on hard decisions: hard-v1 β2.7 points [β4.9, β0.5], 61 fixes against 90 breaks, past the β2.0 limit for a card suite. It also loses change type on the older frozen PR test set, β4.1 [β6.0, β2.3] (19 fixes, 58 breaks), and pooled over all 21 lines it is level with v0.5, β0.20 [β0.98, +0.52]. It ships anyway, by the owner's decision of 2026-10-10: the model's live job, the one model on the owner's Mac mini, is labelling current pull requests, and on PRs newer than all of its training it is clearly better. The likeliest reading of the disagreement is that the project's labelling conventions have changed over time and v0.6 follows the current ones. **Stay on v0.5** (`JohnP1/d1a-e4b-mlx-q8@v0.5`) if you rely on hard-v1-style reasoning or on the older PR-label conventions.108 unmodified lines## VersionsThis mirror carries `v0.6` and later releases; every tag below lives at [JohnP1/d1a-e4b-mlx-q8](https://huggingface.co/JohnP1/d1a-e4b-mlx-q8).| Tag | What it adds ||---|---|9 unmodified lines10111213141516171819202122232425262728293031325 unmodified lines383940414243108 unmodified lines1521531541551561571589 unmodified lines# D1A-E4B v0.6 Β· MLX 8-bit**A small decision model for Apple Silicon: give it a document and a few questions, and it picks the answers.** Each questionis yes/no, multiple choice or a score; D1A returns a calibrated probability for every option in one forward pass, with nogenerated text, so every answer is a valid option. About 0.6 s per request on an M4 Mac mini, 6 GB on disk.Use it to label pull requests (change type, severity, blast radius), route a request to the right team or agent, triagemessages, or ask questions about a photo, a voice clip or a video. Built on Google's Gemma 4 E4B with a LoRA adapter and asmall pointer head. Questions in English; documents in English or Japanese.```pythonfrom d1a import D1A # pip install "d1a[serve,media] @ git+https://github.com/jonpol01/d1a@v0.5.0"m = D1A.load("mlx-community/d1a-e4b-8bit@v0.6")m.decide("The customer was charged twice for the same order and wants a refund today.",{"team": {"type": "choice", "instructions": "Which team handles this?","criteria": {"billing": None, "shipping": None, "support": None}},"angry": {"type": "noul", "instructions": "Is the customer angry?"}})# -> {"team": {"choice": ..., "probabilities": {"billing": ..., "shipping": ..., "support": ...}}, "angry": {"noul": ...}}```**Not a chat model.** `mlx_lm.generate` and LM Studio will load the Gemma 4 backbone and write ordinary text, but D1A's answers come from its decision head, which only the `d1a` package uses (see Run it).5 unmodified linesOnly the first weight shard and the pointer head differ from v0.5: the per-layer embeddings (the second shard) and the encoders are byte-identical. The scores below were measured on this build.**v0.6 labels pull requests the way they are labelled today.** On 487 pull requests created after all of its training, severity goes from **74.7% to 79.1%** (+4.3 points) and change type from **86.7% to 90.6%** (+3.9) against v0.5, and P1 recall returns to v0.4's 0.35 (v0.5: 0.22). It also gains on long documents (+2.0), agent-factory routing (+3.4) and held-out transfer (+1.4), with lower calibration error on most suites. It costs hard decisions (β2.7) and change type on the older frozen PR test set (β4.1), so it ships as a **release exception** (below). v0.5 stays available. See Results.**Release exception.** v0.6 does not pass D1A's release rule against v0.5. `scripts/decide.py` vetoes it (V1) on hard decisions: hard-v1 β2.7 points [β4.9, β0.5], 61 fixes against 90 breaks, past the β2.0 limit for a card suite. It also loses change type on the older frozen PR test set, β4.1 [β6.0, β2.3] (19 fixes, 58 breaks), and pooled over all 21 lines it is level with v0.5, β0.20 [β0.98, +0.52]. It ships anyway, by the owner's decision of 2026-10-10: the model's live job, the one model on the owner's Mac mini, is labelling current pull requests, and on PRs newer than all of its training it is clearly better. The likeliest reading of the disagreement is that the project's labelling conventions have changed over time and v0.6 follows the current ones. **Stay on v0.5** (`JohnP1/d1a-e4b-mlx-q8@v0.5`) if you rely on hard-v1-style reasoning or on the older PR-label conventions.108 unmodified lines## VersionsEarlier versions (every tag below), the PyTorch checkpoint and the Core ML build for the Apple Neural Engine: [JohnP1/d1a-e4b-mlx-q8](https://huggingface.co/JohnP1/d1a-e4b-mlx-q8), [JohnP1/d1a-e4b](https://huggingface.co/JohnP1/d1a-e4b), [JohnP1/d1a-e4b-coreml](https://huggingface.co/JohnP1/d1a-e4b-coreml).| Tag | What it adds ||---|---|
README.md+18-4