milkey/ jad:7b-a1b-F16

15 1 week ago

The first diffusion decision model based on LLaDA-MoE that supports Ollama: one forward pass, direct decisions — Apache-2.0, commercially usable.

ollama run milkey/jad:7b-a1b-F16

Details

1 week ago

a1213eb4d65d · 15GB

llada-moe
·
7.36B
·
F16
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR US
{ "num_batch": 8192, "num_ctx": 8192, "temperature": 1.2576 }

Readme

JAD-S1-7B-A1B v0.5

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 NOTICE for attribution.

What v0.5 changes

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.

Cross-suite, cross-scenario, cross-language

  • Cross-suite. JevBench, Kev and VitaminC are all at or above the v0.2 baseline. Kev is 75.94% per decision; the equal-weight mean over its three suites is 76.55%.
  • Cross-scenario. The adapter covers rule application with exceptions, temporal and deadline windows, multi-hop comparison, scoring and rating, topic and label classification, and evidence/claim verification. The gains are not tied to one template.
  • Cross-language. The same adapter is evaluated on the English, Chinese and Japanese JeVBench translations; cross-language transfer is solid.
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.

Model details

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)

GGUF

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.

llama-server

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.

Ollama

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.

Files and evaluation

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.

Usage

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.

Evaluation

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.

Public reference points on the same 231 tasks

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.

External benchmarks

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.

  • Kev. The frozen 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. The vitaminc-dev split: 599 evidence/claim examples, three-way choice, human labels. The score is 84.47% (506⁄599).
  • Nimble. A 324-item decision suite with 2–6 options. This adapter scores 76.85% (249⁄324). The reference rows use the NeoHorse-Jev-4B model card; Dohnuts was scored here with its released checkpoint.
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.

Files and licence

This repository ships the adapter merged into the base weights and quantized; the adapter itself lives in DreamBlooms/JAD-S1-7B-A1B-v0.5.

  • Adapter weights and config: Apache-2.0 — see LICENSE.
  • Bundled tokenizer/config files: Apache-2.0 (base-derived) — see 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.

Scope and recommended practice

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:

  • Task fit. Accuracy varies by task: 83.6% on JevBench overall, 67.6% on the hard tier, 75.94% on Kev, 84.47% on VitaminC. Measure it on a sample of your own data.
  • Abstention. On evidence/claim tasks the adapter can select a 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.
  • Options. 2–26 per task, labelled A–Z; six or fewer is recommended. Accuracy can fall as the option count grows.
  • Context. 4,096 tokens recommended, up to 8,192 supported. Inputs beyond the limit are rejected rather than silently truncated.
  • Language. English and Chinese are evaluated; evaluate other languages first.
  • Confidence. Probabilities are calibrated on decision-style English data. If the target distribution differs, refit the temperature on an independent held-out split (--temperature).
  • Output. A probability distribution over the offered letters; no explanation is generated.

Acknowledgements

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.

Built at home

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.