15 Downloads Updated 1 week ago
ollama run milkey/jad:7b-a1b-F16
English | 中文
A decision adapter on LLaDA-MoE: one forward pass, direct decisions — Apache-2.0, commercially usable.
This is a LoRA adapter for
inclusionAI/LLaDA-MoE-7B-A1B-Instruct
that turns the base model into a multiple-choice decision model. Given a
situation (state), a question, and a list of options, it places a mask marker
in the assistant slot and returns, in a single forward pass, a normalised
distribution over the letters the task actually offers. The answer is the
highest-probability letter. No text is generated and no output is parsed.
JAD stands for Just A Decision diffusion with masking; S1 for “System One”. This repository ships the adapter merged into the base and quantized (see GGUF).
[!IMPORTANT] Licence: Apache-2.0 — adapter, code and docs alike. Commercial use, modification and redistribution are permitted.
The adapter was trained on openly licensed public data and on synthetic data created for this project. No non-commercial or research-only data was used. See
NOTICEfor attribution.
v0.5 1x builds on v0.2 and gives a broader, more balanced improvement in overall decision capability. JevBench is stable, Kev moves up, and VitaminC improves clearly. The gain is not confined to one suite or one task shape.
| v0.2 | v0.5 1x (this adapter) | |
|---|---|---|
| JevBench v1.2.2 (231) | 192⁄231 (83.1%) | 193⁄231 (83.6%) |
| Kev (2,581) | 74.00% | 75.94% |
| VitaminC-dev (599) | 69.95% | 84.47% |
| Temperature | 1.2315 | 1.2576 |
| ECE after calibration | 0.0175 | 0.0130 |
Across these benchmarks the change is: JevBench +1, Kev about +2 points, and VitaminC clearly higher. The adapter also transfers more evenly across suites, task shapes and languages.
| Language | JevBench (231) |
|---|---|
| English | 193⁄231 (83.6%) |
| Chinese | 184⁄231 (79.7%) |
| Japanese | 183⁄231 (79.2%) |
Chinese and Japanese are translated from the original evaluation set. Japanese data was not used in training; that row mainly reflects the base model’s cross-language transfer.
Version history: v0.5 1x (2026-11-13) is the current release; v0.2 (2026-11-02) is the previous baseline.
| Item | Value |
|---|---|
| Base model | inclusionAI/LLaDA-MoE-7B-A1B-Instruct |
| Base licence | Apache-2.0 |
| Adapter version | v0.5 1x (2026-11-13) |
| Adapter | LoRA, r=8, alpha=16, targets q/k/v/o/gate/up/down (311 MB) |
| Readout | one-step restricted-label (single mask slot) |
| Options per task | 2–26 (labels A–Z); 6 recommended |
| Context length | 4,096 tokens recommended; up to 8,192 supported |
| Language | English and Chinese (evaluated) |
| Licence | Apache-2.0 (adapter, code and docs) |
CPU inference is available through
dohnuts.cpp, a native C++ port on
llama.cpp. It runs the model on CPU,
drops a single mask token into the assistant turn and reads the option-letter
logits off that slot in one non-causal forward, and serves the same
POST /v1/systemone wire format as the reference release. No GPU or Python
runtime is needed.
| File | Quantization | Size |
|---|---|---|
JAD-S1-7B-A1B-v0.5-Q8_0.gguf |
Q8_0 | 7.8 GB |
JAD-S1-7B-A1B-v0.5-F16.gguf |
F16 | 14.7 GB |
jad.json |
profile config and temperature | 135 B |
The GGUFs also carry the official llama.cpp decision metadata
(llada-moe.decision.type = pplx-decider) and a systemone chat template, so
upstream llama-server can load them directly as a fallback (see
llama-server and Ollama). dohnuts.cpp is the
recommended runtime: it reads the mask slot with the training-time
<|role_end|> and scores about 10 JevBench items higher.
jad.json is required alongside the GGUF when running dohnuts.cpp. The
conversion merges the LoRA into LLaDA-MoE-7B-A1B-Instruct with llama.cpp’s own
LoRA tooling (convert_lora_to_gguf.py + llama-export-lora) and then
quantizes, so there is no adapter to load at run time and no pointer head.
Measured with dohnuts.cpp on the public JevBench v1.2.2 split (231 items):
| File | easy | original | hard | all |
|---|---|---|---|---|
JAD-S1-7B-A1B-v0.5-F16.gguf |
48⁄48 | 68⁄72 | 78⁄111 | 194⁄231 (84.0%) |
JAD-S1-7B-A1B-v0.5-Q8_0.gguf |
48⁄48 | 68⁄72 | 75⁄111 | 191⁄231 (82.7%) |
The upstream adapter reports 193⁄231 on the same tasks; the GGUF readout differs by a couple of close calls from quantization and kernel drift. Q8_0 is the default; F16 is for when probability fidelity matters more than size.
git clone https://github.com/DreamBlooms/dohnuts.cpp
cd dohnuts.cpp
git submodule update --init --depth 1
cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=ON
cmake --build build -j --target dohnuts-cli
build/dohnuts-cli --server --port 8080 \
--model JAD-S1-7B-A1B-v0.5-Q8_0.gguf --metadata jad.json
Ask one state several questions (the same request shape as the reference server; the model answers each question in one non-causal read):
curl http://127.0.0.1:8080/v1/systemone -H 'Content-Type: application/json' \
-d '{"state":{"message":"I was charged twice. Please refund the duplicate."},
"questions":{"route":{"type":"choice","instructions":"Which team should handle this?",
"criteria":{"billing":"billing and refunds","technical support":"technical help","sales":"new sales"}},
"refund":{"type":"noul","instructions":"Is a refund requested?"}}}'
# -> {"answers":{"route":{"choice":"billing","probabilities":{...}},"refund":{"noul":0.77}}}
The answer keeps the core fields (type, choice, probabilities, noul,
score, confidence) and adds this profile’s certainty under native.
The same files load in an unmodified upstream llama-server (llama.cpp
v0.9.0). The GGUF declares pplx-decider: llama.cpp reads the option-letter
logits at the last prompt token and applies the temperature from the metadata.
llama-server -m JAD-S1-7B-A1B-v0.5-Q8_0.gguf --host 127.0.0.1 --port 8099 \
-c 4096 -b 4096 -ub 4096
curl http://127.0.0.1:8099/v1/systemone -H 'Content-Type: application/json' \
-d '{"state":"I was charged twice. Please refund the duplicate.",
"questions":{"route":{"type":"choice","instructions":"Which team should handle this?",
"criteria":{"billing":"billing and refunds","technical support":"technical help","sales":"new sales"}},
"refund":{"type":"noul","instructions":"Is a refund requested?"}}}'
This fallback is a little weaker than dohnuts.cpp: llama.cpp can only read the
last prompt token, so the template ends at <|mask|> and drops the
training-time <|role_end|> after it. On JevBench v1.2.2 (231 items) it scores
181⁄231 (78.4%) instead of 191⁄231 (82.7%), with the loss concentrated in noul
and close-call choice. Use dohnuts.cpp for production.
The same files are published on Ollama as milkey/jad:7b-a1b-Q8_0 and
milkey/jad:7b-a1b-F16. Ollama’s runner is built on llama.cpp and reads the
same pplx-decider metadata, so expect roughly the same capability as the
llama-server fallback above (181⁄231 on JevBench v1.2.2), still below
dohnuts.cpp. These are decision models: query them through /v1/systemone
rather than ollama run.
ollama pull milkey/jad:7b-a1b-Q8_0
curl http://127.0.0.1:11434/v1/systemone -H 'Content-Type: application/json' \
-d '{"model":"milkey/jad:7b-a1b-Q8_0",
"state":"I was charged twice. Please refund the duplicate.",
"questions":{"route":{"type":"choice","instructions":"Which team should handle this?",
"criteria":{"billing":"billing and refunds","technical support":"technical help","sales":"new sales"}},
"refund":{"type":"noul","instructions":"Is a refund requested?"}}}'
Ollama divides the loaded context across parallel slots; for long states set
OLLAMA_NUM_PARALLEL=1 and a num_ctx of at least 8192. dohnuts.cpp remains
the recommended runtime.
Rebuild the files from the upstream base and adapter with
scripts/build_jad_gguf.sh, which converts the base, converts the adapter, and
merges it with llama-export-lora before writing F16 and quantizing Q8_0. No
retraining is involved. The adapter and the merged weights are Apache-2.0.
Download the base model first.
# pip install torch transformers peft
python inference.py --model inclusionAI/LLaDA-MoE-7B-A1B-Instruct \
--adapter . --input example_tasks.jsonl --out preds.jsonl
inference.py is a self-contained reference implementation; PROMPT.md
documents the input format. Each task is a JSON object with state,
question and options, and every option carries a single-letter label
(A–Z). The adapter also loads through PEFT in the usual way:
from peft import PeftModel
from transformers import AutoModel
base = AutoModel.from_pretrained(
"inclusionAI/LLaDA-MoE-7B-A1B-Instruct",
trust_remote_code=True, attn_implementation="sdpa",
)
model = PeftModel.from_pretrained(base, "DreamBlooms/JAD-S1-7B-A1B-v0.5")
inference.py also rebuilds the base model’s rotary embedding on the target
device, a compatibility step for recent transformers versions. Without it, a
few close-call decisions can change; use inference.py when reproducing the
scores above.
Probabilities are calibrated with a single temperature fitted on held-out data
(T = 1.2576, the default in inference.py). Calibration lowers the expected
calibration error from 0.039 to 0.013. Temperature changes the reported
confidence, not the answer letter.
For inputs above the recommended 4,096 tokens, add --max-seq-len 8192.
JevBench v1.2.2, 231 multiple-choice decision tasks. All rows use the same harness, the same one-step restricted-label readout, and a 4,096-token context.
| Model | easy | original | hard | all |
|---|---|---|---|---|
| v0.2 | 48⁄48 | 68⁄72 | 76⁄111 | 192⁄231 (83.1%) |
| v0.5 1x | 48⁄48 | 70⁄72 | 75⁄111 | 193⁄231 (83.6%) |
The 95% confidence interval for 193⁄231 is 78.2%–87.8% . The easy tier is saturated; the original tier improves from 68⁄72 to 70⁄72; the hard tier is essentially unchanged.
| Model | all (231) |
|---|---|
| GPT-5.6 Luna (none) | 206⁄231 (89.2%) |
| Jev 1.13.0 | 200⁄231 (86.6%) |
| Open-Jev 27B v1.1 | 197⁄231 (85.3%) |
| v0.5 1x | 193⁄231 (83.6%) |
| v0.2 | 192⁄231 (83.1%) |
| CLEF Flash | 191⁄231 (82.7%) |
| Open-Jev-9B | 179⁄231 (77.5%) |
| Dohnuts-0.1.0-0.8B | 152⁄231 (65.8%) |
| Laya Vision | 111⁄231 (48.1%) |
| Laya multilingual | 110⁄231 (47.6%) |
Scores are as published by each project or measured by the Open-Jev benchmark index. They are shown for reference only; protocols differ from the one-step readout used here.
The JevBench, Kev, Nimble and VitaminC figures for this adapter use its one-step readout. Reference scores from other projects come from their own serving stacks, so the table compares the same tasks across different harnesses.
decision-v7, transfer-v4 and transfer-v9 test
splits. We keep the clean variants with at most six options (2,581 of 3,468
test decisions) and exclude banking77 / boolq, whose sources also appear
in training. The score is 75.94% per decision (1960⁄2581). Suite
scores: decision-v7 77.29% (742⁄960), transfer-v4 78.51%
(515⁄656), transfer-v9 72.85% (703⁄965); the equal-weight mean is
76.55%. Questions with more than six options are not included.vitaminc-dev split: 599 evidence/claim examples, three-way
choice, human labels. The score is 84.47% (506⁄599).| Model | JevBench | Kev | Nimble | VitaminC-dev |
|---|---|---|---|---|
| NeoHorse-Jev-4B | 75.73 | 81.92 | 87.23 | 77.13 |
| Kev-4B | 73.71 | 81.47 | 73.40 | 76.46 |
| Open-Jev-9B | 77.13 | 77.87 | 80.50 | 68.28 |
| v0.5 1x | 83.55 | 75.94 | 76.85 | 84.47 |
| v0.2 | 83.12 | 74.00 | — | 69.95 |
| Dohnuts-0.1.0-0.8B | 65.8 | 67.07 | 54.63 | 66.28 |
| Laya English | 55.82 | 61.30 | 45.04 | 78.63 |
| Laya Typed Decisions | — | — | 48.94 | 78.30 |
JevBench and Nimble reference scores for NeoHorse, Open-Jev, Kev-4B and Laya come from the NeoHorse-Jev-4B model card. Dohnuts’ scores were produced here with its released checkpoint; its VitaminC figure covers 596 of 599 items.
This repository ships the adapter merged into the base weights and
quantized; the adapter itself lives in
DreamBlooms/JAD-S1-7B-A1B-v0.5.
LICENSE.NOTICE.inference.py, PROMPT.md, this model card: Apache-2.0.The repository is uniformly licensed under Apache-2.0, so commercial use does not require tracking a separate code licence.
Full attribution is in NOTICE.
This adapter is built for multiple-choice decision tasks: given a state, a question and 2–26 labelled options (6 recommended), it returns one letter. It is not a general chat model.
Test and calibrate it on the target task before production use:
not enough info option, but it is not a dedicated abstention model. If your
application depends on abstention, validate it on evidence-silent examples
first.A–Z; six or fewer is recommended.
Accuracy can fall as the option count grows.--temperature).The ideas, decision-task format and public data in this work build on:
The base model is provided by InclusionAI.
Full data attribution is in NOTICE.
We developed, trained, calibrated and evaluated JAD-S1 on a single home machine: one AMD Ryzen AI Max+ 395, everything under ROCm. Its 128 GB of unified memory is what made the full pipeline possible at home.

AMD and Ryzen are trademarks of Advanced Micro Devices, Inc. This project is independent and is not affiliated with, endorsed by, or sponsored by AMD.