Run this model with HF Jobs
Run Leucodiorite/Diorite-G4-12B-v1.0 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Leucodiorite/Diorite-G4-12B-v1.0. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Leucodiorite/Diorite-G4-12B-v1.0 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Leucodiorite/Diorite-G4-12B-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Leucodiorite/Diorite-G4-12B-v1.0 with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle

Diorite-G4-12B-v1.0
Model overview Β· Benchmark results Β· Getting started Β· diorite-serve Β· Decision Index leaderboard
License CC BY-NC 4.0 (adapter weights), Apache-2.0 (diorite-serve) Β· Publisher Leucodiorite
Diorite is a family of open-weight judgment models, also known as decision models, from Leucodiorite. A model reads a piece of content and a set of questions and, in one forward pass, gives a probability for every option of each question. The application then turns those probabilities into decisions. Diorite v1.0 is built on the Gemma 4 IT family and comes in four sizes: E2B, E4B, 12B and 31B. Each is released as a LoRA adapter for use with the bundled diorite-serve server.
Diorite v1.0 is a research preview, intended for research and for evaluation on the Decision Index leaderboard. This model replaces Diorite-G4-12B-v0.1.
Model overview
The Diorite-G4-v1.0 family is built on the Gemma 4 IT family and has four models. All four were trained on the same curated training data with the same training settings. Each is a LoRA adapter on its base model, and the base weights are unchanged. LoRA (rank 64, alpha 64) is applied to the language model's attention (q, v, o) and MLP projections. The vision and audio modules, where present, are untouched. This card describes Diorite-G4-12B-v1.0.
| Property | E2B | E4B | 12B | 31B |
|---|---|---|---|---|
| Role | Low latency; smallest and fastest in the family | Low latency; more accurate than E2B | Mid-range; balances quality and speed | Flagship; strongest in the family |
| Base model | gemma-4-E2B-it | gemma-4-E4B-it | gemma-4-12B-it | gemma-4-31B-it |
| Base revision | 3e22461f |
ee0ef602 |
707f0a3b |
842da379 |
| Adapter parameters | 94.9M | 134.7M | 245.0M | 454.7M |
| Adapter file size | 0.38 GB | 0.54 GB | 0.98 GB | 1.82 GB |
| Minimum GPU memory | 24 GB | 24 GB | 32 GB | 96 GB |
| Median latency (RTX PRO 6000) | 36 ms | 46 ms | 65 ms | 150 ms |
| Decision Index 0.3 | 43.17 | 51.27 | 57.37 | 65.47 |
Latency is the median over the Decision Index kit's 750 sample requests, sent one at a time to a single RTX PRO 6000. E4B on a 24 GB GPU and 12B on a 32 GB GPU need a shorter context length; see "Settings by GPU memory" under Getting started.
Benchmark results
The table shows results for the whole family on the Decision Index 0.3 public suite. Each question is read once, in one forward pass, with the options in their given order. The base columns show the base model evaluated on its own, without the adapter, with the same prompts and the same token count per request as Diorite. Diorite is in bold.
| Metric | E2B base | E2B | E4B base | E4B | 12B base | 12B | 31B base | 31B |
|---|---|---|---|---|---|---|---|---|
| Index β | 25.91 | 43.17 | 38.01 | 51.27 | 48.45 | 57.37 | 57.39 | 65.47 |
| Raw index β | 44.21 | 57.53 | 54.04 | 63.53 | 61.30 | 67.83 | 67.65 | 73.72 |
| Breadth β | 24.50 | 40.62 | 36.19 | 49.33 | 46.49 | 56.00 | 56.53 | 64.81 |
| Accuracy β | 53.9% | 64.0% | 61.9% | 69.5% | 66.1% | 72.4% | 71.8% | 77.5% |
| Mean confidence | 90.1% | 71.6% | 86.5% | 75.2% | 94.3% | 76.1% | 98.3% | 79.7% |
| ECE β | 0.362 | 0.077 | 0.246 | 0.062 | 0.282 | 0.045 | 0.265 | 0.022 |
| Brier β | 0.793 | 0.460 | 0.603 | 0.404 | 0.604 | 0.363 | 0.544 | 0.303 |
| Confident-error rate β | 24.78% | 0.96% | 12.79% | 0.82% | 20.04% | 0.59% | 23.96% | 0.57% |
Scores are from our own evaluation, computed with the Decision Index kit's scorer. Leaderboard scores are computed separately by the leaderboard maintainers and may differ slightly. Index and Breadth are skill scores (out of 100), that is, scores after subtracting the random-guess baseline. Raw index is the score without subtracting that baseline. The calibration metrics (accuracy, mean confidence, ECE, Brier, confident-error rate) are recomputed by us over the 32 benchmarks that have a definite correct answer, following the leaderboard's published definitions, with each benchmark weighted equally. Confidence is the probability of the chosen option, ECE uses 10 equal-width bins, Brier is the sum of squared errors over all options (range 0 to 2), and the confident-error rate is the share of all answers that are given with confidence above 0.95 and are wrong. The leaderboard computes its calibration metrics on a subset of requests, while ours use all requests, so the numbers do not exactly match the leaderboard's. Per-request results and how they were produced are in Leucodiorite/Diorite-G4-12B-v1.0-decision-index.
All four models are much less overconfident than their base models. For 12B, the base model's mean confidence is 94.3% against an accuracy of 66.1%, while Diorite-G4-12B-v1.0 has 76.1% and 72.4%, respectively, and ECE falls from 0.282 to 0.045. For each model, overall and per-area ECE are lower than its base model's, although a few individual benchmarks are exceptions.
Quality and latency
The x-axis is the median latency per request on a single RTX PRO 6000, with requests sent one at a time. Diorite is marked with the logo and the base models with hollow gray circles. Base latencies were measured on the same server by sending the same requests with "model": "base". Without the adapter, the LoRA computation is skipped, so the base model responds faster.
By area
| Area (Index β) | E2B base | E2B | E4B base | E4B | 12B base | 12B | 31B base | 31B |
|---|---|---|---|---|---|---|---|---|
| Knowledge & Reasoning | 12.04 | 20.06 | 20.66 | 28.51 | 28.48 | 38.01 | 45.40 | 51.97 |
| Language Understanding | 26.66 | 49.05 | 39.87 | 58.98 | 51.90 | 61.40 | 59.50 | 67.67 |
| Retrieval & Classification | 30.98 | 50.77 | 44.18 | 56.15 | 57.56 | 64.23 | 62.43 | 69.57 |
| Tools & Automation | 41.01 | 63.58 | 58.52 | 68.77 | 69.19 | 75.50 | 74.12 | 80.82 |
| Arts & Human Taste | 22.11 | 35.20 | 28.21 | 48.39 | 35.03 | 50.14 | 42.24 | 58.41 |
| Area (ECE β) | E2B base | E2B | E4B base | E4B | 12B base | 12B | 31B base | 31B |
|---|---|---|---|---|---|---|---|---|
| Knowledge & Reasoning | 0.402 | 0.118 | 0.289 | 0.116 | 0.319 | 0.077 | 0.291 | 0.043 |
| Language Understanding | 0.309 | 0.042 | 0.225 | 0.012 | 0.187 | 0.012 | 0.180 | 0.015 |
| Retrieval & Classification | 0.404 | 0.121 | 0.248 | 0.130 | 0.384 | 0.119 | 0.384 | 0.127 |
| Tools & Automation | 0.317 | 0.056 | 0.131 | 0.045 | 0.070 | 0.006 | 0.066 | 0.014 |
| Arts & Human Taste | 0.344 | 0.050 | 0.242 | 0.078 | 0.390 | 0.079 | 0.367 | 0.061 |
Scores per benchmark (43 benchmarks)
Values are skill scores, that is, scores after subtracting the random-guess baseline, floored at 0. The Metric column is the underlying metric each skill score is computed from.
| Area | Benchmark | Metric | E2B base | E2B | E4B base | E4B | 12B base | 12B | 31B base | 31B |
|---|---|---|---|---|---|---|---|---|---|---|
| Knowledge & Reasoning | BBH fixed-option tasks | accuracy | 30.15 | 48.80 | 43.25 | 60.52 | 54.38 | 74.39 | 65.57 | 86.55 |
| Knowledge & Reasoning | ChessBench | accuracy | 4.59 | 9.69 | 5.83 | 10.17 | 10.01 | 10.67 | 15.63 | 14.20 |
| Knowledge & Reasoning | CLadder | accuracy | 5.56 | 25.60 | 9.52 | 32.88 | 25.24 | 46.00 | 49.08 | 65.32 |
| Knowledge & Reasoning | CRUXEval | accuracy | 0.00 | 2.86 | 8.70 | 20.95 | 31.53 | 46.00 | 67.15 | 73.84 |
| Knowledge & Reasoning | GPQA Diamond | accuracy | 11.56 | 14.29 | 17.69 | 17.69 | 17.69 | 17.69 | 32.65 | 34.69 |
| Knowledge & Reasoning | GSM8K | accuracy | 3.85 | 5.54 | 9.46 | 9.85 | 23.59 | 40.58 | 65.27 | 78.56 |
| Knowledge & Reasoning | HLE | accuracy | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| Knowledge & Reasoning | MMLU-Pro | accuracy | 27.07 | 26.69 | 37.88 | 38.93 | 49.88 | 50.79 | 65.65 | 67.93 |
| Knowledge & Reasoning | MuSR | accuracy | 20.94 | 26.65 | 32.56 | 33.61 | 31.49 | 38.27 | 41.43 | 42.29 |
| Knowledge & Reasoning | SATA-Bench | case exact accuracy | 16.05 | 26.43 | 28.89 | 29.07 | 25.50 | 29.81 | 28.65 | 24.71 |
| Knowledge & Reasoning | WinoGrande | accuracy | 9.08 | 30.22 | 28.66 | 54.22 | 40.02 | 61.16 | 67.48 | 81.38 |
| Language Understanding | ACOS | per-review F1 | 8.95 | 14.51 | 10.80 | 17.94 | 11.82 | 26.05 | 16.04 | 31.28 |
| Language Understanding | ANLI | macro-F1 | 15.70 | 33.70 | 32.03 | 51.62 | 36.79 | 58.67 | 59.99 | 67.20 |
| Language Understanding | ContractNLI | macro-F1 | 35.57 | 72.89 | 52.08 | 76.52 | 62.07 | 76.18 | 61.77 | 77.28 |
| Language Understanding | FinEntity | macro-F1 | 61.83 | 85.88 | 69.76 | 88.81 | 88.84 | 90.38 | 86.50 | 90.22 |
| Language Understanding | HellaSwag | accuracy | 49.11 | 74.83 | 73.03 | 89.31 | 81.43 | 91.57 | 89.41 | 95.27 |
| Language Understanding | iSarcasmEval | Sarcasm F1 Β· track A, English | 13.41 | 29.78 | 23.71 | 40.42 | 31.64 | 43.19 | 36.96 | 48.17 |
| Language Understanding | NLI4CT | macro-F1 | 30.78 | 47.33 | 48.40 | 57.88 | 57.88 | 63.77 | 66.34 | 72.59 |
| Language Understanding | RAGTruth response-level hallucination | F1 on hallucinated class | 9.52 | 52.54 | 15.22 | 53.91 | 52.85 | 49.93 | 52.33 | 58.01 |
| Language Understanding | VAST | macro-F1 | 12.77 | 27.94 | 28.70 | 49.83 | 40.92 | 47.39 | 60.08 | 63.60 |
| Retrieval & Classification | Amazon ESCI | macro-F1 | 20.74 | 37.66 | 33.89 | 43.50 | 39.82 | 45.20 | 40.87 | 49.14 |
| Retrieval & Classification | BANKING77 | macro-F1 | 41.26 | 80.96 | 67.93 | 84.33 | 75.86 | 83.60 | 78.77 | 86.51 |
| Retrieval & Classification | BRIGHT | nDCG@10 | 29.31 | 32.47 | 35.20 | 35.82 | 39.65 | 40.19 | 33.11 | 42.10 |
| Retrieval & Classification | CLINC150+OOS | macro-F1 | 53.47 | 87.85 | 81.84 | 92.24 | 87.22 | 93.58 | 90.99 | 94.52 |
| Retrieval & Classification | HoVer claim verification | accuracy | 14.40 | 43.26 | 24.70 | 60.70 | 30.76 | 68.14 | 53.16 | 70.96 |
| Retrieval & Classification | PhishNChips phishing decisions | accuracy | 20.50 | 12.60 | 11.00 | 11.50 | 66.00 | 49.70 | 74.60 | 71.30 |
| Tools & Automation | API-Bank | accuracy | 20.95 | 60.68 | 60.87 | 62.68 | 84.75 | 83.14 | 84.35 | 86.56 |
| Tools & Automation | BFCL | case exact accuracy | 83.58 | 88.05 | 91.95 | 91.31 | 94.18 | 96.10 | 97.21 | 96.02 |
| Tools & Automation | Home appliance simulator | case exact accuracy | 0.00 | 31.82 | 22.73 | 55.68 | 42.05 | 65.91 | 62.50 | 84.09 |
| Tools & Automation | ToolRet | nDCG@10 | 50.77 | 57.95 | 54.91 | 61.77 | 57.02 | 62.07 | 50.68 | 62.77 |
| Tools & Automation | When2Call MCQ | accuracy | 45.27 | 75.11 | 54.99 | 69.11 | 59.84 | 64.63 | 69.19 | 70.47 |
| Arts & Human Taste | BPoMP | accuracy | 48.36 | 75.53 | 56.76 | 86.36 | 80.98 | 90.02 | 81.16 | 96.47 |
| Arts & Human Taste | cfcolor | accuracy | 8.96 | 16.23 | 21.99 | 21.21 | 25.21 | 31.81 | 25.62 | 34.42 |
| Arts & Human Taste | Habermas Machine | accuracy | 21.46 | 34.97 | 17.73 | 41.20 | 24.75 | 38.00 | 24.40 | 46.31 |
| Arts & Human Taste | Humicroedit | accuracy | 18.19 | 23.97 | 23.90 | 24.20 | 19.86 | 27.63 | 27.63 | 34.02 |
| Arts & Human Taste | New Yorker caption matching | accuracy | 35.60 | 49.81 | 45.55 | 61.41 | 55.02 | 67.56 | 67.80 | 75.14 |
| Arts & Human Taste | POP909-CL | accuracy | 0.07 | 10.68 | 3.34 | 55.97 | 4.34 | 45.85 | 26.86 | 64.10 |
| Not in Index | ARC-Challenge | accuracy | 72.58 | 77.13 | 86.12 | 88.05 | 92.26 | 95.00 | 96.71 | 96.71 |
| Not in Index | ARC-Easy | accuracy | 88.61 | 90.40 | 95.45 | 95.96 | 97.08 | 97.53 | 98.43 | 98.60 |
| Not in Index | MMLU | accuracy | 45.89 | 46.99 | 60.19 | 62.15 | 70.00 | 73.57 | 81.61 | 83.88 |
| Not in Index | RouterBench | selected quality (quality objective) | 52.64 | 52.83 | 52.83 | 50.93 | 52.83 | 52.52 | 53.15 | 53.20 |
| Not in Index | SGD/SGD-X | macro-F1 | 21.21 | 0.00 | 32.48 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 |
| Not in Index | SimpleBench | accuracy | 4.00 | 4.00 | 0.00 | 4.00 | 28.00 | 4.00 | 28.00 | 28.00 |
ECE per benchmark (32 calibration benchmarks)
| Area | Benchmark | E2B base | E2B | E4B base | E4B | 12B base | 12B | 31B base | 31B |
|---|---|---|---|---|---|---|---|---|---|
| Knowledge & Reasoning | ChessBench | 0.581 | 0.208 | 0.465 | 0.224 | 0.685 | 0.184 | 0.713 | 0.149 |
| Knowledge & Reasoning | CLadder | 0.398 | 0.025 | 0.343 | 0.049 | 0.311 | 0.018 | 0.245 | 0.055 |
| Knowledge & Reasoning | CRUXEval | 0.548 | 0.226 | 0.384 | 0.194 | 0.331 | 0.073 | 0.190 | 0.032 |
| Knowledge & Reasoning | GPQA Diamond | 0.443 | 0.070 | 0.262 | 0.084 | 0.414 | 0.116 | 0.464 | 0.112 |
| Knowledge & Reasoning | GSM8K | 0.483 | 0.195 | 0.345 | 0.155 | 0.322 | 0.053 | 0.240 | 0.159 |
| Knowledge & Reasoning | HLE | 0.708 | 0.283 | 0.625 | 0.339 | 0.716 | 0.369 | 0.805 | 0.366 |
| Knowledge & Reasoning | MuSR | 0.434 | 0.128 | 0.337 | 0.185 | 0.385 | 0.148 | 0.353 | 0.155 |
| Knowledge & Reasoning | SATA-Bench | 0.229 | 0.064 | 0.127 | 0.072 | 0.156 | 0.031 | 0.156 | 0.052 |
| Knowledge & Reasoning | WinoGrande | 0.413 | 0.158 | 0.289 | 0.081 | 0.257 | 0.075 | 0.161 | 0.023 |
| Language Understanding | ACOS | 0.073 | 0.046 | 0.113 | 0.047 | 0.108 | 0.047 | 0.118 | 0.049 |
| Language Understanding | ANLI | 0.504 | 0.177 | 0.354 | 0.070 | 0.374 | 0.042 | 0.264 | 0.015 |
| Language Understanding | ContractNLI | 0.314 | 0.024 | 0.242 | 0.019 | 0.191 | 0.036 | 0.222 | 0.026 |
| Language Understanding | FinEntity | 0.223 | 0.030 | 0.183 | 0.032 | 0.067 | 0.060 | 0.088 | 0.026 |
| Language Understanding | HellaSwag | 0.329 | 0.027 | 0.118 | 0.008 | 0.113 | 0.009 | 0.075 | 0.022 |
| Language Understanding | iSarcasmEval | 0.286 | 0.065 | 0.209 | 0.053 | 0.131 | 0.044 | 0.263 | 0.019 |
| Language Understanding | NLI4CT | 0.234 | 0.037 | 0.179 | 0.052 | 0.162 | 0.040 | 0.149 | 0.018 |
| Language Understanding | VAST | 0.513 | 0.215 | 0.405 | 0.071 | 0.355 | 0.123 | 0.262 | 0.034 |
| Retrieval & Classification | Amazon ESCI | 0.323 | 0.058 | 0.290 | 0.045 | 0.310 | 0.033 | 0.335 | 0.046 |
| Retrieval & Classification | BANKING77 | 0.485 | 0.061 | 0.255 | 0.046 | 0.214 | 0.034 | 0.196 | 0.017 |
| Retrieval & Classification | CLINC150+OOS | 0.382 | 0.047 | 0.154 | 0.018 | 0.118 | 0.018 | 0.088 | 0.010 |
| Tools & Automation | API-Bank | 0.625 | 0.177 | 0.305 | 0.144 | 0.143 | 0.058 | 0.151 | 0.084 |
| Tools & Automation | BFCL | 0.041 | 0.008 | 0.018 | 0.004 | 0.016 | 0.014 | 0.010 | 0.010 |
| Tools & Automation | Home appliance simulator | 0.286 | 0.018 | 0.071 | 0.024 | 0.054 | 0.038 | 0.037 | 0.046 |
| Arts & Human Taste | BPoMP | 0.206 | 0.013 | 0.130 | 0.032 | 0.077 | 0.015 | 0.094 | 0.012 |
| Arts & Human Taste | cfcolor | 0.302 | 0.053 | 0.160 | 0.017 | 0.330 | 0.039 | 0.349 | 0.049 |
| Arts & Human Taste | Habermas Machine | 0.459 | 0.075 | 0.433 | 0.067 | 0.451 | 0.042 | 0.498 | 0.053 |
| Arts & Human Taste | Humicroedit | 0.377 | 0.109 | 0.267 | 0.113 | 0.374 | 0.108 | 0.357 | 0.066 |
| Arts & Human Taste | POP909-CL | 0.376 | 0.045 | 0.221 | 0.283 | 0.720 | 0.261 | 0.536 | 0.225 |
| Not in Index | ARC-Challenge | 0.183 | 0.026 | 0.075 | 0.014 | 0.051 | 0.016 | 0.025 | 0.017 |
| Not in Index | ARC-Easy | 0.073 | 0.017 | 0.025 | 0.008 | 0.019 | 0.014 | 0.012 | 0.012 |
| Not in Index | MMLU | 0.332 | 0.067 | 0.198 | 0.035 | 0.184 | 0.009 | 0.131 | 0.010 |
| Not in Index | SGD/SGD-X | 0.425 | 0.325 | 0.294 | 0.426 | 0.895 | 0.431 | 0.916 | 0.458 |
Core capabilities
- Three question types. System One multiple-choice, yes/no and score questions, each answered independently.
- One forward pass. Each question is read once and gets a probability for every option, without generating text.
- Better-calibrated confidence. Much less overconfident than the base models, so the probabilities are closer to actual accuracy and are suitable for setting thresholds.
- Single GPU. All four models run on one GPU, and E2B and E4B run on a 24 GB card.
- Chat and judgments on one GPU. The adapter is not merged into the base weights, so one server provides both judgments (Diorite) and chat with the original model. Each request picks one, with no reloading, so an application can make a quick judgment and then hand the same content to the original model, with its thinking mode, for longer reasoning.
- Image input. With the bundled image plugin, judgment and chat requests can include images.
Getting started
Tested on a single NVIDIA RTX PRO 6000 with Python 3.12, vLLM 0.29.0, transformers 5.20.1 and torch 2.13.0.
pip install vllm==0.29.0 fastapi uvicorn
hf download Leucodiorite/Diorite-G4-12B-v1.0 --local-dir Diorite-G4-12B-v1.0
cd Diorite-G4-12B-v1.0
python -m diorite_serve --model google/gemma-4-12B-it --layout chat \
--adapter diorite-g4-12b-v1.0=./adapter --default_model diorite-g4-12b-v1.0 \
--max_model_len 65536 --max_batched_tokens 4096 --gpu_memory_utilization 0.90 --port 8000
The results above were obtained with base revision 707f0a3b. Later revisions of gemma-4-12B-it change only tokenizer.json (a glitch-token fix). Every public-suite request is tokenized identically under both revisions, so the latest revision can also be used; only a few rare strings outside the suite may be tokenized differently. On first start, vLLM compiles a few sampler kernels with ninja, which must be on PATH, so activate the Python environment before starting the server or add its bin/ folder to PATH.
import requests
body = {
"state": {
"channel": "email",
"message": "Where is my parcel? It was due last week, and this is the second time I am asking."
},
"questions": {
"intent": {
"type": "choice",
"instructions": "What does the customer want?",
"criteria": {
"refund": "money back",
"track": "where the parcel is",
"cancel": "cancel the order"
}
},
"angry": {
"type": "noul",
"instructions": "The customer is angry.",
"criteria": {
"true": "The customer is angry or upset.",
"false": "The customer is calm."
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this message?",
"criteria": [
"not urgent",
"somewhat urgent",
"urgent",
"very urgent"
]
}
}
}
a = requests.post("http://127.0.0.1:8000/v1/systemone", json=body).json()["answers"]
print(a["intent"]["choice"], a["intent"]["probabilities"])
print(a["angry"]["noul"]) # probability of "true"
print(a["urgency"]["score"], a["urgency"]["probabilities"])
By default, requests are answered by the adapter. Setting "model" to base or gemma-4-12B-it routes the request to the base model instead. The same server also provides an OpenAI-compatible chat endpoint, which always uses the base weights and is handled by vLLM's own chat implementation (see Chat below).
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="unused")
r = client.chat.completions.create(model="gemma-4-12B-it", messages=[{"role": "user", "content": "Summarize this ticket in one line."}])
print(r.choices[0].message.content)
Settings by GPU memory
The server was launched with each setting and run on the Decision Index kit's 750 sample requests, all of which succeeded. Compared with the results above, Diorite gave a different answer on at most 0.4% of questions. Settings marked "32 GB cap" were measured on an RTX A6000 with GPU memory capped at the equivalent of 32 GB. All settings were tested from a cold start, without the image plugin.
| Model | GPU memory | --max_model_len |
--gpu_memory_utilization |
Tested on |
|---|---|---|---|---|
| 31B | 96 GB | 65536 | 0.90 | RTX PRO 6000 |
| 12B | 48 GB or more | 65536 | 0.90 | RTX A6000, RTX PRO 6000 |
| 12B | 32 GB | 45056 | 0.95 | RTX A6000 (32 GB cap) |
| E4B | 32 GB or more | 65536 | 0.90 | RTX A6000 (32 GB cap), RTX A6000, RTX PRO 6000 |
| E4B | 24 GB | 36864 | 0.95 | RTX 3090 |
| E2B | 24 GB or more | 65536 | 0.90 | RTX 3090, RTX A6000, RTX PRO 6000 |
Best practices
1. Question types
The server uses Jev's System One format (POST /v1/systemone). A request has a state (the content to judge, as text or JSON) and a set of questions, and the response's answers are keyed by question ID.
| Type | Use | criteria format |
Returned fields |
|---|---|---|---|
choice |
Pick one of 2 to 255 named options | Option names mapped to descriptions | choice, probabilities (one per option), confidence |
noul |
Yes/no | Descriptions for true and false |
noul (probability of true) |
score |
Rate on an ordered scale of 2 to 10 levels | List of level descriptions, low to high | score (expected level), probabilities (one per level), confidence |
The three examples below share one state, a customer email.
Multiple choice (choice). Which option fits the content.
{
"state": {
"channel": "email",
"message": "Where is my parcel? It was due last week, and this is the second time I am asking."
},
"questions": {
"intent": {
"type": "choice",
"instructions": "What does the customer want?",
"criteria": {
"refund": "money back",
"track": "where the parcel is",
"cancel": "cancel the order"
}
}
}
}
Yes/no (noul). Whether a statement holds.
{
"state": {
"channel": "email",
"message": "Where is my parcel? It was due last week, and this is the second time I am asking."
},
"questions": {
"angry": {
"type": "noul",
"instructions": "The customer is angry.",
"criteria": {
"true": "The customer is angry or upset.",
"false": "The customer is calm."
}
}
}
}
Score (score). Where the content falls on a scale.
{
"state": {
"channel": "email",
"message": "Where is my parcel? It was due last week, and this is the second time I am asking."
},
"questions": {
"urgency": {
"type": "score",
"instructions": "How urgent is this message?",
"criteria": [
"not urgent",
"somewhat urgent",
"urgent",
"very urgent"
]
}
}
}
The newer System One box type (which returns two coordinate pairs marking a region of an image) and requests with "independent": false are not supported. See diorite_serve/README.md for the endpoints and other options.
2. Using the probabilities
Every option has a probability, so an application can set thresholds, for example, handling a case automatically when the probability is above the threshold and passing it to human review otherwise. With overconfidence reduced, the probabilities are closer to actual accuracy, which makes thresholds easier to set.
3. Context length
The longest training example is about 12.6K tokens. The longest public-suite request is about 32K tokens and is included in the results above. With enough GPU memory, --max_model_len can be raised to the base model's limit, but inputs over 32K tokens have not been evaluated.
4. Images
Start the server with --plugin diorite_serve.images:GemmaImages to accept images. Images go in assets as base64 and are referenced by name in the state, where the reference is replaced by Gemma's image tokens. The adapter was trained on text only, and image questions have not been evaluated.
{
"state": {
"listing": "Second-hand sofa, good condition",
"photo": "img-1"
},
"questions": {
"matches": {
"type": "noul",
"instructions": "The photo matches the listing text."
}
},
"assets": {
"img-1": {
"type": "image",
"format": "jpg",
"data_base64": "<base64 of the JPEG file>"
}
}
}
5. Chat
Chat requests are passed to vLLM's own OpenAI-compatible chat handler, on the same engine and with the base weights. diorite-serve changes one field, setting "model" to the base model, so no adapter is applied and any model name is accepted. The request and the response are otherwise passed through unchanged, so chat supports what vllm serve supports for the original model (vLLM 0.29.0), including streaming, thinking mode and, with the options below, tool calls and images. See the vLLM documentation for the fields and their defaults.
| Start-up option | Effect |
|---|---|
--reasoning_parser gemma4 |
Returns the thinking in reasoning, separate from content. Without it, the thinking stays in content. |
--tool_call_parser gemma4 |
Tool calls, with automatic tool choice |
--plugin diorite_serve.images:GemmaImages |
Images in chat, as in judgment requests (see Images) |
Thinking mode is off by default and is switched on per request with "chat_template_kwargs": {"enable_thinking": true}.
# on a server started with --reasoning_parser gemma4
r = client.chat.completions.create(model="gemma-4-12B-it", messages=[{"role": "user", "content": "Draft a reply that resolves this ticket."}],
extra_body={"chat_template_kwargs": {"enable_thinking": True}})
print(r.choices[0].message.reasoning) # the thinking
print(r.choices[0].message.content) # the reply
Switching between judgments and chat needs no reloading, because the adapter is applied per request: /v1/systemone answers with Diorite, and /v1/chat/completions with the original model. A common pattern is to send the content to /v1/systemone for a quick judgment, then, for the cases that need it, send a chat request to the same server, with thinking on for longer reasoning. Chat and judgments share the GPU, so long chats increase judgment latency. At most 64 chats run at once (--max_chat_requests), and --no_chat switches chat off.
Model data
Training dataset
- 182,167 text questions. All four models use the same questions, training targets and option order.
- Most questions come from public datasets, including the source datasets of several Decision Index benchmarks. The rest are programmatically generated or synthetic.
- The training targets are probability distributions over the options.
- Counted with each model's chat template, one pass over all questions is about 106.7M tokens (31B, 12B) and 106.0M tokens (E4B, E2B).
Data preprocessing
- The training data was decontaminated against the Decision Index public test questions.
- The composition of the training data, the method used to build the targets, and the training settings are not published.
Usage and limitations
Intended usage
The models are suited to workflow steps that need many fast judgments, such as the following.
| Scenario | Type | Example question |
|---|---|---|
| Customer-service triage | choice |
Does the customer want a refund, parcel tracking or a cancellation? |
| Tone detection | noul |
Is this customer angry? |
| Prioritization | score |
How urgent is this message, on a four-level scale? |
| Tool selection | noul, choice |
Should this request call a given function? Which tool should it use? |
| Retrieval ranking | score |
How relevant is this document to the query? |
| Content moderation | noul |
Does this post break the given rules? |
| Document review | choice |
Does this contract passage entail, contradict or not mention a given clause? |
Limitations
- Evaluated only on the Decision Index 0.3 public suite. Performance and calibration in other domains may differ.
- Trained on text only. Image input works but has not been evaluated.
- Inputs over 32K tokens have not been evaluated.
- Of the 37 benchmarks in the Index, each model scores below its base model on 2 to 4. The largest gap is 12B on PhishNChips (16.3 points lower); see Scores per benchmark above.
- The
boxquestion type and non-independent requests are not supported. - This is a research preview, and later versions may change outputs and scores.
Ethical considerations and risks
- The models' judgments come from patterns in the training data, so biases in the source datasets may carry over to their outputs.
- Calibration was measured on the public suite. Before using the models in a new domain, we recommend checking on that domain's data whether the probabilities are reliable.
- Decisions that affect people's rights or safety should remain subject to human review.
Files
| Path | Contents |
|---|---|
adapter/ |
PEFT adapter. To load it with PEFT, pass subfolder="adapter" to PeftModel.from_pretrained. |
charts/ |
Charts and logo used on this page |
diorite_serve/ |
Server source code (version 0.3.1). For options, see diorite_serve/README.md and python -m diorite_serve --help. |
diorite_serve.sha256 |
SHA-256 hashes of all server files |
LICENSE |
CC BY-NC 4.0, for the adapter weights |
diorite_serve/LICENSE |
Apache License 2.0, for the server |
Versions
| Version | Index | License |
|---|---|---|
| v1.0 | 57.37 | CC BY-NC 4.0 |
| v0.1 | 53.42 | Apache-2.0 |
License
The adapter weights are licensed under CC BY-NC 4.0, which allows use, sharing and adaptation for non-commercial purposes with attribution. The diorite-serve server is licensed under the Apache License 2.0. Use of the base model is governed by its own license terms.
Citation
@misc{leucodiorite2026diorite,
title = {Diorite v1.0: Judgment Models on Gemma 4},
author = {Leucodiorite},
year = {2026},
url = {https://huggingface.co/Leucodiorite/Diorite-G4-12B-v1.0}
}
- Downloads last month
- -


