What it does: decisions (/v1/systemone), chat (OpenAI-format /v1/chat/completions, streaming and tool calls), and
photos, voice clips and video (python -m d1a.serving.media). For NVIDIA, CPU, or a Mac without MLX. On Apple Silicon use
the MLX build, JohnP1/d1a-e4b-it-qat-mlx-q4: the same adapter, faster.
Scorecard (2026-10-28, measured on the MLX build of this adapter): level with D1A-E4B-it v0.6 overall, pooled −0.16 points [−0.88, +0.51]; against v0.6's adapter moved onto this same QAT trunk, +1.19 [+0.50, +1.87] with no significant loss. Stronger than v0.6 on PR labels (+1.6), PR severity with offsets (+6.0), blast radius (+7.2) and routing (+1.7, +1.5); weaker on the external typesafe suite (−7.8, from the 4-bit trunk; jonpol01/d1a#361). Every suite: the MLX card and the full scorecard. Released 2026-10-27 by the owner's decision, before its gates finished.
A small decision model: give it a document and a few questions, and it picks the answers. Each question is yes/no, multiple choice or a score; D1A returns a calibrated probability for every option in one forward pass.
6cd26aaa): D1A-E4B-it
v0.6's adapter, retrained for one epoch of its all-skills mix on that exact trunk (jonpol01/d1a#341). v0.6 itself was
trained while a PyTorch bug read Gemma 4's per-layer embeddings as zeros for every punctuation and digit token
(jonpol01/d1a#353); this retrain reads them correctly.base_ct in d1a_config.json names that checkpoint. d1a rebuilds the trunk from it when it loads this adapter, every
int4 weight written as scale × integer, so the adapter runs on the weights it was trained on. Exact in fp32 (D1A_DTYPE=fp32),
rounded in bf16.use_case_temperatures.routing, added 2026-11-08, d1a#382): requests sent with
"use_case": "routing" are read at 1.41; every other request keeps 1.66, and no answer's top choice changes. It was fitted
as v0.6.1's routing temperature was, on held-out routing rows (generic-development + handlabelled-45, 315 rows). That fit
set is uninformative (accuracy 0.99), so 1.41 is the method's point estimate, confirmed directionally out of sample on
factory-development (expected calibration error 0.049 at 1.66 → 0.035 at 1.41, change −0.014 with 95% interval
−0.022 to −0.006; same corpus as training). It is not claimed optimal; 1.0 scored 0.016 there and is a sensitivity line.Warm start from JohnP1/d1a-e4b-it v0.6; one epoch of its all-skills mix (23,427
records, 11 sources); the trunk frozen at the QAT checkpoint's values (scale × integer in fp32, embedding tables in bf16 as
stored); learning rate 2e-5, batch 8; 2,929 steps, 36.2 hours on an Apple M1 Max (MPS). training_config.json and
training_metrics.json hold the run's settings and numbers.
Needs d1a with jonpol01/d1a#346 and #348, and on a Mac's GPU (MPS) #354:
pip install "d1a[serve,media] @ git+https://github.com/jonpol01/d1a"
D1A_MERGE=0 python -m d1a.serving.serve --run JohnP1/d1a-e4b-it-qat --port 8009
Decisions and chat come from that one server: D1A_MERGE=0 keeps the adapter separate, so chat switches it off and talks as
Gemma 4 E4B-it QAT itself. Photos, voice and video come from the media server, which loads the full model with its encoders
(the QAT checkpoint's own):
python -m d1a.serving.media --run JohnP1/d1a-e4b-it-qat --port 8010
d1a.serving.serve (D1A_MERGE=0) and through the media server give the
same choices on 5 requests (max |Δp| 0.012); chat answers; on 2 photos and 2 voice clips 7 of 8 answers match (max |Δp| 0.11).
The one that differs is a near-tie: an intact parcel in a mailbox, which this path reads as "in a mailbox" (0.55) and the MLX
build as "in a delivery locker" (0.51).<bos>: trained with id 2 at the start of every record; d1a adds it.Apache-2.0. Base model: Gemma 4 by Google (Apache-2.0). Code: github.com/jonpol01/d1a, built on Kev by Jared Palmer (Apache-2.0). Japanese decision data derived from JGLUE by Yahoo Japan Corporation and Waseda University (CC BY-SA 4.0). Pull-request data from NousResearch/hermes-agent (MIT); the labelled PR dataset itself, including the recent PRs, is private.
adapter_model.safetensors 133 MiBhead.safetensors 5 MiB