decider-4b v2
Browse filesdecider-4b v1 + merged LoRA (rank 64, attention and MLP); temperature 1.935. v1 is under the tag v1.
- README.md +309 -172
- decider/batching.py +95 -0
- decider/engine.py +12 -18
- decider/engine_v2.py +210 -0
- decider/infer.py +79 -20
- decider/model.py +2 -0
- decider/mps_moe.py +102 -0
- decider/mps_ops.py +268 -0
- decider/prompt.py +142 -12
- decider/prompt_fast.py +90 -0
- decider/schema_engine.py +6 -3
- decider/serve.py +406 -150
- decider/shared_prefix.py +196 -0
- decider/systemone.py +3 -1
- decider_config.json +7 -6
- eval_results.json +1560 -2084
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -14,21 +14,91 @@ no parsing and no output outside the options you defined. It is called from soft
|
|
| 14 |
reproduction of the "System One" model class (TypeSafe AI's Jev).
|
| 15 |
|
| 16 |
Base model: [Qwen/Qwen3.5-4B-Base](https://huggingface.co/Qwen/Qwen3.5-4B-Base): 4.2B parameters, 32 layers, 8 with full
|
| 17 |
-
attention and 24 with gated delta-net linear attention, hidden size 2,560.
|
| 18 |
-
over mixture v2
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
repository
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
## The decider family
|
| 34 |
|
|
@@ -38,7 +108,7 @@ readout: the letter logits at an answer slot, softmaxed over the options. Pick b
|
|
| 38 |
| model | base | weights | use it for | numbers |
|
| 39 |
|---|---|---|---|---|
|
| 40 |
| [decider-2b](https://huggingface.co/Mapika/decider-2b) v10 | Qwen3.5-2B-Base | 3.5 GB bf16 | the default: routing, classification, judgments, browser agents; 4 ms per request with CUDA graphs on one GPU | regression set 0.805 in-task / 0.755 held-out; live browser 93%; Bespoke suite 0.704 |
|
| 41 |
-
| [decider-4b](https://huggingface.co/Mapika/decider-4b)
|
| 42 |
| [decider-35b-a3b](https://huggingface.co/Mapika/decider-35b-a3b) v1 | Qwen3.5-35B-A3B-Base (3B active) | 65 GB bf16 | when accuracy is worth 3 to 4 times the cost per decision: knowledge and multi-step questions, long policies | 0.855 / 0.810, above the 2B on 93 of 95 tasks; JevBench hard 0.676; Bespoke 0.774; no RL stage |
|
| 43 |
| [decider-35b-a3b-nvfp4](https://huggingface.co/Mapika/decider-35b-a3b-nvfp4) | the 35B in NVFP4 | 19.6 GB | the 35B on Blackwell through vLLM or TensorRT-LLM | 1.0 to 1.5 points under bf16 on the measured fixtures |
|
| 44 |
| [decider-0.8b](https://huggingface.co/Mapika/decider-0.8b) | Qwen3.5-0.8B-Base | 1.4 GB bf16 | the smallest: routing, yes/no and short-state lookups within 1 to 4 points of the 2B, 1.5x faster | 0.776 / 0.707 on the single-run protocol (2B: 0.809 / 0.739) |
|
|
@@ -60,12 +130,18 @@ d.decide("My card was charged twice for the same purchase.",
|
|
| 60 |
The API is the same as decider-2b's: `decide_batch` scores many states with many questions in one call, `abstain_below=t`
|
| 61 |
returns `None` under a confidence threshold, a question can have 2 to 255 options, and `system_one` / `decider.serve` accept
|
| 62 |
TypeSafe's `POST /v1/systemone` request shape (the official `typesafe-sdk` works with `TYPESAFE_BASE_URL` pointing at the
|
| 63 |
-
server). Every question and every Score level is scored in its own row. The state may be a string, object or array of up to
|
| 64 |
32k tokens. See the decider-2b card for the full description of the request shape, field types and the schema cache.
|
| 65 |
|
| 66 |
Requirements: `torch`, `transformers>=5`, and `flash-linear-attention` (Triton kernels for the Qwen3.5 linear-attention layers;
|
| 67 |
-
the model runs without it but several times slower). The weights take 8.4 GB in bf16.
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
Without the helper package, the same computation in plain `transformers`:
|
| 71 |
|
|
@@ -79,7 +155,7 @@ ids = tok(prompt, return_tensors="pt").to("cuda")
|
|
| 79 |
with torch.no_grad():
|
| 80 |
logits = m(**ids).logits[0, -1]
|
| 81 |
letters = [tok.encode(L, add_special_tokens=False)[0] for L in "ABC"]
|
| 82 |
-
probs = torch.softmax(logits[letters].float() / 1.
|
| 83 |
```
|
| 84 |
|
| 85 |
## How it works
|
|
@@ -92,9 +168,9 @@ so the model conditions on the supplied candidates rather than on a fixed head.
|
|
| 92 |
|
| 93 |
## Training
|
| 94 |
|
| 95 |
-
One supervised pass over **mixture v2**, in the two prompt layouts (state-first and schema-first,
|
| 96 |
-
levels and 10% abstention rows, 1,892,408 items and 742M tokens, pre-tokenized once and read in the
|
| 97 |
-
Three sources:
|
| 98 |
|
| 99 |
| source | rows | share of tokens | content |
|
| 100 |
|---|---|---|---|
|
|
@@ -107,7 +183,7 @@ and the held-out variant of every programmatic family were kept out of training;
|
|
| 107 |
training row of all three sources and 4,168 overlapping training pairs were dropped. No game rows are in mixture v2 (the
|
| 108 |
public mixture rebuilt on this machine has none), so every game result below is zero-shot.
|
| 109 |
|
| 110 |
-
| | |
|
| 111 |
|---|---|
|
| 112 |
| trainable parameters | all 4.2B (426 tensors) |
|
| 113 |
| optimizer | `torch.optim.AdamW` applied directly to the bf16 parameters, no FP32 master copy; betas 0.9 / 0.95, no weight decay |
|
|
@@ -119,191 +195,250 @@ Why this optimizer: on a controlled quarter-data comparison of the same 4B (`ref
|
|
| 119 |
schedule, only the optimizer changed), AdamW on the bf16 parameters beat AdamW with FP32 master weights by 3.3 held-out points and
|
| 120 |
0.072 nats (0.791 against 0.758 held-out accuracy), and by 7 points on nine knowledge tasks. The master copy lets every small update
|
| 121 |
through and moves the weights further from the base model; without it, updates below the bf16 resolution round away and more of
|
| 122 |
-
the base model's knowledge is kept.
|
| 123 |
-
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
## Evaluation
|
| 127 |
|
|
|
|
|
|
|
|
|
|
| 128 |
**Public regression set**, rebuilt on this machine (95 tasks: 67 in-task, 28 held-out; large label sets sub-sampled to 10
|
| 129 |
-
options; one temperature per model fitted on in-task data). All
|
| 130 |
error with 15 bins; intervals are 95% bootstrap intervals over tasks, paired.
|
| 131 |
|
| 132 |
| model | in-task acc / NLL / ECE (67 tasks) | held-out acc / NLL / ECE (28 tasks) |
|
| 133 |
|---|---|---|
|
| 134 |
| decider-2b v10, T=1.30 | 0.805 / 0.474 / 0.037 | 0.755 / 0.622 / 0.084 |
|
| 135 |
-
|
|
|
|
|
| 136 |
| decider-35b-a3b v1, T=1.08 | 0.855 / 0.357 / 0.026 | 0.810 / 0.497 / 0.069 |
|
| 137 |
|
| 138 |
-
Against v10: +
|
| 139 |
-
|
| 140 |
-
−
|
| 141 |
-
|
| 142 |
-
(MMLU, ARC, HellaSwag, MedQA, MedMCQA, Social IQa,
|
| 143 |
-
|
| 144 |
-
|
|
|
|
| 145 |
|
| 146 |
<details>
|
| 147 |
<summary><b>Per-task accuracy / ECE on the 28 held-out datasets, decider-2b v10, this model, decider-35b-a3b</b></summary>
|
| 148 |
|
| 149 |
-
| task | decider-2b v10 | decider-4b | decider-35b-a3b |
|
| 150 |
|---|---|---|---|
|
| 151 |
-
| abstain_probe | 0.606 / 0.134 | 0.
|
| 152 |
-
| ade | 0.817 / 0.038 | 0.
|
| 153 |
-
| arena_pref | 0.483 / 0.189 | 0.
|
| 154 |
-
| bbc_news | 0.927 / 0.013 | 0.
|
| 155 |
-
| cb | 0.857 / 0.093 | 0.
|
| 156 |
-
| cr_reviews | 0.903 / 0.031 | 0.
|
| 157 |
-
| dbpedia_l2 | 0.950 / 0.018 | 0.
|
| 158 |
-
| dbpedia_l3 | 0.987 / 0.005 | 0.
|
| 159 |
-
| dolly_category | 0.299 / 0.203 | 0.
|
| 160 |
-
| fin_phrasebank | 0.694 / 0.042 | 0.
|
| 161 |
-
| fin_sentiment | 0.793 / 0.058 | 0.
|
| 162 |
-
| hermes_tools | 0.723 / 0.208 | 0.
|
| 163 |
-
| hwu64 | 0.961 / 0.030 | 0.
|
| 164 |
-
| massive_scenario | 0.756 / 0.041 | 0.
|
| 165 |
-
| offtopic_probe | 0.841 / 0.027 | 0.
|
| 166 |
-
| paws | 0.724 / 0.145 | 0.
|
| 167 |
-
| pubmedqa | 0.756 / 0.085 | 0.
|
| 168 |
-
| quality | 0.494 / 0.233 | 0.
|
| 169 |
-
| quality_full | 0.508 / 0.198 | 0.
|
| 170 |
-
| reward_bench | 0.819 / 0.045 | 0.
|
| 171 |
-
| sciq | 0.982 / 0.024 | 0.
|
| 172 |
-
| social_iqa | 0.708 / 0.077 | 0.
|
| 173 |
-
| strategyqa | 0.552 / 0.138 | 0.
|
| 174 |
-
| student_questions | 0.925 / 0.045 | 0.
|
| 175 |
-
| trec | 0.784 / 0.066 | 0.
|
| 176 |
-
| truthfulqa | 0.537 / 0.090 | 0.
|
| 177 |
-
| tweet_irony | 0.795 / 0.052 | 0.
|
| 178 |
-
| xstory_cloze | 0.962 / 0.017 | 0.
|
| 179 |
|
| 180 |
</details>
|
| 181 |
|
| 182 |
**On the same rows as decider-2b v10 and decider-35b-a3b.** Every row below is scored by all three models on identical inputs
|
| 183 |
and seeds. Intervals are 95% paired bootstrap intervals (rows for the fixtures, boards for the games, task-seed pairs for the
|
| 184 |
-
browser).
|
| 185 |
|
| 186 |
-
| | decider-2b v10 | **decider-4b** | decider-35b-a3b | 4B minus 2B | 4B minus 35B |
|
| 187 |
|---|---|---|---|---|---|
|
| 188 |
-
| 847 in-task validation rows, accuracy / NLL | 83.2% / 0.444 |
|
| 189 |
-
| OpenJev, 5,252 rows, accuracy / NLL | 63.3% / 0.916 |
|
| 190 |
-
| Mind2Web element and action choice, 1,770 rows | 82.7% / 0.543 |
|
| 191 |
-
| TypeSafe workflow decisions, 102 rows, accuracy / NLL | 80.4% / 0.585 |
|
| 192 |
-
| Bespoke's public suite, 13 subsets, macro / micro | 0.704 / 0.711 | 0.
|
| 193 |
-
| JevBench public items, easy / standard / hard accuracy | 1.000 / 0.889 / 0.459 | 1.000 / 0.
|
| 194 |
-
| live MiniWoB++ click tasks, 22 tasks x 8 seeds, greedy play | 90.9% |
|
| 195 |
-
| the same, 6 tasks v10 never used for reward, greedy | 91.7% |
|
| 196 |
-
| live MiniWoB++ click tasks, sampled play | 93.2% |
|
| 197 |
-
| the same, 6 held-out tasks, sampled | 91.7% |
|
| 198 |
-
| zero-shot games, win rate, sampled play (234 boards) | 23.7% |
|
| 199 |
-
| zero-shot games, greedy play | 26.5% |
|
| 200 |
-
| bag-draw games alone, sampled | 41.4% |
|
| 201 |
-
|
| 202 |
-
On the two fixtures whose rows are in neither model's training data (TypeSafe, OpenJev)
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
than either other model in sampled play;
|
|
|
|
| 208 |
|
| 209 |
**Ten text games, zero-shot** (`decider.games.play`, five episodes per game, greedy, eager; the 2B was trained on the first
|
| 210 |
-
four, the 4B and the 35B on none): Pong −21 (teacher 8, 2B 8, 35B −21), Breakout
|
| 211 |
2B −13, 35B −1,248), MiniGrid-Empty 0 (teacher 0.96, both others 0), Freeway 1 (teacher 5, 2B 0, 35B 1), FrozenLake 0 (teacher 1,
|
| 212 |
-
others 0), Blackjack −0.6 (teacher −0.6, 2B −1, 35B −0.6), MiniGrid-LavaGap 0, MiniGrid-DoorKey 0 (teacher 0), BabyAI-GoTo 0.
|
| 213 |
-
(teacher 0.34, 2B 0, 35B 0.19).
|
| 214 |
-
|
|
|
|
| 215 |
|
| 216 |
**JevBench public items** (231 items of [Benchmark Heaven](https://benchmarkheaven.com/jev-models); argmax over the exact
|
| 217 |
-
label set with the request the harness's TypeSafe adapter builds).
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
|
| 224 |
**Bespoke's public suite** (13 human-labelled subsets, 3,880 records in Jev's wire format, answered through `system_one` as
|
| 225 |
shipped). Nimble-9B and Jev 1.13.0 numbers are copied from Bespoke's report.
|
| 226 |
|
| 227 |
-
| subset (type) | decider-2b v10 | decider-4b | decider-35b-a3b | Nimble-9B | Jev 1.13.0 |
|
| 228 |
|---|---|---|---|---|---|
|
| 229 |
-
| vitaminc-dev (choice) | 0.639 | 0.
|
| 230 |
-
| massive-en-US (choice; trained) | 0.823 | 0.
|
| 231 |
-
| massive-de-DE (choice, German) | 0.797 | 0.
|
| 232 |
-
| boolq (noul; trained) | 0.803 | 0.
|
| 233 |
-
| squad2 (noul) | 0.776 | 0.
|
| 234 |
-
| paws (noul; trained) | 0.720 | 0.
|
| 235 |
-
| multinli (choice; trained) | 0.856 | 0.
|
| 236 |
-
| civil_comments (noul; trained) | 0.840 | 0.
|
| 237 |
-
| aegis2 (noul) | 0.728 | 0.
|
| 238 |
| helpsteer2 (score; trained) | 0.426 | 0.466 | 0.478 | 0.390 | 0.341 |
|
| 239 |
-
| summeval-relevance (score) | 0.354 | 0.
|
| 240 |
-
| summeval-consistency (score) | 0.660 | 0.
|
| 241 |
-
| pubmedqa (choice; trained) | 0.724 | 0.
|
| 242 |
-
| **macro / micro** | 0.704 / 0.711 | **0.
|
| 243 |
-
|
| 244 |
-
On the six subsets whose training split is not in the mixture the macro accuracy is 0.
|
| 245 |
-
Nimble-9B on the average
|
| 246 |
-
matches it (PAWS
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
|
|
|
|
|
|
| 253 |
|
| 254 |
## Calibration
|
| 255 |
|
| 256 |
-
The stored temperature 1.
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
in-task
|
|
|
|
|
|
|
|
|
|
| 260 |
|
| 261 |
-
| set | measure | decider-2b v10 | decider-4b | decider-35b-a3b |
|
| 262 |
-
|---|---|---|---|---|
|
| 263 |
-
| JevBench hard tier, 111 items | top-label ECE | 0.304 | 0.
|
| 264 |
-
| TypeSafe, 102 rows | 10-bin ECE / mean total variation to the frontier reference | 0.091 / 0.242 | 0.
|
| 265 |
-
| OpenJev, 5,252 rows | 10-bin ECE | 0.150 | 0.
|
| 266 |
-
|
|
| 267 |
-
|
|
| 268 |
-
|
|
| 269 |
-
| the same |
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
## Speed
|
| 280 |
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
|
| 287 |
## Limitations
|
| 288 |
|
| 289 |
* No reinforcement-learning stage: stated beliefs about action outcomes were not trained against exact laws, and on live
|
| 290 |
-
browser tasks the model is
|
| 291 |
-
|
| 292 |
-
*
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
*
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
*
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 307 |
* English is the main language; the multilingual rows (XNLI, PAWS-X, MASSIVE, Belebele, XCOPA) are a small share of the data
|
| 308 |
and were not measured beyond the mixture-v2 evaluation set.
|
| 309 |
* Everything else in the decider-2b card's limitations (packed questions see each other, long JSON arrays by position, full
|
|
@@ -314,7 +449,8 @@ model.
|
|
| 314 |
|
| 315 |
| version | what changed |
|
| 316 |
|---|---|
|
| 317 |
-
| **
|
|
|
|
| 318 |
|
| 319 |
The GitHub repository's [docs/CHANGELOG.md](https://github.com/Mapika/decider/blob/main/docs/CHANGELOG.md) lists every
|
| 320 |
decider release.
|
|
@@ -322,13 +458,14 @@ decider release.
|
|
| 322 |
## Reproduction
|
| 323 |
|
| 324 |
Code, data registry, training and evaluation scripts and the per-version history: https://github.com/Mapika/decider
|
| 325 |
-
(`docs/HISTORY.md`, section "decider-4b").
|
| 326 |
-
(`arch_ab/train_dp_optvar.py` in the research repository, optimizer variant `bf16`)
|
| 327 |
-
and the head-to-head tools,
|
| 328 |
-
`eval_results.json` in this repository has the per-task regression metrics at T 1.
|
| 329 |
-
|
|
|
|
| 330 |
|
| 331 |
**Independence.** This is an independent project. It is not affiliated with or endorsed by TypeSafe AI. It is an open
|
| 332 |
reproduction of the "System One" model class (TypeSafe AI's Jev); nothing was distilled from Jev. The training data is public
|
| 333 |
-
datasets, programmatically generated rows with verifiable gold, and data labelled by
|
| 334 |
-
Apache 2.0.
|
|
|
|
| 14 |
reproduction of the "System One" model class (TypeSafe AI's Jev).
|
| 15 |
|
| 16 |
Base model: [Qwen/Qwen3.5-4B-Base](https://huggingface.co/Qwen/Qwen3.5-4B-Base): 4.2B parameters, 32 layers, 8 with full
|
| 17 |
+
attention and 24 with gated delta-net linear attention, hidden size 2,560. Two supervised stages. Stage 1 (decider-4b v1): one
|
| 18 |
+
pass of cross-entropy on the slot readout over mixture v2, the public decision mixture of
|
| 19 |
+
[decider-2b](https://huggingface.co/Mapika/decider-2b) plus 26 further public decision datasets and ten programmatically
|
| 20 |
+
generated families with verifiable gold (742M tokens). Stage 2 (v2): a LoRA of rank 64 on the attention and MLP weights,
|
| 21 |
+
trained for 2 epochs on 29,356 rows of harder decisions and replay, then merged into the weights. There is no
|
| 22 |
+
reinforcement-learning stage. **This repository holds v2**, the bf16 weights (8.4 GB). v1 stays available under the Hub tag
|
| 23 |
+
`v1` (see [Changes from v1](#changes-from-v1) for who should keep using it). The other sizes are listed under The decider
|
| 24 |
+
family. `decider/` in this repository is the inference subset of the GitHub package.
|
| 25 |
+
|
| 26 |
+
Against decider-2b v10 on the same rows: accuracy is higher on 66 of the 95 regression tasks (in-task 0.824 against 0.805,
|
| 27 |
+
held-out 0.779 against 0.755), +1.8 points on the 847 validation rows, +3.5 on OpenJev, +4.8 on Mind2Web, +5.9 on the TypeSafe
|
| 28 |
+
workflow rows (interval includes zero), JevBench hard tier 0.676 against 0.459, Bespoke's public suite 0.773 against 0.704 macro.
|
| 29 |
+
Against decider-35b-a3b it is 3.1 to 3.2 points lower on the regression set, 1.6 to 5.0 points lower on three fixtures, level on
|
| 30 |
+
TypeSafe and level on the JevBench hard tier (0.676 both), at 8.4 GB instead of 65 GB. On live browser tasks it plays at the level
|
| 31 |
+
of the 2B in greedy mode (92.6% against 90.9%) and below it on the six held-out tasks (81.2% against 91.7%), because it has no RL
|
| 32 |
+
stage. Details under Evaluation.
|
| 33 |
+
|
| 34 |
+
**Contents:** [Changes from v1](#changes-from-v1) · [The decider family](#the-decider-family) · [Usage](#usage) · [How it works](#how-it-works) · [Training](#training) · [Evaluation](#evaluation) · [Calibration](#calibration) · [Speed](#speed) · [Limitations](#limitations) · [Changelog](#changelog) · [Reproduction](#reproduction)
|
| 35 |
+
|
| 36 |
+
## Changes from v1
|
| 37 |
+
|
| 38 |
+
v2 is v1 plus the stage-2 LoRA described under Training. It is better than v1 on hard and document-based judgments and on
|
| 39 |
+
TypeSafe, OpenJev and Bespoke's suite, and worse on sampled game and browser play, on some text games and by about 1 point on
|
| 40 |
+
everyday tasks. All rows below are on identical inputs, v1 at its stored temperature 1.05 and v2 at 1.935, through decider-ai
|
| 41 |
+
1.2.1; intervals are 95% paired bootstrap intervals of v2 minus v1 (tasks, rows, items, boards or task-seed pairs).
|
| 42 |
+
|
| 43 |
+
| set | v1 | v2 | v2 minus v1 |
|
| 44 |
+
|---|---|---|---|
|
| 45 |
+
| regression set, 67 in-task tasks, accuracy / NLL / ECE | 0.834 / 0.404 / 0.027 | 0.824 / 0.441 / 0.041 | accuracy −1.0 (−1.2 to −0.7), NLL +0.037 (+0.029 to +0.046), ECE +0.014 (+0.008 to +0.021) |
|
| 46 |
+
| regression set, 28 held-out tasks | 0.788 / 0.558 / 0.071 | 0.779 / 0.566 / 0.080 | accuracy −0.9 (−2.0 to +0.1), NLL +0.008 (−0.024 to +0.035), ECE +0.009 (−0.003 to +0.021) |
|
| 47 |
+
| 847 in-task validation rows, accuracy / NLL | 86.1% / 0.417 | 85.0% / 0.419 | −1.1 (−2.6 to +0.5); NLL +0.002 (−0.019 to +0.021) |
|
| 48 |
+
| OpenJev, 5,252 rows | 63.9% / 0.893 | 66.7% / 0.789 | +2.8 (+1.8 to +3.9); NLL −0.104 (−0.121 to −0.087) |
|
| 49 |
+
| Mind2Web, 1,770 rows | 88.4% / 0.366 | 87.4% / 0.393 | −1.0 (−2.0 to +0.1); NLL +0.027 (+0.011 to +0.044) |
|
| 50 |
+
| TypeSafe workflow decisions, 102 rows | 81.4% / 0.611 | 86.3% / 0.410 | +4.9 (−1.0 to +10.8); NLL −0.201 (−0.348 to −0.072) |
|
| 51 |
+
| Bespoke's public suite, macro / micro | 0.757 / 0.765 | 0.773 / 0.781 | macro +1.6 |
|
| 52 |
+
| JevBench public items, easy / standard / hard | 1.000 / 0.958 / 0.550 | 1.000 / 0.986 / 0.676 | hard +12.6 (+4.5 to +20.7) |
|
| 53 |
+
| JevBench hard tier, top-label ECE (v2: recomputed at T 1.935 from stored probabilities, the 6 Score items at T 1.719) | 0.288 | 0.071 | |
|
| 54 |
+
| Decision Index 4,000-request sample, calibration error (site definition; v2 recomputed at T 1.935 from stored probabilities) | 0.086 | 0.074 | |
|
| 55 |
+
| live MiniWoB++, 22 tasks x 8 seeds, greedy (all / 6 held-out tasks) | 91.5% / 75.0% | 92.6% / 81.2% | +1.1 (−1.7 to +4.0) / +6.2 (−2.1 to +16.7) |
|
| 56 |
+
| live MiniWoB++, sampled (all / 16 rewarded / 6 held-out) | 90.9% / 96.1% / 77.1% | 88.1% / 93.0% / 75.0% | −2.8 (−7.4 to +1.7) / −3.1 (−7.8 to +0.8) / −2.1 (−14.6 to +10.4) |
|
| 57 |
+
| zero-shot games, win rate, sampled (234 boards) | 27.8% | 22.4% | −5.3 (−7.6 to −3.1) |
|
| 58 |
+
| zero-shot games, greedy | 29.1% | 27.8% | −1.3 (−5.6 to +2.6) |
|
| 59 |
+
| bag-draw games alone, sampled / greedy | 56.6% / 62.5% | 37.9% / 48.4% | −18.8 (−24.6 to −12.9) / −14.1 (−23.4 to −6.2) |
|
| 60 |
+
| ten text games, greedy: CliffWalking / BabyAI-GoTo / Breakout | −13 / 0.54 / 14 | −60 / 0.35 / 12 | |
|
| 61 |
+
| behaviour probes: model-router tier / needs-live-data / touches-outside-project | 0.968 / 0.871 / 0.956 | 0.935 / 0.839 / 0.933 | |
|
| 62 |
+
| behaviour probes: abstention battery / catch-all / command risk / browser element and action | 7 of 8 / 0.90 / 0.889 / 0.875 and 0.875 | 8 of 8 / 0.95 / 0.911 / 0.938 and 0.938 | |
|
| 63 |
+
|
| 64 |
+
The v1 column is v1 measured again on 2026-09-24 through decider-ai 1.2.1, so that both versions are read by the same code on
|
| 65 |
+
the same day. It differs from the numbers first published for v1 by at most 1.0 point on the regression set, the fixtures and
|
| 66 |
+
JevBench, by up to 2.1 points on the live browser and game rows (sampled held-out browser tasks 77.1% against 79.2%, bag-draw
|
| 67 |
+
greedy 62.5% against 60.9%), and on Breakout (14 against 18). The first-published values are in the v1 card under the tag `v1`.
|
| 68 |
+
|
| 69 |
+
**Regressions, stated plainly.**
|
| 70 |
+
* Sampled play in games: the bag-draw games (choose the bag with the highest expected value) fall from 56.6% to 37.9% wins in
|
| 71 |
+
sampled play, and zero-shot games overall from 27.8% to 22.4%. An earlier candidate (the Qwen3.5-4B instruct model plus a LoRA on
|
| 72 |
+
15,768 of these 29,356 rows) showed a drop of 12.5 points on the same bag-draw games; this points to the new data, but it was not tested
|
| 73 |
+
directly.
|
| 74 |
+
* Sampled browser play: −2.8 points over all 22 tasks and −3.1 on the 16 rewarded tasks (intervals include zero); the losses
|
| 75 |
+
are on click-dialog-2, click-tab, click-checkboxes-large, click-checkboxes-soft, click-checkboxes-transfer and click-option,
|
| 76 |
+
the gains on click-tab-2, click-tab-2-hard and focus-text-2.
|
| 77 |
+
* Text games (greedy): CliffWalking −60 against −13, BabyAI-GoTo 0.35 against 0.54, Breakout 12 against 14.
|
| 78 |
+
* Behaviour probes: model-router tier 0.935 against 0.968, needs-live-data 0.839 against 0.871, touches-outside-project 0.933
|
| 79 |
+
against 0.956, generic bucket choice 0.95 against 1.00.
|
| 80 |
+
* Everyday tasks: regression in-task accuracy −1.0 point and held-out −0.9 (the held-out interval includes zero), lower on 75
|
| 81 |
+
of 95 tasks, mostly by under 3 points; the largest losses are CommitmentBank −8.9, PubMedQA −6.2, hate-speech tweets −4.7,
|
| 82 |
+
emotion −4.3, LIAR −3.9, QuALITY (full) −3.3, MedQA −3.0. Regression-set calibration is worse (in-task ECE 0.041 against
|
| 83 |
+
0.027), and rating (Score) tasks are the least calibrated in the probe (see Calibration).
|
| 84 |
+
|
| 85 |
+
If you rely on sampled play (games, browser agents that sample actions) or on the probes above, pin revision `v1`. The
|
| 86 |
+
package loads a local folder, so download the revision first:
|
| 87 |
+
|
| 88 |
+
```python
|
| 89 |
+
from huggingface_hub import snapshot_download
|
| 90 |
+
from decider.infer import Decider
|
| 91 |
+
d = Decider(snapshot_download("Mapika/decider-4b", revision="v1"))
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
For the HTTP server, set `DECIDER_MODEL` to the same downloaded folder.
|
| 95 |
+
|
| 96 |
+
**How v2 was chosen.** The training run had a pre-registered rule for replacing v1: the candidate had to beat an earlier
|
| 97 |
+
candidate (the Qwen3.5-4B instruct model plus a LoRA on 15,768 of the same hard-decision rows) on our own held-out hard sets. v2 did not meet it:
|
| 98 |
+
it was 0.8 points short on the held-out teacher-written set and 0.5 points short on the held-out generated families, that is, it
|
| 99 |
+
tied the earlier candidate there. The earlier candidate had lost v1's everyday skills and v2 keeps them within about 1 point, so
|
| 100 |
+
v2 was then measured on every set of this card, and the release was decided on that full comparison with v1. The JevBench public
|
| 101 |
+
items were read once for v2, after selection; they were not used for training, selection or the temperature.
|
| 102 |
|
| 103 |
## The decider family
|
| 104 |
|
|
|
|
| 108 |
| model | base | weights | use it for | numbers |
|
| 109 |
|---|---|---|---|---|
|
| 110 |
| [decider-2b](https://huggingface.co/Mapika/decider-2b) v10 | Qwen3.5-2B-Base | 3.5 GB bf16 | the default: routing, classification, judgments, browser agents; 4 ms per request with CUDA graphs on one GPU | regression set 0.805 in-task / 0.755 held-out; live browser 93%; Bespoke suite 0.704 |
|
| 111 |
+
| [decider-4b](https://huggingface.co/Mapika/decider-4b) v2 | Qwen3.5-4B-Base | 8.4 GB bf16 | the middle point: knowledge questions and hard judgments above the 2B in a dense 8.4 GB model; no RL stage; v1 under the tag `v1` for sampled play | 0.824 / 0.779, above the 2B on 66 of 95 tasks; JevBench hard 0.676; Bespoke 0.773 |
|
| 112 |
| [decider-35b-a3b](https://huggingface.co/Mapika/decider-35b-a3b) v1 | Qwen3.5-35B-A3B-Base (3B active) | 65 GB bf16 | when accuracy is worth 3 to 4 times the cost per decision: knowledge and multi-step questions, long policies | 0.855 / 0.810, above the 2B on 93 of 95 tasks; JevBench hard 0.676; Bespoke 0.774; no RL stage |
|
| 113 |
| [decider-35b-a3b-nvfp4](https://huggingface.co/Mapika/decider-35b-a3b-nvfp4) | the 35B in NVFP4 | 19.6 GB | the 35B on Blackwell through vLLM or TensorRT-LLM | 1.0 to 1.5 points under bf16 on the measured fixtures |
|
| 114 |
| [decider-0.8b](https://huggingface.co/Mapika/decider-0.8b) | Qwen3.5-0.8B-Base | 1.4 GB bf16 | the smallest: routing, yes/no and short-state lookups within 1 to 4 points of the 2B, 1.5x faster | 0.776 / 0.707 on the single-run protocol (2B: 0.809 / 0.739) |
|
|
|
|
| 130 |
The API is the same as decider-2b's: `decide_batch` scores many states with many questions in one call, `abstain_below=t`
|
| 131 |
returns `None` under a confidence threshold, a question can have 2 to 255 options, and `system_one` / `decider.serve` accept
|
| 132 |
TypeSafe's `POST /v1/systemone` request shape (the official `typesafe-sdk` works with `TYPESAFE_BASE_URL` pointing at the
|
| 133 |
+
server; checked with decider-2b, not again with this model). Every question and every Score level is scored in its own row. The state may be a string, object or array of up to
|
| 134 |
32k tokens. See the decider-2b card for the full description of the request shape, field types and the schema cache.
|
| 135 |
|
| 136 |
Requirements: `torch`, `transformers>=5`, and `flash-linear-attention` (Triton kernels for the Qwen3.5 linear-attention layers;
|
| 137 |
+
the model runs without it but several times slower). The weights take 8.4 GB in bf16. v2 uses the plain prompt layout, as v1
|
| 138 |
+
does, so it needs no new package version. decider-ai 1.0.2, 1.1.4, 1.2.1 and 1.2.2 and the `decider/` subset in this repository
|
| 139 |
+
(taken from 1.2.2) were checked on CUDA: each loads v2 with the name `decider-4b-v2` and temperature 1.935 and gives the same
|
| 140 |
+
probabilities to four decimals on the usage example above, on the eager path and on the CUDA-graph path (the two paths differ in
|
| 141 |
+
the third decimal, as for every model). The 1.2.2 HTTP server was checked with one `/v1/systemone` request. Other versions,
|
| 142 |
+
devices and the FP8 path were not checked on v2. On Blackwell GPUs use 1.0.2 or later (1.0.0 and 1.0.1 have the cuDNN attention fault fixed
|
| 143 |
+
in 1.0.2). The model is dense, so the CUDA-graph engine, `torch.compile` and the FP8 path of the helper package apply to it as
|
| 144 |
+
to decider-2b (`use_graphs=False` selects eager PyTorch). The measurements below were taken with the eager path unless stated.
|
| 145 |
|
| 146 |
Without the helper package, the same computation in plain `transformers`:
|
| 147 |
|
|
|
|
| 155 |
with torch.no_grad():
|
| 156 |
logits = m(**ids).logits[0, -1]
|
| 157 |
letters = [tok.encode(L, add_special_tokens=False)[0] for L in "ABC"]
|
| 158 |
+
probs = torch.softmax(logits[letters].float() / 1.935, -1) # 1.935 is the stored temperature (v1: 1.05)
|
| 159 |
```
|
| 160 |
|
| 161 |
## How it works
|
|
|
|
| 168 |
|
| 169 |
## Training
|
| 170 |
|
| 171 |
+
**Stage 1 (decider-4b v1).** One supervised pass over **mixture v2**, in the two prompt layouts (state-first and schema-first,
|
| 172 |
+
50/50), with isolated Score levels and 10% abstention rows, 1,892,408 items and 742M tokens, pre-tokenized once and read in the
|
| 173 |
+
same order by both ranks. Three sources:
|
| 174 |
|
| 175 |
| source | rows | share of tokens | content |
|
| 176 |
|---|---|---|---|
|
|
|
|
| 183 |
training row of all three sources and 4,168 overlapping training pairs were dropped. No game rows are in mixture v2 (the
|
| 184 |
public mixture rebuilt on this machine has none), so every game result below is zero-shot.
|
| 185 |
|
| 186 |
+
| stage 1 | |
|
| 187 |
|---|---|
|
| 188 |
| trainable parameters | all 4.2B (426 tensors) |
|
| 189 |
| optimizer | `torch.optim.AdamW` applied directly to the bf16 parameters, no FP32 master copy; betas 0.9 / 0.95, no weight decay |
|
|
|
|
| 195 |
schedule, only the optimizer changed), AdamW on the bf16 parameters beat AdamW with FP32 master weights by 3.3 held-out points and
|
| 196 |
0.072 nats (0.791 against 0.758 held-out accuracy), and by 7 points on nine knowledge tasks. The master copy lets every small update
|
| 197 |
through and moves the weights further from the base model; without it, updates below the bf16 resolution round away and more of
|
| 198 |
+
the base model's knowledge is kept.
|
| 199 |
+
|
| 200 |
+
**Stage 2 (v2).** A LoRA of rank 64 (alpha 128) on the attention and MLP weights of v1, trained with cross-entropy on the slot
|
| 201 |
+
readout for 2 epochs over 29,356 rows in v1's plain state-first layout with isolated Score levels, then merged into the bf16
|
| 202 |
+
weights:
|
| 203 |
+
|
| 204 |
+
| source | rows | content |
|
| 205 |
+
|---|---|---|
|
| 206 |
+
| generated decision families | 8,000 | ten families (temporal and numeric decisions, subtle answer judgment, long policies, multi-hop lookup, abstention, probability, constrained trade-offs, safety judgment, paraphrase sensitivity, adversarial traps); the answers are computed by the generating code |
|
| 207 |
+
| questions over business documents, written by Qwen3.6-27B with thinking on | 11,356 | in two rounds, one realistic business document (up to 34 domains and 22 document kinds) plus three or four typed questions per writer call; each question was answered twice more by the same model in fresh contexts, with shuffled options and without the writer's answer, and kept only when both answers agreed with the writer's (89% and 91% kept) |
|
| 208 |
+
| human-labelled public sets (training halves) | 3,300 | MMLU, ARC, CommonsenseQA, BoolQ, MNLI, SNLI, Banking77, RACE, OpenBookQA, LogiQA 2, MedQA, Winogrande |
|
| 209 |
+
| replay of mixture v2 | 6,700 | 100 rows from the training half of each of the 67 in-task regression tasks |
|
| 210 |
+
|
| 211 |
+
| stage 2 | |
|
| 212 |
+
|---|---|
|
| 213 |
+
| trainable parameters | LoRA rank 64, alpha 128, on the attention and MLP projections; merged after training |
|
| 214 |
+
| schedule | learning rate 1e-4, 5% warm-up then cosine, 1,517 steps of 65,536 tokens (2 epochs), seed 0 |
|
| 215 |
+
| hardware | one NVIDIA B300, 87 minutes |
|
| 216 |
+
|
| 217 |
+
No JevBench item and no Decision Index item was used for training, for writing the generators or the document questions, for
|
| 218 |
+
selecting the checkpoint, or for the temperature. The ten generated families and the skill list of the document questions were
|
| 219 |
+
written from the family names that JevBench publishes for its sealed set, not from its items. Every training row was checked
|
| 220 |
+
against every evaluation file used for selection and against the evaluation half of all 95 regression tasks: there is no exact
|
| 221 |
+
state-and-question overlap. The held-out sets used for selection are generated families from held-out templates and document
|
| 222 |
+
questions from business domains that are not in the training data.
|
| 223 |
+
|
| 224 |
+
**Temperature.** 1.935, fitted by NLL (all rows pooled) on the in-task half of the public regression set without Banking77,
|
| 225 |
+
CLINC-OOS, MMLU, ARC, Winogrande and HellaSwag: 61 tasks, 102,804 rows. Fitted on all 67 in-task tasks the value is 1.942. v1's
|
| 226 |
+
temperature (1.05) was fitted on the 67 in-task tasks, the same set and method as decider-2b and decider-35b-a3b. No
|
| 227 |
+
reinforcement-learning stage was run on this model; the RL recipe of decider-2b v10 is documented in `docs/RL.md` of the GitHub
|
| 228 |
+
repository.
|
| 229 |
|
| 230 |
## Evaluation
|
| 231 |
|
| 232 |
+
All v2 numbers are at the stored temperature 1.935 through decider-ai 1.2.1, except where a paragraph says otherwise. Greedy
|
| 233 |
+
play and accuracy do not depend on the temperature; sampled play and calibration do, and those were measured again at 1.935.
|
| 234 |
+
|
| 235 |
**Public regression set**, rebuilt on this machine (95 tasks: 67 in-task, 28 held-out; large label sets sub-sampled to 10
|
| 236 |
+
options; one temperature per model fitted on in-task data). All four rows are the same rows. ECE is the expected calibration
|
| 237 |
error with 15 bins; intervals are 95% bootstrap intervals over tasks, paired.
|
| 238 |
|
| 239 |
| model | in-task acc / NLL / ECE (67 tasks) | held-out acc / NLL / ECE (28 tasks) |
|
| 240 |
|---|---|---|
|
| 241 |
| decider-2b v10, T=1.30 | 0.805 / 0.474 / 0.037 | 0.755 / 0.622 / 0.084 |
|
| 242 |
+
| decider-4b v1, T=1.05 | 0.834 / 0.404 / 0.027 | 0.788 / 0.558 / 0.071 |
|
| 243 |
+
| **decider-4b v2 (this repository), T=1.935** | **0.824 / 0.441 / 0.041** | **0.779 / 0.566 / 0.080** |
|
| 244 |
| decider-35b-a3b v1, T=1.08 | 0.855 / 0.357 / 0.026 | 0.810 / 0.497 / 0.069 |
|
| 245 |
|
| 246 |
+
Against v10: +1.9 in-task points (+1.0 to +2.8) and +2.4 held-out points (+1.1 to +3.7); NLL −0.032 (−0.054 to −0.011) and
|
| 247 |
+
−0.056 (−0.094 to −0.024); accuracy higher on 66 of the 95 tasks, equal on two, lower on 27 (hate-speech tweets −4.9 points,
|
| 248 |
+
emotion −3.6, ADE −2.9, abstention probe −2.3, SST-5 −2.1, HelpSteer3 preference −2.1, LIAR −2.1, the others under 2). The
|
| 249 |
+
largest gains are on knowledge and reasoning tasks: MedQA +13.4, MedMCQA +12.3, Winogrande +11.7, TruthfulQA +11.6, MMLU +11.3,
|
| 250 |
+
OpenBookQA +8.8, StrategyQA +8.0. Mean accuracy over nine knowledge tasks (MMLU, ARC, HellaSwag, MedQA, MedMCQA, Social IQa,
|
| 251 |
+
COPA, TruthfulQA, TREC): 0.797 (v1 0.801) against v10's 0.707 and the 35B's 0.862. Against the 35B: −3.1 in-task (−4.0 to −2.3)
|
| 252 |
+
and −3.2 held-out points (−4.5 to −1.8), lower on 85 of 95 tasks and higher on 7; the largest gaps are MedQA −17.7, HelpSteer3
|
| 253 |
+
preference −16.6, MedMCQA −11.9, StrategyQA −10.8, TruthfulQA −10.0.
|
| 254 |
|
| 255 |
<details>
|
| 256 |
<summary><b>Per-task accuracy / ECE on the 28 held-out datasets, decider-2b v10, this model, decider-35b-a3b</b></summary>
|
| 257 |
|
| 258 |
+
| task | decider-2b v10 | decider-4b v2 | decider-35b-a3b |
|
| 259 |
|---|---|---|---|
|
| 260 |
+
| abstain_probe | 0.606 / 0.134 | 0.582 / 0.133 | 0.622 / 0.085 |
|
| 261 |
+
| ade | 0.817 / 0.038 | 0.789 / 0.107 | 0.837 / 0.035 |
|
| 262 |
+
| arena_pref | 0.483 / 0.189 | 0.503 / 0.218 | 0.521 / 0.121 |
|
| 263 |
+
| bbc_news | 0.927 / 0.013 | 0.951 / 0.068 | 0.944 / 0.027 |
|
| 264 |
+
| cb | 0.857 / 0.093 | 0.839 / 0.118 | 0.893 / 0.084 |
|
| 265 |
+
| cr_reviews | 0.903 / 0.031 | 0.898 / 0.046 | 0.914 / 0.033 |
|
| 266 |
+
| dbpedia_l2 | 0.950 / 0.018 | 0.951 / 0.017 | 0.961 / 0.010 |
|
| 267 |
+
| dbpedia_l3 | 0.987 / 0.005 | 0.991 / 0.012 | 0.992 / 0.004 |
|
| 268 |
+
| dolly_category | 0.299 / 0.203 | 0.374 / 0.142 | 0.354 / 0.098 |
|
| 269 |
+
| fin_phrasebank | 0.694 / 0.042 | 0.699 / 0.077 | 0.759 / 0.110 |
|
| 270 |
+
| fin_sentiment | 0.793 / 0.058 | 0.826 / 0.051 | 0.839 / 0.136 |
|
| 271 |
+
| hermes_tools | 0.723 / 0.208 | 0.737 / 0.124 | 0.799 / 0.085 |
|
| 272 |
+
| hwu64 | 0.961 / 0.030 | 0.963 / 0.037 | 0.975 / 0.022 |
|
| 273 |
+
| massive_scenario | 0.756 / 0.041 | 0.793 / 0.052 | 0.799 / 0.027 |
|
| 274 |
+
| offtopic_probe | 0.841 / 0.027 | 0.823 / 0.043 | 0.870 / 0.038 |
|
| 275 |
+
| paws | 0.724 / 0.145 | 0.794 / 0.124 | 0.729 / 0.169 |
|
| 276 |
+
| pubmedqa | 0.756 / 0.085 | 0.758 / 0.055 | 0.820 / 0.078 |
|
| 277 |
+
| quality | 0.494 / 0.233 | 0.561 / 0.179 | 0.632 / 0.096 |
|
| 278 |
+
| quality_full | 0.508 / 0.198 | 0.505 / 0.188 | 0.565 / 0.112 |
|
| 279 |
+
| reward_bench | 0.819 / 0.045 | 0.853 / 0.032 | 0.919 / 0.024 |
|
| 280 |
+
| sciq | 0.982 / 0.024 | 0.991 / 0.021 | 0.993 / 0.011 |
|
| 281 |
+
| social_iqa | 0.708 / 0.077 | 0.759 / 0.062 | 0.823 / 0.025 |
|
| 282 |
+
| strategyqa | 0.552 / 0.138 | 0.632 / 0.157 | 0.739 / 0.036 |
|
| 283 |
+
| student_questions | 0.925 / 0.045 | 0.940 / 0.052 | 0.954 / 0.090 |
|
| 284 |
+
| trec | 0.784 / 0.066 | 0.842 / 0.027 | 0.832 / 0.160 |
|
| 285 |
+
| truthfulqa | 0.537 / 0.090 | 0.654 / 0.063 | 0.754 / 0.068 |
|
| 286 |
+
| tweet_irony | 0.795 / 0.052 | 0.827 / 0.027 | 0.861 / 0.129 |
|
| 287 |
+
| xstory_cloze | 0.962 / 0.017 | 0.971 / 0.017 | 0.995 / 0.016 |
|
| 288 |
|
| 289 |
</details>
|
| 290 |
|
| 291 |
**On the same rows as decider-2b v10 and decider-35b-a3b.** Every row below is scored by all three models on identical inputs
|
| 292 |
and seeds. Intervals are 95% paired bootstrap intervals (rows for the fixtures, boards for the games, task-seed pairs for the
|
| 293 |
+
browser). The table under [Changes from v1](#changes-from-v1) has v1 on the same rows.
|
| 294 |
|
| 295 |
+
| | decider-2b v10 | **decider-4b v2** | decider-35b-a3b | 4B minus 2B | 4B minus 35B |
|
| 296 |
|---|---|---|---|---|---|
|
| 297 |
+
| 847 in-task validation rows, accuracy / NLL | 83.2% / 0.444 | 85.0% / 0.419 | 90.0% / 0.329 | +1.8 (−0.5 to +3.9) | −5.0 (−7.1 to −2.8) |
|
| 298 |
+
| OpenJev, 5,252 rows, accuracy / NLL | 63.3% / 0.916 | 66.7% / 0.789 | 68.3% / 0.752 | +3.5 (+2.2 to +4.7) | −1.6 (−2.8 to −0.3) |
|
| 299 |
+
| Mind2Web element and action choice, 1,770 rows | 82.7% / 0.543 | 87.4% / 0.393 | 89.6% / 0.316 | +4.8 (+3.1 to +6.4) | −2.2 (−3.7 to −0.6) |
|
| 300 |
+
| TypeSafe workflow decisions, 102 rows, accuracy / NLL | 80.4% / 0.585 | 86.3% / 0.410 | 86.3% / 0.342 | +5.9 (−2.9 to +14.7) | 0.0 (−5.9 to +4.9) |
|
| 301 |
+
| Bespoke's public suite, 13 subsets, macro / micro | 0.704 / 0.711 | 0.773 / 0.781 | 0.774 / 0.787 | | |
|
| 302 |
+
| JevBench public items, easy / standard / hard accuracy | 1.000 / 0.889 / 0.459 | 1.000 / 0.986 / 0.676 | 1.000 / 0.972 / 0.676 | | |
|
| 303 |
+
| live MiniWoB++ click tasks, 22 tasks x 8 seeds, greedy play | 90.9% | 92.6% | 97.2% | +1.7 (−4.0 to +7.4) | −4.5 (−8.0 to −1.7) |
|
| 304 |
+
| the same, 6 tasks v10 never used for reward, greedy | 91.7% | 81.2% | 97.9% | −10.4 (−22.9 to +2.1) | −16.7 (−27.1 to −6.2) |
|
| 305 |
+
| live MiniWoB++ click tasks, sampled play | 93.2% | 88.1% | 86.4% | −5.1 (−10.8 to +0.6) | +1.7 (−3.4 to +6.8) |
|
| 306 |
+
| the same, 6 held-out tasks, sampled | 91.7% | 75.0% | 79.2% | −16.7 (−31.2 to −4.2) | −4.2 (−16.7 to +8.3) |
|
| 307 |
+
| zero-shot games, win rate, sampled play (234 boards) | 23.7% | 22.4% | 24.1% | −1.3 (−4.2 to +1.5) | −1.7 (−3.7 to +0.2) |
|
| 308 |
+
| zero-shot games, greedy play | 26.5% | 27.8% | 37.2% | +1.3 (−4.3 to +6.8) | −9.4 (−15.0 to −3.8) |
|
| 309 |
+
| bag-draw games alone, sampled | 41.4% | 37.9% | 41.8% | −3.5 (−9.0 to +2.0) | −3.9 (−8.6 to +0.8) |
|
| 310 |
+
|
| 311 |
+
On the two fixtures whose rows are in neither model's training data (TypeSafe, OpenJev) v2 is above the 2B (OpenJev +3.5, interval
|
| 312 |
+
excludes zero; TypeSafe +5.9, interval includes zero) and on TypeSafe level with the 35B. Stage 2 contains teacher-written and
|
| 313 |
+
human-labelled judgment rows, not TypeSafe or OpenJev rows. The browser rows show the missing RL stage: greedy play is level
|
| 314 |
+
with v10 over all tasks and 10 points below it on the six tasks that v10's RL never rewarded (interval includes zero), where the
|
| 315 |
+
4B's weakest tasks are focus-text-2 (0.375) and click-collapsible-2 (0.5). On the bag-draw games v1 won about 15 points more
|
| 316 |
+
often than either other model in sampled play; v2 does not (37.9% against 41.4% and 41.8%). On tic-tac-toe, the slippery grid
|
| 317 |
+
and minesweeper every model is near the random floor.
|
| 318 |
|
| 319 |
**Ten text games, zero-shot** (`decider.games.play`, five episodes per game, greedy, eager; the 2B was trained on the first
|
| 320 |
+
four, the 4B and the 35B on none): Pong −21 (teacher 8, 2B 8, 35B −21), Breakout 12 (22, 22, 6), CliffWalking −60 (teacher −13,
|
| 321 |
2B −13, 35B −1,248), MiniGrid-Empty 0 (teacher 0.96, both others 0), Freeway 1 (teacher 5, 2B 0, 35B 1), FrozenLake 0 (teacher 1,
|
| 322 |
+
others 0), Blackjack −0.6 (teacher −0.6, 2B −1, 35B −0.6), MiniGrid-LavaGap 0, MiniGrid-DoorKey 0 (teacher 0), BabyAI-GoTo 0.35
|
| 323 |
+
(teacher 0.34, 2B 0, 35B 0.19). v1 reached the teacher on CliffWalking (−13) and read 0.54 on BabyAI-GoTo; v2 keeps neither.
|
| 324 |
+
Neither version learns Pong from the text state. Greedy play takes the most probable option, so these results do not depend on
|
| 325 |
+
the temperature.
|
| 326 |
|
| 327 |
**JevBench public items** (231 items of [Benchmark Heaven](https://benchmarkheaven.com/jev-models); argmax over the exact
|
| 328 |
+
label set with the request the harness's TypeSafe adapter builds). The items were read once for v2, after selection, at the
|
| 329 |
+
candidate temperature 1.719; the accuracies do not depend on the temperature, and the calibration numbers below are recomputed
|
| 330 |
+
at 1.935 from the stored probabilities. Jev 1.13.0 is at 1.000 / 0.986 / 0.730, SemIf (also a Qwen3.5-4B) at 1.000 / 0.986 /
|
| 331 |
+
0.613, decider-35b-a3b at 1.000 / 0.972 / 0.676 on the same items. The one standard-tier family with misses is adequacy (0.92).
|
| 332 |
+
Hard-tier families (v1 as first published in brackets): trap 1.00 (1.00), hard routing 1.00 (1.00), adversarial 1.00 (0.67), probability 0.90 (0.60),
|
| 333 |
+
ambiguous 0.86 (0.29), multi-hop 0.72 (0.78), trade-off 0.67 (0.33), long policy 0.63 (0.47), judge-hard 0.47 (0.47),
|
| 334 |
+
temporal-numeric 0.27 (0.13). Top-label ECE is 0.008 / 0.085 / 0.071 by tier (v1, read again on 2026-09-24: 0.001 / 0.047 / 0.288;
|
| 335 |
+
the 35B's hard tier 0.151). On the hard tier the mean confidence is 0.74 at accuracy 0.68; 31% of hard items are answered at confidence 0.9 or more,
|
| 336 |
+
with accuracy 0.94 on them (v1: 50% at 0.73). The 18 Score items were answered with isolated levels, whose per-level values are
|
| 337 |
+
not stored, so they keep their T 1.719 probabilities inside these ECE values. The public hard tier is 111 items (95% interval
|
| 338 |
+
about ±9 points), and the gain over v1 there (+12.6) is larger than the gain on our own held-out hard sets.
|
| 339 |
|
| 340 |
**Bespoke's public suite** (13 human-labelled subsets, 3,880 records in Jev's wire format, answered through `system_one` as
|
| 341 |
shipped). Nimble-9B and Jev 1.13.0 numbers are copied from Bespoke's report.
|
| 342 |
|
| 343 |
+
| subset (type) | decider-2b v10 | decider-4b v2 | decider-35b-a3b | Nimble-9B | Jev 1.13.0 |
|
| 344 |
|---|---|---|---|---|---|
|
| 345 |
+
| vitaminc-dev (choice) | 0.639 | 0.778 | 0.795 | 0.766 | 0.801 |
|
| 346 |
+
| massive-en-US (choice; trained) | 0.823 | 0.869 | 0.880 | 0.869 | 0.874 |
|
| 347 |
+
| massive-de-DE (choice, German) | 0.797 | 0.837 | 0.869 | 0.834 | 0.869 |
|
| 348 |
+
| boolq (noul; trained) | 0.803 | 0.860 | 0.887 | 0.860 | 0.897 |
|
| 349 |
+
| squad2 (noul) | 0.776 | 0.793 | 0.749 | 0.806 | 0.829 |
|
| 350 |
+
| paws (noul; trained) | 0.720 | 0.832 | 0.768 | 0.828 | 0.892 |
|
| 351 |
+
| multinli (choice; trained) | 0.856 | 0.926 | 0.910 | 0.853 | 0.829 |
|
| 352 |
+
| civil_comments (noul; trained) | 0.840 | 0.857 | 0.907 | 0.703 | 0.810 |
|
| 353 |
+
| aegis2 (noul) | 0.728 | 0.812 | 0.808 | 0.812 | 0.804 |
|
| 354 |
| helpsteer2 (score; trained) | 0.426 | 0.466 | 0.478 | 0.390 | 0.341 |
|
| 355 |
+
| summeval-relevance (score) | 0.354 | 0.463 | 0.483 | 0.492 | 0.350 |
|
| 356 |
+
| summeval-consistency (score) | 0.660 | 0.826 | 0.757 | 0.757 | 0.812 |
|
| 357 |
+
| pubmedqa (choice; trained) | 0.724 | 0.724 | 0.768 | 0.756 | 0.772 |
|
| 358 |
+
| **macro / micro** | 0.704 / 0.711 | **0.773 / 0.781** | 0.774 / 0.787 | 0.748 / 0.759 | 0.760 / 0.773 |
|
| 359 |
+
|
| 360 |
+
On the six subsets whose training split is not in the mixture the macro accuracy is 0.751 (v1 0.731, 2B 0.659, 35B 0.744). v2 is
|
| 361 |
+
1.3 points above Jev 1.13.0 and 2.5 above Nimble-9B on the average (v1: 0.757). It is still behind Jev where a claim has to be
|
| 362 |
+
checked against evidence that nearly matches it (PAWS 0.832 against 0.892, VitaminC 0.778 against 0.801) and on SQuAD2
|
| 363 |
+
answerability (0.793 against 0.829), where it is now 1.7 points above the 2B (v1 was 7 points under it).
|
| 364 |
+
|
| 365 |
+
**Behaviour probes** (teacher-labelled, same probes as the other releases; v1 in brackets): generic-versus-specific bucket choice
|
| 366 |
+
0.95 / 1.00 (1.00 / 1.00), catch-all when nothing fits 0.95 (0.90; 35B 0.95), abstention battery 8 of 8 (7 of 8); model-router
|
| 367 |
+
tier 0.935 (0.968) and needs-live-data 0.839 (0.871); command-risk classification 0.911 (0.889) with no destructive command
|
| 368 |
+
called safe (35B 0.933), touches-outside-project 0.933 (0.956); browser-agent element and action choice 0.938 / 0.938 (0.875 /
|
| 369 |
+
0.875; 35B 0.938). Scoring a Score level alone against scoring it with its neighbours changes accuracy by at most 2.0 points on
|
| 370 |
+
five rating datasets, and the per-level fits sum to between 0.92 and 1.00 (this probe reads the raw logits, T=1).
|
| 371 |
|
| 372 |
## Calibration
|
| 373 |
|
| 374 |
+
The stored temperature 1.935 was fitted on 61 of the 67 in-task regression tasks (see Training). On the regression set v2 is less
|
| 375 |
+
well calibrated than v1 and the 35B (ECE 0.041 / 0.080 against v1's 0.027 / 0.071 and the 35B's 0.026 / 0.069), with per-task
|
| 376 |
+
exceptions: hate-speech tweets 0.349 (in-task), Arena preferences 0.218, QuALITY (full) 0.188, QuALITY 0.179, StrategyQA 0.157,
|
| 377 |
+
Dolly categories 0.142, abstention probe 0.133; the in-task preference tasks HH-RLHF (0.113) and SHP (0.111) are also above 0.1.
|
| 378 |
+
On the five rating datasets of the Score-level probe, which reads the raw logits (T=1) and scores all levels together, the ECE
|
| 379 |
+
is 0.13 to 0.27 (v1 0.05 to 0.09 in the same probe); these sets were not measured at the served temperatures. One temperature
|
| 380 |
+
does not fit every task type. Outside the regression set v2 is better calibrated than v1 on most sets:
|
| 381 |
|
| 382 |
+
| set | measure | decider-2b v10 | decider-4b v1 (read again 2026-09-24) | decider-4b v2 | decider-35b-a3b |
|
| 383 |
+
|---|---|---|---|---|---|
|
| 384 |
+
| JevBench hard tier, 111 items | top-label ECE | 0.304 | 0.288 | 0.071 | 0.151 |
|
| 385 |
+
| TypeSafe, 102 rows | 10-bin ECE / mean total variation to the frontier reference | 0.091 / 0.242 | 0.124 / 0.232 | 0.072 / 0.196 | 0.065 / 0.165 |
|
| 386 |
+
| OpenJev, 5,252 rows | 10-bin ECE | 0.150 | 0.158 | 0.131 | 0.049 |
|
| 387 |
+
| 847 in-task validation rows | 10-bin ECE | | 0.037 | 0.031 | |
|
| 388 |
+
| Mind2Web, 1,770 rows | 10-bin ECE | | 0.016 | 0.051 | |
|
| 389 |
+
| Decision Index 4,000-request sample, 33 benchmarks | benchmark-weighted ECE (the site's definition) | 0.093 | 0.086 | 0.074 | 0.027 |
|
| 390 |
+
| the same | share of all answers given at 95% or more confidence and wrong | 0.010 | 0.022 | 0.012 | 0.005 |
|
| 391 |
+
| the same | mean confidence against accuracy | 0.658 / 0.566 | 0.722 / 0.637 | 0.690 / 0.637 | 0.684 / 0.690 |
|
| 392 |
+
| the same | sample index (about 4 points under a full run) | 42.3 | 48.5 | 48.3 | 50.4 |
|
| 393 |
+
|
| 394 |
+
The Decision Index rows are a readout of the 4,000-request sample (about 88 cases per benchmark) through the public server,
|
| 395 |
+
computed with the site's definition (benchmark-weighted pooled bins, ten bins; the same computation gives 0.027 on the 35B
|
| 396 |
+
against the site's published 0.031). v2 was read once at the candidate temperature 1.719 (ECE 0.090, sample index 48.3); the
|
| 397 |
+
chosen answers do not change with the temperature, and the calibration rows above are recomputed at 1.935 from the stored
|
| 398 |
+
probabilities. The JevBench hard-tier value is recomputed the same way, except its 6 Score items, which keep their T 1.719
|
| 399 |
+
probabilities. The sample index was not recomputed. Nothing was fitted on index rows. v2's confidence exceeds its accuracy by
|
| 400 |
+
0.053 on that sample (v1 0.085, the 2B 0.092; the 35B has no gap). The gap is per-benchmark heterogeneity, not a global scale: a
|
| 401 |
+
single temperature that removes it on the knowledge benchmarks would make the wide label sets underconfident. If you route on
|
| 402 |
+
confidence, calibrate on your own labels.
|
| 403 |
|
| 404 |
## Speed
|
| 405 |
|
| 406 |
+
v2 has the same architecture and size as v1, so it runs at v1's speed. These timings were taken with the same weights in the
|
| 407 |
+
candidate readout session of 2026-09-24 (the server was configured with the candidate temperature 1.719; the temperature does
|
| 408 |
+
not change the amount of computation). In one session on one unshared NVIDIA B300 (bf16), both models measured one after the
|
| 409 |
+
other: 34.6 ms (v1 32.4 ms) median per decision over 200 game-state decisions of 156 tokens median,
|
| 410 |
+
batch of one, eager PyTorch without CUDA graphs or `torch.compile`, timed around the forward pass with `torch.cuda.synchronize()`.
|
| 411 |
+
The eager path is launch-bound, so host load changes it: v1's first measurement was 24.7 ms (10th to 90th percentile 24.6 to
|
| 412 |
+
43.5 ms), with decider-2b at 17.9 ms and decider-35b-a3b at 41.4 ms on the same decisions and method. With the helper's CUDA
|
| 413 |
+
graphs and `torch.compile`, one support-ticket request (228 tokens, 3 questions) takes 5.2 ms (FP8 5.0 ms); a batch of 32 such
|
| 414 |
+
states takes 81.5 ms, 1,178 decisions per second (FP8 71.2 ms, 1,349 per second). The HTTP server (`/decide`, bf16) answers 72.8
|
| 415 |
+
requests per second at a median of 13.3 ms with one client and 190 requests per second with 64 clients.
|
| 416 |
|
| 417 |
## Limitations
|
| 418 |
|
| 419 |
* No reinforcement-learning stage: stated beliefs about action outcomes were not trained against exact laws, and on live
|
| 420 |
+
browser tasks the model is 10 points below decider-2b v10 on the six held-out tasks in greedy play (81% against 92%, interval
|
| 421 |
+
includes zero) and 17 points below it in sampled play (75% against 92%).
|
| 422 |
+
* Sampled play is worse than v1's: bag-draw games 37.9% against 56.6% wins, zero-shot games 22.4% against 27.8%, sampled browser
|
| 423 |
+
play −2.8 points; CliffWalking −60 against −13. Pin revision `v1` if you depend on these (see Changes from v1).
|
| 424 |
+
* Less calibrated than v1 on the regression set (in-task ECE 0.041 against 0.027), on Mind2Web (0.051 against 0.016) and on
|
| 425 |
+
rating tasks in the Score-level probe (ECE 0.13 to 0.27 on the five rating sets at T=1); still overconfident outside the regression set: OpenJev ECE 0.13,
|
| 426 |
+
Decision Index sample ECE 0.074 where the 35B reads 0.027. On the Decision Index sample 1.2% of all answers are given at 95% or
|
| 427 |
+
more confidence and are wrong, against 0.5% for the 35B. Calibration is measured on public datasets, not on your traffic.
|
| 428 |
+
* About 1 point under v1 on everyday tasks (regression set, validation rows, Mind2Web) and lower than v1 on the model-router and
|
| 429 |
+
command-scope probes.
|
| 430 |
+
* Below the 35B on 85 of 95 regression tasks by 3.1 / 3.2 points and on three fixtures by 1.6 to 5.0 points; level on TypeSafe
|
| 431 |
+
and on the JevBench hard tier. The largest gaps are on MedQA, MedMCQA, StrategyQA, TruthfulQA and preference judgments.
|
| 432 |
+
* The abstention probe is 2.4 points under the 2B (0.582 against 0.606), with ECE 0.133.
|
| 433 |
+
* The JevBench public hard tier is 111 items; v2's gain there (+12.6 points over v1) is larger than its gain on our own held-out
|
| 434 |
+
hard sets, where it tied an earlier candidate. Do not read it as a gain of that size on hard items in general.
|
| 435 |
+
* The stage-2 LoRA was trained only in the plain state-first layout. The schema-first layout (the server's opt-in schema cache)
|
| 436 |
+
was not measured on v2, and `decider_config.json` does not mark v2 as trained for it (`schema_first_trained: false`), so
|
| 437 |
+
`DECIDER_SCHEMA_CACHE=1` does not turn the schema cache on for this model.
|
| 438 |
+
* Mixture v2's 26 additional public datasets and ten programmatic families, and stage 2's generators and document questions, are
|
| 439 |
+
described above but their builders are not in the public package; `scripts/train.sh full` reproduces the 60% of stage 1's data
|
| 440 |
+
that is the public mixture. On the held-out variants of mixture v2's programmatic families v1 was at 0.635 mean accuracy (logs
|
| 441 |
+
0.28, plans 0.44, probability 0.43, code 0.88, policy 0.99); this was not measured on v2.
|
| 442 |
* English is the main language; the multilingual rows (XNLI, PAWS-X, MASSIVE, Belebele, XCOPA) are a small share of the data
|
| 443 |
and were not measured beyond the mixture-v2 evaluation set.
|
| 444 |
* Everything else in the decider-2b card's limitations (packed questions see each other, long JSON arrays by position, full
|
|
|
|
| 449 |
|
| 450 |
| version | what changed |
|
| 451 |
|---|---|
|
| 452 |
+
| **v2** (2026-09-24, these weights) | v1 + a merged LoRA (rank 64, attention and MLP, 2 epochs, 29,356 rows: generated decision families, document questions written by Qwen3.6-27B and kept when two independent answers agreed, human-labelled public sets, replay of mixture v2); temperature 1.935; plain layout, checked with decider-ai 1.0.2, 1.1.4, 1.2.1 and 1.2.2. Better on hard judgments, TypeSafe, OpenJev and Bespoke's suite; worse on sampled play, some text games and by about 1 point on everyday tasks |
|
| 453 |
+
| v1 (2026-09-22, Hub tag `v1`) | first release: one pass over mixture v2 on Qwen3.5-4B-Base with AdamW on bf16 parameters, no RL stage; temperature 1.05 |
|
| 454 |
|
| 455 |
The GitHub repository's [docs/CHANGELOG.md](https://github.com/Mapika/decider/blob/main/docs/CHANGELOG.md) lists every
|
| 456 |
decider release.
|
|
|
|
| 458 |
## Reproduction
|
| 459 |
|
| 460 |
Code, data registry, training and evaluation scripts and the per-version history: https://github.com/Mapika/decider
|
| 461 |
+
(`docs/HISTORY.md`, section "decider-4b"). Stage 1 was trained with the data-parallel trainer of the architecture A/B study
|
| 462 |
+
(`arch_ab/train_dp_optvar.py` in the research repository, optimizer variant `bf16`); stage 2 with a LoRA trainer in the research
|
| 463 |
+
repository. Both were evaluated with the public `decider.evaluate` and the head-to-head tools, and uploaded with
|
| 464 |
+
`scripts/upload_hf.py`. `eval_results.json` in this repository has the per-task regression metrics at T 1.935, the fixtures, JevBench, Bespoke's
|
| 465 |
+
suite, the games, the browser, the text games, the Decision Index calibration, the behaviour probes and speed, and the paired
|
| 466 |
+
comparisons with v1 (regression set, fixtures, JevBench, games, browser).
|
| 467 |
|
| 468 |
**Independence.** This is an independent project. It is not affiliated with or endorsed by TypeSafe AI. It is an open
|
| 469 |
reproduction of the "System One" model class (TypeSafe AI's Jev); nothing was distilled from Jev. The training data is public
|
| 470 |
+
datasets, programmatically generated rows with verifiable gold, and data written or labelled by local Qwen3.5-27B and
|
| 471 |
+
Qwen3.6-27B models. License: Apache 2.0.
|
decider/batching.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Batch planning for the server's queue: which queued rows share one forward.
|
| 2 |
+
|
| 3 |
+
Pure python, no torch, no engine: `plan_batches` takes the row lengths and two callables that describe the engine's
|
| 4 |
+
bucket grid, and returns the groups to run. `decider.serve.batcher` calls it once per collection.
|
| 5 |
+
|
| 6 |
+
Cost model. A forward of B rows padded to length T costs `overhead + B * T` token-units: `overhead` is the fixed cost of
|
| 7 |
+
one forward (launch, replay, the slot gather and the device-to-host copy) expressed as the number of padded tokens that
|
| 8 |
+
take the same time, and `B * T` is the padded token work. Two rows of different lengths are therefore worth merging
|
| 9 |
+
into the longer row's bucket exactly when the padding they add is cheaper than a second forward's overhead.
|
| 10 |
+
`DEFAULT_MERGE_OVERHEAD_TOKENS` is measured on decider-2b (docs/SERVING.md, section on the batching policy); the server
|
| 11 |
+
reads `DECIDER_MERGE_OVERHEAD_TOKENS` over it.
|
| 12 |
+
|
| 13 |
+
The partition is exact, not greedy. Rows are sorted by padded length descending (stable, so rows of the same bucket keep
|
| 14 |
+
their arrival order) and split into consecutive groups; each group runs at the bucket of its longest member, so a group
|
| 15 |
+
starting at position k costs `overhead + g * T[k]`. A dynamic program over the sorted sequence takes the cheapest split,
|
| 16 |
+
subject to `g <= min(max_batch, max_rows(T))`, with ties going to the larger group. The per-bucket grouping the server
|
| 17 |
+
did before is one of the partitions the program may choose (rows of equal length are adjacent in the sorted order), so
|
| 18 |
+
the planned cost is never above it, and with `overhead = 0` the plan is exactly that grouping.
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
DEFAULT_MERGE_OVERHEAD_TOKENS = 512
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def group_cap(T, max_rows, max_batch):
|
| 25 |
+
"""Rows one forward may take at padded length T: the engine's widest captured batch bucket, and the server's cap."""
|
| 26 |
+
return max(1, min(int(max_batch), int(max_rows(T))))
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def batch_cost(size, T, overhead=DEFAULT_MERGE_OVERHEAD_TOKENS):
|
| 30 |
+
"""Cost of one forward of `size` rows padded to `T`, in token-units."""
|
| 31 |
+
return overhead + size * T
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def plan_cost(groups, overhead=DEFAULT_MERGE_OVERHEAD_TOKENS):
|
| 35 |
+
"""Cost of a plan: the sum over its forwards."""
|
| 36 |
+
return sum(batch_cost(len(idx), T, overhead) for T, idx in groups)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def per_bucket_groups(lengths, pad_len, max_rows, max_batch):
|
| 40 |
+
"""The grouping of 1.1.0: rows of the same padded length, chunked to the cap. The baseline `plan_batches` improves on."""
|
| 41 |
+
return _exact_bucket(list(range(len(lengths))), [pad_len(n) for n in lengths], max_rows, max_batch)
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def _exact_bucket(idx, pads, max_rows, max_batch):
|
| 45 |
+
buckets = {}
|
| 46 |
+
for i in idx:
|
| 47 |
+
buckets.setdefault(pads[i], []).append(i)
|
| 48 |
+
out = []
|
| 49 |
+
for T, members in buckets.items():
|
| 50 |
+
cap = group_cap(T, max_rows, max_batch)
|
| 51 |
+
for k in range(0, len(members), cap):
|
| 52 |
+
out.append((T, members[k:k + cap]))
|
| 53 |
+
return out
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def plan_batches(lengths, pad_len, max_rows, max_batch, overhead=DEFAULT_MERGE_OVERHEAD_TOKENS, mergeable=None):
|
| 57 |
+
"""Partition queued rows into forwards.
|
| 58 |
+
|
| 59 |
+
lengths: token count of every queued row, in arrival order.
|
| 60 |
+
pad_len(n): the engine's padded length for a row of n tokens (`EngineV2.pad_len`).
|
| 61 |
+
max_rows(T):rows the engine runs in one forward at padded length T (`EngineV2.max_rows`).
|
| 62 |
+
max_batch: the server's own cap (`DECIDER_MAX_BATCH`).
|
| 63 |
+
overhead: fixed cost of a forward in token-units (see the module docstring).
|
| 64 |
+
mergeable(n): False for a row that must not be padded into another row's bucket. Rows above the last captured
|
| 65 |
+
length bucket run eager at a request-specific shape, so they are grouped by exact length as before.
|
| 66 |
+
|
| 67 |
+
-> [(padded length, [row indices]), ...]. Every row appears in exactly one group; a group's padded length is at
|
| 68 |
+
least every member's own padded length; a group holds at most `min(max_batch, max_rows(T))` rows.
|
| 69 |
+
"""
|
| 70 |
+
n = len(lengths)
|
| 71 |
+
if n == 0:
|
| 72 |
+
return []
|
| 73 |
+
pads = [pad_len(x) for x in lengths]
|
| 74 |
+
merge = [True] * n if mergeable is None else [bool(mergeable(x)) for x in lengths]
|
| 75 |
+
out = _exact_bucket([i for i in range(n) if not merge[i]], pads, max_rows, max_batch)
|
| 76 |
+
|
| 77 |
+
order = sorted((i for i in range(n) if merge[i]), key=lambda i: -pads[i]) # stable: equal buckets keep arrival order
|
| 78 |
+
m = len(order)
|
| 79 |
+
dp = [0] * (m + 1) # dp[k]: cheapest cost of covering order[k:]
|
| 80 |
+
take = [0] * (m + 1)
|
| 81 |
+
for k in range(m - 1, -1, -1):
|
| 82 |
+
T = pads[order[k]]
|
| 83 |
+
cap = min(group_cap(T, max_rows, max_batch), m - k)
|
| 84 |
+
best, best_g = None, 1
|
| 85 |
+
for g in range(1, cap + 1):
|
| 86 |
+
c = overhead + g * T + dp[k + g]
|
| 87 |
+
if best is None or c <= best: # ties go to the larger group: same modelled cost, one fewer launch
|
| 88 |
+
best, best_g = c, g
|
| 89 |
+
dp[k], take[k] = best, best_g
|
| 90 |
+
k = 0
|
| 91 |
+
while k < m:
|
| 92 |
+
g = take[k]
|
| 93 |
+
out.append((pads[order[k]], sorted(order[k:k + g]))) # inside a group, arrival order
|
| 94 |
+
k += g
|
| 95 |
+
return out
|
decider/engine.py
CHANGED
|
@@ -152,24 +152,16 @@ class Engine:
|
|
| 152 |
@torch.no_grad()
|
| 153 |
def score_shared(self, items, temperature=1.0, min_prefix=192):
|
| 154 |
"""Rows that start with the same tokens (one state, one question per row): run the shared prefix once, fork its
|
| 155 |
-
cache (attention KV + delta-net conv/recurrent states)
|
| 156 |
-
Same answers as score_items up to kernel round-off; cost ~ state + sum(questions) instead of n * state.
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
|
|
|
| 161 |
return self.score_items(items, temperature)
|
| 162 |
self.stats["shared_prefix_calls"] = self.stats.get("shared_prefix_calls", 0) + 1
|
| 163 |
-
|
| 164 |
-
cache = self.core(input_ids=pre, use_cache=True).past_key_values
|
| 165 |
-
cache.reorder_cache(torch.zeros(n, dtype=torch.long, device=self.dev)) # fork: every row gets a copy of row 0
|
| 166 |
-
Ts = max(len(x) for x in ids) - lcp
|
| 167 |
-
suf = fill_ids([x[lcp:] for x in ids], n, Ts, self.tok.pad_token_id)
|
| 168 |
-
h = self.core(input_ids=suf.to(self.dev), past_key_values=cache, use_cache=True).last_hidden_state
|
| 169 |
-
rows = [b for b, it in enumerate(items) for _ in it["slots"]]; sl = [s - lcp for it in items for s in it["slots"]]
|
| 170 |
-
idx = torch.tensor([rows, sl], device=self.dev)
|
| 171 |
-
return read_slots(F.linear(h[idx[0], idx[1]], self.W).float()[:, None, :], list(range(len(rows))), [0] * len(rows),
|
| 172 |
-
[n for it in items for n in it["nopts"]], temperature, [len(it["slots"]) for it in items])
|
| 173 |
|
| 174 |
def warmup(self, shapes=((1, 128), (1, 256), (1, 384), (1, 512), (8, 256), (8, 512), (32, 256), (32, 512))):
|
| 175 |
t = time.time()
|
|
@@ -188,7 +180,9 @@ if __name__ == "__main__":
|
|
| 188 |
eng = Engine(path, **cfg); print("engine cfg", eng.cfg)
|
| 189 |
rng = random.Random(0)
|
| 190 |
exs = evals["support_tickets"][:64] + evals["clinc_oos"][:64] + evals["race"][:32]
|
| 191 |
-
|
|
|
|
|
|
|
| 192 |
# correctness vs eager masked forward (DecisionModel.slot_logits)
|
| 193 |
ref = []
|
| 194 |
with torch.no_grad():
|
|
@@ -202,7 +196,7 @@ if __name__ == "__main__":
|
|
| 202 |
print(f"warmup capture of 8 buckets: {eng.warmup():.1f}s; captures so far {eng.stats['graph_captures']}")
|
| 203 |
# latency: single real requests
|
| 204 |
for name, pool in [("support_tickets", exs[:64]), ("clinc_oos", exs[64:128]), ("race", exs[128:])]:
|
| 205 |
-
its = [build(e, eng.tok, rng) for e in pool]
|
| 206 |
ts = []
|
| 207 |
for it in its[:40]:
|
| 208 |
torch.cuda.synchronize(); t = time.time(); eng.score_items([it]); torch.cuda.synchronize(); ts.append(time.time() - t)
|
|
|
|
| 152 |
@torch.no_grad()
|
| 153 |
def score_shared(self, items, temperature=1.0, min_prefix=192):
|
| 154 |
"""Rows that start with the same tokens (one state, one question per row): run the shared prefix once, fork its
|
| 155 |
+
cache (attention KV + delta-net conv/recurrent states), and run only the question suffixes.
|
| 156 |
+
Same answers as score_items up to kernel round-off; cost ~ state + sum(questions) instead of n * state.
|
| 157 |
+
The fork is made in chunks that fit `DECIDER_SHARED_FORK_GB`, so the peak memory does not grow with the question
|
| 158 |
+
count; the implementation is decider.shared_prefix, shared with EngineV2."""
|
| 159 |
+
from decider import shared_prefix # imported here: decider.shared_prefix imports this module
|
| 160 |
+
out = shared_prefix.score_shared(self, items, temperature, min_prefix)
|
| 161 |
+
if out is None:
|
| 162 |
return self.score_items(items, temperature)
|
| 163 |
self.stats["shared_prefix_calls"] = self.stats.get("shared_prefix_calls", 0) + 1
|
| 164 |
+
return out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
def warmup(self, shapes=((1, 128), (1, 256), (1, 384), (1, 512), (8, 256), (8, 512), (32, 256), (32, 512))):
|
| 167 |
t = time.time()
|
|
|
|
| 180 |
eng = Engine(path, **cfg); print("engine cfg", eng.cfg)
|
| 181 |
rng = random.Random(0)
|
| 182 |
exs = evals["support_tickets"][:64] + evals["clinc_oos"][:64] + evals["race"][:32]
|
| 183 |
+
from decider.prompt import chat_for_model
|
| 184 |
+
chat = chat_for_model(path, eng.tok)
|
| 185 |
+
items = [build(e, eng.tok, rng, max_ctx_tokens=1536, chat=chat) for e in exs]
|
| 186 |
# correctness vs eager masked forward (DecisionModel.slot_logits)
|
| 187 |
ref = []
|
| 188 |
with torch.no_grad():
|
|
|
|
| 196 |
print(f"warmup capture of 8 buckets: {eng.warmup():.1f}s; captures so far {eng.stats['graph_captures']}")
|
| 197 |
# latency: single real requests
|
| 198 |
for name, pool in [("support_tickets", exs[:64]), ("clinc_oos", exs[64:128]), ("race", exs[128:])]:
|
| 199 |
+
its = [build(e, eng.tok, rng, chat=chat) for e in pool]
|
| 200 |
ts = []
|
| 201 |
for it in its[:40]:
|
| 202 |
torch.cuda.synchronize(); t = time.time(); eng.score_items([it]); torch.cuda.synchronize(); ts.append(time.time() - t)
|
decider/engine_v2.py
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Serving engine: every CUDA graph is keyed on (batch bucket, padded length bucket) only.
|
| 2 |
+
|
| 3 |
+
Difference from decider.engine.Engine (the library engine behind decider.infer.Decider):
|
| 4 |
+
* the full bucket grid is captured at start-up by `warmup()`, then `seal()` forbids any further capture, so no request
|
| 5 |
+
can ever pay a graph capture or a torch.compile;
|
| 6 |
+
* the length ladder reaches 8192 instead of 2048, so long rows replay a graph instead of running eager;
|
| 7 |
+
* a batch larger than the widest captured batch bucket for its length is split into captured chunks rather than
|
| 8 |
+
capturing a new shape; rows longer than the last bucket run eager in chunks of at most `token_budget` padded tokens;
|
| 9 |
+
* torch.compile and FP8 are off by default.
|
| 10 |
+
|
| 11 |
+
Numerics are the same as Engine: right padding + causal layers means padded positions never influence earlier slots, so
|
| 12 |
+
the answer for a row does not depend on which (B, T) bucket it was padded into, up to kernel reduction order.
|
| 13 |
+
|
| 14 |
+
The attention backend policy of decider.engine (cuDNN SDPA off) is applied in __init__, before compile and capture. It
|
| 15 |
+
is what makes `score_shared` (a suffix scored against a cached prefix) return the same answers as the full forward; see
|
| 16 |
+
docs/CHANGELOG.md 1.0.2 and tests/test_engine_v2_cuda.py.
|
| 17 |
+
"""
|
| 18 |
+
import time, torch, torch.nn.functional as F
|
| 19 |
+
from decider import shared_prefix
|
| 20 |
+
from decider.engine import read_slots, fill_ids, patch_conv, set_attention_backend_policy
|
| 21 |
+
from decider.model import DecisionModel
|
| 22 |
+
|
| 23 |
+
T_BUCKETS = [64, 128, 192, 256, 320, 384, 512, 640, 768, 1024, 1280, 1536, 2048, 3072, 4096, 6144, 8192]
|
| 24 |
+
B_BUCKETS = [1, 2, 4, 8, 16, 32]
|
| 25 |
+
TOKEN_BUDGET = 32768 # capture (B, T) only when B * T fits this; B = 1 is always captured
|
| 26 |
+
LONG_STEP = 1024 # rows longer than the last bucket: pad to a multiple of this and run eager
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
class EngineV2:
|
| 30 |
+
"""compile / fp8 default to False. `model` lets a test inject a stand-in DecisionModel instead of loading one."""
|
| 31 |
+
|
| 32 |
+
def __init__(self, path=None, device="cuda", dtype=torch.bfloat16, use_graphs=None, compile=False, fp8=False,
|
| 33 |
+
conv_patch=None, t_buckets=None, b_buckets=None, token_budget=TOKEN_BUDGET, max_ctx_tokens=32768,
|
| 34 |
+
model=None):
|
| 35 |
+
set_attention_backend_policy() # before compile and capture: captured graphs keep their backend
|
| 36 |
+
if conv_patch is None:
|
| 37 |
+
conv_patch = bool(compile) # the unrolled depthwise conv only pays off inside a compiled region
|
| 38 |
+
if str(device).startswith("mps"):
|
| 39 |
+
from decider.mps_ops import patch_mps # the Apple Silicon path of decider.infer.Decider
|
| 40 |
+
patch_mps()
|
| 41 |
+
elif conv_patch:
|
| 42 |
+
patch_conv()
|
| 43 |
+
self.m = model if model is not None else DecisionModel(path, dtype=dtype, grad_ckpt=False).to(device).eval()
|
| 44 |
+
self.tok = self.m.tok; self.dev = device; self.max_ctx = max_ctx_tokens
|
| 45 |
+
self.core = self.m.lm.model
|
| 46 |
+
self.W = self.m.lm.lm_head.weight[self.m.letters].detach().clone()
|
| 47 |
+
self.t_buckets = sorted(t_buckets or T_BUCKETS)
|
| 48 |
+
self.b_buckets = sorted(b_buckets or B_BUCKETS)
|
| 49 |
+
self.token_budget = int(token_budget)
|
| 50 |
+
self.use_graphs = (str(device).startswith("cuda") if use_graphs is None else bool(use_graphs))
|
| 51 |
+
self.cfg = dict(compile=compile, fp8=fp8, conv_patch=conv_patch, graphs=self.use_graphs,
|
| 52 |
+
t_buckets=self.t_buckets, b_buckets=self.b_buckets, token_budget=self.token_budget)
|
| 53 |
+
if fp8:
|
| 54 |
+
from decider.fp8 import convert_to_fp8
|
| 55 |
+
self.cfg["fp8_layers"] = convert_to_fp8(self.core)
|
| 56 |
+
if compile:
|
| 57 |
+
from torch import _dynamo # not `import torch._dynamo`: that rebinds `torch` locally
|
| 58 |
+
n = len(self.graph_shapes())
|
| 59 |
+
# one specialisation per captured shape, times the frames inside the model. Without the accumulated
|
| 60 |
+
# limits dynamo stops compiling part way through warm-up and silently leaves the rest eager, which with
|
| 61 |
+
# conv_patch on is slower than not compiling at all.
|
| 62 |
+
_dynamo.config.cache_size_limit = max(256, n + 16)
|
| 63 |
+
_dynamo.config.accumulated_cache_size_limit = max(1 << 16, 64 * n)
|
| 64 |
+
for k in ("accumulated_recompile_limit", "recompile_limit"):
|
| 65 |
+
if hasattr(_dynamo.config, k):
|
| 66 |
+
setattr(_dynamo.config, k, max(1 << 16, 64 * n))
|
| 67 |
+
self._fwd_impl = torch.compile(self._fwd_eager, dynamic=False)
|
| 68 |
+
else:
|
| 69 |
+
self._fwd_impl = self._fwd_eager
|
| 70 |
+
self.graphs = {} # (B, T) -> (static ids, static out, graph)
|
| 71 |
+
self.b_for_t = {} # T -> sorted captured batch buckets
|
| 72 |
+
self.pool = torch.cuda.graph_pool_handle() if (self.use_graphs and str(device).startswith("cuda")) else None
|
| 73 |
+
self.sealed = False
|
| 74 |
+
self.stats = dict(graph_captures=0, forwards=0, replays=0, eager_forwards=0, eager_rows=0,
|
| 75 |
+
shared_calls=0, unbucketed_requests=0)
|
| 76 |
+
|
| 77 |
+
# ---- bucket arithmetic -------------------------------------------------
|
| 78 |
+
def graph_shapes(self):
|
| 79 |
+
"""The full grid captured at start-up: every (B, T) whose padded token count fits the budget, plus all of B = 1."""
|
| 80 |
+
return [(B, T) for T in self.t_buckets for B in self.b_buckets if B == 1 or B * T <= self.token_budget]
|
| 81 |
+
|
| 82 |
+
def t_bucket(self, n):
|
| 83 |
+
"""Padded length bucket for a row of n tokens, or None when it is longer than the last bucket."""
|
| 84 |
+
for t in self.t_buckets:
|
| 85 |
+
if n <= t:
|
| 86 |
+
return t
|
| 87 |
+
return None
|
| 88 |
+
|
| 89 |
+
def pad_len(self, n):
|
| 90 |
+
return self.t_bucket(n) or -(-n // LONG_STEP) * LONG_STEP
|
| 91 |
+
|
| 92 |
+
def max_rows(self, T):
|
| 93 |
+
"""Rows per forward at padded length T: the widest captured batch bucket, or, when nothing is captured at T, as
|
| 94 |
+
many rows as fit the token budget (at least 1)."""
|
| 95 |
+
av = self.b_for_t.get(T)
|
| 96 |
+
return av[-1] if av else max(1, self.token_budget // max(T, 1))
|
| 97 |
+
|
| 98 |
+
def b_plan(self, n, T):
|
| 99 |
+
"""Batch sizes covering n rows at length T, each one a captured bucket. One chunk when a bucket fits."""
|
| 100 |
+
av = self.b_for_t.get(T)
|
| 101 |
+
if not av:
|
| 102 |
+
return [n]
|
| 103 |
+
fit = next((b for b in av if b >= n), None)
|
| 104 |
+
if fit is not None:
|
| 105 |
+
return [fit]
|
| 106 |
+
out = []; big = av[-1]
|
| 107 |
+
while n > big:
|
| 108 |
+
out.append(big); n -= big
|
| 109 |
+
out.append(next(b for b in av if b >= n))
|
| 110 |
+
return out
|
| 111 |
+
|
| 112 |
+
# ---- forward -----------------------------------------------------------
|
| 113 |
+
def _fwd_eager(self, ids):
|
| 114 |
+
h = self.core(input_ids=ids, use_cache=False).last_hidden_state
|
| 115 |
+
return F.linear(h, self.W).float() # [B, T, K]
|
| 116 |
+
|
| 117 |
+
@torch.no_grad()
|
| 118 |
+
def _fwd(self, ids):
|
| 119 |
+
return self._fwd_impl(ids)
|
| 120 |
+
|
| 121 |
+
def _capture(self, B, T):
|
| 122 |
+
s_ids = torch.full((B, T), self.tok.pad_token_id, dtype=torch.long, device=self.dev)
|
| 123 |
+
st = torch.cuda.Stream(); st.wait_stream(torch.cuda.current_stream())
|
| 124 |
+
with torch.cuda.stream(st):
|
| 125 |
+
for _ in range(3): self._fwd(s_ids)
|
| 126 |
+
torch.cuda.current_stream().wait_stream(st)
|
| 127 |
+
g = torch.cuda.CUDAGraph()
|
| 128 |
+
with torch.cuda.graph(g, pool=self.pool):
|
| 129 |
+
s_out = self._fwd(s_ids)
|
| 130 |
+
self.stats["graph_captures"] += 1
|
| 131 |
+
return s_ids, s_out, g
|
| 132 |
+
|
| 133 |
+
@torch.no_grad()
|
| 134 |
+
def logits_all(self, ids):
|
| 135 |
+
"""ids: [B, T] long on device, already right-padded to a captured shape where one exists."""
|
| 136 |
+
B, T = ids.shape; self.stats["forwards"] += 1
|
| 137 |
+
if self.use_graphs:
|
| 138 |
+
g = self.graphs.get((B, T))
|
| 139 |
+
if g is None and not self.sealed: # only reachable before seal(); a sealed engine never captures
|
| 140 |
+
g = self.graphs[(B, T)] = self._capture(B, T)
|
| 141 |
+
self.b_for_t.setdefault(T, [])
|
| 142 |
+
if B not in self.b_for_t[T]: self.b_for_t[T] = sorted(self.b_for_t[T] + [B])
|
| 143 |
+
if g is not None:
|
| 144 |
+
s_ids, s_out, gr = g
|
| 145 |
+
s_ids.copy_(ids); gr.replay(); self.stats["replays"] += 1
|
| 146 |
+
return s_out
|
| 147 |
+
self.stats["eager_forwards"] += 1; self.stats["eager_rows"] += B
|
| 148 |
+
return self._fwd_eager(ids) # never the compiled callable: a new shape must not compile
|
| 149 |
+
|
| 150 |
+
# ---- scoring -----------------------------------------------------------
|
| 151 |
+
@torch.no_grad()
|
| 152 |
+
def score_items(self, items, temperature=1.0):
|
| 153 |
+
"""items: dicts from prompt.build / build_rows. -> one [n_q, MAX_OPTIONS] cpu probability tensor per item."""
|
| 154 |
+
if not items:
|
| 155 |
+
return []
|
| 156 |
+
Tmax = max(len(it["ids"]) for it in items)
|
| 157 |
+
T = self.t_bucket(Tmax)
|
| 158 |
+
if T is None:
|
| 159 |
+
self.stats["unbucketed_requests"] += 1
|
| 160 |
+
T = -(-Tmax // LONG_STEP) * LONG_STEP
|
| 161 |
+
per = self.max_rows(T); plan = [per] * (len(items) // per) + ([len(items) % per] if len(items) % per else [])
|
| 162 |
+
else:
|
| 163 |
+
plan = self.b_plan(len(items), T)
|
| 164 |
+
out = []; i = 0
|
| 165 |
+
for B in plan:
|
| 166 |
+
chunk = items[i:i + B]; i += len(chunk)
|
| 167 |
+
ids = fill_ids([it["ids"] for it in chunk], B, T, self.tok.pad_token_id)
|
| 168 |
+
lg = self.logits_all(ids.to(self.dev, non_blocking=True))
|
| 169 |
+
out += read_slots(lg, [b for b, it in enumerate(chunk) for _ in it["slots"]],
|
| 170 |
+
[s for it in chunk for s in it["slots"]], [n for it in chunk for n in it["nopts"]],
|
| 171 |
+
temperature, [len(it["slots"]) for it in chunk])
|
| 172 |
+
return out
|
| 173 |
+
|
| 174 |
+
@torch.no_grad()
|
| 175 |
+
def score_shared(self, items, temperature=1.0, min_prefix=192, budget_bytes=None, rows_per_fork=None):
|
| 176 |
+
"""Rows that start with the same tokens (one state, one question per row): run the shared prefix once, fork its
|
| 177 |
+
cache in chunks that fit a byte budget, run only the question suffixes. The algorithm of Engine.score_shared,
|
| 178 |
+
shared with it in decider.shared_prefix: it is per request, never per schema, so it adds no state that outlives
|
| 179 |
+
the request and no shape that depends on the question set. The prefix and suffix forwards are eager
|
| 180 |
+
(request-specific shapes). Correct only with the cuDNN SDPA backend off, which __init__ arranges."""
|
| 181 |
+
out = shared_prefix.score_shared(self, items, temperature, min_prefix, budget_bytes, rows_per_fork)
|
| 182 |
+
if out is None:
|
| 183 |
+
return self.score_items(items, temperature)
|
| 184 |
+
self.stats["shared_calls"] += 1
|
| 185 |
+
return out
|
| 186 |
+
|
| 187 |
+
# ---- start-up ----------------------------------------------------------
|
| 188 |
+
def warmup(self, shapes=None, log=None):
|
| 189 |
+
"""Capture the whole grid. Call seal() afterwards: from then on an unknown shape runs eager, never captures."""
|
| 190 |
+
t = time.time(); shapes = list(shapes if shapes is not None else self.graph_shapes())
|
| 191 |
+
for j, (B, T) in enumerate(shapes):
|
| 192 |
+
self.logits_all(torch.full((B, T), self.tok.pad_token_id, dtype=torch.long, device=self.dev))
|
| 193 |
+
if log and (j + 1) % 10 == 0:
|
| 194 |
+
log(f"[engine_v2] {j + 1}/{len(shapes)} graphs, {time.time() - t:.0f}s")
|
| 195 |
+
if self.use_graphs:
|
| 196 |
+
torch.cuda.synchronize()
|
| 197 |
+
return time.time() - t
|
| 198 |
+
|
| 199 |
+
def seal(self):
|
| 200 |
+
self.sealed = True
|
| 201 |
+
self.b_for_t = {}
|
| 202 |
+
for B, T in self.graphs:
|
| 203 |
+
self.b_for_t.setdefault(T, []).append(B)
|
| 204 |
+
for T in self.b_for_t:
|
| 205 |
+
self.b_for_t[T].sort()
|
| 206 |
+
return self
|
| 207 |
+
|
| 208 |
+
def describe(self):
|
| 209 |
+
return dict(self.cfg, graphs=len(self.graphs), sealed=self.sealed,
|
| 210 |
+
grid={str(T): self.b_for_t.get(T, []) for T in self.t_buckets})
|
decider/infer.py
CHANGED
|
@@ -11,7 +11,7 @@ import logging
|
|
| 11 |
|
| 12 |
import torch
|
| 13 |
from decider.model import DecisionModel, collate
|
| 14 |
-
from decider.prompt import build, MAX_OPTIONS
|
| 15 |
from dataclasses import dataclass
|
| 16 |
|
| 17 |
|
|
@@ -43,6 +43,11 @@ def neutralize_options(options):
|
|
| 43 |
return out, back
|
| 44 |
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
class CompiledSchema:
|
| 47 |
def __init__(self, d, rqs, h, index): self.d, self.rqs, self.h, self.index = d, rqs, h, index
|
| 48 |
|
|
@@ -63,6 +68,9 @@ class Decider:
|
|
| 63 |
for eager execution or debugging.
|
| 64 |
"""
|
| 65 |
def __init__(self, path, device=None, dtype=None, temperature=None, abstain_below=0.0, use_graphs=None):
|
|
|
|
|
|
|
|
|
|
| 66 |
if device is None:
|
| 67 |
device = "cuda" if torch.cuda.is_available() else ("mps" if torch.backends.mps.is_available() else "cpu")
|
| 68 |
if dtype is None:
|
|
@@ -76,6 +84,7 @@ class Decider:
|
|
| 76 |
cfg = json.load(open(cfg_path))
|
| 77 |
except Exception:
|
| 78 |
pass
|
|
|
|
| 79 |
if temperature is None:
|
| 80 |
temperature = float(cfg.get("temperature", 1.0))
|
| 81 |
self.neutralize_none = bool(cfg.get("neutralize_none", True)) # v4 and earlier learned the literal string as an abstain signal
|
|
@@ -89,6 +98,7 @@ class Decider:
|
|
| 89 |
from decider.mps_ops import patch_mps
|
| 90 |
patch_mps()
|
| 91 |
self.eng = None; self.m = DecisionModel(path, dtype=dtype, grad_ckpt=False).to(device).eval()
|
|
|
|
| 92 |
self.dev = device; self.T = temperature; self.abstain_below = abstain_below
|
| 93 |
self.name = "decider-" + str(cfg.get("version", "dev"))
|
| 94 |
self.schema_first = bool(cfg.get("schema_first", False)) and self.eng is not None # default layout. Questions-first (the cacheable one) costs accuracy
|
|
@@ -96,20 +106,22 @@ class Decider:
|
|
| 96 |
self.isolated_levels = bool(cfg.get("isolated_levels", False)) # Score levels judged one per row (v8+)
|
| 97 |
self._se = None; self._schemas = {}
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
exs, meta = [], []
|
| 103 |
if self.neutralize_none:
|
| 104 |
requests = [(context, [dict(q, options=neutralize_options(q["options"])[0], _back=neutralize_options(q["options"])[1]) for q in qs]) for context, qs in requests]
|
| 105 |
for context, qs in requests:
|
| 106 |
for q in qs:
|
| 107 |
assert 2 <= len(q["options"]) <= MAX_OPTIONS, f"2..{MAX_OPTIONS} options required"
|
| 108 |
exs.append(Example(context, [Q(q["question"], list(q["options"]), 0) for q in qs], "infer"))
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
| 113 |
if self.eng is not None:
|
| 114 |
probs = torch.cat(self.eng.score_items(items, temperature=self.T))
|
| 115 |
else:
|
|
@@ -142,7 +154,7 @@ class Decider:
|
|
| 142 |
isolated = self.isolated_levels if isolated is None else isolated
|
| 143 |
key = (json.dumps(questions, sort_keys=True, ensure_ascii=False), independent, isolated)
|
| 144 |
if key not in self._schemas:
|
| 145 |
-
if self._se is None: self._se = SchemaEngine(self.eng)
|
| 146 |
if len(self._schemas) >= 64: # drop the oldest schema and its graphs
|
| 147 |
old = next(iter(self._schemas)); hid = self._schemas.pop(old)[1].id
|
| 148 |
for k in [k for k in self._se.graphs if k[0] == hid]: del self._se.graphs[k]
|
|
@@ -162,16 +174,8 @@ class Decider:
|
|
| 162 |
reordering questions cannot change any other answer; the state is run once and its cache forked to every
|
| 163 |
question (Engine.score_shared). independent=False packs all questions behind one copy of the state in one row
|
| 164 |
(later questions can then see earlier question texts)."""
|
| 165 |
-
from decider.systemone import
|
| 166 |
-
|
| 167 |
-
opts = (lambda r: neutralize_options(r["options"])[0]) if self.neutralize_none else (lambda r: list(r["options"]))
|
| 168 |
-
flat, index = plan_rows(rqs, isolated)
|
| 169 |
-
rows = [[r] for r in flat] if independent else [flat]
|
| 170 |
-
class _Keep:
|
| 171 |
-
def shuffle(self, x): pass
|
| 172 |
-
def sample(self, xs, k): return xs[:k]
|
| 173 |
-
items = [build(Example(ctx, [Q(r["question"], opts(r), 0) for r in row]), self.m.tok, _Keep(), max_options=MAX_OPTIONS,
|
| 174 |
-
max_ctx_tokens=max_state_tokens, layout=layout) for row in rows]
|
| 175 |
with torch.no_grad():
|
| 176 |
if self.eng is not None and len(items) > 1 and layout == "state_first":
|
| 177 |
probs = self.eng.score_shared(items, temperature=self.T)
|
|
@@ -190,10 +194,65 @@ class Decider:
|
|
| 190 |
return {"model": self.name, "answers": assemble(rqs, index, flatp),
|
| 191 |
"usage": {"input_tokens": unique_tokens(items), "output_tokens": 0}}
|
| 192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
# ---- typed schema interface: {question: {"type": "bool"} | {"type": "choice", "options": [...]}
|
| 194 |
# | {"type": "scale", "legend": {"0": "none", "1": "low", ...}}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
@staticmethod
|
| 196 |
def _schema_to_questions(schema):
|
|
|
|
| 197 |
qs = []
|
| 198 |
for qtext, spec in schema.items():
|
| 199 |
t = spec.get("type", "choice")
|
|
|
|
| 11 |
|
| 12 |
import torch
|
| 13 |
from decider.model import DecisionModel, collate
|
| 14 |
+
from decider.prompt import build, MAX_OPTIONS, resolve_layout, chat_template
|
| 15 |
from dataclasses import dataclass
|
| 16 |
|
| 17 |
|
|
|
|
| 43 |
return out, back
|
| 44 |
|
| 45 |
|
| 46 |
+
class _NoShuffle: # keep option order as given
|
| 47 |
+
def shuffle(self, x): pass
|
| 48 |
+
def sample(self, xs, k): return xs[:k]
|
| 49 |
+
|
| 50 |
+
|
| 51 |
class CompiledSchema:
|
| 52 |
def __init__(self, d, rqs, h, index): self.d, self.rqs, self.h, self.index = d, rqs, h, index
|
| 53 |
|
|
|
|
| 68 |
for eager execution or debugging.
|
| 69 |
"""
|
| 70 |
def __init__(self, path, device=None, dtype=None, temperature=None, abstain_below=0.0, use_graphs=None):
|
| 71 |
+
"""The prompt layout comes from decider_config.json: "layout": "chat" (chat-trained checkpoints) wraps every prompt in the
|
| 72 |
+
tokenizer's chat template (decider.prompt.build_chat); no "layout" key is the plain layout of every earlier model.
|
| 73 |
+
An unknown layout raises ValueError before the weights are loaded."""
|
| 74 |
if device is None:
|
| 75 |
device = "cuda" if torch.cuda.is_available() else ("mps" if torch.backends.mps.is_available() else "cpu")
|
| 76 |
if dtype is None:
|
|
|
|
| 84 |
cfg = json.load(open(cfg_path))
|
| 85 |
except Exception:
|
| 86 |
pass
|
| 87 |
+
self.layout = resolve_layout(cfg)
|
| 88 |
if temperature is None:
|
| 89 |
temperature = float(cfg.get("temperature", 1.0))
|
| 90 |
self.neutralize_none = bool(cfg.get("neutralize_none", True)) # v4 and earlier learned the literal string as an abstain signal
|
|
|
|
| 98 |
from decider.mps_ops import patch_mps
|
| 99 |
patch_mps()
|
| 100 |
self.eng = None; self.m = DecisionModel(path, dtype=dtype, grad_ckpt=False).to(device).eval()
|
| 101 |
+
self.chat = chat_template(self.m.tok) if self.layout == "chat" else None # None: plain layout, prompts as in 1.1.x
|
| 102 |
self.dev = device; self.T = temperature; self.abstain_below = abstain_below
|
| 103 |
self.name = "decider-" + str(cfg.get("version", "dev"))
|
| 104 |
self.schema_first = bool(cfg.get("schema_first", False)) and self.eng is not None # default layout. Questions-first (the cacheable one) costs accuracy
|
|
|
|
| 106 |
self.isolated_levels = bool(cfg.get("isolated_levels", False)) # Score levels judged one per row (v8+)
|
| 107 |
self._se = None; self._schemas = {}
|
| 108 |
|
| 109 |
+
def _decide_items(self, requests, max_ctx_tokens=1536):
|
| 110 |
+
"""The prompt rows of decide_batch: -> (requests with neutralized options, one item per request)."""
|
| 111 |
+
exs = []
|
|
|
|
| 112 |
if self.neutralize_none:
|
| 113 |
requests = [(context, [dict(q, options=neutralize_options(q["options"])[0], _back=neutralize_options(q["options"])[1]) for q in qs]) for context, qs in requests]
|
| 114 |
for context, qs in requests:
|
| 115 |
for q in qs:
|
| 116 |
assert 2 <= len(q["options"]) <= MAX_OPTIONS, f"2..{MAX_OPTIONS} options required"
|
| 117 |
exs.append(Example(context, [Q(q["question"], list(q["options"]), 0) for q in qs], "infer"))
|
| 118 |
+
items = [build(e, self.m.tok, _NoShuffle(), max_options=MAX_OPTIONS, max_ctx_tokens=max_ctx_tokens, chat=self.chat) for e in exs]
|
| 119 |
+
return requests, items
|
| 120 |
+
|
| 121 |
+
@torch.no_grad()
|
| 122 |
+
def decide_batch(self, requests, max_ctx_tokens=1536):
|
| 123 |
+
"""requests: list of (context:str, questions:list[dict(question, options)]). One forward pass for everything."""
|
| 124 |
+
requests, items = self._decide_items(requests, max_ctx_tokens)
|
| 125 |
if self.eng is not None:
|
| 126 |
probs = torch.cat(self.eng.score_items(items, temperature=self.T))
|
| 127 |
else:
|
|
|
|
| 154 |
isolated = self.isolated_levels if isolated is None else isolated
|
| 155 |
key = (json.dumps(questions, sort_keys=True, ensure_ascii=False), independent, isolated)
|
| 156 |
if key not in self._schemas:
|
| 157 |
+
if self._se is None: self._se = SchemaEngine(self.eng, chat=self.chat)
|
| 158 |
if len(self._schemas) >= 64: # drop the oldest schema and its graphs
|
| 159 |
old = next(iter(self._schemas)); hid = self._schemas.pop(old)[1].id
|
| 160 |
for k in [k for k in self._se.graphs if k[0] == hid]: del self._se.graphs[k]
|
|
|
|
| 174 |
reordering questions cannot change any other answer; the state is run once and its cache forked to every
|
| 175 |
question (Engine.score_shared). independent=False packs all questions behind one copy of the state in one row
|
| 176 |
(later questions can then see earlier question texts)."""
|
| 177 |
+
from decider.systemone import unique_tokens, assemble
|
| 178 |
+
rqs, index, items = self._system_one_items(state, questions, independent, max_state_tokens, layout, isolated)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
with torch.no_grad():
|
| 180 |
if self.eng is not None and len(items) > 1 and layout == "state_first":
|
| 181 |
probs = self.eng.score_shared(items, temperature=self.T)
|
|
|
|
| 194 |
return {"model": self.name, "answers": assemble(rqs, index, flatp),
|
| 195 |
"usage": {"input_tokens": unique_tokens(items), "output_tokens": 0}}
|
| 196 |
|
| 197 |
+
def _system_one_items(self, state, questions, independent=True, max_state_tokens=32768, layout=None, isolated=None):
|
| 198 |
+
"""The prompt rows of system_one's uncached path: -> (rendered questions, answer index, items)."""
|
| 199 |
+
from decider.systemone import render_state, render_question, plan_rows
|
| 200 |
+
layout = layout or ("schema_first" if self.schema_first else "state_first")
|
| 201 |
+
isolated = (self.isolated_levels if isolated is None else isolated) and independent
|
| 202 |
+
ctx = render_state(state); rqs = {k: render_question(v) for k, v in questions.items()}
|
| 203 |
+
opts = (lambda r: neutralize_options(r["options"])[0]) if self.neutralize_none else (lambda r: list(r["options"]))
|
| 204 |
+
flat, index = plan_rows(rqs, isolated)
|
| 205 |
+
rows = [[r] for r in flat] if independent else [flat]
|
| 206 |
+
items = [build(Example(ctx, [Q(r["question"], opts(r), 0) for r in row]), self.m.tok, _NoShuffle(), max_options=MAX_OPTIONS,
|
| 207 |
+
max_ctx_tokens=max_state_tokens, layout=layout, chat=self.chat) for row in rows]
|
| 208 |
+
return rqs, index, items
|
| 209 |
+
|
| 210 |
# ---- typed schema interface: {question: {"type": "bool"} | {"type": "choice", "options": [...]}
|
| 211 |
# | {"type": "scale", "legend": {"0": "none", "1": "low", ...}}}
|
| 212 |
+
SCHEMA_FORM = ('schema: a map {question: field}, each field one of {"type": "choice", "options": [option strings]}, '
|
| 213 |
+
'{"type": "bool"} or {"type": "scale", "legend": [descriptions] or {level number: description}}')
|
| 214 |
+
|
| 215 |
+
@staticmethod
|
| 216 |
+
def _check_schema(schema):
|
| 217 |
+
"""Raise ValueError naming the expected form when `schema` does not have it (the HTTP server turns this into a 422).
|
| 218 |
+
Every schema that 1.1.2 answered stays accepted, except options or a legend given as a bare string (1.1.2 split it into
|
| 219 |
+
characters); an empty schema is answered with {}."""
|
| 220 |
+
import json, math
|
| 221 |
+
form = Decider.SCHEMA_FORM
|
| 222 |
+
if schema is None:
|
| 223 |
+
raise ValueError("schema is required; " + form)
|
| 224 |
+
if not isinstance(schema, dict):
|
| 225 |
+
raise ValueError(f"schema is a {type(schema).__name__}; " + form)
|
| 226 |
+
for qtext, spec in schema.items():
|
| 227 |
+
where = f"schema[{qtext!r}]"
|
| 228 |
+
if not isinstance(spec, dict):
|
| 229 |
+
raise ValueError(f"{where} is a {type(spec).__name__}, not a field object; " + form)
|
| 230 |
+
t = spec.get("type", "choice")
|
| 231 |
+
if t == "choice":
|
| 232 |
+
opts = spec.get("options")
|
| 233 |
+
if not isinstance(opts, (list, tuple, dict)) or not opts or not all(isinstance(o, str) for o in opts):
|
| 234 |
+
raise ValueError(f'{where}: "options" must be a non-empty list of strings; ' + form)
|
| 235 |
+
elif t == "scale":
|
| 236 |
+
leg = spec.get("legend")
|
| 237 |
+
if not isinstance(leg, (list, tuple, dict)) or not leg:
|
| 238 |
+
raise ValueError(f'{where}: "legend" must be a non-empty list or {{level number: description}} map; ' + form)
|
| 239 |
+
try: # the legend is echoed in the answer, which must serialise
|
| 240 |
+
json.dumps(leg, allow_nan=False)
|
| 241 |
+
except (TypeError, ValueError):
|
| 242 |
+
raise ValueError(f'{where}: the "legend" contains a value that is not finite JSON (NaN or Infinity); ' + form)
|
| 243 |
+
if isinstance(leg, dict):
|
| 244 |
+
try:
|
| 245 |
+
ok = all(math.isfinite(float(k)) for k in leg)
|
| 246 |
+
except (TypeError, ValueError, OverflowError):
|
| 247 |
+
ok = False
|
| 248 |
+
if not ok:
|
| 249 |
+
raise ValueError(f'{where}: the keys of a "legend" map must be finite numbers, e.g. {{"0": "none", "1": "low"}}; ' + form)
|
| 250 |
+
elif t != "bool":
|
| 251 |
+
raise ValueError(f"{where}: unknown field type {t!r}; " + form)
|
| 252 |
+
|
| 253 |
@staticmethod
|
| 254 |
def _schema_to_questions(schema):
|
| 255 |
+
Decider._check_schema(schema)
|
| 256 |
qs = []
|
| 257 |
for qtext, spec in schema.items():
|
| 258 |
t = spec.get("type", "choice")
|
decider/model.py
CHANGED
|
@@ -7,6 +7,8 @@ from decider.prompt import letter_ids, MAX_OPTIONS
|
|
| 7 |
class DecisionModel(nn.Module):
|
| 8 |
def __init__(self, name, dtype=torch.bfloat16, grad_ckpt=True):
|
| 9 |
super().__init__()
|
|
|
|
|
|
|
| 10 |
self.tok = AutoTokenizer.from_pretrained(name)
|
| 11 |
self.lm = AutoModelForCausalLM.from_pretrained(name, dtype=dtype)
|
| 12 |
if grad_ckpt:
|
|
|
|
| 7 |
class DecisionModel(nn.Module):
|
| 8 |
def __init__(self, name, dtype=torch.bfloat16, grad_ckpt=True):
|
| 9 |
super().__init__()
|
| 10 |
+
if hasattr(torch.backends.cuda, "enable_cudnn_sdp"): # as decider.engine.set_attention_backend_policy: the cuDNN SDPA
|
| 11 |
+
torch.backends.cuda.enable_cudnn_sdp(False) # backend is wrong for masked attention on Blackwell (torch 2.14)
|
| 12 |
self.tok = AutoTokenizer.from_pretrained(name)
|
| 13 |
self.lm = AutoModelForCausalLM.from_pretrained(name, dtype=dtype)
|
| 14 |
if grad_ckpt:
|
decider/mps_moe.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Two MPS slow paths in transformers' Qwen3.5-MoE reference code, replaced in-process (decider-35b-a3b on Apple Silicon).
|
| 2 |
+
|
| 3 |
+
Contributed by @nassersala in issue #6 under the project's Apache-2.0 licence; adapted for the package (out-of-range expert
|
| 4 |
+
ids are dropped as `histc` drops them, and the replacements are installed from `decider.mps_ops.patch_mps`).
|
| 5 |
+
|
| 6 |
+
On an M-series Mac (torch 2.14, transformers 5.17) `torch.histc` takes about 45 ms a call on MPS (once per MoE layer, to
|
| 7 |
+
count tokens per expert) and `torch.linalg.solve_triangular` about 17 ms (twice per linear-attention layer): most of a
|
| 8 |
+
2.8-4 s decision. With both replaced the 35B takes 0.23-0.5 s a decision for typical inputs (reported in issue #6).
|
| 9 |
+
The `histc` replacement is an exact count. The block inverse is within 1e-6 of the MPS solver on real systems; on six items
|
| 10 |
+
the probabilities moved at most 0.033, less than switching to the exact CPU solver does (0.042), and no argmax changed.
|
| 11 |
+
|
| 12 |
+
The replacements are visible only inside those two transformers modules (install() gives each its own view of `torch`), and
|
| 13 |
+
there they act only on MPS tensors of the matching call shape; everything else goes to torch.
|
| 14 |
+
"""
|
| 15 |
+
import torch
|
| 16 |
+
|
| 17 |
+
_histc, _solve = torch.histc, torch.linalg.solve_triangular
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def count_ids(x, bins, min=0):
|
| 21 |
+
"""histc for integer-valued ids binned one per bin: a count of ids min..min+bins-1; other values are dropped as histc
|
| 22 |
+
drops them (transformers passes expert-parallel sentinels >= num_experts and relies on that)."""
|
| 23 |
+
idx = x.long() - int(min)
|
| 24 |
+
keep = (idx >= 0) & (idx < bins)
|
| 25 |
+
out = torch.zeros(bins, device=x.device, dtype=x.dtype)
|
| 26 |
+
return out.scatter_add_(0, idx.clamp(0, bins - 1), keep.to(x.dtype))
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def histc(input, bins=100, min=0, max=0, *, out=None):
|
| 30 |
+
# expert ids 0..n-1 into n bins over [0, n-1]: bin k holds id k exactly, so this is a count (histc: ~45 ms on MPS)
|
| 31 |
+
if input.device.type == "mps" and input.dim() == 1 and out is None and min == 0 and max > 0 and bins == max - min + 1:
|
| 32 |
+
return count_ids(input, bins, min)
|
| 33 |
+
return _histc(input, bins=bins, min=min, max=max) if out is None else _histc(input, bins=bins, min=min, max=max, out=out)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def unit_lower_inverse(A):
|
| 37 |
+
"""Inverse of unit lower-triangular A (last dim a power of two) by block doubling:
|
| 38 |
+
[[A11, 0], [A21, A22]]^-1 = [[X11, 0], [-X22 A21 X11, X22]]."""
|
| 39 |
+
n = A.shape[-1]
|
| 40 |
+
inv = torch.ones(*A.shape[:-2], n, 1, 1, device=A.device, dtype=A.dtype) # n diagonal 1x1 blocks
|
| 41 |
+
b = 1
|
| 42 |
+
while b < n:
|
| 43 |
+
nb = n // (2 * b)
|
| 44 |
+
blocks = A.reshape(*A.shape[:-2], nb, 2 * b, nb, 2 * b).diagonal(dim1=-4, dim2=-2).movedim(-1, -3)
|
| 45 |
+
x11, x22, a21 = inv[..., 0::2, :, :], inv[..., 1::2, :, :], blocks[..., b:, :b]
|
| 46 |
+
new = torch.zeros(*A.shape[:-2], nb, 2 * b, 2 * b, device=A.device, dtype=A.dtype)
|
| 47 |
+
new[..., :b, :b], new[..., b:, b:], new[..., b:, :b] = x11, x22, -(x22 @ a21 @ x11)
|
| 48 |
+
inv, b = new, 2 * b
|
| 49 |
+
return inv[..., 0, :, :]
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def solve_unit_lower(A, B):
|
| 53 |
+
"""solve_triangular(A, B, upper=False, unitriangular=True): only the strict lower triangle of A is read."""
|
| 54 |
+
n = A.shape[-1]
|
| 55 |
+
return unit_lower_inverse(A.tril(-1) + torch.eye(n, device=A.device, dtype=A.dtype)) @ B
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def solve_triangular(A, B, *, upper, left=True, unitriangular=False, out=None):
|
| 59 |
+
# unit lower-triangular: invert by block doubling, all batched matmuls (the MPS solver: ~17 ms per call)
|
| 60 |
+
n = A.shape[-1]
|
| 61 |
+
if A.device.type == "mps" and not upper and left and unitriangular and out is None and n > 0 and n & (n - 1) == 0:
|
| 62 |
+
return solve_unit_lower(A, B)
|
| 63 |
+
return _solve(A, B, upper=upper, left=left, unitriangular=unitriangular, out=out)
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
class _Proxy:
|
| 67 |
+
"""A module's view of `torch` (or `torch.linalg`) with some attributes replaced; everything else is the real one."""
|
| 68 |
+
def __init__(self, real, **over):
|
| 69 |
+
self._real, self._over = real, over
|
| 70 |
+
|
| 71 |
+
def __getattr__(self, name):
|
| 72 |
+
return self._over[name] if name in self._over else getattr(self._real, name)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
_installed = {}
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
def install():
|
| 79 |
+
"""Replace the two operations inside the two transformers modules that call them, and nowhere else: the grouped-MoE
|
| 80 |
+
expert count in `transformers.integrations.moe` and the gated delta rule in `modeling_qwen3_5_moe` see a `torch` whose
|
| 81 |
+
`histc` / `linalg.solve_triangular` are the replacements; every other caller keeps torch's. -> names patched."""
|
| 82 |
+
import importlib
|
| 83 |
+
targets = {"transformers.integrations.moe": dict(histc=histc),
|
| 84 |
+
"transformers.models.qwen3_5_moe.modeling_qwen3_5_moe": dict(linalg=_Proxy(torch.linalg, solve_triangular=solve_triangular))}
|
| 85 |
+
for name, over in targets.items():
|
| 86 |
+
if name in _installed:
|
| 87 |
+
continue
|
| 88 |
+
try:
|
| 89 |
+
mod = importlib.import_module(name)
|
| 90 |
+
except ImportError:
|
| 91 |
+
continue
|
| 92 |
+
if getattr(mod, "torch", None) is not torch:
|
| 93 |
+
continue # not the layout this was written for: leave it alone
|
| 94 |
+
_installed[name] = mod
|
| 95 |
+
mod.torch = _Proxy(torch, **over)
|
| 96 |
+
return sorted(_installed)
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def uninstall():
|
| 100 |
+
for name, mod in list(_installed.items()):
|
| 101 |
+
mod.torch = torch
|
| 102 |
+
del _installed[name]
|
decider/mps_ops.py
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""MPS kernels for Qwen3.5 gated-delta attention.
|
| 2 |
+
|
| 3 |
+
The optimization is measured against Transformers' PyTorch reference fallback for
|
| 4 |
+
this kernel; it is not an end-to-end model speedup claim.
|
| 5 |
+
|
| 6 |
+
The gated-delta and L2-normalization code follows Transformers 5.17's
|
| 7 |
+
``modeling_qwen3_5.py`` under the Apache License 2.0. The MPS inversion and
|
| 8 |
+
backend dispatch are Decider additions.
|
| 9 |
+
"""
|
| 10 |
+
import functools
|
| 11 |
+
import inspect
|
| 12 |
+
import logging
|
| 13 |
+
import warnings
|
| 14 |
+
|
| 15 |
+
import torch, torch.nn.functional as F
|
| 16 |
+
from decider.engine import fused_causal_conv1d_fn
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
# Adapted from transformers 5.17.0's modeling_qwen3_5.py (Apache-2.0).
|
| 20 |
+
# The original license applies to the gated-delta and normalization portions;
|
| 21 |
+
# the MPS inversion and dispatch below are Decider additions.
|
| 22 |
+
# Native Metal Shading Language (MSL) JIT kernel via MLX/Metal
|
| 23 |
+
_metal_invert_kernel = None
|
| 24 |
+
_metal_failure_reported = False
|
| 25 |
+
_compat_warning_reported = False
|
| 26 |
+
try:
|
| 27 |
+
import mlx.core as mx
|
| 28 |
+
import mlx.core.fast as fast
|
| 29 |
+
|
| 30 |
+
_METAL_INVERT_SRC = """
|
| 31 |
+
uint col = thread_position_in_threadgroup.x;
|
| 32 |
+
uint mat_idx = threadgroup_position_in_grid.x;
|
| 33 |
+
threadgroup float s_inv[4096];
|
| 34 |
+
|
| 35 |
+
for (uint r = 0; r < 64; ++r) {
|
| 36 |
+
s_inv[r * 64 + col] = (r == col) ? 1.0f : 0.0f;
|
| 37 |
+
}
|
| 38 |
+
threadgroup_barrier(mem_flags::mem_threadgroup);
|
| 39 |
+
|
| 40 |
+
uint mat_offset = mat_idx * 4096;
|
| 41 |
+
for (uint r = 1; r < 64; ++r) {
|
| 42 |
+
float sum = 0.0f;
|
| 43 |
+
if (col < r) {
|
| 44 |
+
for (uint k = col; k < r; ++k) {
|
| 45 |
+
sum += L[mat_offset + r * 64 + k] * s_inv[k * 64 + col];
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
threadgroup_barrier(mem_flags::mem_threadgroup);
|
| 49 |
+
if (col < r) {
|
| 50 |
+
s_inv[r * 64 + col] = -sum;
|
| 51 |
+
}
|
| 52 |
+
threadgroup_barrier(mem_flags::mem_threadgroup);
|
| 53 |
+
}
|
| 54 |
+
for (uint r = 0; r < 64; ++r) {
|
| 55 |
+
out_inv[mat_offset + r * 64 + col] = s_inv[r * 64 + col];
|
| 56 |
+
}
|
| 57 |
+
"""
|
| 58 |
+
_metal_invert_kernel = fast.metal_kernel(
|
| 59 |
+
name="invert_unitriangular_64",
|
| 60 |
+
input_names=["L"],
|
| 61 |
+
output_names=["out_inv"],
|
| 62 |
+
source=_METAL_INVERT_SRC,
|
| 63 |
+
)
|
| 64 |
+
except (ImportError, OSError, RuntimeError, AttributeError):
|
| 65 |
+
logging.getLogger(__name__).debug("MLX Metal kernel unavailable; using PyTorch MPS fallback", exc_info=True)
|
| 66 |
+
_metal_invert_kernel = None
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
def l2norm(x: torch.Tensor, dim: int = -1, eps: float = 1e-6) -> torch.Tensor:
|
| 70 |
+
return x * torch.rsqrt((x * x).sum(dim=dim, keepdim=True) + eps)
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def fast_invert_unitriangular_64(L: torch.Tensor) -> torch.Tensor:
|
| 74 |
+
"""Invert batches of 64x64 unit lower-triangular matrices."""
|
| 75 |
+
global _metal_invert_kernel, _metal_failure_reported
|
| 76 |
+
if _metal_invert_kernel is not None and L.is_mps and not L.requires_grad:
|
| 77 |
+
assert L.dtype == torch.float32, "Metal inversion requires float32 input"
|
| 78 |
+
try:
|
| 79 |
+
orig_shape = L.shape
|
| 80 |
+
L_flat = L.reshape(-1, 64, 64).contiguous()
|
| 81 |
+
num_m = L_flat.shape[0]
|
| 82 |
+
torch.mps.synchronize()
|
| 83 |
+
L_mx = mx.from_dlpack(torch.to_dlpack(L_flat))
|
| 84 |
+
mx.eval(L_mx)
|
| 85 |
+
out_mx = _metal_invert_kernel(
|
| 86 |
+
inputs=[L_mx],
|
| 87 |
+
grid=(num_m * 64, 1, 1),
|
| 88 |
+
threadgroup=(64, 1, 1),
|
| 89 |
+
output_shapes=[(num_m, 64, 64)],
|
| 90 |
+
output_dtypes=[mx.float32],
|
| 91 |
+
)[0]
|
| 92 |
+
mx.eval(out_mx)
|
| 93 |
+
torch.mps.synchronize()
|
| 94 |
+
return torch.from_dlpack(out_mx).to(L.device).reshape(orig_shape)
|
| 95 |
+
except Exception:
|
| 96 |
+
# Optional acceleration must not turn a recoverable backend issue into
|
| 97 |
+
# a failed request; disable the failing kernel for this process.
|
| 98 |
+
_metal_invert_kernel = None
|
| 99 |
+
if not _metal_failure_reported:
|
| 100 |
+
logging.getLogger(__name__).warning("MLX Metal inversion failed; using the PyTorch MPS fallback", exc_info=True)
|
| 101 |
+
_metal_failure_reported = True
|
| 102 |
+
|
| 103 |
+
N = 64
|
| 104 |
+
inv = torch.eye(N, device=L.device, dtype=L.dtype).expand_as(L).clone()
|
| 105 |
+
|
| 106 |
+
# b = 1: 32 blocks of 2x2. For [[1, 0], [l, 1]], inverse is [[1, 0], [-l, 1]]
|
| 107 |
+
idx_row = torch.arange(1, 64, 2, device=L.device)
|
| 108 |
+
idx_col = torch.arange(0, 64, 2, device=L.device)
|
| 109 |
+
inv[..., idx_row, idx_col] = -L[..., idx_row, idx_col]
|
| 110 |
+
|
| 111 |
+
# b = 2: 16 blocks of 4x4
|
| 112 |
+
for j in range(16):
|
| 113 |
+
r1, r2, r3 = j * 4, j * 4 + 2, j * 4 + 4
|
| 114 |
+
inv[..., r2:r3, r1:r2] = -inv[..., r2:r3, r2:r3] @ L[..., r2:r3, r1:r2] @ inv[..., r1:r2, r1:r2]
|
| 115 |
+
|
| 116 |
+
# b = 4: 8 blocks of 8x8
|
| 117 |
+
for j in range(8):
|
| 118 |
+
r1, r2, r3 = j * 8, j * 8 + 4, j * 8 + 8
|
| 119 |
+
inv[..., r2:r3, r1:r2] = -inv[..., r2:r3, r2:r3] @ L[..., r2:r3, r1:r2] @ inv[..., r1:r2, r1:r2]
|
| 120 |
+
|
| 121 |
+
# b = 8: 4 blocks of 16x16
|
| 122 |
+
for j in range(4):
|
| 123 |
+
r1, r2, r3 = j * 16, j * 16 + 8, j * 16 + 16
|
| 124 |
+
inv[..., r2:r3, r1:r2] = -inv[..., r2:r3, r2:r3] @ L[..., r2:r3, r1:r2] @ inv[..., r1:r2, r1:r2]
|
| 125 |
+
|
| 126 |
+
# b = 16: 2 blocks of 32x32
|
| 127 |
+
for j in range(2):
|
| 128 |
+
r1, r2, r3 = j * 32, j * 32 + 16, j * 32 + 32
|
| 129 |
+
inv[..., r2:r3, r1:r2] = -inv[..., r2:r3, r2:r3] @ L[..., r2:r3, r1:r2] @ inv[..., r1:r2, r1:r2]
|
| 130 |
+
|
| 131 |
+
# b = 32: 1 block of 64x64
|
| 132 |
+
inv[..., 32:64, 0:32] = -inv[..., 32:64, 32:64] @ L[..., 32:64, 0:32] @ inv[..., 0:32, 0:32]
|
| 133 |
+
return inv
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
def mps_chunk_gated_delta_rule(
|
| 137 |
+
query: torch.Tensor,
|
| 138 |
+
key: torch.Tensor,
|
| 139 |
+
value: torch.Tensor,
|
| 140 |
+
g: torch.Tensor,
|
| 141 |
+
beta: torch.Tensor,
|
| 142 |
+
chunk_size: int = 64,
|
| 143 |
+
initial_state: torch.Tensor | None = None,
|
| 144 |
+
output_final_state: bool = False,
|
| 145 |
+
use_qk_l2norm_in_kernel: bool = False,
|
| 146 |
+
**kwargs,
|
| 147 |
+
) -> tuple[torch.Tensor, torch.Tensor | None]:
|
| 148 |
+
"""Optimized chunk-gated delta rule for Apple Silicon (MPS)."""
|
| 149 |
+
assert chunk_size == 64, f"MPS optimized delta rule requires chunk_size=64, got {chunk_size}"
|
| 150 |
+
initial_dtype = query.dtype
|
| 151 |
+
batch_size, sequence_length, _, k_head_dim = key.shape
|
| 152 |
+
num_v_heads, v_head_dim = value.shape[-2:]
|
| 153 |
+
recurrent_state_shape = (batch_size, num_v_heads, k_head_dim, v_head_dim)
|
| 154 |
+
padded_output_shape = (batch_size, num_v_heads, -1, v_head_dim)
|
| 155 |
+
decay = g
|
| 156 |
+
|
| 157 |
+
query, key, value, beta, decay = [
|
| 158 |
+
x.transpose(1, 2).to(torch.float32, memory_format=torch.contiguous_format)
|
| 159 |
+
for x in (query, key, value, beta, decay)
|
| 160 |
+
]
|
| 161 |
+
if use_qk_l2norm_in_kernel:
|
| 162 |
+
query = l2norm(query, dim=-1, eps=1e-6)
|
| 163 |
+
key = l2norm(key, dim=-1, eps=1e-6)
|
| 164 |
+
scaling = query.shape[-1] ** -0.5
|
| 165 |
+
query = query * scaling
|
| 166 |
+
|
| 167 |
+
pad_size = (chunk_size - sequence_length % chunk_size) % chunk_size
|
| 168 |
+
query = F.pad(query, (0, 0, 0, pad_size))
|
| 169 |
+
key = F.pad(key, (0, 0, 0, pad_size))
|
| 170 |
+
value = F.pad(value, (0, 0, 0, pad_size))
|
| 171 |
+
beta = F.pad(beta, (0, pad_size))
|
| 172 |
+
decay = F.pad(decay, (0, pad_size))
|
| 173 |
+
|
| 174 |
+
v_beta = value * beta.unsqueeze(-1)
|
| 175 |
+
k_beta = key * beta.unsqueeze(-1)
|
| 176 |
+
|
| 177 |
+
query, key, k_beta, v_beta = [
|
| 178 |
+
x.reshape(x.shape[0], x.shape[1], -1, chunk_size, x.shape[-1])
|
| 179 |
+
for x in (query, key, k_beta, v_beta)
|
| 180 |
+
]
|
| 181 |
+
decay = decay.reshape(decay.shape[0], decay.shape[1], -1, chunk_size)
|
| 182 |
+
|
| 183 |
+
strictly_upper_mask = torch.ones(chunk_size, chunk_size, dtype=torch.bool, device=query.device).triu(1)
|
| 184 |
+
cum_decay = decay.cumsum(dim=3)
|
| 185 |
+
pairwise_decay = (cum_decay.unsqueeze(4) - cum_decay.unsqueeze(3)).masked_fill(strictly_upper_mask, float("-inf")).exp()
|
| 186 |
+
|
| 187 |
+
ut_system = (k_beta @ key.transpose(-1, -2)) * pairwise_decay
|
| 188 |
+
intra_chunk_attn = (query @ key.transpose(-1, -2)) * pairwise_decay
|
| 189 |
+
decayed_k_beta = k_beta * cum_decay.exp().unsqueeze(-1)
|
| 190 |
+
|
| 191 |
+
# Fast block divide-and-conquer unitriangular inverse on MPS
|
| 192 |
+
L = ut_system.tril(-1)
|
| 193 |
+
inv = fast_invert_unitriangular_64(L)
|
| 194 |
+
new_values = inv @ v_beta
|
| 195 |
+
k_cumdecay = inv @ decayed_k_beta
|
| 196 |
+
|
| 197 |
+
if initial_state is None:
|
| 198 |
+
last_recurrent_state = torch.zeros(recurrent_state_shape, dtype=new_values.dtype, device=new_values.device)
|
| 199 |
+
else:
|
| 200 |
+
last_recurrent_state = initial_state.to(new_values)
|
| 201 |
+
core_attn_out = torch.zeros_like(new_values)
|
| 202 |
+
|
| 203 |
+
query = query * cum_decay.exp().unsqueeze(-1)
|
| 204 |
+
key = key * (cum_decay[..., -1:] - cum_decay).exp().unsqueeze(-1)
|
| 205 |
+
chunk_decay = cum_decay[..., -1].exp()[..., None, None]
|
| 206 |
+
|
| 207 |
+
num_chunks = query.shape[2]
|
| 208 |
+
qk = torch.cat([query, k_cumdecay], dim=3)
|
| 209 |
+
kt = key.transpose(-1, -2)
|
| 210 |
+
|
| 211 |
+
for i in range(num_chunks):
|
| 212 |
+
qk_state = qk[:, :, i] @ last_recurrent_state
|
| 213 |
+
inter_chunk_attn = qk_state[:, :, :chunk_size]
|
| 214 |
+
v_new = new_values[:, :, i] - qk_state[:, :, chunk_size:]
|
| 215 |
+
core_attn_out[:, :, i] = inter_chunk_attn + intra_chunk_attn[:, :, i] @ v_new
|
| 216 |
+
last_recurrent_state = last_recurrent_state * chunk_decay[:, :, i] + kt[:, :, i] @ v_new
|
| 217 |
+
|
| 218 |
+
last_recurrent_state = None if not output_final_state else last_recurrent_state
|
| 219 |
+
core_attn_out = core_attn_out.reshape(padded_output_shape)[:, :, :sequence_length]
|
| 220 |
+
core_attn_out = core_attn_out.transpose(1, 2).to(initial_dtype, memory_format=torch.contiguous_format)
|
| 221 |
+
return core_attn_out, last_recurrent_state
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def patch_mps():
|
| 225 |
+
"""Patch Qwen3.5 operations on MPS tensors while preserving other backends."""
|
| 226 |
+
global _compat_warning_reported
|
| 227 |
+
if not torch.backends.mps.is_available():
|
| 228 |
+
return False
|
| 229 |
+
import os
|
| 230 |
+
if os.environ.get("DECIDER_MPS_MOE_PATCH", "1") != "0": # histc + unit-triangular solve replacements (issue #6, @nassersala)
|
| 231 |
+
from decider import mps_moe
|
| 232 |
+
mps_moe.install()
|
| 233 |
+
try:
|
| 234 |
+
import transformers
|
| 235 |
+
import transformers.models.qwen3_5.modeling_qwen3_5 as mq
|
| 236 |
+
version = tuple(int(part) for part in transformers.__version__.split(".")[:2])
|
| 237 |
+
if not all(callable(getattr(mq, name, None)) for name in ("torch_chunk_gated_delta_rule", "causal_conv1d_fn")):
|
| 238 |
+
raise AttributeError("unsupported Transformers Qwen3.5 implementation")
|
| 239 |
+
params = inspect.signature(mq.torch_chunk_gated_delta_rule).parameters
|
| 240 |
+
required = {"query", "key", "value", "g", "beta", "chunk_size"}
|
| 241 |
+
if version < (5, 17) or not required.issubset(params):
|
| 242 |
+
if not _compat_warning_reported:
|
| 243 |
+
warnings.warn(f"MPS patch requires Transformers >=5.17 with the Qwen3.5 gated-delta signature; got {transformers.__version__}", RuntimeWarning, stacklevel=2)
|
| 244 |
+
_compat_warning_reported = True
|
| 245 |
+
return False
|
| 246 |
+
if getattr(mq.torch_chunk_gated_delta_rule, "_decider_mps_patch", False):
|
| 247 |
+
return True
|
| 248 |
+
|
| 249 |
+
original_delta, original_conv = mq.torch_chunk_gated_delta_rule, mq.causal_conv1d_fn
|
| 250 |
+
delta_params = tuple(inspect.signature(original_delta).parameters)
|
| 251 |
+
query_index, chunk_index = delta_params.index("query"), delta_params.index("chunk_size")
|
| 252 |
+
|
| 253 |
+
@functools.wraps(original_delta)
|
| 254 |
+
def delta(*args, **kwargs):
|
| 255 |
+
query = args[query_index] if len(args) > query_index else kwargs["query"]
|
| 256 |
+
chunk_size = args[chunk_index] if len(args) > chunk_index else kwargs.get("chunk_size", 64)
|
| 257 |
+
return mps_chunk_gated_delta_rule(*args, **kwargs) if query.is_mps and chunk_size == 64 else original_delta(*args, **kwargs)
|
| 258 |
+
|
| 259 |
+
@functools.wraps(original_conv)
|
| 260 |
+
def conv(hidden_states, *args, **kwargs):
|
| 261 |
+
return fused_causal_conv1d_fn(hidden_states, *args, **kwargs) if hidden_states.is_mps else original_conv(hidden_states, *args, **kwargs)
|
| 262 |
+
|
| 263 |
+
delta._decider_mps_patch = True
|
| 264 |
+
mq.torch_chunk_gated_delta_rule, mq.causal_conv1d_fn = delta, conv
|
| 265 |
+
return True
|
| 266 |
+
except (ImportError, AttributeError, TypeError, ValueError):
|
| 267 |
+
logging.getLogger(__name__).debug("MPS patch unavailable; using Transformers fallback", exc_info=True)
|
| 268 |
+
return False
|
decider/prompt.py
CHANGED
|
@@ -75,43 +75,55 @@ def _options_ids(tok, q, opts):
|
|
| 75 |
return out
|
| 76 |
|
| 77 |
|
| 78 |
-
def build_schema_first(example, tok, rng=None, max_options=NARROW, max_ctx_tokens=1536):
|
| 79 |
"""Schema-first layout: all question/option blocks, then the context, then one answer slot per question.
|
| 80 |
|
| 81 |
Question 1: ...\nOptions:\n(A) ... <- prefix: depends only on the questions, so its cache (attention KV and
|
| 82 |
\n\nQuestion 2: ... delta-net states) is computed once per schema and reused for every state
|
| 83 |
\n\nContext:\n<state>\n\nAnswer 1: (\nAnswer 2: (
|
| 84 |
|
| 85 |
-
The three parts are tokenized separately, so `ids[:prefix_len]` is identical for every state.
|
|
|
|
| 86 |
rng = rng or random
|
| 87 |
perms = [_select(q, rng, max_options) for q in example.qs]
|
| 88 |
-
pre = schema_prefix_ids(tok, example.qs, perms)
|
| 89 |
-
suf, slots = schema_suffix_ids(tok, example.context, len(example.qs), max_ctx_tokens)
|
| 90 |
return dict(ids=pre + suf, slots=[len(pre) + s for s in slots], golds=[p.index(q.gold) if q.gold in p else -1 for p, q in zip(perms, example.qs)],
|
| 91 |
nopts=[len(p) for p in perms], perms=perms, prefix_len=len(pre))
|
| 92 |
|
| 93 |
|
| 94 |
-
def schema_prefix_ids(tok, qs, perms=None):
|
| 95 |
-
"""Token ids of the question/option blocks (the cacheable part of the schema-first layout).
|
| 96 |
-
|
|
|
|
| 97 |
for k, q in enumerate(qs):
|
| 98 |
opts = perms[k] if perms is not None else list(range(len(q.options)))
|
| 99 |
pre += tok.encode(f"{chr(10) * 2 if k else ''}Question{' ' + str(k + 1) if multi else ''}: {q.text}\nOptions:", add_special_tokens=False) + _options_ids(tok, q, opts)
|
| 100 |
return pre
|
| 101 |
|
| 102 |
|
| 103 |
-
def schema_suffix_ids(tok, context, n_q, max_ctx_tokens=1536):
|
| 104 |
-
"""Token ids after the schema prefix: the context and one answer slot per question. Returns (ids, slot positions in ids).
|
|
|
|
| 105 |
ids = tok.encode("\n\nContext:\n", add_special_tokens=False) + tok.encode(context, add_special_tokens=False)[:max_ctx_tokens]; slots = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
for k in range(n_q):
|
| 107 |
ids += tok.encode(f"{chr(10) * 2 if k == 0 else chr(10)}Answer{' ' + str(k + 1) if n_q > 1 else ''}: (", add_special_tokens=False); slots.append(len(ids) - 1)
|
| 108 |
return ids, slots
|
| 109 |
|
| 110 |
|
| 111 |
-
def build(example, tok, rng=None, max_options=NARROW, max_ctx_tokens=1536, layout="state_first"):
|
| 112 |
-
"""Returns dict(ids=list[int], slots=list[int], golds=list[int], nopts=list[int], perms=list[list[int]]).
|
|
|
|
|
|
|
| 113 |
if layout == "schema_first":
|
| 114 |
-
return build_schema_first(example, tok, rng, max_options, max_ctx_tokens)
|
|
|
|
|
|
|
| 115 |
rng = rng or random
|
| 116 |
ctx_ids = tok.encode("Context:\n" + example.context, add_special_tokens=False)[:max_ctx_tokens]
|
| 117 |
ids = list(ctx_ids)
|
|
@@ -145,6 +157,124 @@ def build(example, tok, rng=None, max_options=NARROW, max_ctx_tokens=1536, layou
|
|
| 145 |
return dict(ids=ids, slots=slots, golds=golds, nopts=nopts, perms=perms)
|
| 146 |
|
| 147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
def letter_ids(tok):
|
| 149 |
ids = label_table(tok)[1]
|
| 150 |
for j, L in enumerate(LETTERS):
|
|
|
|
| 75 |
return out
|
| 76 |
|
| 77 |
|
| 78 |
+
def build_schema_first(example, tok, rng=None, max_options=NARROW, max_ctx_tokens=1536, chat=None):
|
| 79 |
"""Schema-first layout: all question/option blocks, then the context, then one answer slot per question.
|
| 80 |
|
| 81 |
Question 1: ...\nOptions:\n(A) ... <- prefix: depends only on the questions, so its cache (attention KV and
|
| 82 |
\n\nQuestion 2: ... delta-net states) is computed once per schema and reused for every state
|
| 83 |
\n\nContext:\n<state>\n\nAnswer 1: (\nAnswer 2: (
|
| 84 |
|
| 85 |
+
The three parts are tokenized separately, so `ids[:prefix_len]` is identical for every state.
|
| 86 |
+
chat: a ChatTemplate for a chat-layout model (see `build_chat`); None renders the plain layout above."""
|
| 87 |
rng = rng or random
|
| 88 |
perms = [_select(q, rng, max_options) for q in example.qs]
|
| 89 |
+
pre = schema_prefix_ids(tok, example.qs, perms, chat=chat)
|
| 90 |
+
suf, slots = schema_suffix_ids(tok, example.context, len(example.qs), max_ctx_tokens, chat=chat)
|
| 91 |
return dict(ids=pre + suf, slots=[len(pre) + s for s in slots], golds=[p.index(q.gold) if q.gold in p else -1 for p, q in zip(perms, example.qs)],
|
| 92 |
nopts=[len(p) for p in perms], perms=perms, prefix_len=len(pre))
|
| 93 |
|
| 94 |
|
| 95 |
+
def schema_prefix_ids(tok, qs, perms=None, chat=None):
|
| 96 |
+
"""Token ids of the question/option blocks (the cacheable part of the schema-first layout).
|
| 97 |
+
chat: a ChatTemplate; the prefix then starts with the template head (the user turn opens before the first question)."""
|
| 98 |
+
multi = len(qs) > 1; pre = [] if chat is None else list(chat.head)
|
| 99 |
for k, q in enumerate(qs):
|
| 100 |
opts = perms[k] if perms is not None else list(range(len(q.options)))
|
| 101 |
pre += tok.encode(f"{chr(10) * 2 if k else ''}Question{' ' + str(k + 1) if multi else ''}: {q.text}\nOptions:", add_special_tokens=False) + _options_ids(tok, q, opts)
|
| 102 |
return pre
|
| 103 |
|
| 104 |
|
| 105 |
+
def schema_suffix_ids(tok, context, n_q, max_ctx_tokens=1536, chat=None):
|
| 106 |
+
"""Token ids after the schema prefix: the context and one answer slot per question. Returns (ids, slot positions in ids).
|
| 107 |
+
chat: a ChatTemplate; the context then ends the user turn, and the template tail and the answer pieces follow."""
|
| 108 |
ids = tok.encode("\n\nContext:\n", add_special_tokens=False) + tok.encode(context, add_special_tokens=False)[:max_ctx_tokens]; slots = []
|
| 109 |
+
if chat is not None:
|
| 110 |
+
ids += chat.tail
|
| 111 |
+
for k in range(n_q):
|
| 112 |
+
ids += chat.answer_ids(tok, k, n_q > 1); slots.append(len(ids) - 1)
|
| 113 |
+
return ids, slots
|
| 114 |
for k in range(n_q):
|
| 115 |
ids += tok.encode(f"{chr(10) * 2 if k == 0 else chr(10)}Answer{' ' + str(k + 1) if n_q > 1 else ''}: (", add_special_tokens=False); slots.append(len(ids) - 1)
|
| 116 |
return ids, slots
|
| 117 |
|
| 118 |
|
| 119 |
+
def build(example, tok, rng=None, max_options=NARROW, max_ctx_tokens=1536, layout="state_first", chat=None):
|
| 120 |
+
"""Returns dict(ids=list[int], slots=list[int], golds=list[int], nopts=list[int], perms=list[list[int]]).
|
| 121 |
+
chat: a ChatTemplate (chat_template(tok)) for a model trained in the chat layout (decider_config.json "layout": "chat");
|
| 122 |
+
None, the default, is the plain layout every earlier model uses, unchanged."""
|
| 123 |
if layout == "schema_first":
|
| 124 |
+
return build_schema_first(example, tok, rng, max_options, max_ctx_tokens, chat=chat)
|
| 125 |
+
if chat is not None:
|
| 126 |
+
return build_chat(example, tok, chat, rng, max_options, max_ctx_tokens)
|
| 127 |
rng = rng or random
|
| 128 |
ctx_ids = tok.encode("Context:\n" + example.context, add_special_tokens=False)[:max_ctx_tokens]
|
| 129 |
ids = list(ctx_ids)
|
|
|
|
| 157 |
return dict(ids=ids, slots=slots, golds=golds, nopts=nopts, perms=perms)
|
| 158 |
|
| 159 |
|
| 160 |
+
# ---- chat layout (1.2.0) ----------------------------------------------------------------------------------------------
|
| 161 |
+
# A model whose decider_config.json has "layout": "chat" (or "chat_template": true) was trained with every prompt wrapped
|
| 162 |
+
# in its tokenizer's chat template: one user turn holding the plain content, thinking switched off, and the answer pieces in
|
| 163 |
+
# the assistant turn. For Qwen3.5, state-first:
|
| 164 |
+
#
|
| 165 |
+
# <|im_start|>user\n Context:\n<state> \n\nQuestion: <q>\nOptions:\n(A) ..\n(B) ..
|
| 166 |
+
# <|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n Answer: (
|
| 167 |
+
#
|
| 168 |
+
# With several questions in one row all question blocks come first and the answer pieces ("Answer 1: (", "\nAnswer 2: (",
|
| 169 |
+
# ...) follow the template tail. Schema-first: the user turn holds the question blocks and then "\n\nContext:\n<state>".
|
| 170 |
+
# Every part is tokenized on its own (head, context, each question header, each option block, tail, each answer piece);
|
| 171 |
+
# the letter is read at the final " (" token as in the plain layout.
|
| 172 |
+
LAYOUTS = ("plain", "chat")
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def resolve_layout(cfg):
|
| 176 |
+
"""The prompt layout a decider_config.json names: "plain" (no "layout" key and no "chat_template": true, which is every
|
| 177 |
+
released model) or "chat". Raises ValueError for any other value, so a model trained in a layout
|
| 178 |
+
this version does not know is refused instead of being read in the wrong one."""
|
| 179 |
+
cfg = cfg or {}
|
| 180 |
+
layout = cfg.get("layout")
|
| 181 |
+
if layout is None:
|
| 182 |
+
layout = "chat" if cfg.get("chat_template") is True else "plain"
|
| 183 |
+
if layout not in LAYOUTS:
|
| 184 |
+
raise ValueError(f"decider_config.json names the prompt layout {layout!r}; this version of decider-ai knows "
|
| 185 |
+
f"{', '.join(repr(x) for x in LAYOUTS)}. Upgrade decider-ai, or check the model's config.")
|
| 186 |
+
if layout == "plain" and cfg.get("chat_template") is True:
|
| 187 |
+
raise ValueError('decider_config.json says "layout": "plain" and "chat_template": true; these contradict each other')
|
| 188 |
+
return layout
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
class ChatTemplate:
|
| 192 |
+
"""Token ids of the tokenizer's chat template around one user turn, and the answer pieces of the assistant turn.
|
| 193 |
+
|
| 194 |
+
head/tail come from tok.apply_chat_template([user turn], add_generation_prompt=True) with thinking disabled
|
| 195 |
+
(enable_thinking=False where the template knows the switch; a thinking block the template leaves open is closed here),
|
| 196 |
+
with no system prompt. This is the computation of the chat-layout research server the chat models were trained against."""
|
| 197 |
+
SENTINEL = "@@DECIDER_USER_CONTENT@@"
|
| 198 |
+
|
| 199 |
+
def __init__(self, tok, answer="Answer"):
|
| 200 |
+
if not getattr(tok, "chat_template", None):
|
| 201 |
+
raise ValueError('the model is configured for the chat layout ("layout": "chat") but its tokenizer has no chat template')
|
| 202 |
+
msgs = [{"role": "user", "content": self.SENTINEL}]
|
| 203 |
+
kw = {"enable_thinking": False} if "enable_thinking" in tok.chat_template else {}
|
| 204 |
+
s = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True, **kw)
|
| 205 |
+
head, tail = s.split(self.SENTINEL)
|
| 206 |
+
for opened, closed in (("<think>\n", "</think>\n\n"), ("<think>", "</think>\n\n"), ("<|channel>thought\n", "<channel|>")):
|
| 207 |
+
if tail.endswith(opened):
|
| 208 |
+
tail += closed
|
| 209 |
+
self.head_text, self.tail_text = head, tail
|
| 210 |
+
self.head = tok.encode(head, add_special_tokens=False)
|
| 211 |
+
self.tail = tok.encode(tail, add_special_tokens=False)
|
| 212 |
+
self.answer = answer
|
| 213 |
+
names, ids, _ = label_table(tok)
|
| 214 |
+
pre = tok.encode(f"{answer}: (", add_special_tokens=False)
|
| 215 |
+
for n, i in list(zip(names, ids))[:NARROW]:
|
| 216 |
+
if tok.encode(f"{answer}: ({n}", add_special_tokens=False) != pre + [i]:
|
| 217 |
+
raise ValueError(f"chat layout: the label {n!r} does not tokenize as one token after {answer!r}: (")
|
| 218 |
+
if tok.encode(tail + f"{answer}: (", add_special_tokens=False) != self.tail + pre:
|
| 219 |
+
raise ValueError("chat layout: the chat template tail merges with the answer prefix")
|
| 220 |
+
|
| 221 |
+
def answer_ids(self, tok, k, multi):
|
| 222 |
+
"""Token ids of answer piece k: "Answer: (" (or "Answer k: (" with several questions), later pieces after a newline."""
|
| 223 |
+
return tok.encode(f"{'' if k == 0 else chr(10)}{self.answer}{' ' + str(k + 1) if multi else ''}: (", add_special_tokens=False)
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
_CHAT = {}
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
def chat_template(tok):
|
| 230 |
+
"""The ChatTemplate of a tokenizer, cached per tokenizer object."""
|
| 231 |
+
key = id(tok)
|
| 232 |
+
if key not in _CHAT:
|
| 233 |
+
_CHAT[key] = (tok, ChatTemplate(tok)) # keep tok alive so its id is not reused
|
| 234 |
+
return _CHAT[key][1]
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
def chat_for(tok, cfg):
|
| 238 |
+
"""The ChatTemplate to pass as `chat=` for a model with this decider_config.json, or None for a plain-layout model."""
|
| 239 |
+
return chat_template(tok) if resolve_layout(cfg) == "chat" else None
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
def load_decider_config(path):
|
| 243 |
+
"""decider_config.json of a model folder or a Hub repository id; {} when the model has none (a raw base model)."""
|
| 244 |
+
import json, os
|
| 245 |
+
if os.path.isdir(path):
|
| 246 |
+
f = os.path.join(path, "decider_config.json")
|
| 247 |
+
return json.load(open(f)) if os.path.exists(f) else {}
|
| 248 |
+
try:
|
| 249 |
+
from huggingface_hub import hf_hub_download
|
| 250 |
+
return json.load(open(hf_hub_download(path, "decider_config.json")))
|
| 251 |
+
except Exception:
|
| 252 |
+
return {}
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
def chat_for_model(path, tok):
|
| 256 |
+
"""chat_for(tok, the model's decider_config.json): what every script that builds prompts for `path` passes as `chat=`."""
|
| 257 |
+
return chat_for(tok, load_decider_config(path))
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def build_chat(example, tok, chat, rng=None, max_options=NARROW, max_ctx_tokens=1536):
|
| 261 |
+
"""State-first chat layout (see the comment above LAYOUTS). Same return fields as `build`. max_ctx_tokens caps the
|
| 262 |
+
tokens of "Context:\\n" + state, as in the plain layout; the template head and tail are not counted."""
|
| 263 |
+
rng = rng or random
|
| 264 |
+
qs = example.qs; multi = len(qs) > 1
|
| 265 |
+
ids = list(chat.head) + tok.encode("Context:\n" + example.context, add_special_tokens=False)[:max_ctx_tokens]
|
| 266 |
+
golds, nopts, perms = [], [], []
|
| 267 |
+
for k, q in enumerate(qs):
|
| 268 |
+
opts = _select(q, rng, max_options)
|
| 269 |
+
ids += tok.encode(f"\n\nQuestion{' ' + str(k + 1) if multi else ''}: {q.text}\nOptions:", add_special_tokens=False) + _options_ids(tok, q, opts)
|
| 270 |
+
golds.append(opts.index(q.gold) if q.gold in opts else -1); nopts.append(len(opts)); perms.append(opts)
|
| 271 |
+
ids += chat.tail
|
| 272 |
+
slots = []
|
| 273 |
+
for k in range(len(qs)):
|
| 274 |
+
ids += chat.answer_ids(tok, k, multi); slots.append(len(ids) - 1)
|
| 275 |
+
return dict(ids=ids, slots=slots, golds=golds, nopts=nopts, perms=perms)
|
| 276 |
+
|
| 277 |
+
|
| 278 |
def letter_ids(tok):
|
| 279 |
ids = label_table(tok)[1]
|
| 280 |
for j, L in enumerate(LETTERS):
|
decider/prompt_fast.py
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Row construction for the systemone path that tokenizes the state once per request instead of once per question.
|
| 2 |
+
|
| 3 |
+
`prompt.build` encodes `"Context:\\n" + state` for every row it is called with, so an independent request with n
|
| 4 |
+
questions tokenizes the whole state n times. The question block is encoded as its own string there and simply appended,
|
| 5 |
+
so the ids are exactly `ctx_ids + question_piece`; this module reuses that fact and shares `ctx_ids` across the rows.
|
| 6 |
+
|
| 7 |
+
`build_rows` returns the same item dicts as
|
| 8 |
+
[prompt.build(Example(ctx, [Q(text, options, 0) for text, options in row]), tok, <no-shuffle rng>,
|
| 9 |
+
max_options=MAX_OPTIONS, max_ctx_tokens=max_ctx_tokens) for row in rows]
|
| 10 |
+
(ids, slots, golds, nopts, perms) and is checked against it in tests/test_prompt_fast.py.
|
| 11 |
+
"""
|
| 12 |
+
from decider.prompt import LETTERS, NARROW, MAX_OPTIONS, label_table, _enc_opt, _options_ids
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def context_ids(tok, context, max_ctx_tokens=32768):
|
| 16 |
+
return tok.encode("Context:\n" + context, add_special_tokens=False)[:max_ctx_tokens]
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def question_piece(tok, text, options, k=0, multi=False):
|
| 20 |
+
"""Token ids of one `\\n\\nQuestion...: <text>\\nOptions:...\\nAnswer...: (` block, independent of the state."""
|
| 21 |
+
head = f"\n\nQuestion{' ' + str(k + 1) if multi else ''}: {text}\nOptions:"
|
| 22 |
+
tail = f"\nAnswer{' ' + str(k + 1) if multi else ''}: ("
|
| 23 |
+
if len(options) <= NARROW:
|
| 24 |
+
return tok.encode(head + "".join(f"\n({LETTERS[j]}) {o}" for j, o in enumerate(options)) + tail,
|
| 25 |
+
add_special_tokens=False)
|
| 26 |
+
_, lab_ids, open_ids = label_table(tok)
|
| 27 |
+
piece = tok.encode(head, add_special_tokens=False)
|
| 28 |
+
for j, o in enumerate(options):
|
| 29 |
+
piece += open_ids + [lab_ids[j]] + _enc_opt(tok, o)
|
| 30 |
+
return piece + tok.encode(tail, add_special_tokens=False)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class _Opts:
|
| 34 |
+
def __init__(self, options): self.options = options
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _chat_row(tok, chat, ctx, row):
|
| 38 |
+
"""One chat-layout row after the shared ids `ctx` (template head + context): every question block, the template tail,
|
| 39 |
+
then the answer pieces. Equal to prompt.build_chat for the same row (tests/test_layout.py)."""
|
| 40 |
+
multi = len(row) > 1
|
| 41 |
+
ids = list(ctx)
|
| 42 |
+
for k, (text, options) in enumerate(row):
|
| 43 |
+
ids += tok.encode(f"\n\nQuestion{' ' + str(k + 1) if multi else ''}: {text}\nOptions:", add_special_tokens=False)
|
| 44 |
+
ids += _options_ids(tok, _Opts(options), list(range(len(options))))
|
| 45 |
+
ids += chat.tail
|
| 46 |
+
slots = []
|
| 47 |
+
for k in range(len(row)):
|
| 48 |
+
ids += chat.answer_ids(tok, k, multi); slots.append(len(ids) - 1)
|
| 49 |
+
return ids, slots
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def build_rows(tok, context, rows, max_ctx_tokens=32768, chat=None):
|
| 53 |
+
"""rows: list of rows, each a list of (question text, options). -> (items, len(ctx_ids)).
|
| 54 |
+
|
| 55 |
+
Option order is kept as given (no shuffling, no subsetting): systemone.render_question already caps a choice at
|
| 56 |
+
MAX_OPTIONS options, so prompt.build's sampling branch is unreachable here.
|
| 57 |
+
chat: a ChatTemplate (prompt.chat_template) for a chat-layout model; the shared ids are then the template head plus the
|
| 58 |
+
context, and each row is prompt.build_chat's rendering."""
|
| 59 |
+
ctx = context_ids(tok, context, max_ctx_tokens)
|
| 60 |
+
if chat is not None:
|
| 61 |
+
ctx = list(chat.head) + ctx
|
| 62 |
+
items = []
|
| 63 |
+
for row in rows:
|
| 64 |
+
multi = len(row) > 1
|
| 65 |
+
ids = list(ctx); slots = []; nopts = []
|
| 66 |
+
for k, (text, options) in enumerate(row):
|
| 67 |
+
if not 2 <= len(options) <= MAX_OPTIONS:
|
| 68 |
+
raise ValueError(f"2..{MAX_OPTIONS} options required")
|
| 69 |
+
if chat is None:
|
| 70 |
+
ids.extend(question_piece(tok, text, options, k, multi))
|
| 71 |
+
slots.append(len(ids) - 1)
|
| 72 |
+
nopts.append(len(options))
|
| 73 |
+
if chat is not None:
|
| 74 |
+
ids, slots = _chat_row(tok, chat, ctx, row)
|
| 75 |
+
items.append(dict(ids=ids, slots=slots, golds=[0] * len(row), nopts=nopts,
|
| 76 |
+
perms=[list(range(len(o))) for _, o in row]))
|
| 77 |
+
return items, len(ctx)
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def unique_tokens(items, ctx_len):
|
| 81 |
+
"""systemone.unique_tokens(items) without re-walking the shared context (all rows start with the same ctx_len ids).
|
| 82 |
+
No rows (a request with no questions) counts 0, as systemone.unique_tokens does."""
|
| 83 |
+
if not items:
|
| 84 |
+
return 0
|
| 85 |
+
sufs = [it["ids"][ctx_len:] for it in items]
|
| 86 |
+
if len(sufs) < 2:
|
| 87 |
+
return ctx_len + sum(len(s) for s in sufs)
|
| 88 |
+
lcp = 0; short = min(len(s) for s in sufs); s0 = sufs[0]
|
| 89 |
+
while lcp < short and all(s[lcp] == s0[lcp] for s in sufs): lcp += 1
|
| 90 |
+
return ctx_len + lcp + sum(len(s) - lcp for s in sufs)
|
decider/schema_engine.py
CHANGED
|
@@ -40,7 +40,10 @@ class PrefixCache:
|
|
| 40 |
|
| 41 |
|
| 42 |
class SchemaEngine:
|
| 43 |
-
def __init__(self, engine, use_graphs=True):
|
|
|
|
|
|
|
|
|
|
| 44 |
self.e = engine; self.core = engine.core; self.W = engine.W; self.tok = engine.tok; self.dev = engine.dev
|
| 45 |
self.use_graphs = use_graphs and engine.use_graphs; self.graphs = {}; self.stats = dict(prepared=0, captures=0, replays=0, eager=0)
|
| 46 |
self.compile = bool(engine.cfg.get("compile")); self._compiled = {}
|
|
@@ -55,7 +58,7 @@ class SchemaEngine:
|
|
| 55 |
independent=True: one prefix per question, one row per question (a request costs n * (state + 1 slot); no question
|
| 56 |
can influence another)."""
|
| 57 |
qs = [_Q(q["question"], list(q["options"])) for q in questions]
|
| 58 |
-
groups = [[q] for q in qs] if independent else [qs]; pres = [schema_prefix_ids(self.tok, g) for g in groups]
|
| 59 |
h = types.SimpleNamespace(P=len(groups), nq=len(qs), slots_per_row=1 if independent else len(qs), nopts=[len(q.options) for q in qs], tps=[len(p) for p in pres],
|
| 60 |
tpmax=max(len(p) for p in pres), k={}, v={}, conv={}, rec={}, id=self.stats["prepared"],
|
| 61 |
compile=bool(compile and self.compile))
|
|
@@ -114,7 +117,7 @@ class SchemaEngine:
|
|
| 114 |
|
| 115 |
def tokenize(self, h, context, max_ctx_tokens=1536):
|
| 116 |
"""CPU part of a request (do it outside any GPU lock): -> (suffix ids, slot positions)."""
|
| 117 |
-
return schema_suffix_ids(self.tok, context, h.slots_per_row, max_ctx_tokens)
|
| 118 |
|
| 119 |
@staticmethod
|
| 120 |
def bucket(n_tokens):
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
class SchemaEngine:
|
| 43 |
+
def __init__(self, engine, use_graphs=True, chat=None):
|
| 44 |
+
"""chat: the ChatTemplate of a chat-layout model (decider.prompt.chat_template); the prefix then starts with the template
|
| 45 |
+
head and the suffix ends with the template tail and the answer pieces (decider.prompt.build_schema_first with chat)."""
|
| 46 |
+
self.chat = chat
|
| 47 |
self.e = engine; self.core = engine.core; self.W = engine.W; self.tok = engine.tok; self.dev = engine.dev
|
| 48 |
self.use_graphs = use_graphs and engine.use_graphs; self.graphs = {}; self.stats = dict(prepared=0, captures=0, replays=0, eager=0)
|
| 49 |
self.compile = bool(engine.cfg.get("compile")); self._compiled = {}
|
|
|
|
| 58 |
independent=True: one prefix per question, one row per question (a request costs n * (state + 1 slot); no question
|
| 59 |
can influence another)."""
|
| 60 |
qs = [_Q(q["question"], list(q["options"])) for q in questions]
|
| 61 |
+
groups = [[q] for q in qs] if independent else [qs]; pres = [schema_prefix_ids(self.tok, g, chat=self.chat) for g in groups]
|
| 62 |
h = types.SimpleNamespace(P=len(groups), nq=len(qs), slots_per_row=1 if independent else len(qs), nopts=[len(q.options) for q in qs], tps=[len(p) for p in pres],
|
| 63 |
tpmax=max(len(p) for p in pres), k={}, v={}, conv={}, rec={}, id=self.stats["prepared"],
|
| 64 |
compile=bool(compile and self.compile))
|
|
|
|
| 117 |
|
| 118 |
def tokenize(self, h, context, max_ctx_tokens=1536):
|
| 119 |
"""CPU part of a request (do it outside any GPU lock): -> (suffix ids, slot positions)."""
|
| 120 |
+
return schema_suffix_ids(self.tok, context, h.slots_per_row, max_ctx_tokens, chat=self.chat)
|
| 121 |
|
| 122 |
@staticmethod
|
| 123 |
def bucket(n_tokens):
|
decider/serve.py
CHANGED
|
@@ -1,59 +1,142 @@
|
|
| 1 |
-
"""
|
| 2 |
POST /decide {"context": str, "schema": {...}} -> typed JSON decisions (all questions packed in one row)
|
|
|
|
|
|
|
| 3 |
POST /v1/systemone {"state": str|object|array, "questions": {id: {...}}} -> the TypeSafe/Jev wire format (decider.systemone):
|
| 4 |
Choice (up to 255 described options), Score, Noul; every question is scored in its own row, so answers
|
| 5 |
are independent of each other ("independent": false packs them behind one copy of the state instead).
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"""
|
| 9 |
-
import asyncio,
|
|
|
|
|
|
|
| 10 |
from fastapi import FastAPI, HTTPException
|
| 11 |
from pydantic import BaseModel
|
| 12 |
-
from decider.engine import Engine, T_BUCKETS, _bucket
|
| 13 |
-
from decider.prompt import build, MAX_OPTIONS
|
| 14 |
-
from decider.infer import Decider, Example, Q, neutralize_options
|
| 15 |
from decider import systemone as S1
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
MODEL = os.environ.get("DECIDER_MODEL", "runs/r3_v2/model")
|
| 18 |
-
MAX_BATCH = int(os.environ.get("DECIDER_MAX_BATCH", "32"))
|
| 19 |
-
MAX_WAIT_MS = float(os.environ.get("DECIDER_MAX_WAIT_MS", "8"))
|
| 20 |
-
BATCH_WAIT_MS = float(os.environ.get("DECIDER_BATCH_WAIT_MS", "0"))
|
| 21 |
-
MAX_STATE_TOKENS = int(os.environ.get("DECIDER_MAX_STATE_TOKENS", "32768"))
|
| 22 |
-
MAX_FWD_TOKENS = int(os.environ.get("DECIDER_MAX_FWD_TOKENS", "65536")) # padded tokens per forward pass
|
| 23 |
-
COMPILE = os.environ.get("DECIDER_COMPILE", "1") == "1"
|
| 24 |
-
FP8 = os.environ.get("DECIDER_FP8", "1") == "1"
|
| 25 |
-
app = FastAPI(title="decider")
|
| 26 |
-
MODEL_NAME = "decider"; TEMP = 1.0; TEMP_SCHEMA = 1.0; RELEASE_DATE = "2026-09-17"
|
| 27 |
-
gpu_lock = threading.Lock() # one GPU job at a time: batched graph replays and shared-prefix requests must not interleave
|
| 28 |
-
SHARED_MIN_TOKENS = int(os.environ.get("DECIDER_SHARED_MIN_TOKENS", "768")) # independent rows over a state this long share one prefix pass
|
| 29 |
-
eng = None; queue = None; stats = dict(requests=0, batches=0, decisions=0, batch_hist={})
|
| 30 |
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
|
|
|
|
| 41 |
class _NoShuffle:
|
| 42 |
def shuffle(self, x): pass
|
| 43 |
def sample(self, xs, k): return xs[:k]
|
| 44 |
|
| 45 |
|
| 46 |
-
def
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
qs = Decider._schema_to_questions(schema)
|
| 48 |
for q in qs:
|
| 49 |
-
if
|
| 50 |
q["options"], q["_back"] = neutralize_options(q["options"])
|
| 51 |
ex = Example(context, [Q(q["question"], list(q["options"]), 0) for q in qs])
|
| 52 |
-
it = build(ex, eng.tok, _NoShuffle(), max_options=MAX_OPTIONS, max_ctx_tokens=
|
| 53 |
return qs, it
|
| 54 |
|
| 55 |
|
| 56 |
-
def
|
| 57 |
o = {}
|
| 58 |
for (qtext, spec), q, p in zip(schema.items(), qs, probs):
|
| 59 |
p = p[:len(q["options"])].tolist(); t = spec.get("type", "choice"); j = max(range(len(p)), key=p.__getitem__)
|
|
@@ -70,11 +153,62 @@ def _format(schema, qs, probs):
|
|
| 70 |
return o
|
| 71 |
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
while len(batch) < MAX_BATCH:
|
| 79 |
try:
|
| 80 |
batch.append(q.get_nowait())
|
|
@@ -86,133 +220,109 @@ async def _collect(q):
|
|
| 86 |
return batch
|
| 87 |
|
| 88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
async def batcher():
|
|
|
|
|
|
|
| 90 |
loop = asyncio.get_running_loop()
|
|
|
|
| 91 |
while True:
|
| 92 |
-
batch = await _collect(queue)
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
cut = len(batch) // 2; groups = [batch[:cut], batch[cut:]]
|
| 100 |
-
capped = [] # long rows: keep every forward under MAX_FWD_TOKENS padded tokens
|
| 101 |
-
for g in groups:
|
| 102 |
-
cur = []
|
| 103 |
-
for x in g:
|
| 104 |
-
if cur and (len(cur) + 1) * len(x[2]["ids"]) > MAX_FWD_TOKENS:
|
| 105 |
-
capped.append(cur); cur = []
|
| 106 |
-
cur.append(x)
|
| 107 |
-
capped.append(cur)
|
| 108 |
-
for g in capped:
|
| 109 |
-
items = [it for _, _, it in g]
|
| 110 |
try:
|
| 111 |
-
probs = await loop.run_in_executor(
|
| 112 |
-
for (fut,
|
| 113 |
if not fut.done(): fut.set_result(p)
|
| 114 |
except Exception as e:
|
| 115 |
-
for fut, _, _ in
|
| 116 |
if not fut.done(): fut.set_exception(e)
|
| 117 |
-
stats["batches"] += 1
|
|
|
|
| 118 |
|
| 119 |
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
eng = Engine(MODEL, compile=COMPILE, fp8=FP8, conv_patch=COMPILE); print("[serve] engine", eng.cfg, flush=True)
|
| 124 |
-
import json
|
| 125 |
-
global MODEL_NAME, TEMP
|
| 126 |
-
try: cfg = json.load(open(os.path.join(MODEL, "decider_config.json")))
|
| 127 |
-
except Exception: cfg = {}
|
| 128 |
-
eng.neutralize_none = bool(cfg.get("neutralize_none", True)); MODEL_NAME = "decider-" + str(cfg.get("version", "dev"))
|
| 129 |
-
TEMP = float(os.environ.get("DECIDER_TEMPERATURE", cfg.get("temperature", 1.0)))
|
| 130 |
-
global RELEASE_DATE; RELEASE_DATE = str(cfg.get("release_date", RELEASE_DATE))
|
| 131 |
-
global SCHEMA_FIRST, se, squeue, ISOLATED
|
| 132 |
-
ISOLATED = bool(cfg.get("isolated_levels", False))
|
| 133 |
-
# the schema cache needs the questions-first layout, which costs accuracy (about 1.5 points on fixed label sets, more on large
|
| 134 |
-
# label sets and long states): on when the model's config makes it the default, or with DECIDER_SCHEMA_CACHE=1
|
| 135 |
-
trained = bool(cfg.get("schema_first", False) or cfg.get("schema_first_trained", False))
|
| 136 |
-
SCHEMA_FIRST = trained and (bool(cfg.get("schema_first", False)) or os.environ.get("DECIDER_SCHEMA_CACHE", "0") == "1")
|
| 137 |
-
global TEMP_SCHEMA; TEMP_SCHEMA = float(cfg.get("temperature_schema_first", TEMP))
|
| 138 |
-
if SCHEMA_FIRST:
|
| 139 |
-
from decider.schema_engine import SchemaEngine
|
| 140 |
-
se = SchemaEngine(eng); squeue = asyncio.Queue(); asyncio.create_task(schema_batcher()); print("[serve] schema cache on", flush=True)
|
| 141 |
-
pre = os.environ.get("DECIDER_SCHEMAS") # JSON file: [{"questions": {...}, "independent": true, "batch_sizes": [1, 8, 32], "state_tokens": [64, 256]}]
|
| 142 |
-
for spec in (json.load(open(pre)) if pre else []): # known schemas: prefix computed, graphs compiled and captured before traffic
|
| 143 |
-
_, h, _ = _schema_handle(spec["questions"], spec.get("independent", True), compile=COMPILE)
|
| 144 |
-
t = se.warmup(h, spec.get("batch_sizes", (1, 8, 32)), spec.get("state_tokens", (64, 128, 256)))
|
| 145 |
-
print(f"[serve] preloaded schema with {h.nq} rows, prefix {sum(h.tps)} tokens, graphs ready in {t:.0f}s", flush=True)
|
| 146 |
-
shapes = [(B, T) for B in (1, 2, 4, 8, 16, 32) for T in T_BUCKETS if T <= eng.max_ctx + 256]
|
| 147 |
-
if MAX_BATCH > 32: shapes += [(64, T) for T in T_BUCKETS if T <= 512]
|
| 148 |
-
t = eng.warmup(shapes); print(f"[serve] captured {len(shapes)} graphs in {t:.0f}s", flush=True)
|
| 149 |
-
queue = asyncio.Queue()
|
| 150 |
-
asyncio.create_task(batcher())
|
| 151 |
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
qs, it = await asyncio.get_running_loop().run_in_executor(None, _prepare, r.context, r.schema_)
|
| 156 |
-
fut = asyncio.get_running_loop().create_future()
|
| 157 |
-
await queue.put((fut, qs, it))
|
| 158 |
-
probs = await fut
|
| 159 |
-
stats["requests"] += 1; stats["decisions"] += len(qs)
|
| 160 |
-
return _format(r.schema_, qs, probs)
|
| 161 |
-
|
| 162 |
|
| 163 |
-
SCHEMA_FIRST = False; se = None; squeue = None; schemas = {} # schema cache (models trained on the questions-first layout, v7+)
|
| 164 |
|
| 165 |
-
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
|
| 169 |
def _schema_handle(questions, independent, compile=False):
|
| 170 |
-
"""Compile (or look up) the question schema: its prefix is run once, requests then only run the state."""
|
| 171 |
-
|
| 172 |
-
key = (json.dumps(questions, sort_keys=True, ensure_ascii=False), independent)
|
| 173 |
if key not in schemas:
|
| 174 |
rqs = {k: S1.render_question(v) for k, v in questions.items()}; rows, index = S1.plan_rows(rqs, ISOLATED and independent)
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
h = se.prepare(rows, independent=independent, compile=compile)
|
| 180 |
schemas[key] = (rqs, h, index)
|
| 181 |
return schemas[key]
|
| 182 |
|
| 183 |
|
| 184 |
-
seen = {}
|
| 185 |
-
|
| 186 |
-
|
| 187 |
def _worth_caching(questions, independent):
|
| 188 |
-
"""A schema gets a cached prefix and CUDA graphs from its second request on
|
| 189 |
-
|
| 190 |
-
import json
|
| 191 |
-
key = (json.dumps(questions, sort_keys=True, ensure_ascii=False), independent)
|
| 192 |
if key in schemas: return True
|
| 193 |
if len(seen) > 50000: seen.clear()
|
| 194 |
seen[key] = seen.get(key, 0) + 1
|
| 195 |
-
return seen[key] >=
|
| 196 |
|
| 197 |
|
| 198 |
def _score_schema(h, rows):
|
| 199 |
-
|
| 200 |
-
return se.score_rows(h, rows, temperature=TEMP_SCHEMA)
|
| 201 |
|
| 202 |
|
| 203 |
async def schema_batcher():
|
| 204 |
-
"""Requests that share a schema and arrive within the window are scored in one forward pass over their states."""
|
| 205 |
loop = asyncio.get_running_loop()
|
| 206 |
while True:
|
| 207 |
batch = await _collect(squeue)
|
| 208 |
-
groups = {}
|
| 209 |
for fut, h, row in batch: groups.setdefault((h.id, se.bucket(len(row[0]))), (h, []))[1].append((fut, row))
|
| 210 |
for h, items in groups.values():
|
| 211 |
step = max(1, MAX_BATCH // h.P)
|
| 212 |
for i in range(0, len(items), step):
|
| 213 |
chunk = items[i:i + step]
|
| 214 |
try:
|
| 215 |
-
probs = await loop.run_in_executor(
|
| 216 |
for (fut, _), p in zip(chunk, probs):
|
| 217 |
if not fut.done(): fut.set_result(p)
|
| 218 |
except Exception as e:
|
|
@@ -221,9 +331,112 @@ async def schema_batcher():
|
|
| 221 |
stats["schema_batches"] = stats.get("schema_batches", 0) + 1
|
| 222 |
|
| 223 |
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
|
| 228 |
|
| 229 |
class S1Req(BaseModel):
|
|
@@ -234,44 +447,84 @@ class S1Req(BaseModel):
|
|
| 234 |
layout: str | None = None # "state_first" forces the uncached layout on a schema-first model
|
| 235 |
|
| 236 |
|
| 237 |
-
def
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
|
| 245 |
|
| 246 |
@app.post("/v1/systemone")
|
| 247 |
async def systemone(r: S1Req):
|
| 248 |
loop = asyncio.get_running_loop()
|
| 249 |
-
if SCHEMA_FIRST and r.layout != "state_first" and _worth_caching(r.questions, r.independent):
|
| 250 |
-
try:
|
| 251 |
-
|
| 252 |
except ValueError as e:
|
|
|
|
| 253 |
raise HTTPException(422, str(e))
|
| 254 |
-
|
| 255 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
stats["requests"] += 1; stats["decisions"] += len(rqs); stats["schema_requests"] = stats.get("schema_requests", 0) + 1
|
| 257 |
return {"model": MODEL_NAME, "answers": S1.assemble(rqs, index, [pk.tolist() for pk in p]),
|
| 258 |
"usage": {"input_tokens": len(row[0]) * h.P, "cached_tokens": sum(h.tps), "output_tokens": 0}}
|
| 259 |
try:
|
| 260 |
-
|
| 261 |
except ValueError as e:
|
|
|
|
| 262 |
raise HTTPException(422, str(e))
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
probs = [p for ps in res for p in ps] # one prob row per question, request order
|
| 272 |
-
stats["requests"] += 1; stats["decisions"] += len(rqs)
|
| 273 |
return {"model": MODEL_NAME, "answers": S1.assemble(rqs, index, [p.tolist() for p in probs]),
|
| 274 |
-
"usage": {"input_tokens":
|
| 275 |
|
| 276 |
|
| 277 |
@app.get("/v1/models")
|
|
@@ -281,9 +534,12 @@ async def models():
|
|
| 281 |
|
| 282 |
@app.get("/health")
|
| 283 |
async def health():
|
| 284 |
-
return {"ok": eng is not None, "model": MODEL
|
|
|
|
| 285 |
|
| 286 |
|
| 287 |
@app.get("/stats")
|
| 288 |
async def get_stats():
|
| 289 |
-
return dict(stats, engine=eng.stats if eng else None, graphs=len(eng.graphs) if eng else 0
|
|
|
|
|
|
|
|
|
| 1 |
+
"""HTTP server.
|
| 2 |
POST /decide {"context": str, "schema": {...}} -> typed JSON decisions (all questions packed in one row)
|
| 3 |
+
schema: {question: {"type": "choice", "options": [...]} | {"type": "bool"} | {"type": "scale", "legend": [...]}};
|
| 4 |
+
a missing or malformed schema is a 422 naming this form (decider.infer.Decider._check_schema)
|
| 5 |
POST /v1/systemone {"state": str|object|array, "questions": {id: {...}}} -> the TypeSafe/Jev wire format (decider.systemone):
|
| 6 |
Choice (up to 255 described options), Score, Noul; every question is scored in its own row, so answers
|
| 7 |
are independent of each other ("independent": false packs them behind one copy of the state instead).
|
| 8 |
+
GET /v1/models /health /stats
|
| 9 |
+
|
| 10 |
+
uvicorn decider.serve:app --host 0.0.0.0 --port 8000 (env: DECIDER_MODEL and the variables below)
|
| 11 |
+
|
| 12 |
+
Execution (1.1.1; docs/SERVING.md has the design and the measurements):
|
| 13 |
+
* decider.engine_v2.EngineV2: CUDA graphs keyed on (batch bucket, padded length bucket) only. The whole grid is captured
|
| 14 |
+
during start-up and the engine is then sealed, so no request pays a graph capture or a torch.compile. Rows longer than the
|
| 15 |
+
last length bucket (8,192 tokens) run eager, in chunks bounded by DECIDER_GRAPH_TOKEN_BUDGET padded tokens.
|
| 16 |
+
* one GPU thread runs every forward; tokenisation runs on a CPU pool; rows waiting at the same moment are partitioned by
|
| 17 |
+
decider.batching.plan_batches, which pads a shorter row into a longer row's bucket when that costs less than a second
|
| 18 |
+
forward (cost model: DECIDER_MERGE_OVERHEAD_TOKENS + rows * padded length). When a collection held rows from more than
|
| 19 |
+
one live request the next one waits up to DECIDER_BATCH_ADAPTIVE_WAIT_MS for more rows, unless its own first row took
|
| 20 |
+
more than 50 ms to arrive (a quiet queue drops the window again); after a single-request collection it does not wait.
|
| 21 |
+
* an independent request with more than one question over a state of at least DECIDER_SHARED_MIN_TOKENS tokens runs the state
|
| 22 |
+
once and forks its cache per question (EngineV2.score_shared, decider.shared_prefix). The fork is made in chunks that fit
|
| 23 |
+
DECIDER_SHARED_FORK_GB, so the peak memory does not grow with the question count. The cuDNN SDPA backend is off
|
| 24 |
+
(decider.engine.set_attention_backend_policy), which is what makes that path agree with the full forward.
|
| 25 |
+
* the schema cache (questions-first layout, prefix cached per question set) is honoured exactly as before: on when
|
| 26 |
+
decider_config.json has "schema_first": true, or with DECIDER_SCHEMA_CACHE=1 on a model trained for that layout. It is
|
| 27 |
+
the one path that does GPU work after start-up that is not a graph replay: the first request with a new schema runs its
|
| 28 |
+
prefix and captures one graph per (schema, batch bucket, state bucket) as in 1.0.x (/stats -> schema_cache.captures).
|
| 29 |
+
Its requests are bounded and admitted like the others, on prefix plus suffix tokens, before any GPU preparation.
|
| 30 |
+
* prompt layout (1.2.0): a model whose decider_config.json has "layout": "chat" (a chat-trained checkpoint) is read in the chat layout
|
| 31 |
+
(decider.prompt.build_chat: the tokenizer's chat template around one user turn, thinking off, "Answer: (" in the assistant
|
| 32 |
+
turn) on every route, including the shared-prefix fork and the schema cache. Every other model is read in the plain
|
| 33 |
+
layout, with the same token ids as 1.1.x. A config naming an unknown layout stops start-up with a ValueError.
|
| 34 |
+
* requests are bounded before they reach the GPU: HTTP 413 when a row, the request or the expanded question count exceeds the
|
| 35 |
+
limits below, HTTP 503 when the outstanding work exceeds DECIDER_MAX_QUEUE_ROWS.
|
| 36 |
+
|
| 37 |
+
Variables (default): DECIDER_DEVICE (auto: cuda, else mps, else cpu) DECIDER_COMPILE (0) DECIDER_FP8 (0) DECIDER_SHARED (1) DECIDER_SHARED_MIN_TOKENS (768)
|
| 38 |
+
DECIDER_SHARED_FORK_GB (8) DECIDER_MERGE_OVERHEAD_TOKENS (512) DECIDER_BATCH_ADAPTIVE_WAIT_MS (2)
|
| 39 |
+
DECIDER_MAX_BATCH (32) DECIDER_BATCH_WAIT_MS (0; DECIDER_MAX_WAIT_MS is an alias) DECIDER_MAX_STATE_TOKENS (32768)
|
| 40 |
+
DECIDER_T_BUCKETS DECIDER_B_BUCKETS DECIDER_GRAPH_TOKEN_BUDGET (32768) DECIDER_WARMUP (1) DECIDER_TOKENIZE_THREADS (8)
|
| 41 |
+
DECIDER_MAX_ROWS (1024) DECIDER_MAX_ROW_TOKENS (DECIDER_MAX_STATE_TOKENS + 4096) DECIDER_MAX_REQUEST_TOKENS (1048576)
|
| 42 |
+
DECIDER_MAX_QUEUE_ROWS (4096) DECIDER_TEMPERATURE DECIDER_SCHEMA_CACHE (0) DECIDER_SCHEMA_MIN_SEEN (2) DECIDER_SCHEMAS
|
| 43 |
"""
|
| 44 |
+
import asyncio, json, os, time
|
| 45 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 46 |
+
from contextlib import asynccontextmanager
|
| 47 |
from fastapi import FastAPI, HTTPException
|
| 48 |
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
|
| 49 |
from decider import systemone as S1
|
| 50 |
+
from decider.batching import DEFAULT_MERGE_OVERHEAD_TOKENS, plan_batches
|
| 51 |
+
from decider.prompt import build, MAX_OPTIONS, resolve_layout, chat_template
|
| 52 |
+
from decider.prompt_fast import build_rows, unique_tokens
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
+
def _env_int(name, default):
|
| 56 |
+
return int(os.environ.get(name, default))
|
| 57 |
|
| 58 |
+
|
| 59 |
+
MODEL = os.environ.get("DECIDER_MODEL", "runs/r3_v2/model")
|
| 60 |
+
MAX_BATCH = _env_int("DECIDER_MAX_BATCH", 32)
|
| 61 |
+
BATCH_WAIT_MS = float(os.environ.get("DECIDER_BATCH_WAIT_MS", os.environ.get("DECIDER_MAX_WAIT_MS", "0")))
|
| 62 |
+
ADAPTIVE_WAIT_MS = float(os.environ.get("DECIDER_BATCH_ADAPTIVE_WAIT_MS", "2")) # window after a collection that held >1 request; 0 disables
|
| 63 |
+
ADAPTIVE_IDLE_RESET_MS = 50.0 # an idler queue than this drops the adaptive window again
|
| 64 |
+
MERGE_OVERHEAD_TOKENS = _env_int("DECIDER_MERGE_OVERHEAD_TOKENS", DEFAULT_MERGE_OVERHEAD_TOKENS)
|
| 65 |
+
MAX_STATE_TOKENS = _env_int("DECIDER_MAX_STATE_TOKENS", 32768)
|
| 66 |
+
SHARED = os.environ.get("DECIDER_SHARED", "1") == "1"
|
| 67 |
+
SHARED_MIN_TOKENS = _env_int("DECIDER_SHARED_MIN_TOKENS", 768)
|
| 68 |
+
DEVICE = os.environ.get("DECIDER_DEVICE", "auto") # auto | cuda[:i] | mps | cpu
|
| 69 |
+
COMPILE = os.environ.get("DECIDER_COMPILE", "0") == "1"
|
| 70 |
+
FP8 = os.environ.get("DECIDER_FP8", "0") == "1"
|
| 71 |
+
WARMUP = os.environ.get("DECIDER_WARMUP", "1") == "1"
|
| 72 |
+
TOKENIZE_THREADS = _env_int("DECIDER_TOKENIZE_THREADS", 8)
|
| 73 |
+
GRAPH_TOKEN_BUDGET = _env_int("DECIDER_GRAPH_TOKEN_BUDGET", 32768)
|
| 74 |
+
# request bounds, checked after tokenisation and before anything is queued
|
| 75 |
+
MAX_ROWS = _env_int("DECIDER_MAX_ROWS", 1024) # scoring rows per request (questions, expanded score levels)
|
| 76 |
+
MAX_ROW_TOKENS = _env_int("DECIDER_MAX_ROW_TOKENS", MAX_STATE_TOKENS + 4096) # tokens in one row: truncated state + question block
|
| 77 |
+
MAX_REQUEST_TOKENS = _env_int("DECIDER_MAX_REQUEST_TOKENS", 1 << 20) # sum of row lengths of one request
|
| 78 |
+
MAX_QUEUE_ROWS = _env_int("DECIDER_MAX_QUEUE_ROWS", 4096) # rows admitted and not yet scored, over all requests
|
| 79 |
+
DECIDE_MAX_CTX_TOKENS = 1536 # /decide context cap, unchanged from 1.0.x
|
| 80 |
+
|
| 81 |
+
MODEL_NAME = "decider"; TEMP = 1.0; TEMP_SCHEMA = 1.0; RELEASE_DATE = "2026-09-17"; ISOLATED = False; NEUTRALIZE_NONE = True
|
| 82 |
+
SCHEMA_FIRST = False; LAYOUT = "plain"; CHAT = None; se = None; squeue = None; schemas = {}; seen = {}
|
| 83 |
+
eng = None; queue = None; gpu = None; cpu = None; batcher_task = None; schema_task = None
|
| 84 |
+
outstanding = 0; REQ_SEQ = 0
|
| 85 |
+
stats = dict(requests=0, batches=0, decisions=0, rows=0, shared_prefix_requests=0, errors=0, rejected_too_large=0,
|
| 86 |
+
rejected_overloaded=0, batch_hist={}, bucket_hist={})
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def _ints(name):
|
| 90 |
+
v = os.environ.get(name)
|
| 91 |
+
return [int(x) for x in v.split(",")] if v else None
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def load_config(path):
|
| 95 |
+
"""decider_config.json from a model folder or a Hub repository (the way decider.infer.Decider resolves it)."""
|
| 96 |
+
try:
|
| 97 |
+
if os.path.isdir(path):
|
| 98 |
+
return json.load(open(os.path.join(path, "decider_config.json")))
|
| 99 |
+
from huggingface_hub import hf_hub_download
|
| 100 |
+
return json.load(open(hf_hub_download(path, "decider_config.json")))
|
| 101 |
+
except Exception:
|
| 102 |
+
return {}
|
| 103 |
|
| 104 |
|
| 105 |
+
# ---- request preparation (CPU) -------------------------------------------
|
| 106 |
class _NoShuffle:
|
| 107 |
def shuffle(self, x): pass
|
| 108 |
def sample(self, xs, k): return xs[:k]
|
| 109 |
|
| 110 |
|
| 111 |
+
def prepare(tok, state, questions, independent, isolated=False, max_state_tokens=32768, chat=None):
|
| 112 |
+
"""Render, plan the rows, tokenize the state once. -> (rqs, index, items, ctx_len). The rows are those
|
| 113 |
+
`prompt.build` produces for the same request (tests/test_prompt_fast.py, tests/test_serve_prepare.py); chat: the
|
| 114 |
+
ChatTemplate of a chat-layout model, None for the plain layout."""
|
| 115 |
+
ctx = S1.render_state(state)
|
| 116 |
+
rqs = {k: S1.render_question(v) for k, v in questions.items()}
|
| 117 |
+
flat, index = S1.plan_rows(rqs, isolated and independent)
|
| 118 |
+
pairs = [(r["question"], list(r["options"])) for r in flat]
|
| 119 |
+
rows = [[p] for p in pairs] if independent else [pairs]
|
| 120 |
+
items, ctx_len = build_rows(tok, ctx, rows, max_ctx_tokens=max_state_tokens, chat=chat)
|
| 121 |
+
return rqs, index, items, ctx_len
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
def _prepare_s1(state, questions, independent):
|
| 125 |
+
return prepare(eng.tok, state, questions, independent, ISOLATED, MAX_STATE_TOKENS, chat=CHAT)
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def _prepare_decide(context, schema):
|
| 129 |
+
from decider.infer import Decider, Example, Q, neutralize_options
|
| 130 |
qs = Decider._schema_to_questions(schema)
|
| 131 |
for q in qs:
|
| 132 |
+
if NEUTRALIZE_NONE:
|
| 133 |
q["options"], q["_back"] = neutralize_options(q["options"])
|
| 134 |
ex = Example(context, [Q(q["question"], list(q["options"]), 0) for q in qs])
|
| 135 |
+
it = build(ex, eng.tok, _NoShuffle(), max_options=MAX_OPTIONS, max_ctx_tokens=DECIDE_MAX_CTX_TOKENS, chat=CHAT)
|
| 136 |
return qs, it
|
| 137 |
|
| 138 |
|
| 139 |
+
def _format_decide(schema, qs, probs):
|
| 140 |
o = {}
|
| 141 |
for (qtext, spec), q, p in zip(schema.items(), qs, probs):
|
| 142 |
p = p[:len(q["options"])].tolist(); t = spec.get("type", "choice"); j = max(range(len(p)), key=p.__getitem__)
|
|
|
|
| 153 |
return o
|
| 154 |
|
| 155 |
|
| 156 |
+
# ---- limits ---------------------------------------------------------------
|
| 157 |
+
def check_size(row_lengths, max_rows=None, max_row_tokens=None, max_request_tokens=None):
|
| 158 |
+
"""Raise HTTPException(413) when a request exceeds the row count, per-row token or total token limit."""
|
| 159 |
+
max_rows = MAX_ROWS if max_rows is None else max_rows
|
| 160 |
+
max_row_tokens = MAX_ROW_TOKENS if max_row_tokens is None else max_row_tokens
|
| 161 |
+
max_request_tokens = MAX_REQUEST_TOKENS if max_request_tokens is None else max_request_tokens
|
| 162 |
+
n, total, longest = len(row_lengths), sum(row_lengths), max(row_lengths, default=0)
|
| 163 |
+
if n > max_rows:
|
| 164 |
+
msg = f"too many questions: the request expands to {n} scoring rows, the limit is {max_rows} (DECIDER_MAX_ROWS)"
|
| 165 |
+
elif longest > max_row_tokens:
|
| 166 |
+
msg = f"too many tokens: one row has {longest} tokens, the limit is {max_row_tokens} per row (DECIDER_MAX_ROW_TOKENS)"
|
| 167 |
+
elif total > max_request_tokens:
|
| 168 |
+
msg = f"too many tokens: the request has {total} tokens over {n} rows, the limit is {max_request_tokens} (DECIDER_MAX_REQUEST_TOKENS)"
|
| 169 |
+
else:
|
| 170 |
+
return
|
| 171 |
+
stats["rejected_too_large"] += 1
|
| 172 |
+
raise HTTPException(413, msg)
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def _admit(n):
|
| 176 |
+
"""Reserve n rows of outstanding work or raise HTTPException(503)."""
|
| 177 |
+
global outstanding
|
| 178 |
+
if outstanding + n > MAX_QUEUE_ROWS:
|
| 179 |
+
stats["rejected_overloaded"] += 1
|
| 180 |
+
raise HTTPException(503, f"server busy: {outstanding} rows queued, the limit is {MAX_QUEUE_ROWS} (DECIDER_MAX_QUEUE_ROWS); retry later")
|
| 181 |
+
outstanding += n
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
def _release(n):
|
| 185 |
+
global outstanding
|
| 186 |
+
outstanding -= n
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
# ---- GPU work ----------------------------------------------------------------
|
| 190 |
+
def _score_items(items):
|
| 191 |
+
return eng.score_items(items, temperature=TEMP)
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
def _score_shared(items):
|
| 195 |
+
return eng.score_shared(items, temperature=TEMP)
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
async def _collect(q, wait_ms=None, adaptive_ms=0.0, idle_reset_ms=None):
|
| 199 |
+
"""Take what is already queued and go.
|
| 200 |
+
|
| 201 |
+
`wait_ms` (DECIDER_BATCH_WAIT_MS) is the unconditional collection window. `adaptive_ms` is the extra window the
|
| 202 |
+
batcher asks for after a collection that held more than one live request; it is dropped again when the first row of
|
| 203 |
+
this collection took longer than `idle_reset_ms` to arrive, so an isolated request after a quiet period never waits.
|
| 204 |
+
"""
|
| 205 |
+
wait = BATCH_WAIT_MS if wait_ms is None else wait_ms
|
| 206 |
+
reset = ADAPTIVE_IDLE_RESET_MS if idle_reset_ms is None else idle_reset_ms
|
| 207 |
+
t0 = time.monotonic()
|
| 208 |
+
batch = [await q.get()]
|
| 209 |
+
if adaptive_ms > 0 and (time.monotonic() - t0) * 1000 <= reset:
|
| 210 |
+
wait = max(wait, adaptive_ms)
|
| 211 |
+
deadline = time.monotonic() + wait / 1000
|
| 212 |
while len(batch) < MAX_BATCH:
|
| 213 |
try:
|
| 214 |
batch.append(q.get_nowait())
|
|
|
|
| 220 |
return batch
|
| 221 |
|
| 222 |
|
| 223 |
+
def _bucketed(n):
|
| 224 |
+
"""False for a row longer than the engine's last captured length bucket. Those run eager at a request-specific shape,
|
| 225 |
+
so they are grouped by exact padded length as in 1.1.0 instead of being padded into another row's bucket."""
|
| 226 |
+
t_bucket = getattr(eng, "t_bucket", None)
|
| 227 |
+
return True if t_bucket is None else t_bucket(n) is not None
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
def adaptive_ms(batch):
|
| 231 |
+
"""The extra collection window the next collection may use: DECIDER_BATCH_ADAPTIVE_WAIT_MS when this collection held
|
| 232 |
+
live rows from more than one request, 0 otherwise. Rows whose future is already done (a cancelled or failed request)
|
| 233 |
+
are not counted: they are not evidence that requests are overlapping."""
|
| 234 |
+
if ADAPTIVE_WAIT_MS <= 0:
|
| 235 |
+
return 0.0
|
| 236 |
+
return ADAPTIVE_WAIT_MS if len({rid for fut, _, rid in batch if not fut.done()}) > 1 else 0.0
|
| 237 |
+
|
| 238 |
+
|
| 239 |
async def batcher():
|
| 240 |
+
"""One forward per planned group. Rows queued at the same moment are partitioned by decider.batching.plan_batches:
|
| 241 |
+
a shorter row is padded into a longer row's bucket when that costs less than running a second forward."""
|
| 242 |
loop = asyncio.get_running_loop()
|
| 243 |
+
extra = 0.0 # the adaptive window the previous collection earned
|
| 244 |
while True:
|
| 245 |
+
batch = await _collect(queue, BATCH_WAIT_MS, extra)
|
| 246 |
+
extra = adaptive_ms(batch)
|
| 247 |
+
groups = plan_batches([len(it["ids"]) for _, it, _ in batch], eng.pad_len, eng.max_rows, MAX_BATCH,
|
| 248 |
+
MERGE_OVERHEAD_TOKENS, _bucketed)
|
| 249 |
+
for T, idx in groups:
|
| 250 |
+
part = [batch[i] for i in idx]
|
| 251 |
+
stats["bucket_hist"][T] = stats["bucket_hist"].get(T, 0) + len(part)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
try:
|
| 253 |
+
probs = await loop.run_in_executor(gpu, _score_items, [it for _, it, _ in part])
|
| 254 |
+
for (fut, _, _), p in zip(part, probs):
|
| 255 |
if not fut.done(): fut.set_result(p)
|
| 256 |
except Exception as e:
|
| 257 |
+
for fut, _, _ in part:
|
| 258 |
if not fut.done(): fut.set_exception(e)
|
| 259 |
+
stats["batches"] += 1
|
| 260 |
+
stats["batch_hist"][len(part)] = stats["batch_hist"].get(len(part), 0) + 1
|
| 261 |
|
| 262 |
|
| 263 |
+
# ---- schema cache (questions-first layout; opt-in) --------------------------------
|
| 264 |
+
def _schema_key(questions, independent):
|
| 265 |
+
return (json.dumps(questions, sort_keys=True, ensure_ascii=False), independent)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
|
| 267 |
|
| 268 |
+
class _SQ:
|
| 269 |
+
def __init__(self, text, options): self.text, self.options = text, options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
|
|
|
|
| 271 |
|
| 272 |
+
def _plan_schema(questions, independent, state):
|
| 273 |
+
"""CPU part of a schema-cache request: prefix token lengths (from the cached handle when the schema is known, otherwise
|
| 274 |
+
tokenised here, without touching the GPU) and the suffix row (context plus answer slots). -> (tps, (suffix ids, slots)).
|
| 275 |
+
Raises ValueError for an invalid question."""
|
| 276 |
+
from decider.prompt import schema_prefix_ids, schema_suffix_ids
|
| 277 |
+
rqs = {k: S1.render_question(v) for k, v in questions.items()}; rows, _ = S1.plan_rows(rqs, ISOLATED and independent)
|
| 278 |
+
cached = schemas.get(_schema_key(questions, independent))
|
| 279 |
+
if cached is not None:
|
| 280 |
+
tps = list(cached[1].tps)
|
| 281 |
+
else:
|
| 282 |
+
qs = [_SQ(x["question"], list(x["options"])) for x in rows]
|
| 283 |
+
tps = [len(schema_prefix_ids(eng.tok, g, chat=CHAT)) for g in ([[q] for q in qs] if independent else [qs])]
|
| 284 |
+
row = schema_suffix_ids(eng.tok, S1.render_state(state), 1 if independent else len(rows), MAX_STATE_TOKENS, chat=CHAT)
|
| 285 |
+
return tps, row
|
| 286 |
|
| 287 |
|
| 288 |
def _schema_handle(questions, independent, compile=False):
|
| 289 |
+
"""Compile (or look up) the question schema: its prefix is run once, requests then only run the state. GPU thread."""
|
| 290 |
+
key = _schema_key(questions, independent)
|
|
|
|
| 291 |
if key not in schemas:
|
| 292 |
rqs = {k: S1.render_question(v) for k, v in questions.items()}; rows, index = S1.plan_rows(rqs, ISOLATED and independent)
|
| 293 |
+
if len(schemas) >= 128:
|
| 294 |
+
old = next(iter(schemas)); hid = schemas.pop(old)[1].id
|
| 295 |
+
for k in [k for k in se.graphs if k[0] == hid]: del se.graphs[k]
|
| 296 |
+
h = se.prepare(rows, independent=independent, compile=compile)
|
|
|
|
| 297 |
schemas[key] = (rqs, h, index)
|
| 298 |
return schemas[key]
|
| 299 |
|
| 300 |
|
|
|
|
|
|
|
|
|
|
| 301 |
def _worth_caching(questions, independent):
|
| 302 |
+
"""A schema gets a cached prefix and CUDA graphs from its second request on."""
|
| 303 |
+
key = _schema_key(questions, independent)
|
|
|
|
|
|
|
| 304 |
if key in schemas: return True
|
| 305 |
if len(seen) > 50000: seen.clear()
|
| 306 |
seen[key] = seen.get(key, 0) + 1
|
| 307 |
+
return seen[key] >= _env_int("DECIDER_SCHEMA_MIN_SEEN", 2)
|
| 308 |
|
| 309 |
|
| 310 |
def _score_schema(h, rows):
|
| 311 |
+
return se.score_rows(h, rows, temperature=TEMP_SCHEMA)
|
|
|
|
| 312 |
|
| 313 |
|
| 314 |
async def schema_batcher():
|
|
|
|
| 315 |
loop = asyncio.get_running_loop()
|
| 316 |
while True:
|
| 317 |
batch = await _collect(squeue)
|
| 318 |
+
groups = {}
|
| 319 |
for fut, h, row in batch: groups.setdefault((h.id, se.bucket(len(row[0]))), (h, []))[1].append((fut, row))
|
| 320 |
for h, items in groups.values():
|
| 321 |
step = max(1, MAX_BATCH // h.P)
|
| 322 |
for i in range(0, len(items), step):
|
| 323 |
chunk = items[i:i + step]
|
| 324 |
try:
|
| 325 |
+
probs = await loop.run_in_executor(gpu, _score_schema, h, [c for _, c in chunk])
|
| 326 |
for (fut, _), p in zip(chunk, probs):
|
| 327 |
if not fut.done(): fut.set_result(p)
|
| 328 |
except Exception as e:
|
|
|
|
| 331 |
stats["schema_batches"] = stats.get("schema_batches", 0) + 1
|
| 332 |
|
| 333 |
|
| 334 |
+
# ---- start-up / shutdown -------------------------------------------------------
|
| 335 |
+
def apply_config(cfg):
|
| 336 |
+
global MODEL_NAME, TEMP, TEMP_SCHEMA, RELEASE_DATE, ISOLATED, NEUTRALIZE_NONE, SCHEMA_FIRST, LAYOUT
|
| 337 |
+
LAYOUT = resolve_layout(cfg) # ValueError for an unknown layout, before the engine is built
|
| 338 |
+
NEUTRALIZE_NONE = bool(cfg.get("neutralize_none", True))
|
| 339 |
+
MODEL_NAME = "decider-" + str(cfg.get("version", "dev"))
|
| 340 |
+
TEMP = float(os.environ.get("DECIDER_TEMPERATURE", cfg.get("temperature", 1.0)))
|
| 341 |
+
TEMP_SCHEMA = float(cfg.get("temperature_schema_first", TEMP))
|
| 342 |
+
RELEASE_DATE = str(cfg.get("release_date", RELEASE_DATE))
|
| 343 |
+
ISOLATED = bool(cfg.get("isolated_levels", False))
|
| 344 |
+
trained = bool(cfg.get("schema_first", False) or cfg.get("schema_first_trained", False))
|
| 345 |
+
SCHEMA_FIRST = trained and (bool(cfg.get("schema_first", False)) or os.environ.get("DECIDER_SCHEMA_CACHE", "0") == "1")
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def start_workers(loop=None):
|
| 349 |
+
"""Queues, executors and batcher tasks. Needs `eng` set; a test can set a stand-in engine and call this directly."""
|
| 350 |
+
global queue, gpu, cpu, batcher_task, squeue, schema_task
|
| 351 |
+
loop = loop or asyncio.get_running_loop()
|
| 352 |
+
if gpu is None: gpu = ThreadPoolExecutor(max_workers=1, thread_name_prefix="gpu")
|
| 353 |
+
if cpu is None: cpu = ThreadPoolExecutor(max_workers=TOKENIZE_THREADS, thread_name_prefix="tok")
|
| 354 |
+
queue = asyncio.Queue(); batcher_task = loop.create_task(batcher())
|
| 355 |
+
if SCHEMA_FIRST:
|
| 356 |
+
squeue = asyncio.Queue(); schema_task = loop.create_task(schema_batcher())
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
def resolve_device(requested=None):
|
| 360 |
+
"""The device and dtype the server runs on. `auto` picks as decider.infer.Decider does: CUDA, else MPS, else CPU; float16
|
| 361 |
+
on MPS, bfloat16 elsewhere. An explicit device that is not available, or FP8 / torch.compile off CUDA, is a start-up error
|
| 362 |
+
that says so, instead of the torch assertion a CUDA call raises on a build without CUDA."""
|
| 363 |
+
import torch
|
| 364 |
+
req = (DEVICE if requested is None else requested).strip().lower()
|
| 365 |
+
if req in ("", "auto"):
|
| 366 |
+
dev = "cuda" if torch.cuda.is_available() else ("mps" if torch.backends.mps.is_available() else "cpu")
|
| 367 |
+
else:
|
| 368 |
+
dev = req
|
| 369 |
+
kind = dev.split(":")[0]
|
| 370 |
+
if kind == "cuda" and not torch.cuda.is_available():
|
| 371 |
+
raise RuntimeError(f"DECIDER_DEVICE={req}, but torch.cuda.is_available() is False on this machine. "
|
| 372 |
+
"Set DECIDER_DEVICE=mps or cpu (or leave it at auto).")
|
| 373 |
+
if kind == "mps" and not torch.backends.mps.is_available():
|
| 374 |
+
raise RuntimeError(f"DECIDER_DEVICE={req}, but torch.backends.mps.is_available() is False on this machine.")
|
| 375 |
+
if kind not in ("cuda", "mps", "cpu"):
|
| 376 |
+
raise RuntimeError(f"DECIDER_DEVICE={req}: expected auto, cuda, cuda:<index>, mps or cpu.")
|
| 377 |
+
if not dev.startswith("cuda") and (FP8 or COMPILE):
|
| 378 |
+
raise RuntimeError(f"DECIDER_FP8 and DECIDER_COMPILE need CUDA; the server is starting on {dev}. Unset them.")
|
| 379 |
+
return dev, (torch.float16 if dev.startswith("mps") else torch.bfloat16)
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
async def _start():
|
| 383 |
+
global eng, se, gpu, CHAT
|
| 384 |
+
from decider.engine_v2 import EngineV2
|
| 385 |
+
apply_config(load_config(MODEL))
|
| 386 |
+
gpu = ThreadPoolExecutor(max_workers=1, thread_name_prefix="gpu")
|
| 387 |
+
loop = asyncio.get_running_loop()
|
| 388 |
+
dev, dtype = resolve_device()
|
| 389 |
+
eng = await loop.run_in_executor(gpu, lambda: EngineV2(
|
| 390 |
+
MODEL, device=dev, dtype=dtype, compile=COMPILE, fp8=FP8, max_ctx_tokens=MAX_STATE_TOKENS, t_buckets=_ints("DECIDER_T_BUCKETS"),
|
| 391 |
+
b_buckets=_ints("DECIDER_B_BUCKETS"), token_budget=GRAPH_TOKEN_BUDGET))
|
| 392 |
+
CHAT = chat_template(eng.tok) if LAYOUT == "chat" else None
|
| 393 |
+
print("[serve] engine", dict({k: v for k, v in eng.cfg.items() if k not in ("t_buckets", "b_buckets")}, device=dev, layout=LAYOUT), flush=True)
|
| 394 |
+
if SCHEMA_FIRST:
|
| 395 |
+
from decider.schema_engine import SchemaEngine
|
| 396 |
+
se = SchemaEngine(eng, chat=CHAT); print("[serve] schema cache on", flush=True)
|
| 397 |
+
pre = os.environ.get("DECIDER_SCHEMAS") # JSON: [{"questions": {...}, "independent": true, "batch_sizes": [1, 8, 32], "state_tokens": [64, 256]}]
|
| 398 |
+
for spec in (json.load(open(pre)) if pre else []):
|
| 399 |
+
_, h, _ = await loop.run_in_executor(gpu, _schema_handle, spec["questions"], spec.get("independent", True), COMPILE)
|
| 400 |
+
t = await loop.run_in_executor(gpu, se.warmup, h, spec.get("batch_sizes", (1, 8, 32)), spec.get("state_tokens", (64, 128, 256)))
|
| 401 |
+
print(f"[serve] preloaded schema with {h.nq} rows, prefix {sum(h.tps)} tokens, graphs ready in {t:.0f}s", flush=True)
|
| 402 |
+
if WARMUP and eng.use_graphs: # off CUDA there are no graphs to capture; every request runs eager
|
| 403 |
+
t = await loop.run_in_executor(gpu, lambda: eng.warmup(log=lambda s: print(s, flush=True)))
|
| 404 |
+
print(f"[serve] captured {len(eng.graphs)} graphs in {t:.0f}s", flush=True)
|
| 405 |
+
eng.seal()
|
| 406 |
+
print("[serve] ready", json.dumps(dict(model=MODEL_NAME, layout=LAYOUT, temperature=TEMP, isolated_levels=ISOLATED, schema_first=SCHEMA_FIRST,
|
| 407 |
+
shared=SHARED, graphs=len(eng.graphs), limits=dict(
|
| 408 |
+
max_rows=MAX_ROWS, max_row_tokens=MAX_ROW_TOKENS, max_request_tokens=MAX_REQUEST_TOKENS,
|
| 409 |
+
max_queue_rows=MAX_QUEUE_ROWS))), flush=True)
|
| 410 |
+
start_workers(loop)
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
def _stop():
|
| 414 |
+
global gpu, cpu, batcher_task, schema_task
|
| 415 |
+
for t in (batcher_task, schema_task):
|
| 416 |
+
if t is not None: t.cancel()
|
| 417 |
+
for ex in (gpu, cpu):
|
| 418 |
+
if ex is not None: ex.shutdown(wait=False, cancel_futures=True)
|
| 419 |
+
gpu = cpu = batcher_task = schema_task = None
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
@asynccontextmanager
|
| 423 |
+
async def lifespan(app):
|
| 424 |
+
await _start()
|
| 425 |
+
yield
|
| 426 |
+
_stop()
|
| 427 |
+
|
| 428 |
+
|
| 429 |
+
app = FastAPI(title="decider", lifespan=lifespan)
|
| 430 |
+
|
| 431 |
+
|
| 432 |
+
# ---- routes -------------------------------------------------------------------
|
| 433 |
+
class Req(BaseModel):
|
| 434 |
+
context: str
|
| 435 |
+
schema_: object = None # any JSON value: Decider._check_schema gives the 422 (pydantic's echoes NaN/Infinity and cannot be serialised)
|
| 436 |
+
model_config = {"populate_by_name": True}
|
| 437 |
+
def __init__(self, **kw):
|
| 438 |
+
if "schema" in kw: kw["schema_"] = kw.pop("schema")
|
| 439 |
+
super().__init__(**kw)
|
| 440 |
|
| 441 |
|
| 442 |
class S1Req(BaseModel):
|
|
|
|
| 447 |
layout: str | None = None # "state_first" forces the uncached layout on a schema-first model
|
| 448 |
|
| 449 |
|
| 450 |
+
def _alive():
|
| 451 |
+
return batcher_task is not None and not batcher_task.done() and (schema_task is None or not schema_task.done())
|
| 452 |
+
|
| 453 |
+
|
| 454 |
+
async def _queued(items):
|
| 455 |
+
"""Queue one request's rows. Every row carries the request's id, which is what the batcher's adaptive wait reads."""
|
| 456 |
+
global REQ_SEQ
|
| 457 |
+
loop = asyncio.get_running_loop(); futs = []
|
| 458 |
+
REQ_SEQ += 1; rid = REQ_SEQ
|
| 459 |
+
for it in items:
|
| 460 |
+
f = loop.create_future(); futs.append(f); queue.put_nowait((f, it, rid))
|
| 461 |
+
return await asyncio.gather(*futs)
|
| 462 |
+
|
| 463 |
+
|
| 464 |
+
@app.post("/decide")
|
| 465 |
+
async def decide(r: Req):
|
| 466 |
+
loop = asyncio.get_running_loop()
|
| 467 |
+
try:
|
| 468 |
+
qs, it = await loop.run_in_executor(cpu, _prepare_decide, r.context, r.schema_)
|
| 469 |
+
except (ValueError, KeyError) as e:
|
| 470 |
+
stats["errors"] += 1
|
| 471 |
+
raise HTTPException(422, str(e))
|
| 472 |
+
if not qs: # empty schema: nothing to score (the 1.1.2 answer, without a forward)
|
| 473 |
+
stats["requests"] += 1; return {}
|
| 474 |
+
check_size([len(it["ids"])])
|
| 475 |
+
_admit(1)
|
| 476 |
+
try:
|
| 477 |
+
probs = (await _queued([it]))[0]
|
| 478 |
+
except Exception:
|
| 479 |
+
stats["errors"] += 1; raise
|
| 480 |
+
finally:
|
| 481 |
+
_release(1)
|
| 482 |
+
stats["requests"] += 1; stats["decisions"] += len(qs); stats["rows"] += 1
|
| 483 |
+
return _format_decide(r.schema_, qs, probs)
|
| 484 |
|
| 485 |
|
| 486 |
@app.post("/v1/systemone")
|
| 487 |
async def systemone(r: S1Req):
|
| 488 |
loop = asyncio.get_running_loop()
|
| 489 |
+
if SCHEMA_FIRST and r.questions and r.layout != "state_first" and _worth_caching(r.questions, r.independent):
|
| 490 |
+
try: # CPU: rows, prefix lengths, suffix ids -> the complete cost before any GPU work
|
| 491 |
+
tps, row = await loop.run_in_executor(cpu, _plan_schema, r.questions, r.independent, r.state)
|
| 492 |
except ValueError as e:
|
| 493 |
+
stats["errors"] += 1
|
| 494 |
raise HTTPException(422, str(e))
|
| 495 |
+
check_size([tp + len(row[0]) for tp in tps])
|
| 496 |
+
_admit(len(tps))
|
| 497 |
+
try:
|
| 498 |
+
rqs, h, index = await loop.run_in_executor(gpu, _schema_handle, r.questions, r.independent)
|
| 499 |
+
fut = loop.create_future(); await squeue.put((fut, h, row)); p = await fut
|
| 500 |
+
except Exception:
|
| 501 |
+
stats["errors"] += 1; raise
|
| 502 |
+
finally:
|
| 503 |
+
_release(len(tps))
|
| 504 |
stats["requests"] += 1; stats["decisions"] += len(rqs); stats["schema_requests"] = stats.get("schema_requests", 0) + 1
|
| 505 |
return {"model": MODEL_NAME, "answers": S1.assemble(rqs, index, [pk.tolist() for pk in p]),
|
| 506 |
"usage": {"input_tokens": len(row[0]) * h.P, "cached_tokens": sum(h.tps), "output_tokens": 0}}
|
| 507 |
try:
|
| 508 |
+
rqs, index, items, ctx_len = await loop.run_in_executor(cpu, _prepare_s1, r.state, r.questions, r.independent)
|
| 509 |
except ValueError as e:
|
| 510 |
+
stats["errors"] += 1
|
| 511 |
raise HTTPException(422, str(e))
|
| 512 |
+
check_size([len(it["ids"]) for it in items])
|
| 513 |
+
_admit(len(items))
|
| 514 |
+
try:
|
| 515 |
+
if SHARED and len(items) > 1 and min(len(it["ids"]) for it in items) >= SHARED_MIN_TOKENS:
|
| 516 |
+
res = await loop.run_in_executor(gpu, _score_shared, items) # long state: run it once, fork the cache per question
|
| 517 |
+
stats["shared_prefix_requests"] += 1
|
| 518 |
+
else:
|
| 519 |
+
res = await _queued(items)
|
| 520 |
+
except Exception:
|
| 521 |
+
stats["errors"] += 1; raise
|
| 522 |
+
finally:
|
| 523 |
+
_release(len(items))
|
| 524 |
probs = [p for ps in res for p in ps] # one prob row per question, request order
|
| 525 |
+
stats["requests"] += 1; stats["decisions"] += len(rqs); stats["rows"] += len(items)
|
| 526 |
return {"model": MODEL_NAME, "answers": S1.assemble(rqs, index, [p.tolist() for p in probs]),
|
| 527 |
+
"usage": {"input_tokens": unique_tokens(items, ctx_len), "output_tokens": 0}}
|
| 528 |
|
| 529 |
|
| 530 |
@app.get("/v1/models")
|
|
|
|
| 534 |
|
| 535 |
@app.get("/health")
|
| 536 |
async def health():
|
| 537 |
+
return {"ok": eng is not None and bool(getattr(eng, "sealed", True)) and _alive(), "model": MODEL,
|
| 538 |
+
"device": str(getattr(eng, "dev", "")) if eng is not None else None, "layout": LAYOUT}
|
| 539 |
|
| 540 |
|
| 541 |
@app.get("/stats")
|
| 542 |
async def get_stats():
|
| 543 |
+
return dict(stats, outstanding_rows=outstanding, engine=eng.stats if eng else None, graphs=len(eng.graphs) if eng else 0,
|
| 544 |
+
sealed=bool(eng and getattr(eng, "sealed", False)), schema_cache=dict(se.stats, schemas=len(schemas)) if se else None,
|
| 545 |
+
limits=dict(max_rows=MAX_ROWS, max_row_tokens=MAX_ROW_TOKENS, max_request_tokens=MAX_REQUEST_TOKENS, max_queue_rows=MAX_QUEUE_ROWS))
|
decider/shared_prefix.py
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared-prefix scoring with a bounded memory fork, used by both engines.
|
| 2 |
+
|
| 3 |
+
Rows that start with the same tokens (one state, one question per row) run the shared prefix once and then only the
|
| 4 |
+
question suffixes, against a copy of the prefix cache. Until 1.1.0 the copy was made with
|
| 5 |
+
`cache.reorder_cache(zeros(n))`, which expands the prefix to all n rows at once: a 31k-token state with 32 questions
|
| 6 |
+
costs n times the prefix cache, which is 133 GB on a 31B model and is wasteful on the 2B. Here the prefix cache is
|
| 7 |
+
forked in chunks of m rows, m chosen so that one fork fits a byte budget, and the rows are scored chunk by chunk.
|
| 8 |
+
|
| 9 |
+
The budget is `DECIDER_SHARED_FORK_GB` (8 GB), capped at half of the memory currently free on the device (device-free
|
| 10 |
+
plus the caching allocator's reserved-but-unused blocks); `m = clamp(budget // prefix_bytes, 1, n)`. Chunking changes
|
| 11 |
+
which rows share a forward and how far each chunk's suffixes are padded, so answers can move by the usual bf16
|
| 12 |
+
reduction-order amount; they do not depend on it mathematically (right padding, causal layers).
|
| 13 |
+
|
| 14 |
+
Cache layout. transformers 5.17 keeps one layer object per layer in `cache.layers`. An attention layer carries
|
| 15 |
+
`keys` and `values` tensors `[batch, heads, seq, head_dim]`; a sparse-attention layer adds `indexer_keys`
|
| 16 |
+
`[batch, seq, dim]`; a linear-attention layer carries `conv_states` and `recurrent_states` dicts of tensors whose first
|
| 17 |
+
dimension is the batch. Qwen3.5 gives a `DynamicCache` whose 24 layers are a mix of the two objects. `cache_state_tensors`
|
| 18 |
+
enumerates whatever of `STATE_NAMES` is present rather than assuming a layout, and `fork_cache` builds a new cache
|
| 19 |
+
object from them without touching the original (the linear-attention layers update their states with `copy_()`, so a
|
| 20 |
+
fork that shared storage with the prefix would corrupt it for the next chunk).
|
| 21 |
+
|
| 22 |
+
A layout we do not know is not chunked. If a layer holds any other tensor attribute, or a dict of tensors, outside
|
| 23 |
+
`STATE_NAMES`, we cannot tell whether it carries a batch dimension, so `score_shared` takes one fork of all n rows --
|
| 24 |
+
the 1.1.0 behaviour, correct but unbounded -- and counts it in `engine.stats["shared_unchunked_layout"]`.
|
| 25 |
+
|
| 26 |
+
The prefix and suffix forwards are eager, at request-specific shapes, and are correct only with the cuDNN SDPA backend
|
| 27 |
+
off (`decider.engine.set_attention_backend_policy`, applied in both engines' `__init__`).
|
| 28 |
+
"""
|
| 29 |
+
import copy
|
| 30 |
+
import os
|
| 31 |
+
|
| 32 |
+
import torch
|
| 33 |
+
import torch.nn.functional as F
|
| 34 |
+
|
| 35 |
+
from decider.engine import fill_ids, read_slots
|
| 36 |
+
|
| 37 |
+
DEFAULT_FORK_GB = 8.0
|
| 38 |
+
STATE_NAMES = ("keys", "values", "indexer_keys", "conv_states", "recurrent_states")
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def common_prefix_len(ids):
|
| 42 |
+
"""Length of the longest common prefix of the rows, capped one token below the shortest row."""
|
| 43 |
+
lcp = 0
|
| 44 |
+
short = min(len(x) for x in ids) - 1
|
| 45 |
+
while lcp < short and all(x[lcp] == ids[0][lcp] for x in ids):
|
| 46 |
+
lcp += 1
|
| 47 |
+
return lcp
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def _get(container, key):
|
| 51 |
+
return container[key] if isinstance(container, dict) else getattr(container, key)
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def _set(container, key, value):
|
| 55 |
+
if isinstance(container, dict):
|
| 56 |
+
container[key] = value
|
| 57 |
+
else:
|
| 58 |
+
setattr(container, key, value)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def cache_state_tensors(cache):
|
| 62 |
+
"""Every tensor in the cache whose first dimension is the batch, as (container, key) pairs.
|
| 63 |
+
|
| 64 |
+
Covers `STATE_NAMES`: the attention layers' `keys`/`values`, a sparse-attention layer's `indexer_keys` and the
|
| 65 |
+
linear-attention layers' `conv_states`/`recurrent_states`, whether those are dicts of tensors (transformers 5.17) or
|
| 66 |
+
single tensors, and ignores anything not present."""
|
| 67 |
+
out = []
|
| 68 |
+
for layer in getattr(cache, "layers", None) or []:
|
| 69 |
+
for attr in STATE_NAMES:
|
| 70 |
+
v = getattr(layer, attr, None)
|
| 71 |
+
if isinstance(v, torch.Tensor):
|
| 72 |
+
if v.numel():
|
| 73 |
+
out.append((layer, attr))
|
| 74 |
+
elif isinstance(v, dict):
|
| 75 |
+
for k, t in v.items():
|
| 76 |
+
if isinstance(t, torch.Tensor) and t.numel():
|
| 77 |
+
out.append((v, k))
|
| 78 |
+
return out
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def cache_row_bytes(cache):
|
| 82 |
+
"""Bytes one row of this cache holds, summed over the layers and over `STATE_NAMES`."""
|
| 83 |
+
return sum(_get(c, k).nbytes // max(_get(c, k).shape[0], 1) for c, k in cache_state_tensors(cache))
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
def unknown_state_names(cache):
|
| 87 |
+
"""Attribute names the cache's layers hold that carry tensors and are not in `STATE_NAMES`.
|
| 88 |
+
|
| 89 |
+
A tensor outside the enumerated set may or may not have a batch dimension, and `fork_cache` would leave it at one
|
| 90 |
+
row. When this is not empty the caller must not chunk."""
|
| 91 |
+
out = set()
|
| 92 |
+
for layer in getattr(cache, "layers", None) or []:
|
| 93 |
+
for name, v in vars(layer).items():
|
| 94 |
+
if name in STATE_NAMES:
|
| 95 |
+
continue
|
| 96 |
+
if isinstance(v, torch.Tensor) or (isinstance(v, dict) and any(isinstance(t, torch.Tensor) for t in v.values())):
|
| 97 |
+
out.add(name)
|
| 98 |
+
return out
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def fork_budget_bytes(device=None, gb=None):
|
| 102 |
+
"""DECIDER_SHARED_FORK_GB, capped at half of the memory free on the device right now.
|
| 103 |
+
|
| 104 |
+
The cap applies only when the CUDA memory queries succeed: on CPU, on MPS and when the driver does not know the
|
| 105 |
+
device string, the configured budget is kept as it is."""
|
| 106 |
+
gb = float(os.environ.get("DECIDER_SHARED_FORK_GB", DEFAULT_FORK_GB)) if gb is None else float(gb)
|
| 107 |
+
budget = int(gb * (1 << 30))
|
| 108 |
+
try:
|
| 109 |
+
free, _ = torch.cuda.mem_get_info(device)
|
| 110 |
+
free += torch.cuda.memory_reserved(device) - torch.cuda.memory_allocated(device)
|
| 111 |
+
budget = min(budget, free // 2)
|
| 112 |
+
except Exception: # no CUDA device, or a device string the driver does not know
|
| 113 |
+
pass
|
| 114 |
+
return max(int(budget), 1)
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
def chunk_rows(prefix_bytes, n, budget_bytes=None, device=None):
|
| 118 |
+
"""Rows per fork: as many copies of the prefix cache as the budget holds, at least 1 and at most n. One row is the
|
| 119 |
+
minimum even when a single copy is over the budget: the budget bounds the fork, it cannot make it free."""
|
| 120 |
+
if budget_bytes is None:
|
| 121 |
+
budget_bytes = fork_budget_bytes(device)
|
| 122 |
+
if prefix_bytes <= 0:
|
| 123 |
+
return max(1, int(n))
|
| 124 |
+
return max(1, min(int(n), int(budget_bytes // prefix_bytes)))
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
def fork_cache(cache, m, row=0):
|
| 128 |
+
"""A new cache holding `m` copies of `cache`'s row `row`. The original is not read from again and not modified."""
|
| 129 |
+
fork = copy.copy(cache)
|
| 130 |
+
layers = getattr(cache, "layers", None)
|
| 131 |
+
if layers is not None:
|
| 132 |
+
new = []
|
| 133 |
+
for layer in layers:
|
| 134 |
+
nl = copy.copy(layer)
|
| 135 |
+
for k, v in list(vars(nl).items()): # the per-state dicts are mutated by the forward: give the fork its own
|
| 136 |
+
if isinstance(v, dict):
|
| 137 |
+
setattr(nl, k, dict(v))
|
| 138 |
+
new.append(nl)
|
| 139 |
+
fork.layers = new
|
| 140 |
+
idx = {}
|
| 141 |
+
for container, key in cache_state_tensors(fork):
|
| 142 |
+
t = _get(container, key)
|
| 143 |
+
i = idx.get(t.device)
|
| 144 |
+
if i is None:
|
| 145 |
+
i = idx[t.device] = torch.full((m,), row, dtype=torch.long, device=t.device)
|
| 146 |
+
_set(container, key, t.index_select(0, i)) # a fresh contiguous tensor: the fork never shares storage
|
| 147 |
+
return fork
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
def _count(engine, key):
|
| 151 |
+
stats = getattr(engine, "stats", None)
|
| 152 |
+
if isinstance(stats, dict):
|
| 153 |
+
stats[key] = stats.get(key, 0) + 1
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
@torch.no_grad()
|
| 157 |
+
def score_shared(engine, items, temperature=1.0, min_prefix=192, budget_bytes=None, rows_per_fork=None):
|
| 158 |
+
"""Score `items` through the shared prefix. -> one probability tensor per item, in item order, or None when the
|
| 159 |
+
request does not qualify (fewer than two rows, or a common prefix below `min_prefix`) and the caller should use
|
| 160 |
+
`score_items`.
|
| 161 |
+
|
| 162 |
+
`rows_per_fork` forces the chunk size; it exists for the tests that compare chunked against unchunked answers."""
|
| 163 |
+
ids = [it["ids"] for it in items]
|
| 164 |
+
n = len(ids)
|
| 165 |
+
if n < 2:
|
| 166 |
+
return None
|
| 167 |
+
lcp = common_prefix_len(ids)
|
| 168 |
+
if lcp < min_prefix:
|
| 169 |
+
return None
|
| 170 |
+
core, W, dev, pad = engine.core, engine.W, engine.dev, engine.tok.pad_token_id
|
| 171 |
+
pre = torch.tensor(ids[0][:lcp], device=dev)[None]
|
| 172 |
+
cache = core(input_ids=pre, use_cache=True).past_key_values
|
| 173 |
+
unknown = unknown_state_names(cache)
|
| 174 |
+
if unknown: # a state we cannot fork row by row: one fork of everything, as in 1.1.0
|
| 175 |
+
_count(engine, "shared_unchunked_layout")
|
| 176 |
+
m = n
|
| 177 |
+
elif rows_per_fork:
|
| 178 |
+
m = int(rows_per_fork)
|
| 179 |
+
else:
|
| 180 |
+
m = chunk_rows(cache_row_bytes(cache), n, budget_bytes, dev)
|
| 181 |
+
m = max(1, min(m, n))
|
| 182 |
+
out = []
|
| 183 |
+
for i in range(0, n, m):
|
| 184 |
+
part = items[i:i + m]
|
| 185 |
+
b = len(part)
|
| 186 |
+
fork = fork_cache(cache, b)
|
| 187 |
+
Ts = max(len(it["ids"]) for it in part) - lcp
|
| 188 |
+
suf = fill_ids([it["ids"][lcp:] for it in part], b, Ts, pad)
|
| 189 |
+
h = core(input_ids=suf.to(dev), past_key_values=fork, use_cache=True).last_hidden_state
|
| 190 |
+
rows = [j for j, it in enumerate(part) for _ in it["slots"]]
|
| 191 |
+
sl = [s - lcp for it in part for s in it["slots"]]
|
| 192 |
+
idx = torch.tensor([rows, sl], device=dev)
|
| 193 |
+
out += read_slots(F.linear(h[idx[0], idx[1]], W).float()[:, None, :], list(range(len(rows))), [0] * len(rows),
|
| 194 |
+
[k for it in part for k in it["nopts"]], temperature, [len(it["slots"]) for it in part])
|
| 195 |
+
del fork, h, suf # drop this chunk's fork before the next one is built
|
| 196 |
+
return out
|
decider/systemone.py
CHANGED
|
@@ -54,7 +54,9 @@ def render_question(spec):
|
|
| 54 |
raise ValueError(f"score criteria: an ordered list of 2..{MAX_LEVELS} level descriptions")
|
| 55 |
names = list(range(len(crit))); opts = [f"{i}: {_txt(c)}" for i, c in enumerate(crit)]
|
| 56 |
elif t in ("noul", "bool"):
|
| 57 |
-
|
|
|
|
|
|
|
| 58 |
f, tr = c.get("false", c.get(False)), c.get("true", c.get(True))
|
| 59 |
opts = ["no" if f in (None, "") else f"no: {_txt(f)}", "yes" if tr in (None, "") else f"yes: {_txt(tr)}"]
|
| 60 |
else:
|
|
|
|
| 54 |
raise ValueError(f"score criteria: an ordered list of 2..{MAX_LEVELS} level descriptions")
|
| 55 |
names = list(range(len(crit))); opts = [f"{i}: {_txt(c)}" for i, c in enumerate(crit)]
|
| 56 |
elif t in ("noul", "bool"):
|
| 57 |
+
if crit is not None and not isinstance(crit, dict):
|
| 58 |
+
raise ValueError("noul criteria: a map of optional true/false descriptions")
|
| 59 |
+
names = [False, True]; c = crit if crit is not None else {}
|
| 60 |
f, tr = c.get("false", c.get(False)), c.get("true", c.get(True))
|
| 61 |
opts = ["no" if f in (None, "") else f"no: {_txt(f)}", "yes" if tr in (None, "") else f"yes: {_txt(tr)}"]
|
| 62 |
else:
|
decider_config.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
{
|
| 2 |
-
"temperature": 1.
|
| 3 |
"neutralize_none": false,
|
| 4 |
-
"version": "4b-
|
| 5 |
-
"base": "Qwen/Qwen3.5-4B-Base",
|
|
|
|
| 6 |
"max_options": 255,
|
| 7 |
"max_state_tokens": 32768,
|
| 8 |
"schema_first": false,
|
| 9 |
-
"schema_first_trained":
|
| 10 |
"isolated_levels": true,
|
| 11 |
-
"release_date": "2026-09-
|
| 12 |
-
"stage": "
|
| 13 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"temperature": 1.935,
|
| 3 |
"neutralize_none": false,
|
| 4 |
+
"version": "4b-v2",
|
| 5 |
+
"base": "Mapika/decider-4b v1 + LoRA (merged); v1 is Qwen/Qwen3.5-4B-Base + one supervised pass over mixture v2",
|
| 6 |
+
"layout": "plain",
|
| 7 |
"max_options": 255,
|
| 8 |
"max_state_tokens": 32768,
|
| 9 |
"schema_first": false,
|
| 10 |
+
"schema_first_trained": false,
|
| 11 |
"isolated_levels": true,
|
| 12 |
+
"release_date": "2026-09-24",
|
| 13 |
+
"stage": "decider-4b v1 + LoRA rank 64 (alpha 128) on attention and MLP, LR 1e-4, 2 epochs (1,517 steps of 65,536 tokens) over 29,356 rows in the plain state-first layout (generated decision families with code-computed answers, Qwen3.6-27B-written document questions kept when two independent answers agreed, human-labelled public sets, replay of v1's mixture v2), merged into the bf16 weights; no RL stage; temperature fitted by NLL on 61 in-task regression tasks (the 67 in-task tasks without banking77, clinc_oos, mmlu, arc, winogrande, hellaswag)"
|
| 14 |
}
|
eval_results.json
CHANGED
|
@@ -1,1319 +1,671 @@
|
|
| 1 |
{
|
| 2 |
-
"model": "decider-4b
|
| 3 |
-
"temperature": 1.
|
| 4 |
"temperature_fit": {
|
| 5 |
-
"method": "
|
| 6 |
-
"tasks":
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
},
|
| 11 |
-
"protocol": "
|
| 12 |
"aggregate": {
|
| 13 |
"in_task": {
|
| 14 |
-
"acc": 0.
|
| 15 |
-
"nll": 0.
|
| 16 |
-
"ece": 0.
|
|
|
|
| 17 |
},
|
| 18 |
"heldout": {
|
| 19 |
-
"acc": 0.
|
| 20 |
-
"nll": 0.
|
| 21 |
-
"ece": 0.
|
|
|
|
| 22 |
}
|
| 23 |
},
|
| 24 |
"results": {
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
"brier": 0.03083217702805996,
|
| 31 |
-
"ece": 0.007950302620728822,
|
| 32 |
-
"aurc": 0.0012023087042428238,
|
| 33 |
-
"acc_at_80": 0.9983333333333333,
|
| 34 |
-
"acc_at_50": 1.0,
|
| 35 |
-
"chance": 0.1,
|
| 36 |
-
"mean_conf": 0.985251247882843
|
| 37 |
-
},
|
| 38 |
-
"banking77": {
|
| 39 |
-
"n": 1500,
|
| 40 |
-
"heldout": false,
|
| 41 |
-
"acc": 0.978,
|
| 42 |
-
"nll": 0.06898760050535202,
|
| 43 |
-
"brier": 0.0325789600610733,
|
| 44 |
-
"ece": 0.009554358383019785,
|
| 45 |
-
"aurc": 0.0012035504317366348,
|
| 46 |
-
"acc_at_80": 0.9983333333333333,
|
| 47 |
-
"acc_at_50": 1.0,
|
| 48 |
-
"chance": 0.1,
|
| 49 |
-
"mean_conf": 0.9718580842018127
|
| 50 |
-
},
|
| 51 |
-
"massive_intent": {
|
| 52 |
-
"n": 1500,
|
| 53 |
-
"heldout": false,
|
| 54 |
-
"acc": 0.96,
|
| 55 |
-
"nll": 0.114766925573349,
|
| 56 |
-
"brier": 0.05482897534966469,
|
| 57 |
-
"ece": 0.015515483150879502,
|
| 58 |
-
"aurc": 0.003205808890455504,
|
| 59 |
-
"acc_at_80": 0.9975,
|
| 60 |
-
"acc_at_50": 0.9986666666666667,
|
| 61 |
-
"chance": 0.1,
|
| 62 |
-
"mean_conf": 0.9665321707725525
|
| 63 |
},
|
| 64 |
-
"
|
| 65 |
-
"n": 1500,
|
| 66 |
"heldout": true,
|
| 67 |
-
"acc": 0.
|
| 68 |
-
"nll": 0.
|
| 69 |
-
"
|
| 70 |
-
"ece": 0.0672597901721795,
|
| 71 |
-
"aurc": 0.05879960055584213,
|
| 72 |
-
"acc_at_80": 0.875,
|
| 73 |
-
"acc_at_50": 0.976,
|
| 74 |
-
"chance": 0.1,
|
| 75 |
-
"mean_conf": 0.8429065942764282
|
| 76 |
},
|
| 77 |
-
"
|
| 78 |
-
"
|
| 79 |
-
"
|
| 80 |
-
"
|
| 81 |
-
"
|
| 82 |
-
"brier": 0.0014982118736952543,
|
| 83 |
-
"ece": 0.0006248773733774632,
|
| 84 |
-
"aurc": 2.226904430023566e-06,
|
| 85 |
-
"acc_at_80": 1.0,
|
| 86 |
-
"acc_at_50": 1.0,
|
| 87 |
-
"chance": 0.09999999999999998,
|
| 88 |
-
"mean_conf": 0.9987084269523621
|
| 89 |
},
|
| 90 |
-
"
|
| 91 |
-
"
|
| 92 |
-
"
|
| 93 |
-
"
|
| 94 |
-
"
|
| 95 |
-
"brier": 0.5202077031135559,
|
| 96 |
-
"ece": 0.014440750396913941,
|
| 97 |
-
"aurc": 0.22148435417776338,
|
| 98 |
-
"acc_at_80": 0.6322222222222222,
|
| 99 |
-
"acc_at_50": 0.7488888888888889,
|
| 100 |
-
"chance": 0.22777777777777777,
|
| 101 |
-
"mean_conf": 0.5593615174293518
|
| 102 |
},
|
| 103 |
-
"
|
| 104 |
-
"
|
| 105 |
-
"
|
| 106 |
-
"
|
| 107 |
-
"
|
| 108 |
-
"brier": 0.12386531382799149,
|
| 109 |
-
"ece": 0.019304964224497446,
|
| 110 |
-
"aurc": 0.01743430980637311,
|
| 111 |
-
"acc_at_80": 0.9716666666666667,
|
| 112 |
-
"acc_at_50": 0.9866666666666667,
|
| 113 |
-
"chance": 0.25,
|
| 114 |
-
"mean_conf": 0.9192749857902527
|
| 115 |
},
|
| 116 |
-
"
|
| 117 |
-
"n": 1500,
|
| 118 |
"heldout": false,
|
| 119 |
-
"acc": 0.
|
| 120 |
-
"nll": 0.
|
| 121 |
-
"
|
| 122 |
-
"ece": 0.0051273928284645085,
|
| 123 |
-
"aurc": 6.173112257630856e-05,
|
| 124 |
-
"acc_at_80": 1.0,
|
| 125 |
-
"acc_at_50": 1.0,
|
| 126 |
-
"chance": 0.1,
|
| 127 |
-
"mean_conf": 0.9924806952476501
|
| 128 |
},
|
| 129 |
-
"
|
| 130 |
-
"
|
| 131 |
-
"
|
| 132 |
-
"
|
| 133 |
-
"
|
| 134 |
-
"brier": 0.3303276300430298,
|
| 135 |
-
"ece": 0.028705997407436366,
|
| 136 |
-
"aurc": 0.07641021893449841,
|
| 137 |
-
"acc_at_80": 0.8558333333333333,
|
| 138 |
-
"acc_at_50": 0.94,
|
| 139 |
-
"chance": 0.1,
|
| 140 |
-
"mean_conf": 0.7459318041801453
|
| 141 |
},
|
| 142 |
-
"
|
| 143 |
-
"
|
| 144 |
-
"
|
| 145 |
-
"
|
| 146 |
-
"
|
| 147 |
-
"brier": 0.2234804332256317,
|
| 148 |
-
"ece": 0.024740653838732994,
|
| 149 |
-
"aurc": 0.03180661383580523,
|
| 150 |
-
"acc_at_80": 0.9341880341880342,
|
| 151 |
-
"acc_at_50": 0.9931600547195623,
|
| 152 |
-
"chance": 0.09999999999999999,
|
| 153 |
-
"mean_conf": 0.857944130897522
|
| 154 |
},
|
| 155 |
"bbc_news": {
|
| 156 |
-
"n": 1000,
|
| 157 |
"heldout": true,
|
| 158 |
-
"acc": 0.
|
| 159 |
-
"nll": 0.
|
| 160 |
-
"
|
| 161 |
-
"ece": 0.02770255404710771,
|
| 162 |
-
"aurc": 0.003349325853894083,
|
| 163 |
-
"acc_at_80": 0.9975,
|
| 164 |
-
"acc_at_50": 1.0,
|
| 165 |
-
"chance": 0.20000000000000004,
|
| 166 |
-
"mean_conf": 0.9423945546150208
|
| 167 |
},
|
| 168 |
-
"
|
| 169 |
-
"
|
| 170 |
-
"
|
| 171 |
-
"
|
| 172 |
-
"
|
| 173 |
-
"brier": 0.2794223427772522,
|
| 174 |
-
"ece": 0.025483843922615046,
|
| 175 |
-
"aurc": 0.07322608642228408,
|
| 176 |
-
"acc_at_80": 0.875,
|
| 177 |
-
"acc_at_50": 0.952,
|
| 178 |
-
"chance": 0.16666666666666663,
|
| 179 |
-
"mean_conf": 0.8177904486656189
|
| 180 |
},
|
| 181 |
-
"
|
| 182 |
-
"
|
| 183 |
-
"
|
| 184 |
-
"
|
| 185 |
-
"
|
| 186 |
-
"brier": 0.08517183363437653,
|
| 187 |
-
"ece": 0.024277493317921936,
|
| 188 |
-
"aurc": 0.007844013642036088,
|
| 189 |
-
"acc_at_80": 0.9908333333333333,
|
| 190 |
-
"acc_at_50": 0.9946666666666667,
|
| 191 |
-
"chance": 0.25,
|
| 192 |
-
"mean_conf": 0.9344316124916077
|
| 193 |
},
|
| 194 |
-
"
|
| 195 |
-
"
|
| 196 |
-
"
|
| 197 |
-
"
|
| 198 |
-
"
|
| 199 |
-
"brier": 0.7688276171684265,
|
| 200 |
-
"ece": 0.17415054939190547,
|
| 201 |
-
"aurc": 0.4387350537592697,
|
| 202 |
-
"acc_at_80": 0.4083333333333333,
|
| 203 |
-
"acc_at_50": 0.48933333333333334,
|
| 204 |
-
"chance": 0.125,
|
| 205 |
-
"mean_conf": 0.5285377502441406
|
| 206 |
},
|
| 207 |
-
"
|
| 208 |
-
"
|
| 209 |
-
"
|
| 210 |
-
"
|
| 211 |
-
"
|
| 212 |
-
"brier": 0.0441928468644619,
|
| 213 |
-
"ece": 0.008327548583348608,
|
| 214 |
-
"aurc": 0.0019847261477363553,
|
| 215 |
-
"acc_at_80": 0.9983333333333333,
|
| 216 |
-
"acc_at_50": 1.0,
|
| 217 |
-
"chance": 0.5,
|
| 218 |
-
"mean_conf": 0.9724642634391785
|
| 219 |
},
|
| 220 |
-
"
|
| 221 |
-
"
|
| 222 |
-
"
|
| 223 |
-
"
|
| 224 |
-
"
|
| 225 |
-
"brier": 0.0736653208732605,
|
| 226 |
-
"ece": 0.018777086510570758,
|
| 227 |
-
"aurc": 0.00713774392529569,
|
| 228 |
-
"acc_at_80": 0.9885386819484241,
|
| 229 |
-
"acc_at_50": 0.9977064220183486,
|
| 230 |
-
"chance": 0.5,
|
| 231 |
-
"mean_conf": 0.9458017349243164
|
| 232 |
},
|
| 233 |
-
"
|
| 234 |
-
"
|
| 235 |
-
"
|
| 236 |
-
"
|
| 237 |
-
"
|
| 238 |
-
"brier": 0.5171161890029907,
|
| 239 |
-
"ece": 0.030177110592524224,
|
| 240 |
-
"aurc": 0.29913089931209214,
|
| 241 |
-
"acc_at_80": 0.6475,
|
| 242 |
-
"acc_at_50": 0.688,
|
| 243 |
-
"chance": 0.2,
|
| 244 |
-
"mean_conf": 0.5836676359176636
|
| 245 |
},
|
| 246 |
-
"
|
| 247 |
-
"
|
| 248 |
-
"
|
| 249 |
-
"
|
| 250 |
-
"
|
| 251 |
-
"brier": 0.387047678232193,
|
| 252 |
-
"ece": 0.025365723729133607,
|
| 253 |
-
"aurc": 0.13996482394068296,
|
| 254 |
-
"acc_at_80": 0.7675,
|
| 255 |
-
"acc_at_50": 0.852,
|
| 256 |
-
"chance": 0.2,
|
| 257 |
-
"mean_conf": 0.7234320640563965
|
| 258 |
},
|
| 259 |
-
"
|
| 260 |
-
"
|
| 261 |
-
"
|
| 262 |
-
"
|
| 263 |
-
"
|
| 264 |
-
"brier": 0.49432551860809326,
|
| 265 |
-
"ece": 0.026219896058241522,
|
| 266 |
-
"aurc": 0.22405633677451434,
|
| 267 |
-
"acc_at_80": 0.6775,
|
| 268 |
-
"acc_at_50": 0.76,
|
| 269 |
-
"chance": 0.2,
|
| 270 |
-
"mean_conf": 0.6173045635223389
|
| 271 |
},
|
| 272 |
-
"
|
| 273 |
-
"
|
| 274 |
-
"
|
| 275 |
-
"
|
| 276 |
-
"
|
| 277 |
-
"brier": 0.17871439456939697,
|
| 278 |
-
"ece": 0.02556564905246101,
|
| 279 |
-
"aurc": 0.026317298463301986,
|
| 280 |
-
"acc_at_80": 0.9541666666666667,
|
| 281 |
-
"acc_at_50": 0.9893333333333333,
|
| 282 |
-
"chance": 0.16666666666666666,
|
| 283 |
-
"mean_conf": 0.887474536895752
|
| 284 |
},
|
| 285 |
-
"
|
| 286 |
-
"
|
| 287 |
-
"
|
| 288 |
-
"
|
| 289 |
-
"
|
| 290 |
-
"brier": 0.30671098828315735,
|
| 291 |
-
"ece": 0.028242837349573807,
|
| 292 |
-
"aurc": 0.07501963419556361,
|
| 293 |
-
"acc_at_80": 0.8616666666666667,
|
| 294 |
-
"acc_at_50": 0.9386666666666666,
|
| 295 |
-
"chance": 0.1,
|
| 296 |
-
"mean_conf": 0.7846969366073608
|
| 297 |
},
|
| 298 |
-
"
|
| 299 |
-
"
|
| 300 |
-
"
|
| 301 |
-
"
|
| 302 |
-
"
|
| 303 |
-
"brier": 0.36173999309539795,
|
| 304 |
-
"ece": 0.04415623710552851,
|
| 305 |
-
"aurc": 0.13766340429549068,
|
| 306 |
-
"acc_at_80": 0.79,
|
| 307 |
-
"acc_at_50": 0.8666666666666667,
|
| 308 |
-
"chance": 0.3333333333333333,
|
| 309 |
-
"mean_conf": 0.7061834335327148
|
| 310 |
},
|
| 311 |
-
"
|
| 312 |
-
"
|
| 313 |
-
"
|
| 314 |
-
"
|
| 315 |
-
"
|
| 316 |
-
"brier": 0.19294492900371552,
|
| 317 |
-
"ece": 0.04132092047291352,
|
| 318 |
-
"aurc": 0.027675365177992274,
|
| 319 |
-
"acc_at_80": 0.9437115215479331,
|
| 320 |
-
"acc_at_50": 0.9915492957746479,
|
| 321 |
-
"chance": 0.25,
|
| 322 |
-
"mean_conf": 0.8309033513069153
|
| 323 |
},
|
| 324 |
-
"
|
| 325 |
-
"n": 784,
|
| 326 |
"heldout": true,
|
| 327 |
-
"acc": 0.
|
| 328 |
-
"nll": 0.
|
| 329 |
-
"
|
| 330 |
-
"ece": 0.023770894247050194,
|
| 331 |
-
"aurc": 0.07058657699014359,
|
| 332 |
-
"acc_at_80": 0.8755980861244019,
|
| 333 |
-
"acc_at_50": 0.9387755102040817,
|
| 334 |
-
"chance": 0.5,
|
| 335 |
-
"mean_conf": 0.8082531690597534
|
| 336 |
},
|
| 337 |
-
"
|
| 338 |
-
"n": 1500,
|
| 339 |
"heldout": true,
|
| 340 |
-
"acc": 0.
|
| 341 |
-
"nll": 0.
|
| 342 |
-
"
|
| 343 |
-
"ece": 0.0920267121195793,
|
| 344 |
-
"aurc": 0.05637575547028409,
|
| 345 |
-
"acc_at_80": 0.9041666666666667,
|
| 346 |
-
"acc_at_50": 0.952,
|
| 347 |
-
"chance": 0.3333333333333333,
|
| 348 |
-
"mean_conf": 0.7603529691696167
|
| 349 |
},
|
| 350 |
-
"
|
| 351 |
-
"n": 753,
|
| 352 |
"heldout": true,
|
| 353 |
-
"acc": 0.
|
| 354 |
-
"nll":
|
| 355 |
-
"
|
| 356 |
-
"ece": 0.02283999003262163,
|
| 357 |
-
"aurc": 0.013386792557244996,
|
| 358 |
-
"acc_at_80": 0.9750830564784053,
|
| 359 |
-
"acc_at_50": 0.9973404255319149,
|
| 360 |
-
"chance": 0.5,
|
| 361 |
-
"mean_conf": 0.9319818615913391
|
| 362 |
},
|
| 363 |
-
"
|
| 364 |
-
"n": 1500,
|
| 365 |
"heldout": false,
|
| 366 |
-
"acc": 0.
|
| 367 |
-
"nll": 0.
|
| 368 |
-
"
|
| 369 |
-
"ece": 0.010996773560841833,
|
| 370 |
-
"aurc": 0.005411243047938908,
|
| 371 |
-
"acc_at_80": 0.9916666666666667,
|
| 372 |
-
"acc_at_50": 0.9986666666666667,
|
| 373 |
-
"chance": 0.5,
|
| 374 |
-
"mean_conf": 0.960597813129425
|
| 375 |
},
|
| 376 |
-
"
|
| 377 |
-
"
|
| 378 |
-
"
|
| 379 |
-
"
|
| 380 |
-
"
|
| 381 |
-
"brier": 0.047019220888614655,
|
| 382 |
-
"ece": 0.010984412074089057,
|
| 383 |
-
"aurc": 0.0031837618094593323,
|
| 384 |
-
"acc_at_80": 0.9975,
|
| 385 |
-
"acc_at_50": 0.9986666666666667,
|
| 386 |
-
"chance": 0.5,
|
| 387 |
-
"mean_conf": 0.9658349752426147
|
| 388 |
},
|
| 389 |
-
"
|
| 390 |
-
"
|
| 391 |
-
"
|
| 392 |
-
"
|
| 393 |
-
"
|
| 394 |
-
"brier": 0.20698048174381256,
|
| 395 |
-
"ece": 0.0236563768497733,
|
| 396 |
-
"aurc": 0.04271065373581858,
|
| 397 |
-
"acc_at_80": 0.9186046511627907,
|
| 398 |
-
"acc_at_50": 0.9697674418604652,
|
| 399 |
-
"chance": 0.5,
|
| 400 |
-
"mean_conf": 0.8563228249549866
|
| 401 |
},
|
| 402 |
-
"
|
| 403 |
-
"
|
| 404 |
-
"
|
| 405 |
-
"
|
| 406 |
-
"
|
| 407 |
-
"brier": 0.6100183129310608,
|
| 408 |
-
"ece": 0.2097732200225194,
|
| 409 |
-
"aurc": 0.38891488430684185,
|
| 410 |
-
"acc_at_80": 0.5758333333333333,
|
| 411 |
-
"acc_at_50": 0.5546666666666666,
|
| 412 |
-
"chance": 0.5,
|
| 413 |
-
"mean_conf": 0.7697731852531433
|
| 414 |
},
|
| 415 |
-
"
|
| 416 |
-
"
|
| 417 |
-
"
|
| 418 |
-
"
|
| 419 |
-
"
|
| 420 |
-
"brier": 0.12661248445510864,
|
| 421 |
-
"ece": 0.021389487346013394,
|
| 422 |
-
"aurc": 0.021070846946813597,
|
| 423 |
-
"acc_at_80": 0.9691666666666666,
|
| 424 |
-
"acc_at_50": 0.9893333333333333,
|
| 425 |
-
"chance": 0.3333333333333333,
|
| 426 |
-
"mean_conf": 0.9144656658172607
|
| 427 |
},
|
| 428 |
-
"
|
| 429 |
-
"
|
| 430 |
-
"
|
| 431 |
-
"
|
| 432 |
-
"
|
| 433 |
-
"brier": 0.08833956718444824,
|
| 434 |
-
"ece": 0.005242238346735676,
|
| 435 |
-
"aurc": 0.00708056420373018,
|
| 436 |
-
"acc_at_80": 0.9898333333333333,
|
| 437 |
-
"acc_at_50": 0.9997333333333334,
|
| 438 |
-
"chance": 0.5,
|
| 439 |
-
"mean_conf": 0.9384066462516785
|
| 440 |
},
|
| 441 |
-
"
|
| 442 |
-
"
|
| 443 |
-
"
|
| 444 |
-
"
|
| 445 |
-
"
|
| 446 |
-
"brier": 0.028761865571141243,
|
| 447 |
-
"ece": 0.003176784157753035,
|
| 448 |
-
"aurc": 0.0009830178598261067,
|
| 449 |
-
"acc_at_80": 0.9991666666666666,
|
| 450 |
-
"acc_at_50": 1.0,
|
| 451 |
-
"chance": 0.5,
|
| 452 |
-
"mean_conf": 0.9805023074150085
|
| 453 |
},
|
| 454 |
-
"
|
| 455 |
-
"n": 1000,
|
| 456 |
"heldout": false,
|
| 457 |
-
"acc": 0.
|
| 458 |
-
"nll": 0.
|
| 459 |
-
"
|
| 460 |
-
"ece": 0.008678223431110363,
|
| 461 |
-
"aurc": 0.0018027139225166645,
|
| 462 |
-
"acc_at_80": 0.9975,
|
| 463 |
-
"acc_at_50": 0.998,
|
| 464 |
-
"chance": 0.5,
|
| 465 |
-
"mean_conf": 0.9915288090705872
|
| 466 |
},
|
| 467 |
-
"
|
| 468 |
-
"
|
| 469 |
-
"
|
| 470 |
-
"
|
| 471 |
-
"
|
| 472 |
-
"brier": 0.013991557992994785,
|
| 473 |
-
"ece": 0.0061702977816264154,
|
| 474 |
-
"aurc": 0.0002225076163988035,
|
| 475 |
-
"acc_at_80": 1.0,
|
| 476 |
-
"acc_at_50": 1.0,
|
| 477 |
-
"chance": 0.5,
|
| 478 |
-
"mean_conf": 0.9903146028518677
|
| 479 |
},
|
| 480 |
-
"
|
| 481 |
-
"
|
| 482 |
-
"
|
| 483 |
-
"
|
| 484 |
-
"
|
| 485 |
-
"brier": 0.06071288511157036,
|
| 486 |
-
"ece": 0.010598145286242134,
|
| 487 |
-
"aurc": 0.0033456649768294467,
|
| 488 |
-
"acc_at_80": 0.9966666666666667,
|
| 489 |
-
"acc_at_50": 1.0,
|
| 490 |
-
"chance": 0.5,
|
| 491 |
-
"mean_conf": 0.9616019129753113
|
| 492 |
},
|
| 493 |
-
"
|
| 494 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 495 |
"heldout": true,
|
| 496 |
-
"acc": 0.
|
| 497 |
-
"nll": 0.
|
| 498 |
-
"
|
| 499 |
-
"ece": 0.07010723670323692,
|
| 500 |
-
"aurc": 0.0771562638274147,
|
| 501 |
-
"acc_at_80": 0.8616666666666667,
|
| 502 |
-
"acc_at_50": 0.9186666666666666,
|
| 503 |
-
"chance": 0.5,
|
| 504 |
-
"mean_conf": 0.8740261793136597
|
| 505 |
},
|
| 506 |
-
"
|
| 507 |
-
"
|
| 508 |
-
"
|
| 509 |
-
"
|
| 510 |
-
"
|
| 511 |
-
"brier": 0.09970351308584213,
|
| 512 |
-
"ece": 0.016061418344011792,
|
| 513 |
-
"aurc": 0.011946422398403366,
|
| 514 |
-
"acc_at_80": 0.9822184589331076,
|
| 515 |
-
"acc_at_50": 0.991869918699187,
|
| 516 |
-
"chance": 0.3333333333333333,
|
| 517 |
-
"mean_conf": 0.9222855567932129
|
| 518 |
},
|
| 519 |
-
"
|
| 520 |
-
"
|
| 521 |
-
"
|
| 522 |
-
"
|
| 523 |
-
"
|
| 524 |
-
"brier": 0.13564017415046692,
|
| 525 |
-
"ece": 0.012536143084367136,
|
| 526 |
-
"aurc": 0.0196055057445663,
|
| 527 |
-
"acc_at_80": 0.9675,
|
| 528 |
-
"acc_at_50": 0.984,
|
| 529 |
-
"chance": 0.3333333333333333,
|
| 530 |
-
"mean_conf": 0.9014083743095398
|
| 531 |
},
|
| 532 |
-
"
|
| 533 |
-
"
|
| 534 |
-
"
|
| 535 |
-
"
|
| 536 |
-
"
|
| 537 |
-
"brier": 0.12175914645195007,
|
| 538 |
-
"ece": 0.032304730871524204,
|
| 539 |
-
"aurc": 0.016942999858164772,
|
| 540 |
-
"acc_at_80": 0.972972972972973,
|
| 541 |
-
"acc_at_50": 0.9927536231884058,
|
| 542 |
-
"chance": 0.5,
|
| 543 |
-
"mean_conf": 0.9229269027709961
|
| 544 |
},
|
| 545 |
-
"
|
| 546 |
-
"
|
| 547 |
-
"
|
| 548 |
-
"
|
| 549 |
-
"
|
| 550 |
-
"brier": 0.07091154158115387,
|
| 551 |
-
"ece": 0.024690412322680183,
|
| 552 |
-
"aurc": 0.006327282688845999,
|
| 553 |
-
"acc_at_80": 0.9891666666666666,
|
| 554 |
-
"acc_at_50": 0.9973333333333333,
|
| 555 |
-
"chance": 0.5,
|
| 556 |
-
"mean_conf": 0.9314389824867249
|
| 557 |
},
|
| 558 |
-
"
|
| 559 |
-
"
|
| 560 |
-
"
|
| 561 |
-
"
|
| 562 |
-
"
|
| 563 |
-
"brier": 0.20259936153888702,
|
| 564 |
-
"ece": 0.020958018183708214,
|
| 565 |
-
"aurc": 0.03969768816435887,
|
| 566 |
-
"acc_at_80": 0.9191666666666667,
|
| 567 |
-
"acc_at_50": 0.976,
|
| 568 |
-
"chance": 0.5,
|
| 569 |
-
"mean_conf": 0.8577672243118286
|
| 570 |
},
|
| 571 |
-
"
|
| 572 |
-
"
|
| 573 |
-
"
|
| 574 |
-
"
|
| 575 |
-
"
|
| 576 |
-
"brier": 0.2003422975540161,
|
| 577 |
-
"ece": 0.05603446709174737,
|
| 578 |
-
"aurc": 0.03746395737301843,
|
| 579 |
-
"acc_at_80": 0.9233128834355828,
|
| 580 |
-
"acc_at_50": 0.9852941176470589,
|
| 581 |
-
"chance": 0.5,
|
| 582 |
-
"mean_conf": 0.8494253754615784
|
| 583 |
},
|
| 584 |
-
"
|
| 585 |
-
"n": 1500,
|
| 586 |
"heldout": true,
|
| 587 |
-
"acc": 0.
|
| 588 |
-
"nll": 0.
|
| 589 |
-
"
|
| 590 |
-
"ece": 0.16266702938079836,
|
| 591 |
-
"aurc": 0.15261275687617581,
|
| 592 |
-
"acc_at_80": 0.7725,
|
| 593 |
-
"acc_at_50": 0.8506666666666667,
|
| 594 |
-
"chance": 0.5,
|
| 595 |
-
"mean_conf": 0.8894419074058533
|
| 596 |
},
|
| 597 |
-
"
|
| 598 |
-
"
|
| 599 |
-
"
|
| 600 |
-
"
|
| 601 |
-
"
|
| 602 |
-
"brier": 0.22923843562602997,
|
| 603 |
-
"ece": 0.028362546705445288,
|
| 604 |
-
"aurc": 0.055531376162773184,
|
| 605 |
-
"acc_at_80": 0.8920863309352518,
|
| 606 |
-
"acc_at_50": 0.9540229885057471,
|
| 607 |
-
"chance": 0.5,
|
| 608 |
-
"mean_conf": 0.8420823216438293
|
| 609 |
},
|
| 610 |
-
"
|
| 611 |
-
"n": 1500,
|
| 612 |
"heldout": false,
|
| 613 |
-
"acc": 0.
|
| 614 |
-
"nll": 0.
|
| 615 |
-
"
|
| 616 |
-
"ece": 0.007670958081881165,
|
| 617 |
-
"aurc": 0.021249923966378044,
|
| 618 |
-
"acc_at_80": 0.9658333333333333,
|
| 619 |
-
"acc_at_50": 0.9866666666666667,
|
| 620 |
-
"chance": 0.5,
|
| 621 |
-
"mean_conf": 0.9120649695396423
|
| 622 |
},
|
| 623 |
-
"
|
| 624 |
-
"
|
| 625 |
-
"
|
| 626 |
-
"
|
| 627 |
-
"
|
| 628 |
-
"brier": 0.43187108635902405,
|
| 629 |
-
"ece": 0.07230606106865009,
|
| 630 |
-
"aurc": 0.22667061660238633,
|
| 631 |
-
"acc_at_80": 0.6818181818181818,
|
| 632 |
-
"acc_at_50": 0.7441860465116279,
|
| 633 |
-
"chance": 0.5,
|
| 634 |
-
"mean_conf": 0.7084050178527832
|
| 635 |
},
|
| 636 |
-
"
|
| 637 |
-
"
|
| 638 |
-
"
|
| 639 |
-
"
|
| 640 |
-
"
|
| 641 |
-
"brier": 0.29201483726501465,
|
| 642 |
-
"ece": 0.04841647809743881,
|
| 643 |
-
"aurc": 0.08188713057072244,
|
| 644 |
-
"acc_at_80": 0.87,
|
| 645 |
-
"acc_at_50": 0.928,
|
| 646 |
-
"chance": 0.33333333333333326,
|
| 647 |
-
"mean_conf": 0.8192474842071533
|
| 648 |
},
|
| 649 |
-
"
|
| 650 |
-
"
|
| 651 |
-
"
|
| 652 |
-
"
|
| 653 |
-
"
|
| 654 |
-
"brier": 0.09096138179302216,
|
| 655 |
-
"ece": 0.01588043100089344,
|
| 656 |
-
"aurc": 0.007890434844290587,
|
| 657 |
-
"acc_at_80": 0.9893390191897654,
|
| 658 |
-
"acc_at_50": 0.9965870307167235,
|
| 659 |
-
"chance": 0.25015642775881686,
|
| 660 |
-
"mean_conf": 0.931973397731781
|
| 661 |
},
|
| 662 |
-
"
|
| 663 |
-
"
|
| 664 |
-
"
|
| 665 |
-
"
|
| 666 |
-
"
|
| 667 |
-
"brier": 0.23903721570968628,
|
| 668 |
-
"ece": 0.0274305369500544,
|
| 669 |
-
"aurc": 0.04505035633871337,
|
| 670 |
-
"acc_at_80": 0.9078812691914022,
|
| 671 |
-
"acc_at_50": 0.9737704918032787,
|
| 672 |
-
"chance": 0.19999999999999998,
|
| 673 |
-
"mean_conf": 0.8047513961791992
|
| 674 |
},
|
| 675 |
-
"
|
| 676 |
-
"
|
| 677 |
-
"
|
| 678 |
-
"
|
| 679 |
-
"
|
| 680 |
-
"brier": 0.19346994161605835,
|
| 681 |
-
"ece": 0.07434978183222124,
|
| 682 |
-
"aurc": 0.024735971633347426,
|
| 683 |
-
"acc_at_80": 0.951417004048583,
|
| 684 |
-
"acc_at_50": 0.9892008639308856,
|
| 685 |
-
"chance": 0.125,
|
| 686 |
-
"mean_conf": 0.8040501475334167
|
| 687 |
},
|
| 688 |
-
"
|
| 689 |
-
"
|
| 690 |
-
"
|
| 691 |
-
"
|
| 692 |
-
"
|
| 693 |
-
"brier": 0.13087701797485352,
|
| 694 |
-
"ece": 0.046654853641986856,
|
| 695 |
-
"aurc": 0.018970984864514148,
|
| 696 |
-
"acc_at_80": 0.9775,
|
| 697 |
-
"acc_at_50": 0.988,
|
| 698 |
-
"chance": 0.25,
|
| 699 |
-
"mean_conf": 0.8701046109199524
|
| 700 |
},
|
| 701 |
-
"
|
| 702 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 703 |
"heldout": true,
|
| 704 |
-
"acc": 0.
|
| 705 |
-
"nll": 0.
|
| 706 |
-
"
|
| 707 |
-
"ece": 0.011339849680662144,
|
| 708 |
-
"aurc": 0.00020554956797836496,
|
| 709 |
-
"acc_at_80": 1.0,
|
| 710 |
-
"acc_at_50": 1.0,
|
| 711 |
-
"chance": 0.25,
|
| 712 |
-
"mean_conf": 0.9826049208641052
|
| 713 |
},
|
| 714 |
-
"
|
| 715 |
-
"
|
| 716 |
-
"
|
| 717 |
-
"
|
| 718 |
-
"
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
"
|
| 722 |
-
"
|
| 723 |
-
"
|
| 724 |
-
"
|
| 725 |
-
"mean_conf": 0.9461080431938171
|
| 726 |
},
|
| 727 |
"piqa": {
|
| 728 |
-
"
|
| 729 |
-
"
|
| 730 |
-
"
|
| 731 |
-
"
|
| 732 |
-
"brier": 0.14502142369747162,
|
| 733 |
-
"ece": 0.013796017607053151,
|
| 734 |
-
"aurc": 0.021228511343341527,
|
| 735 |
-
"acc_at_80": 0.9583333333333334,
|
| 736 |
-
"acc_at_50": 0.992,
|
| 737 |
-
"chance": 0.5,
|
| 738 |
-
"mean_conf": 0.8923400044441223
|
| 739 |
},
|
| 740 |
-
"
|
| 741 |
-
"
|
| 742 |
-
"
|
| 743 |
-
"
|
| 744 |
-
"
|
| 745 |
-
"brier": 0.31137582659721375,
|
| 746 |
-
"ece": 0.031137031753857947,
|
| 747 |
-
"aurc": 0.09158195591532522,
|
| 748 |
-
"acc_at_80": 0.84,
|
| 749 |
-
"acc_at_50": 0.9226666666666666,
|
| 750 |
-
"chance": 0.3333333333333333,
|
| 751 |
-
"mean_conf": 0.7958521246910095
|
| 752 |
},
|
| 753 |
-
"
|
| 754 |
-
"
|
| 755 |
-
"
|
| 756 |
-
"
|
| 757 |
-
"
|
| 758 |
-
"brier": 0.26946812868118286,
|
| 759 |
-
"ece": 0.06155245508278276,
|
| 760 |
-
"aurc": 0.07579622386469252,
|
| 761 |
-
"acc_at_80": 0.8658777120315582,
|
| 762 |
-
"acc_at_50": 0.9400630914826499,
|
| 763 |
-
"chance": 0.5,
|
| 764 |
-
"mean_conf": 0.864251434803009
|
| 765 |
},
|
| 766 |
-
"
|
| 767 |
-
"
|
| 768 |
-
"
|
| 769 |
-
"
|
| 770 |
-
"
|
| 771 |
-
"brier": 0.1534876972436905,
|
| 772 |
-
"ece": 0.022403327584266636,
|
| 773 |
-
"aurc": 0.02290650005628042,
|
| 774 |
-
"acc_at_80": 0.9616666666666667,
|
| 775 |
-
"acc_at_50": 0.984,
|
| 776 |
-
"chance": 0.25,
|
| 777 |
-
"mean_conf": 0.9195566177368164
|
| 778 |
},
|
| 779 |
-
"
|
| 780 |
-
"
|
| 781 |
-
"
|
| 782 |
-
"
|
| 783 |
-
"
|
| 784 |
-
"brier": 0.3440512418746948,
|
| 785 |
-
"ece": 0.025970877945423118,
|
| 786 |
-
"aurc": 0.08710831124973537,
|
| 787 |
-
"acc_at_80": 0.8375,
|
| 788 |
-
"acc_at_50": 0.944,
|
| 789 |
-
"chance": 0.25,
|
| 790 |
-
"mean_conf": 0.7646375298500061
|
| 791 |
},
|
| 792 |
-
"
|
| 793 |
-
"
|
| 794 |
-
"
|
| 795 |
-
"
|
| 796 |
-
"
|
| 797 |
-
"brier": 0.3905316889286041,
|
| 798 |
-
"ece": 0.0326135976522435,
|
| 799 |
-
"aurc": 0.1226272460921536,
|
| 800 |
-
"acc_at_80": 0.7848722986247544,
|
| 801 |
-
"acc_at_50": 0.8883647798742138,
|
| 802 |
-
"chance": 0.25,
|
| 803 |
-
"mean_conf": 0.7243216037750244
|
| 804 |
},
|
| 805 |
-
"
|
| 806 |
-
"n": 817,
|
| 807 |
"heldout": true,
|
| 808 |
-
"acc": 0.
|
| 809 |
-
"nll": 1.
|
| 810 |
-
"
|
| 811 |
-
"ece": 0.04380423737053772,
|
| 812 |
-
"aurc": 0.1434396588957069,
|
| 813 |
-
"acc_at_80": 0.7415902140672783,
|
| 814 |
-
"acc_at_50": 0.875,
|
| 815 |
-
"chance": 0.22622350449767833,
|
| 816 |
-
"mean_conf": 0.6572912335395813
|
| 817 |
},
|
| 818 |
-
"
|
| 819 |
-
"n": 970,
|
| 820 |
"heldout": true,
|
| 821 |
-
"acc": 0.
|
| 822 |
-
"nll":
|
| 823 |
-
"
|
| 824 |
-
"ece": 0.03720373320825321,
|
| 825 |
-
"aurc": 0.1441605640203049,
|
| 826 |
-
"acc_at_80": 0.770618556701031,
|
| 827 |
-
"acc_at_50": 0.8742268041237113,
|
| 828 |
-
"chance": 0.33333333333333326,
|
| 829 |
-
"mean_conf": 0.7452313303947449
|
| 830 |
},
|
| 831 |
-
"
|
| 832 |
-
"n": 3000,
|
| 833 |
"heldout": false,
|
| 834 |
-
"acc": 0.
|
| 835 |
-
"nll": 0.
|
| 836 |
-
"
|
| 837 |
-
"ece": 0.005153551499048894,
|
| 838 |
-
"aurc": 0.0027758247094429277,
|
| 839 |
-
"acc_at_80": 0.9991666666666666,
|
| 840 |
-
"acc_at_50": 1.0,
|
| 841 |
-
"chance": 0.30000000000000004,
|
| 842 |
-
"mean_conf": 0.9544093608856201
|
| 843 |
-
},
|
| 844 |
-
"helpsteer2": {
|
| 845 |
-
"n": 5190,
|
| 846 |
-
"heldout": false,
|
| 847 |
-
"acc": 0.6059730250481695,
|
| 848 |
-
"nll": 0.9141702055931091,
|
| 849 |
-
"brier": 0.5080678462982178,
|
| 850 |
-
"ece": 0.011640842520202997,
|
| 851 |
-
"aurc": 0.25311956730893054,
|
| 852 |
-
"acc_at_80": 0.661849710982659,
|
| 853 |
-
"acc_at_50": 0.7433526011560694,
|
| 854 |
-
"chance": 0.2,
|
| 855 |
-
"mean_conf": 0.6087998747825623
|
| 856 |
-
},
|
| 857 |
-
"helpsteer3_pref": {
|
| 858 |
-
"n": 1176,
|
| 859 |
-
"heldout": false,
|
| 860 |
-
"acc": 0.39625850340136054,
|
| 861 |
-
"nll": 1.4855575561523438,
|
| 862 |
-
"brier": 0.7240433692932129,
|
| 863 |
-
"ece": 0.05535320800786115,
|
| 864 |
-
"aurc": 0.5140617913897911,
|
| 865 |
-
"acc_at_80": 0.4303931987247609,
|
| 866 |
-
"acc_at_50": 0.4931972789115646,
|
| 867 |
-
"chance": 0.14285714285714282,
|
| 868 |
-
"mean_conf": 0.4516116678714752
|
| 869 |
-
},
|
| 870 |
-
"hate_speech_scales": {
|
| 871 |
-
"n": 7500,
|
| 872 |
-
"heldout": false,
|
| 873 |
-
"acc": 0.5677333333333333,
|
| 874 |
-
"nll": 0.9648903608322144,
|
| 875 |
-
"brier": 0.5351675152778625,
|
| 876 |
-
"ece": 0.01265673328240713,
|
| 877 |
-
"aurc": 0.2583564493583398,
|
| 878 |
-
"acc_at_80": 0.6218333333333333,
|
| 879 |
-
"acc_at_50": 0.7226666666666667,
|
| 880 |
-
"chance": 0.22666666666666674,
|
| 881 |
-
"mean_conf": 0.5692406296730042
|
| 882 |
},
|
| 883 |
-
"
|
| 884 |
-
"
|
| 885 |
-
"
|
| 886 |
-
"
|
| 887 |
-
"
|
| 888 |
-
"brier": 0.7032541632652283,
|
| 889 |
-
"ece": 0.018412392636140185,
|
| 890 |
-
"aurc": 0.456270065624404,
|
| 891 |
-
"acc_at_80": 0.4225,
|
| 892 |
-
"acc_at_50": 0.5,
|
| 893 |
-
"chance": 0.16666666666666666,
|
| 894 |
-
"mean_conf": 0.39178547263145447
|
| 895 |
},
|
| 896 |
-
"
|
| 897 |
-
"
|
| 898 |
-
"
|
| 899 |
-
"
|
| 900 |
-
"
|
| 901 |
-
"brier": 0.5930370688438416,
|
| 902 |
-
"ece": 0.04352503341436387,
|
| 903 |
-
"aurc": 0.27962043904014877,
|
| 904 |
-
"acc_at_80": 0.5833333333333334,
|
| 905 |
-
"acc_at_50": 0.6986666666666667,
|
| 906 |
-
"chance": 0.2,
|
| 907 |
-
"mean_conf": 0.5081812739372253
|
| 908 |
},
|
| 909 |
-
"
|
| 910 |
-
"
|
| 911 |
-
"
|
| 912 |
-
"
|
| 913 |
-
"
|
| 914 |
-
"brier": 0.2921466827392578,
|
| 915 |
-
"ece": 0.01894718197981517,
|
| 916 |
-
"aurc": 0.09238369468864559,
|
| 917 |
-
"acc_at_80": 0.8366666666666667,
|
| 918 |
-
"acc_at_50": 0.9173333333333333,
|
| 919 |
-
"chance": 0.5,
|
| 920 |
-
"mean_conf": 0.7897220849990845
|
| 921 |
},
|
| 922 |
"shp": {
|
| 923 |
-
"
|
| 924 |
-
"
|
| 925 |
-
"
|
| 926 |
-
"
|
| 927 |
-
"brier": 0.32701006531715393,
|
| 928 |
-
"ece": 0.025171132485071798,
|
| 929 |
-
"aurc": 0.12178344751538855,
|
| 930 |
-
"acc_at_80": 0.815,
|
| 931 |
-
"acc_at_50": 0.8773333333333333,
|
| 932 |
-
"chance": 0.5,
|
| 933 |
-
"mean_conf": 0.7665263414382935
|
| 934 |
},
|
| 935 |
-
"
|
| 936 |
-
"
|
| 937 |
-
"
|
| 938 |
-
"
|
| 939 |
-
"
|
| 940 |
-
"brier": 0.42045339941978455,
|
| 941 |
-
"ece": 0.041912146513500524,
|
| 942 |
-
"aurc": 0.22392659282355332,
|
| 943 |
-
"acc_at_80": 0.7,
|
| 944 |
-
"acc_at_50": 0.7553763440860215,
|
| 945 |
-
"chance": 0.5,
|
| 946 |
-
"mean_conf": 0.6865145564079285
|
| 947 |
},
|
| 948 |
-
"
|
| 949 |
-
"
|
| 950 |
-
"
|
| 951 |
-
"
|
| 952 |
-
"
|
| 953 |
-
"brier": 0.6728165149688721,
|
| 954 |
-
"ece": 0.18002339822053912,
|
| 955 |
-
"aurc": 0.375649254791399,
|
| 956 |
-
"acc_at_80": 0.5383333333333333,
|
| 957 |
-
"acc_at_50": 0.6053333333333333,
|
| 958 |
-
"chance": 0.3333333333333333,
|
| 959 |
-
"mean_conf": 0.6753567457199097
|
| 960 |
},
|
| 961 |
-
"
|
| 962 |
-
"n": 1500,
|
| 963 |
"heldout": true,
|
| 964 |
-
"acc": 0.
|
| 965 |
-
"nll": 0.
|
| 966 |
-
"
|
| 967 |
-
"ece": 0.016744028528531404,
|
| 968 |
-
"aurc": 0.03257295394073298,
|
| 969 |
-
"acc_at_80": 0.9358333333333333,
|
| 970 |
-
"acc_at_50": 0.9826666666666667,
|
| 971 |
-
"chance": 0.5,
|
| 972 |
-
"mean_conf": 0.8549553751945496
|
| 973 |
},
|
| 974 |
-
"
|
| 975 |
-
"
|
| 976 |
-
"
|
| 977 |
-
"
|
| 978 |
-
"
|
| 979 |
-
"brier": 0.08778265118598938,
|
| 980 |
-
"ece": 0.017058192556088318,
|
| 981 |
-
"aurc": 0.0095577454972473,
|
| 982 |
-
"acc_at_80": 0.9805194805194806,
|
| 983 |
-
"acc_at_50": 0.9955489614243324,
|
| 984 |
-
"chance": 0.16666666666666666,
|
| 985 |
-
"mean_conf": 0.9386415481567383
|
| 986 |
},
|
| 987 |
-
"
|
| 988 |
-
"
|
| 989 |
-
"
|
| 990 |
-
"
|
| 991 |
-
"
|
| 992 |
-
"brier": 0.10044093430042267,
|
| 993 |
-
"ece": 0.02039710435271266,
|
| 994 |
-
"aurc": 0.018484566693533454,
|
| 995 |
-
"acc_at_80": 0.97125,
|
| 996 |
-
"acc_at_50": 0.988,
|
| 997 |
-
"chance": 0.12470555555555554,
|
| 998 |
-
"mean_conf": 0.931235134601593
|
| 999 |
},
|
| 1000 |
-
"
|
| 1001 |
-
"n": 1500,
|
| 1002 |
"heldout": true,
|
| 1003 |
-
"acc": 0.
|
| 1004 |
-
"nll": 0.
|
| 1005 |
-
"
|
| 1006 |
-
"ece": 0.164010644475619,
|
| 1007 |
-
"aurc": 0.058629698114600504,
|
| 1008 |
-
"acc_at_80": 0.8508333333333333,
|
| 1009 |
-
"acc_at_50": 0.996,
|
| 1010 |
-
"chance": 0.125,
|
| 1011 |
-
"mean_conf": 0.9094099402427673
|
| 1012 |
},
|
| 1013 |
-
"
|
| 1014 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1015 |
"heldout": false,
|
| 1016 |
-
"acc":
|
| 1017 |
-
"nll": 0.
|
| 1018 |
-
"
|
| 1019 |
-
"ece": 0.050477581620216365,
|
| 1020 |
-
"aurc": 0.0,
|
| 1021 |
-
"acc_at_80": 1.0,
|
| 1022 |
-
"acc_at_50": 1.0,
|
| 1023 |
-
"chance": 0.5,
|
| 1024 |
-
"mean_conf": 0.9495224952697754
|
| 1025 |
},
|
| 1026 |
-
"
|
| 1027 |
-
"
|
| 1028 |
-
"
|
| 1029 |
-
"
|
| 1030 |
-
"
|
| 1031 |
-
"brier": 0.36430832743644714,
|
| 1032 |
-
"ece": 0.07864520607697177,
|
| 1033 |
-
"aurc": 0.16351334732880177,
|
| 1034 |
-
"acc_at_80": 0.7862745098039216,
|
| 1035 |
-
"acc_at_50": 0.8557993730407524,
|
| 1036 |
-
"chance": 0.5,
|
| 1037 |
-
"mean_conf": 0.807409405708313
|
| 1038 |
},
|
| 1039 |
-
"
|
| 1040 |
-
"
|
| 1041 |
-
"
|
| 1042 |
-
"
|
| 1043 |
-
"
|
| 1044 |
-
"brier": 0.14767614006996155,
|
| 1045 |
-
"ece": 0.018725120902061423,
|
| 1046 |
-
"aurc": 0.03263826217991851,
|
| 1047 |
-
"acc_at_80": 0.9533333333333334,
|
| 1048 |
-
"acc_at_50": 0.972,
|
| 1049 |
-
"chance": 0.5,
|
| 1050 |
-
"mean_conf": 0.916050136089325
|
| 1051 |
},
|
| 1052 |
-
"
|
| 1053 |
-
"
|
| 1054 |
-
"
|
| 1055 |
-
"
|
| 1056 |
-
"
|
| 1057 |
-
"brier": 0.1218671053647995,
|
| 1058 |
-
"ece": 0.088970955993448,
|
| 1059 |
-
"aurc": 0.005634225542264229,
|
| 1060 |
-
"acc_at_80": 1.0,
|
| 1061 |
-
"acc_at_50": 1.0,
|
| 1062 |
-
"chance": 0.3333333333333333,
|
| 1063 |
-
"mean_conf": 0.843683660030365
|
| 1064 |
},
|
| 1065 |
-
"
|
| 1066 |
-
"
|
| 1067 |
-
"
|
| 1068 |
-
"
|
| 1069 |
-
"
|
| 1070 |
-
"brier": 0.15081273019313812,
|
| 1071 |
-
"ece": 0.01853906315565109,
|
| 1072 |
-
"aurc": 0.029321998199134124,
|
| 1073 |
-
"acc_at_80": 0.9558333333333333,
|
| 1074 |
-
"acc_at_50": 0.972,
|
| 1075 |
-
"chance": 0.3333333333333333,
|
| 1076 |
-
"mean_conf": 0.89956134557724
|
| 1077 |
},
|
| 1078 |
-
"
|
| 1079 |
-
"
|
| 1080 |
-
"
|
| 1081 |
-
"
|
| 1082 |
-
"
|
| 1083 |
-
"brier": 0.140306293964386,
|
| 1084 |
-
"ece": 0.041457832944542354,
|
| 1085 |
-
"aurc": 0.02111118044409865,
|
| 1086 |
-
"acc_at_80": 0.9644381223328592,
|
| 1087 |
-
"acc_at_50": 0.9863636363636363,
|
| 1088 |
-
"chance": 0.5,
|
| 1089 |
-
"mean_conf": 0.8743886947631836
|
| 1090 |
},
|
| 1091 |
-
"
|
| 1092 |
-
"
|
| 1093 |
-
"
|
| 1094 |
-
"
|
| 1095 |
-
"
|
| 1096 |
-
"brier": 0.39271217584609985,
|
| 1097 |
-
"ece": 0.01503979265277646,
|
| 1098 |
-
"aurc": 0.1874733140966926,
|
| 1099 |
-
"acc_at_80": 0.7355229040622299,
|
| 1100 |
-
"acc_at_50": 0.7994467496542186,
|
| 1101 |
-
"chance": 0.5,
|
| 1102 |
-
"mean_conf": 0.6827472448348999
|
| 1103 |
},
|
| 1104 |
-
"
|
| 1105 |
-
"
|
| 1106 |
-
"
|
| 1107 |
-
"
|
| 1108 |
-
"
|
| 1109 |
-
"brier": 0.4580947160720825,
|
| 1110 |
-
"ece": 0.02259559371074042,
|
| 1111 |
-
"aurc": 0.16178209420157638,
|
| 1112 |
-
"acc_at_80": 0.72,
|
| 1113 |
-
"acc_at_50": 0.8506666666666667,
|
| 1114 |
-
"chance": 0.25,
|
| 1115 |
-
"mean_conf": 0.64654541015625
|
| 1116 |
},
|
| 1117 |
-
"
|
| 1118 |
-
"
|
| 1119 |
-
"
|
| 1120 |
-
"
|
| 1121 |
-
"
|
| 1122 |
-
"brier": 0.5948507189750671,
|
| 1123 |
-
"ece": 0.16000230524937312,
|
| 1124 |
-
"aurc": 0.2567185921988135,
|
| 1125 |
-
"acc_at_80": 0.6175,
|
| 1126 |
-
"acc_at_50": 0.7386666666666667,
|
| 1127 |
-
"chance": 0.25,
|
| 1128 |
-
"mean_conf": 0.726736843585968
|
| 1129 |
},
|
| 1130 |
-
"
|
| 1131 |
-
"n": 1500,
|
| 1132 |
"heldout": true,
|
| 1133 |
-
"acc": 0.
|
| 1134 |
-
"nll": 0.
|
| 1135 |
-
"
|
| 1136 |
-
"ece": 0.028014496127764424,
|
| 1137 |
-
"aurc": 0.0014398269639239185,
|
| 1138 |
-
"acc_at_80": 0.9991666666666666,
|
| 1139 |
-
"acc_at_50": 1.0,
|
| 1140 |
-
"chance": 0.5,
|
| 1141 |
-
"mean_conf": 0.9496161341667175
|
| 1142 |
},
|
| 1143 |
-
"
|
| 1144 |
-
"
|
| 1145 |
-
"
|
| 1146 |
-
"
|
| 1147 |
-
"
|
| 1148 |
-
"brier": 0.6252750158309937,
|
| 1149 |
-
"ece": 0.20490147550532845,
|
| 1150 |
-
"aurc": 0.2427561983391429,
|
| 1151 |
-
"acc_at_80": 0.6219135802469136,
|
| 1152 |
-
"acc_at_50": 0.754320987654321,
|
| 1153 |
-
"chance": 0.17897217323143252,
|
| 1154 |
-
"mean_conf": 0.7641607522964478
|
| 1155 |
},
|
| 1156 |
-
"
|
| 1157 |
-
"n": 1500,
|
| 1158 |
"heldout": false,
|
| 1159 |
-
"acc": 0.
|
| 1160 |
-
"nll": 0.
|
| 1161 |
-
"
|
| 1162 |
-
"ece": 0.01560000636180242,
|
| 1163 |
-
"aurc": 0.010645835452518614,
|
| 1164 |
-
"acc_at_80": 0.9916666666666667,
|
| 1165 |
-
"acc_at_50": 0.9986666666666667,
|
| 1166 |
-
"chance": 0.2,
|
| 1167 |
-
"mean_conf": 0.9098491072654724
|
| 1168 |
},
|
| 1169 |
-
"
|
| 1170 |
-
"
|
| 1171 |
-
"
|
| 1172 |
-
"
|
| 1173 |
-
"
|
| 1174 |
-
"brier": 0.22114428877830505,
|
| 1175 |
-
"ece": 0.012264061649640423,
|
| 1176 |
-
"aurc": 0.036408242528499925,
|
| 1177 |
-
"acc_at_80": 0.9216666666666666,
|
| 1178 |
-
"acc_at_50": 0.988,
|
| 1179 |
-
"chance": 0.16666666666666666,
|
| 1180 |
-
"mean_conf": 0.847633957862854
|
| 1181 |
},
|
| 1182 |
-
"
|
| 1183 |
-
"
|
| 1184 |
-
"
|
| 1185 |
-
"
|
| 1186 |
-
"
|
| 1187 |
-
"brier": 0.27414849400520325,
|
| 1188 |
-
"ece": 0.07142959564924237,
|
| 1189 |
-
"aurc": 0.06397148561730419,
|
| 1190 |
-
"acc_at_80": 0.8625,
|
| 1191 |
-
"acc_at_50": 0.9466666666666667,
|
| 1192 |
-
"chance": 0.37149999999999994,
|
| 1193 |
-
"mean_conf": 0.8586010932922363
|
| 1194 |
},
|
| 1195 |
-
"
|
| 1196 |
-
"
|
| 1197 |
-
"
|
| 1198 |
-
"
|
| 1199 |
-
"
|
| 1200 |
-
"brier": 0.21085529029369354,
|
| 1201 |
-
"ece": 0.02402531460479456,
|
| 1202 |
-
"aurc": 0.02589115351267795,
|
| 1203 |
-
"acc_at_80": 0.9475308641975309,
|
| 1204 |
-
"acc_at_50": 0.9975308641975309,
|
| 1205 |
-
"chance": 0.17979423868312755,
|
| 1206 |
-
"mean_conf": 0.8713107109069824
|
| 1207 |
},
|
| 1208 |
-
"
|
| 1209 |
-
"
|
| 1210 |
-
"
|
| 1211 |
-
"
|
| 1212 |
-
"
|
| 1213 |
-
"brier": 0.04427969455718994,
|
| 1214 |
-
"ece": 0.020239676629300454,
|
| 1215 |
-
"aurc": 0.001614158795991274,
|
| 1216 |
-
"acc_at_80": 0.9988385598141696,
|
| 1217 |
-
"acc_at_50": 1.0,
|
| 1218 |
-
"chance": 0.09999999999999999,
|
| 1219 |
-
"mean_conf": 0.9579129815101624
|
| 1220 |
},
|
| 1221 |
-
"
|
| 1222 |
-
"n": 1500,
|
| 1223 |
"heldout": true,
|
| 1224 |
-
"acc": 0.
|
| 1225 |
-
"nll": 0.
|
| 1226 |
-
"
|
| 1227 |
-
"ece": 0.010575797716776508,
|
| 1228 |
-
"aurc": 0.004161405420562212,
|
| 1229 |
-
"acc_at_80": 0.9941666666666666,
|
| 1230 |
-
"acc_at_50": 1.0,
|
| 1231 |
-
"chance": 0.1,
|
| 1232 |
-
"mean_conf": 0.9639164209365845
|
| 1233 |
},
|
| 1234 |
-
"
|
| 1235 |
-
"
|
| 1236 |
-
"
|
| 1237 |
-
"
|
| 1238 |
-
"
|
| 1239 |
-
"brier": 0.011298743076622486,
|
| 1240 |
-
"ece": 0.004611518184343941,
|
| 1241 |
-
"aurc": 0.0001843391307670139,
|
| 1242 |
-
"acc_at_80": 1.0,
|
| 1243 |
-
"acc_at_50": 1.0,
|
| 1244 |
-
"chance": 0.1,
|
| 1245 |
-
"mean_conf": 0.9933373332023621
|
| 1246 |
},
|
| 1247 |
-
"
|
| 1248 |
-
"
|
| 1249 |
-
"
|
| 1250 |
-
"
|
| 1251 |
-
"
|
| 1252 |
-
"brier": 0.6310210227966309,
|
| 1253 |
-
"ece": 0.1403005560239156,
|
| 1254 |
-
"aurc": 0.3060607413299222,
|
| 1255 |
-
"acc_at_80": 0.5791666666666667,
|
| 1256 |
-
"acc_at_50": 0.6633333333333333,
|
| 1257 |
-
"chance": 0.25,
|
| 1258 |
-
"mean_conf": 0.6786338090896606
|
| 1259 |
}
|
| 1260 |
},
|
| 1261 |
"other_sets": {
|
| 1262 |
"general_validation_847": {
|
| 1263 |
-
"acc": 0.
|
| 1264 |
-
"nll": 0.
|
| 1265 |
-
"ece": 0.
|
| 1266 |
},
|
| 1267 |
"typesafe_102": {
|
| 1268 |
-
"acc": 0.
|
| 1269 |
-
"nll": 0.
|
| 1270 |
-
"ece": 0.
|
| 1271 |
-
"tv_to_reference": 0.
|
| 1272 |
},
|
| 1273 |
"openjev_5252": {
|
| 1274 |
-
"acc": 0.
|
| 1275 |
-
"
|
| 1276 |
-
"
|
| 1277 |
-
"
|
| 1278 |
},
|
| 1279 |
"mind2web_1770": {
|
| 1280 |
-
"acc": 0.
|
| 1281 |
-
"nll": 0.
|
| 1282 |
-
"ece": 0.
|
| 1283 |
},
|
| 1284 |
"jevbench_public_items": {
|
| 1285 |
"easy": 1.0,
|
| 1286 |
-
"standard": 0.
|
| 1287 |
-
"hard": 0.
|
| 1288 |
-
"easy_top_label_ece": 0.
|
| 1289 |
-
"standard_top_label_ece": 0.
|
| 1290 |
-
"hard_top_label_ece": 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1291 |
},
|
| 1292 |
"bespoke_public_suite": {
|
| 1293 |
-
"macro": 0.
|
| 1294 |
-
"micro": 0.
|
| 1295 |
-
"macro_untrained": 0.
|
| 1296 |
"per_subset": {
|
| 1297 |
-
"vitaminc-dev": 0.
|
| 1298 |
-
"massive-en-US": 0.
|
| 1299 |
-
"massive-de-DE": 0.
|
| 1300 |
-
"boolq": 0.
|
| 1301 |
-
"squad2": 0.
|
| 1302 |
-
"paws": 0.
|
| 1303 |
-
"multinli": 0.
|
| 1304 |
-
"civil_comments": 0.
|
| 1305 |
-
"aegis2": 0.
|
| 1306 |
"helpsteer2": 0.4659,
|
| 1307 |
-
"summeval-relevance": 0.
|
| 1308 |
-
"summeval-consistency": 0.
|
| 1309 |
-
"pubmedqa": 0.
|
| 1310 |
}
|
| 1311 |
},
|
| 1312 |
"zero_shot_games_win_rate": {
|
| 1313 |
-
"sampled_all": 0.
|
| 1314 |
-
"greedy_all": 0.
|
| 1315 |
-
"sampled_bags": 0.
|
| 1316 |
-
"greedy_bags": 0.
|
| 1317 |
},
|
| 1318 |
"text_games_zero_shot_5_episodes": {
|
| 1319 |
"pong": {
|
|
@@ -1327,7 +679,7 @@
|
|
| 1327 |
"random": 0.0
|
| 1328 |
},
|
| 1329 |
"breakout": {
|
| 1330 |
-
"model":
|
| 1331 |
"teacher": 22.0,
|
| 1332 |
"random": 0.8
|
| 1333 |
},
|
|
@@ -1337,7 +689,7 @@
|
|
| 1337 |
"random": 0.0
|
| 1338 |
},
|
| 1339 |
"cliffwalking": {
|
| 1340 |
-
"model": -
|
| 1341 |
"teacher": -13.0,
|
| 1342 |
"random": -574.8
|
| 1343 |
},
|
|
@@ -1348,12 +700,12 @@
|
|
| 1348 |
},
|
| 1349 |
"minigrid_empty": {
|
| 1350 |
"model": 0.0,
|
| 1351 |
-
"teacher": 0.
|
| 1352 |
"random": 0.0
|
| 1353 |
},
|
| 1354 |
"minigrid_lavagap": {
|
| 1355 |
"model": 0.0,
|
| 1356 |
-
"teacher": 0.
|
| 1357 |
"random": 0.0
|
| 1358 |
},
|
| 1359 |
"minigrid_doorkey": {
|
|
@@ -1362,959 +714,1083 @@
|
|
| 1362 |
"random": 0.0
|
| 1363 |
},
|
| 1364 |
"babyai_goto": {
|
| 1365 |
-
"model": 0.
|
| 1366 |
-
"teacher": 0.
|
| 1367 |
-
"random": 0.
|
| 1368 |
}
|
| 1369 |
},
|
| 1370 |
"miniwob_live_22x8": {
|
| 1371 |
-
"sampled": 0.
|
| 1372 |
-
"sampled_held_out": 0.
|
| 1373 |
-
"greedy": 0.
|
| 1374 |
-
"greedy_held_out": 0.
|
| 1375 |
},
|
| 1376 |
"decision_index_4k_sample": {
|
| 1377 |
-
"note": "
|
| 1378 |
-
"
|
| 1379 |
-
|
| 1380 |
-
|
| 1381 |
-
|
| 1382 |
-
|
| 1383 |
-
|
| 1384 |
-
|
| 1385 |
-
|
| 1386 |
-
|
| 1387 |
-
|
| 1388 |
-
|
| 1389 |
-
|
| 1390 |
-
|
| 1391 |
-
|
| 1392 |
-
|
| 1393 |
-
|
| 1394 |
-
|
| 1395 |
-
|
| 1396 |
-
|
| 1397 |
-
|
| 1398 |
-
|
| 1399 |
-
|
| 1400 |
-
|
| 1401 |
-
|
| 1402 |
-
|
| 1403 |
-
|
| 1404 |
-
|
| 1405 |
-
|
| 1406 |
-
|
| 1407 |
-
|
| 1408 |
-
|
| 1409 |
-
|
| 1410 |
-
|
| 1411 |
-
|
| 1412 |
-
|
| 1413 |
-
|
| 1414 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1415 |
}
|
| 1416 |
},
|
| 1417 |
-
"
|
| 1418 |
-
"
|
| 1419 |
-
|
| 1420 |
-
|
| 1421 |
-
|
| 1422 |
-
|
| 1423 |
-
|
| 1424 |
-
|
| 1425 |
-
|
| 1426 |
-
|
| 1427 |
-
|
| 1428 |
-
|
| 1429 |
-
|
| 1430 |
-
|
| 1431 |
-
|
| 1432 |
-
|
| 1433 |
-
|
| 1434 |
-
|
| 1435 |
-
|
| 1436 |
-
|
| 1437 |
-
|
| 1438 |
-
|
| 1439 |
-
|
| 1440 |
-
|
| 1441 |
-
|
| 1442 |
-
|
| 1443 |
-
|
| 1444 |
-
|
| 1445 |
-
|
| 1446 |
-
|
| 1447 |
-
|
| 1448 |
-
|
| 1449 |
-
"
|
| 1450 |
-
"ece": 0.0901,
|
| 1451 |
-
"acc": 0.5252,
|
| 1452 |
-
"conf": 0.6047
|
| 1453 |
-
}
|
| 1454 |
}
|
| 1455 |
},
|
| 1456 |
-
"
|
| 1457 |
-
"
|
| 1458 |
-
|
| 1459 |
-
|
| 1460 |
-
|
| 1461 |
-
|
| 1462 |
-
|
| 1463 |
-
|
| 1464 |
-
|
| 1465 |
-
|
| 1466 |
-
|
| 1467 |
-
|
| 1468 |
-
|
| 1469 |
-
|
| 1470 |
-
|
| 1471 |
-
|
| 1472 |
-
|
| 1473 |
-
|
| 1474 |
-
|
| 1475 |
-
|
| 1476 |
-
|
| 1477 |
-
|
| 1478 |
-
|
| 1479 |
-
|
| 1480 |
-
|
| 1481 |
-
|
| 1482 |
-
|
| 1483 |
-
|
| 1484 |
-
|
| 1485 |
-
|
| 1486 |
-
|
| 1487 |
-
|
| 1488 |
-
"
|
| 1489 |
-
"ece": 0.0942,
|
| 1490 |
-
"acc": 0.4395,
|
| 1491 |
-
"conf": 0.5338
|
| 1492 |
-
}
|
| 1493 |
}
|
| 1494 |
},
|
| 1495 |
-
"
|
| 1496 |
-
"
|
| 1497 |
-
|
| 1498 |
-
|
| 1499 |
-
|
| 1500 |
-
|
| 1501 |
-
|
| 1502 |
-
|
| 1503 |
-
|
| 1504 |
-
|
| 1505 |
-
|
| 1506 |
-
|
| 1507 |
-
|
| 1508 |
-
|
| 1509 |
-
|
| 1510 |
-
|
| 1511 |
-
|
| 1512 |
-
|
| 1513 |
-
|
| 1514 |
-
|
| 1515 |
-
|
| 1516 |
-
|
| 1517 |
-
|
| 1518 |
-
|
| 1519 |
-
|
| 1520 |
-
|
| 1521 |
-
|
| 1522 |
-
|
| 1523 |
-
|
| 1524 |
-
|
| 1525 |
-
|
| 1526 |
-
|
| 1527 |
-
"
|
| 1528 |
-
"ece": 0.0715,
|
| 1529 |
-
"acc": 0.5113,
|
| 1530 |
-
"conf": 0.508
|
| 1531 |
-
}
|
| 1532 |
}
|
| 1533 |
-
}
|
| 1534 |
-
},
|
| 1535 |
-
"behaviour_probes": {
|
| 1536 |
-
"source": "runs/decider_4b_release_v1/probes/ (decider.probes.batteries, .applications, .isolated on the staged folder)",
|
| 1537 |
-
"batteries": {
|
| 1538 |
-
"generic": 1.0,
|
| 1539 |
-
"specific": 1.0,
|
| 1540 |
-
"catchall": 0.9,
|
| 1541 |
-
"noul_acc": 1.0,
|
| 1542 |
-
"noul_brier": 0.007,
|
| 1543 |
-
"n_choice": 60,
|
| 1544 |
-
"n_noul": 49,
|
| 1545 |
-
"abstain_battery": "7/8"
|
| 1546 |
-
},
|
| 1547 |
-
"applications": {
|
| 1548 |
-
"router_tier": 0.968,
|
| 1549 |
-
"router_needs_tools": 0.871,
|
| 1550 |
-
"commands_risk": 0.889,
|
| 1551 |
-
"destructive_called_safe": 0,
|
| 1552 |
-
"commands_outside_project": 0.956,
|
| 1553 |
-
"browser_element": 0.875,
|
| 1554 |
-
"browser_action": 0.875
|
| 1555 |
},
|
| 1556 |
-
"
|
| 1557 |
-
"
|
| 1558 |
-
|
| 1559 |
-
0.
|
| 1560 |
-
|
| 1561 |
-
|
| 1562 |
-
|
| 1563 |
-
"helpsteer3_pref": [
|
| 1564 |
-
0.423,
|
| 1565 |
-
0.4,
|
| 1566 |
-
0.89
|
| 1567 |
-
],
|
| 1568 |
-
"hate_speech_scales": [
|
| 1569 |
-
0.577,
|
| 1570 |
-
0.557,
|
| 1571 |
-
1.01
|
| 1572 |
-
],
|
| 1573 |
-
"liar2": [
|
| 1574 |
-
0.37,
|
| 1575 |
-
0.37,
|
| 1576 |
-
1.04
|
| 1577 |
-
],
|
| 1578 |
-
"prosocial_safety": [
|
| 1579 |
-
0.55,
|
| 1580 |
-
0.54,
|
| 1581 |
-
1.04
|
| 1582 |
-
]
|
| 1583 |
-
}
|
| 1584 |
-
}
|
| 1585 |
-
},
|
| 1586 |
-
"paired": {
|
| 1587 |
-
"regression_set_per_task_bootstrap": {
|
| 1588 |
-
"decider-2b v10": {
|
| 1589 |
-
"in_task": {
|
| 1590 |
-
"acc": {
|
| 1591 |
-
"tasks": 67,
|
| 1592 |
-
"delta": 0.028308793288373085,
|
| 1593 |
-
"ci95": [
|
| 1594 |
-
0.02006512497490845,
|
| 1595 |
-
0.036981683727089036
|
| 1596 |
-
],
|
| 1597 |
-
"higher": 61,
|
| 1598 |
-
"lower": 5,
|
| 1599 |
-
"equal": 1
|
| 1600 |
-
},
|
| 1601 |
-
"nll": {
|
| 1602 |
-
"tasks": 67,
|
| 1603 |
-
"delta": -0.06919700099127506,
|
| 1604 |
-
"ci95": [
|
| 1605 |
-
-0.08909216020742794,
|
| 1606 |
-
-0.0505761455668053
|
| 1607 |
-
],
|
| 1608 |
-
"higher": 3,
|
| 1609 |
-
"lower": 64,
|
| 1610 |
-
"equal": 0
|
| 1611 |
-
},
|
| 1612 |
-
"ece": {
|
| 1613 |
-
"tasks": 67,
|
| 1614 |
-
"delta": -0.009739657388560296,
|
| 1615 |
-
"ci95": [
|
| 1616 |
-
-0.015012005072188694,
|
| 1617 |
-
-0.004724870930128075
|
| 1618 |
-
],
|
| 1619 |
-
"higher": 19,
|
| 1620 |
-
"lower": 48,
|
| 1621 |
-
"equal": 0
|
| 1622 |
-
}
|
| 1623 |
-
},
|
| 1624 |
-
"heldout": {
|
| 1625 |
-
"acc": {
|
| 1626 |
-
"tasks": 28,
|
| 1627 |
-
"delta": 0.03250106996111107,
|
| 1628 |
-
"ci95": [
|
| 1629 |
-
0.02056013941549151,
|
| 1630 |
-
0.04509958361329938
|
| 1631 |
-
],
|
| 1632 |
-
"higher": 26,
|
| 1633 |
-
"lower": 2,
|
| 1634 |
-
"equal": 0
|
| 1635 |
-
},
|
| 1636 |
-
"nll": {
|
| 1637 |
-
"tasks": 28,
|
| 1638 |
-
"delta": -0.06415821685056601,
|
| 1639 |
-
"ci95": [
|
| 1640 |
-
-0.10593001757515595,
|
| 1641 |
-
-0.019923249988018376
|
| 1642 |
-
],
|
| 1643 |
-
"higher": 5,
|
| 1644 |
-
"lower": 23,
|
| 1645 |
-
"equal": 0
|
| 1646 |
-
},
|
| 1647 |
-
"ece": {
|
| 1648 |
-
"tasks": 28,
|
| 1649 |
-
"delta": -0.013092378488970904,
|
| 1650 |
-
"ci95": [
|
| 1651 |
-
-0.024831013504507077,
|
| 1652 |
-
-0.0009821930225610849
|
| 1653 |
-
],
|
| 1654 |
-
"higher": 7,
|
| 1655 |
-
"lower": 21,
|
| 1656 |
-
"equal": 0
|
| 1657 |
-
}
|
| 1658 |
-
},
|
| 1659 |
-
"all_tasks_acc": {
|
| 1660 |
-
"tasks": 95,
|
| 1661 |
-
"higher": 87,
|
| 1662 |
-
"lower": 7,
|
| 1663 |
-
"equal": 1,
|
| 1664 |
-
"largest_gain": [
|
| 1665 |
-
[
|
| 1666 |
-
0.16496465043205022,
|
| 1667 |
-
"medqa"
|
| 1668 |
-
],
|
| 1669 |
-
[
|
| 1670 |
-
0.13666666666666671,
|
| 1671 |
-
"medmcqa"
|
| 1672 |
-
],
|
| 1673 |
-
[
|
| 1674 |
-
0.12154696132596687,
|
| 1675 |
-
"winogrande"
|
| 1676 |
-
],
|
| 1677 |
-
[
|
| 1678 |
-
0.11995104039167692,
|
| 1679 |
-
"truthfulqa"
|
| 1680 |
-
],
|
| 1681 |
-
[
|
| 1682 |
-
0.1093333333333334,
|
| 1683 |
-
"mmlu"
|
| 1684 |
-
],
|
| 1685 |
-
[
|
| 1686 |
-
0.09000000000000008,
|
| 1687 |
-
"openbookqa"
|
| 1688 |
-
],
|
| 1689 |
-
[
|
| 1690 |
-
0.0844250363901019,
|
| 1691 |
-
"strategyqa"
|
| 1692 |
-
],
|
| 1693 |
-
[
|
| 1694 |
-
0.08353808353808356,
|
| 1695 |
-
"commonsense_qa"
|
| 1696 |
-
],
|
| 1697 |
-
[
|
| 1698 |
-
0.0766738660907127,
|
| 1699 |
-
"qasc"
|
| 1700 |
-
],
|
| 1701 |
-
[
|
| 1702 |
-
0.07666666666666666,
|
| 1703 |
-
"hellaswag"
|
| 1704 |
-
]
|
| 1705 |
],
|
| 1706 |
-
"
|
| 1707 |
-
|
| 1708 |
-
|
| 1709 |
-
|
| 1710 |
-
|
| 1711 |
-
|
| 1712 |
-
|
| 1713 |
-
|
| 1714 |
-
|
| 1715 |
-
|
| 1716 |
-
|
| 1717 |
-
|
| 1718 |
-
|
| 1719 |
-
|
| 1720 |
-
|
| 1721 |
-
|
| 1722 |
-
|
| 1723 |
-
|
| 1724 |
-
|
| 1725 |
-
|
| 1726 |
-
|
| 1727 |
-
|
| 1728 |
-
|
| 1729 |
-
|
| 1730 |
-
|
| 1731 |
-
[
|
| 1732 |
-
-0.0013333333333332975,
|
| 1733 |
-
"tweet_hate"
|
| 1734 |
-
],
|
| 1735 |
-
[
|
| 1736 |
-
0.0,
|
| 1737 |
-
"mrpc"
|
| 1738 |
-
],
|
| 1739 |
-
[
|
| 1740 |
-
0.0006666666666667043,
|
| 1741 |
-
"qqp"
|
| 1742 |
-
],
|
| 1743 |
-
[
|
| 1744 |
-
0.0013333333333334085,
|
| 1745 |
-
"counterfactual"
|
| 1746 |
-
]
|
| 1747 |
-
]
|
| 1748 |
}
|
| 1749 |
},
|
| 1750 |
-
"
|
| 1751 |
-
"
|
| 1752 |
-
"
|
| 1753 |
-
|
| 1754 |
-
|
| 1755 |
-
|
| 1756 |
-
|
| 1757 |
-
-0.014631772511168099
|
| 1758 |
-
],
|
| 1759 |
-
"higher": 8,
|
| 1760 |
-
"lower": 56,
|
| 1761 |
-
"equal": 3
|
| 1762 |
-
},
|
| 1763 |
-
"nll": {
|
| 1764 |
-
"tasks": 67,
|
| 1765 |
-
"delta": 0.0472232606609477,
|
| 1766 |
-
"ci95": [
|
| 1767 |
-
0.031868303920239656,
|
| 1768 |
-
0.0642806337493013
|
| 1769 |
-
],
|
| 1770 |
-
"higher": 60,
|
| 1771 |
-
"lower": 7,
|
| 1772 |
-
"equal": 0
|
| 1773 |
-
},
|
| 1774 |
-
"ece": {
|
| 1775 |
-
"tasks": 67,
|
| 1776 |
-
"delta": 0.0012808394765357449,
|
| 1777 |
-
"ci95": [
|
| 1778 |
-
-0.0019492904556365123,
|
| 1779 |
-
0.004579654938592193
|
| 1780 |
-
],
|
| 1781 |
-
"higher": 32,
|
| 1782 |
-
"lower": 35,
|
| 1783 |
-
"equal": 0
|
| 1784 |
-
}
|
| 1785 |
-
},
|
| 1786 |
-
"heldout": {
|
| 1787 |
-
"acc": {
|
| 1788 |
-
"tasks": 28,
|
| 1789 |
-
"delta": -0.022940651992104894,
|
| 1790 |
-
"ci95": [
|
| 1791 |
-
-0.034897726076775624,
|
| 1792 |
-
-0.01169628110672145
|
| 1793 |
-
],
|
| 1794 |
-
"higher": 6,
|
| 1795 |
-
"lower": 19,
|
| 1796 |
-
"equal": 3
|
| 1797 |
-
},
|
| 1798 |
-
"nll": {
|
| 1799 |
-
"tasks": 28,
|
| 1800 |
-
"delta": 0.061055595454360755,
|
| 1801 |
-
"ci95": [
|
| 1802 |
-
0.028752236044965684,
|
| 1803 |
-
0.09545661989998605
|
| 1804 |
-
],
|
| 1805 |
-
"higher": 19,
|
| 1806 |
-
"lower": 9,
|
| 1807 |
-
"equal": 0
|
| 1808 |
-
},
|
| 1809 |
-
"ece": {
|
| 1810 |
-
"tasks": 28,
|
| 1811 |
-
"delta": 0.0017723579477865973,
|
| 1812 |
-
"ci95": [
|
| 1813 |
-
-0.01843366198280132,
|
| 1814 |
-
0.02109182215813156
|
| 1815 |
-
],
|
| 1816 |
-
"higher": 16,
|
| 1817 |
-
"lower": 12,
|
| 1818 |
-
"equal": 0
|
| 1819 |
-
}
|
| 1820 |
-
},
|
| 1821 |
-
"all_tasks_acc": {
|
| 1822 |
-
"tasks": 95,
|
| 1823 |
-
"higher": 14,
|
| 1824 |
-
"lower": 75,
|
| 1825 |
-
"equal": 6,
|
| 1826 |
-
"largest_gain": [
|
| 1827 |
-
[
|
| 1828 |
-
0.0357142857142857,
|
| 1829 |
-
"cb"
|
| 1830 |
-
],
|
| 1831 |
-
[
|
| 1832 |
-
0.01200000000000001,
|
| 1833 |
-
"dolly_category"
|
| 1834 |
-
],
|
| 1835 |
-
[
|
| 1836 |
-
0.011333333333333306,
|
| 1837 |
-
"fin_sentiment"
|
| 1838 |
-
],
|
| 1839 |
-
[
|
| 1840 |
-
0.009000000000000008,
|
| 1841 |
-
"bbc_news"
|
| 1842 |
-
],
|
| 1843 |
-
[
|
| 1844 |
-
0.007333333333333414,
|
| 1845 |
-
"counterfactual"
|
| 1846 |
-
],
|
| 1847 |
-
[
|
| 1848 |
-
0.006640106241699861,
|
| 1849 |
-
"cr_reviews"
|
| 1850 |
-
],
|
| 1851 |
-
[
|
| 1852 |
-
0.006000000000000005,
|
| 1853 |
-
"ultrafeedback_pref"
|
| 1854 |
-
],
|
| 1855 |
-
[
|
| 1856 |
-
0.006000000000000005,
|
| 1857 |
-
"tweet_sentiment"
|
| 1858 |
-
],
|
| 1859 |
-
[
|
| 1860 |
-
0.004222378606615007,
|
| 1861 |
-
"tweet_emotion"
|
| 1862 |
-
],
|
| 1863 |
-
[
|
| 1864 |
-
0.0022753128555176305,
|
| 1865 |
-
"wiki_qa"
|
| 1866 |
-
]
|
| 1867 |
],
|
| 1868 |
-
"
|
| 1869 |
-
|
| 1870 |
-
|
| 1871 |
-
|
| 1872 |
-
|
| 1873 |
-
|
| 1874 |
-
|
| 1875 |
-
|
| 1876 |
-
|
| 1877 |
-
|
| 1878 |
-
|
| 1879 |
-
|
| 1880 |
-
|
| 1881 |
-
|
| 1882 |
-
|
| 1883 |
-
|
| 1884 |
-
|
| 1885 |
-
|
| 1886 |
-
|
| 1887 |
-
|
| 1888 |
-
|
| 1889 |
-
|
| 1890 |
-
|
| 1891 |
-
|
| 1892 |
-
|
| 1893 |
-
[
|
| 1894 |
-
-0.07813733228097874,
|
| 1895 |
-
"winogrande"
|
| 1896 |
-
],
|
| 1897 |
-
[
|
| 1898 |
-
-0.06400000000000006,
|
| 1899 |
-
"quality"
|
| 1900 |
-
],
|
| 1901 |
-
[
|
| 1902 |
-
-0.062962962962963,
|
| 1903 |
-
"abstain_probe"
|
| 1904 |
-
],
|
| 1905 |
-
[
|
| 1906 |
-
-0.05599999999999994,
|
| 1907 |
-
"openbookqa"
|
| 1908 |
-
]
|
| 1909 |
-
]
|
| 1910 |
}
|
| 1911 |
}
|
| 1912 |
},
|
| 1913 |
-
"
|
| 1914 |
"general_validation": {
|
| 1915 |
-
"
|
| 1916 |
-
"
|
| 1917 |
-
|
| 1918 |
-
|
| 1919 |
-
|
| 1920 |
-
|
| 1921 |
-
|
| 1922 |
-
|
| 1923 |
-
"
|
| 1924 |
-
|
| 1925 |
-
|
| 1926 |
-
|
| 1927 |
-
|
| 1928 |
-
]
|
| 1929 |
-
}
|
| 1930 |
-
},
|
| 1931 |
-
"decider-4b minus decider-35b-a3b": {
|
| 1932 |
-
"accuracy": {
|
| 1933 |
-
"delta": -0.04014167650531287,
|
| 1934 |
-
"ci95": [
|
| 1935 |
-
-0.06139315230224321,
|
| 1936 |
-
-0.021251475796930343
|
| 1937 |
-
]
|
| 1938 |
-
},
|
| 1939 |
-
"nll": {
|
| 1940 |
-
"delta": 0.08851131023386756,
|
| 1941 |
-
"ci95": [
|
| 1942 |
-
0.05948134256931478,
|
| 1943 |
-
0.12116728422535383
|
| 1944 |
-
]
|
| 1945 |
-
}
|
| 1946 |
}
|
| 1947 |
},
|
| 1948 |
"typesafe": {
|
| 1949 |
-
"
|
| 1950 |
-
"
|
| 1951 |
-
|
| 1952 |
-
|
| 1953 |
-
|
| 1954 |
-
|
| 1955 |
-
|
| 1956 |
-
|
| 1957 |
-
"
|
| 1958 |
-
|
| 1959 |
-
|
| 1960 |
-
|
| 1961 |
-
|
| 1962 |
-
]
|
| 1963 |
-
}
|
| 1964 |
-
},
|
| 1965 |
-
"decider-4b minus decider-35b-a3b": {
|
| 1966 |
-
"accuracy": {
|
| 1967 |
-
"delta": -0.058823529411764705,
|
| 1968 |
-
"ci95": [
|
| 1969 |
-
-0.12745098039215685,
|
| 1970 |
-
0.00980392156862745
|
| 1971 |
-
]
|
| 1972 |
-
},
|
| 1973 |
-
"nll": {
|
| 1974 |
-
"delta": 0.2673503542766393,
|
| 1975 |
-
"ci95": [
|
| 1976 |
-
0.09127083864723654,
|
| 1977 |
-
0.4693938156656168
|
| 1978 |
-
]
|
| 1979 |
-
}
|
| 1980 |
}
|
| 1981 |
},
|
| 1982 |
"openjev_external": {
|
| 1983 |
-
"
|
| 1984 |
-
"
|
| 1985 |
-
|
| 1986 |
-
|
| 1987 |
-
|
| 1988 |
-
|
| 1989 |
-
|
| 1990 |
-
|
| 1991 |
-
"
|
| 1992 |
-
|
| 1993 |
-
|
| 1994 |
-
|
| 1995 |
-
|
| 1996 |
-
]
|
| 1997 |
-
}
|
| 1998 |
-
},
|
| 1999 |
-
"decider-4b minus decider-35b-a3b": {
|
| 2000 |
-
"accuracy": {
|
| 2001 |
-
"delta": -0.04455445544554455,
|
| 2002 |
-
"ci95": [
|
| 2003 |
-
-0.056740289413556744,
|
| 2004 |
-
-0.03274942878903275
|
| 2005 |
-
]
|
| 2006 |
-
},
|
| 2007 |
-
"nll": {
|
| 2008 |
-
"delta": 0.14137717530126584,
|
| 2009 |
-
"ci95": [
|
| 2010 |
-
0.11984487182566946,
|
| 2011 |
-
0.16334143792994635
|
| 2012 |
-
]
|
| 2013 |
-
}
|
| 2014 |
}
|
| 2015 |
},
|
| 2016 |
"mind2web": {
|
| 2017 |
-
"
|
| 2018 |
-
"
|
| 2019 |
-
|
| 2020 |
-
|
| 2021 |
-
|
| 2022 |
-
|
| 2023 |
-
|
| 2024 |
-
|
| 2025 |
-
"
|
| 2026 |
-
|
| 2027 |
-
|
| 2028 |
-
|
| 2029 |
-
|
| 2030 |
-
]
|
| 2031 |
-
}
|
| 2032 |
-
},
|
| 2033 |
-
"decider-4b minus decider-35b-a3b": {
|
| 2034 |
-
"accuracy": {
|
| 2035 |
-
"delta": -0.012429378531073447,
|
| 2036 |
-
"ci95": [
|
| 2037 |
-
-0.02768361581920904,
|
| 2038 |
-
0.0022598870056497176
|
| 2039 |
-
]
|
| 2040 |
-
},
|
| 2041 |
-
"nll": {
|
| 2042 |
-
"delta": 0.0506065321709504,
|
| 2043 |
-
"ci95": [
|
| 2044 |
-
0.020959831226414583,
|
| 2045 |
-
0.08199647460511714
|
| 2046 |
-
]
|
| 2047 |
-
}
|
| 2048 |
}
|
| 2049 |
}
|
| 2050 |
},
|
| 2051 |
-
"
|
| 2052 |
-
"
|
| 2053 |
-
"
|
| 2054 |
-
|
| 2055 |
-
|
| 2056 |
-
|
| 2057 |
-
0.
|
| 2058 |
-
|
| 2059 |
-
|
| 2060 |
-
|
| 2061 |
-
|
| 2062 |
-
|
| 2063 |
-
"
|
| 2064 |
-
|
| 2065 |
-
|
| 2066 |
-
0.
|
| 2067 |
-
0.
|
| 2068 |
-
|
| 2069 |
-
|
| 2070 |
-
|
| 2071 |
-
|
| 2072 |
-
|
| 2073 |
-
"
|
| 2074 |
-
|
| 2075 |
-
|
| 2076 |
-
0.
|
| 2077 |
-
|
| 2078 |
-
|
| 2079 |
-
|
| 2080 |
-
|
| 2081 |
-
|
| 2082 |
-
|
| 2083 |
-
"
|
| 2084 |
-
|
| 2085 |
-
0.
|
| 2086 |
-
|
| 2087 |
-
|
| 2088 |
-
|
| 2089 |
-
|
| 2090 |
-
|
| 2091 |
-
|
| 2092 |
-
|
| 2093 |
-
|
| 2094 |
-
|
| 2095 |
-
|
| 2096 |
-
|
| 2097 |
-
|
| 2098 |
-
|
| 2099 |
-
|
| 2100 |
-
|
| 2101 |
-
|
| 2102 |
-
|
| 2103 |
-
|
| 2104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2105 |
},
|
| 2106 |
-
"
|
| 2107 |
-
"
|
| 2108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2109 |
"delta": 0.0,
|
| 2110 |
"ci95": [
|
| 2111 |
0.0,
|
| 2112 |
0.0
|
| 2113 |
-
]
|
| 2114 |
-
|
| 2115 |
-
|
| 2116 |
-
"
|
| 2117 |
-
"ref": 0.1562,
|
| 2118 |
-
"delta": -0.0312,
|
| 2119 |
-
"ci95": [
|
| 2120 |
-
-0.1406,
|
| 2121 |
-
0.0781
|
| 2122 |
-
]
|
| 2123 |
-
},
|
| 2124 |
-
"v10|greedy|tic_tac_toe": {
|
| 2125 |
-
"model": 0.2703,
|
| 2126 |
-
"ref": 0.2027,
|
| 2127 |
-
"delta": 0.0676,
|
| 2128 |
-
"ci95": [
|
| 2129 |
-
-0.027,
|
| 2130 |
-
0.1622
|
| 2131 |
-
]
|
| 2132 |
-
},
|
| 2133 |
-
"v10|greedy|all": {
|
| 2134 |
-
"model": 0.2863,
|
| 2135 |
-
"ref": 0.265,
|
| 2136 |
-
"delta": 0.0214,
|
| 2137 |
-
"ci95": [
|
| 2138 |
-
-0.0299,
|
| 2139 |
-
0.0726
|
| 2140 |
-
]
|
| 2141 |
-
},
|
| 2142 |
-
"35b|sampled|bag_game": {
|
| 2143 |
-
"model": 0.5625,
|
| 2144 |
-
"ref": 0.418,
|
| 2145 |
-
"delta": 0.1445,
|
| 2146 |
-
"ci95": [
|
| 2147 |
-
0.0859,
|
| 2148 |
-
0.2031
|
| 2149 |
-
]
|
| 2150 |
},
|
| 2151 |
-
"
|
| 2152 |
-
"
|
| 2153 |
-
"
|
| 2154 |
-
"
|
|
|
|
| 2155 |
"ci95": [
|
| 2156 |
0.0,
|
| 2157 |
-
0.
|
| 2158 |
-
]
|
| 2159 |
-
|
| 2160 |
-
|
| 2161 |
-
"
|
| 2162 |
-
"ref": 0.168,
|
| 2163 |
-
"delta": -0.0039,
|
| 2164 |
-
"ci95": [
|
| 2165 |
-
-0.0391,
|
| 2166 |
-
0.0312
|
| 2167 |
-
]
|
| 2168 |
-
},
|
| 2169 |
-
"35b|sampled|tic_tac_toe": {
|
| 2170 |
-
"model": 0.2432,
|
| 2171 |
-
"ref": 0.2568,
|
| 2172 |
-
"delta": -0.0135,
|
| 2173 |
-
"ci95": [
|
| 2174 |
-
-0.0507,
|
| 2175 |
-
0.0236
|
| 2176 |
-
]
|
| 2177 |
-
},
|
| 2178 |
-
"35b|sampled|all": {
|
| 2179 |
-
"model": 0.2767,
|
| 2180 |
-
"ref": 0.2415,
|
| 2181 |
-
"delta": 0.0353,
|
| 2182 |
-
"ci95": [
|
| 2183 |
-
0.0118,
|
| 2184 |
-
0.0588
|
| 2185 |
-
]
|
| 2186 |
-
},
|
| 2187 |
-
"35b|greedy|bag_game": {
|
| 2188 |
-
"model": 0.6094,
|
| 2189 |
-
"ref": 0.625,
|
| 2190 |
-
"delta": -0.0156,
|
| 2191 |
-
"ci95": [
|
| 2192 |
-
-0.0781,
|
| 2193 |
-
0.0469
|
| 2194 |
-
]
|
| 2195 |
-
},
|
| 2196 |
-
"35b|greedy|exact_minesweeper": {
|
| 2197 |
-
"model": 0.0,
|
| 2198 |
-
"ref": 0.0312,
|
| 2199 |
-
"delta": -0.0312,
|
| 2200 |
-
"ci95": [
|
| 2201 |
-
-0.0938,
|
| 2202 |
-
0.0
|
| 2203 |
-
]
|
| 2204 |
-
},
|
| 2205 |
-
"35b|greedy|stochastic_grid": {
|
| 2206 |
-
"model": 0.125,
|
| 2207 |
-
"ref": 0.3281,
|
| 2208 |
-
"delta": -0.2031,
|
| 2209 |
-
"ci95": [
|
| 2210 |
-
-0.3125,
|
| 2211 |
-
-0.0938
|
| 2212 |
-
]
|
| 2213 |
-
},
|
| 2214 |
-
"35b|greedy|tic_tac_toe": {
|
| 2215 |
-
"model": 0.2703,
|
| 2216 |
-
"ref": 0.3378,
|
| 2217 |
-
"delta": -0.0676,
|
| 2218 |
-
"ci95": [
|
| 2219 |
-
-0.1892,
|
| 2220 |
-
0.0405
|
| 2221 |
-
]
|
| 2222 |
-
},
|
| 2223 |
-
"35b|greedy|all": {
|
| 2224 |
-
"model": 0.2863,
|
| 2225 |
-
"ref": 0.3718,
|
| 2226 |
-
"delta": -0.0855,
|
| 2227 |
-
"ci95": [
|
| 2228 |
-
-0.1368,
|
| 2229 |
-
-0.0299
|
| 2230 |
-
]
|
| 2231 |
-
}
|
| 2232 |
-
},
|
| 2233 |
-
"browser_task_seed_bootstrap": {
|
| 2234 |
-
"4b_minus_v10|sampled|all": {
|
| 2235 |
-
"pairs": 176,
|
| 2236 |
-
"model": 0.9090909090909091,
|
| 2237 |
-
"ref": 0.9318181818181818,
|
| 2238 |
-
"delta": -0.022727272727272728,
|
| 2239 |
-
"ci95": [
|
| 2240 |
-
-0.07954545454545454,
|
| 2241 |
-
0.028409090909090908
|
| 2242 |
-
]
|
| 2243 |
-
},
|
| 2244 |
-
"4b_minus_v10|sampled|held_out": {
|
| 2245 |
-
"pairs": 48,
|
| 2246 |
-
"model": 0.7916666666666666,
|
| 2247 |
-
"ref": 0.9166666666666666,
|
| 2248 |
-
"delta": -0.125,
|
| 2249 |
-
"ci95": [
|
| 2250 |
-
-0.25,
|
| 2251 |
-
0.0
|
| 2252 |
-
]
|
| 2253 |
-
},
|
| 2254 |
-
"4b_minus_v10|greedy|all": {
|
| 2255 |
-
"pairs": 176,
|
| 2256 |
-
"model": 0.9147727272727273,
|
| 2257 |
-
"ref": 0.9090909090909091,
|
| 2258 |
-
"delta": 0.005681818181818182,
|
| 2259 |
-
"ci95": [
|
| 2260 |
-
-0.045454545454545456,
|
| 2261 |
-
0.056818181818181816
|
| 2262 |
-
]
|
| 2263 |
-
},
|
| 2264 |
-
"4b_minus_v10|greedy|held_out": {
|
| 2265 |
-
"pairs": 48,
|
| 2266 |
-
"model": 0.75,
|
| 2267 |
-
"ref": 0.9166666666666666,
|
| 2268 |
-
"delta": -0.16666666666666666,
|
| 2269 |
-
"ci95": [
|
| 2270 |
-
-0.2708333333333333,
|
| 2271 |
-
-0.0625
|
| 2272 |
-
]
|
| 2273 |
-
},
|
| 2274 |
-
"4b_minus_35b|sampled|all": {
|
| 2275 |
-
"pairs": 176,
|
| 2276 |
-
"model": 0.9090909090909091,
|
| 2277 |
-
"ref": 0.8636363636363636,
|
| 2278 |
-
"delta": 0.045454545454545456,
|
| 2279 |
-
"ci95": [
|
| 2280 |
-
-0.005681818181818182,
|
| 2281 |
-
0.10227272727272728
|
| 2282 |
-
]
|
| 2283 |
-
},
|
| 2284 |
-
"4b_minus_35b|sampled|held_out": {
|
| 2285 |
-
"pairs": 48,
|
| 2286 |
-
"model": 0.7916666666666666,
|
| 2287 |
-
"ref": 0.7916666666666666,
|
| 2288 |
-
"delta": 0.0,
|
| 2289 |
-
"ci95": [
|
| 2290 |
-
-0.125,
|
| 2291 |
-
0.125
|
| 2292 |
-
]
|
| 2293 |
-
},
|
| 2294 |
-
"4b_minus_35b|greedy|all": {
|
| 2295 |
-
"pairs": 176,
|
| 2296 |
-
"model": 0.9147727272727273,
|
| 2297 |
-
"ref": 0.9715909090909091,
|
| 2298 |
-
"delta": -0.056818181818181816,
|
| 2299 |
-
"ci95": [
|
| 2300 |
-
-0.09659090909090909,
|
| 2301 |
-
-0.022727272727272728
|
| 2302 |
-
]
|
| 2303 |
},
|
| 2304 |
-
"
|
| 2305 |
-
"
|
| 2306 |
-
"
|
| 2307 |
-
"
|
| 2308 |
-
"delta":
|
| 2309 |
"ci95": [
|
| 2310 |
-
|
| 2311 |
-
|
| 2312 |
-
]
|
|
|
|
|
|
|
|
|
|
| 2313 |
}
|
| 2314 |
}
|
| 2315 |
},
|
| 2316 |
"references": {
|
| 2317 |
-
"
|
| 2318 |
-
"
|
|
|
|
| 2319 |
}
|
| 2320 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model": "decider-4b-v2",
|
| 3 |
+
"temperature": 1.935,
|
| 4 |
"temperature_fit": {
|
| 5 |
+
"method": "one scalar, pooled row NLL, golden-section search on log T in [0.3, 5]; stored rounded to 3 decimals",
|
| 6 |
+
"tasks": 61,
|
| 7 |
+
"rows": 102804,
|
| 8 |
+
"excluded_in_task_tasks": [
|
| 9 |
+
"banking77",
|
| 10 |
+
"clinc_oos",
|
| 11 |
+
"mmlu",
|
| 12 |
+
"arc",
|
| 13 |
+
"winogrande",
|
| 14 |
+
"hellaswag"
|
| 15 |
+
],
|
| 16 |
+
"fitted": 1.9349278889417365,
|
| 17 |
+
"grid_fit_temperature": 1.9420684917099538,
|
| 18 |
+
"stored": 1.935,
|
| 19 |
+
"note": "fitted on the in-task half of the public regression set without banking77, clinc_oos, mmlu, arc, winogrande and hellaswag (61 tasks); no JevBench or Decision Index item was used for training, selection or temperature"
|
| 20 |
},
|
| 21 |
+
"protocol": "decider-4b v1 + merged LoRA (rank 64, attention and MLP, 2 epochs, 29,356 rows). Public regression set rebuilt on this machine: eval half of the mixture, 95 tasks (67 in-task / 28 held-out), state-first plain layout, max_ctx 1536, large label sets sub-sampled to 10 options; metrics at the stored temperature, ECE with 15 bins. Other sets through decider-ai 1.2.1 at T 1.935: fixtures through h2h/score_public.py (eager, 32k context), Bespoke suite through decider.bench.public_suite, games and browser through the h2h/serve_public.py shim, behaviour probes; JevBench public items read once at T 1.719 and rescaled to T 1.935 from the stored probabilities (18 isolated-level Score items kept at T 1.719); Decision Index sample read at T 1.719 and rescaled likewise; ten text games greedy (argmax, independent of T). Readout only.",
|
| 22 |
"aggregate": {
|
| 23 |
"in_task": {
|
| 24 |
+
"acc": 0.8241469454813016,
|
| 25 |
+
"nll": 0.441108525216357,
|
| 26 |
+
"ece": 0.04134314671333522,
|
| 27 |
+
"tasks": 67
|
| 28 |
},
|
| 29 |
"heldout": {
|
| 30 |
+
"acc": 0.7787589834608305,
|
| 31 |
+
"nll": 0.5663163406508309,
|
| 32 |
+
"ece": 0.08033093216064069,
|
| 33 |
+
"tasks": 28
|
| 34 |
}
|
| 35 |
},
|
| 36 |
"results": {
|
| 37 |
+
"abstain_probe": {
|
| 38 |
+
"heldout": true,
|
| 39 |
+
"acc": 0.5820987654320988,
|
| 40 |
+
"nll": 1.1091256141662598,
|
| 41 |
+
"ece": 0.13279259307884878
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
},
|
| 43 |
+
"ade": {
|
|
|
|
| 44 |
"heldout": true,
|
| 45 |
+
"acc": 0.7886666666666666,
|
| 46 |
+
"nll": 0.5347910523414612,
|
| 47 |
+
"ece": 0.10660141297181445
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
},
|
| 49 |
+
"ag_news": {
|
| 50 |
+
"heldout": false,
|
| 51 |
+
"acc": 0.9033333333333333,
|
| 52 |
+
"nll": 0.294931024312973,
|
| 53 |
+
"ece": 0.04695633757114412
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
},
|
| 55 |
+
"agenttraj": {
|
| 56 |
+
"heldout": false,
|
| 57 |
+
"acc": 0.8973333333333333,
|
| 58 |
+
"nll": 0.2499454766511917,
|
| 59 |
+
"ece": 0.03513214365641278
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
},
|
| 61 |
+
"amazon_stars": {
|
| 62 |
+
"heldout": false,
|
| 63 |
+
"acc": 0.602,
|
| 64 |
+
"nll": 0.9151002764701843,
|
| 65 |
+
"ece": 0.035494098405043265
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
},
|
| 67 |
+
"arc": {
|
|
|
|
| 68 |
"heldout": false,
|
| 69 |
+
"acc": 0.939419795221843,
|
| 70 |
+
"nll": 0.1868872344493866,
|
| 71 |
+
"ece": 0.0222670579577062
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
},
|
| 73 |
+
"arena_pref": {
|
| 74 |
+
"heldout": true,
|
| 75 |
+
"acc": 0.5033333333333333,
|
| 76 |
+
"nll": 1.2348569631576538,
|
| 77 |
+
"ece": 0.21849741025765737
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
},
|
| 79 |
+
"banking77": {
|
| 80 |
+
"heldout": false,
|
| 81 |
+
"acc": 0.972,
|
| 82 |
+
"nll": 0.10399508476257324,
|
| 83 |
+
"ece": 0.0268547142942746
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
},
|
| 85 |
"bbc_news": {
|
|
|
|
| 86 |
"heldout": true,
|
| 87 |
+
"acc": 0.951,
|
| 88 |
+
"nll": 0.18327508866786957,
|
| 89 |
+
"ece": 0.06801495689153671
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
},
|
| 91 |
+
"bias_in_bios": {
|
| 92 |
+
"heldout": false,
|
| 93 |
+
"acc": 0.9486666666666667,
|
| 94 |
+
"nll": 0.15249282121658325,
|
| 95 |
+
"ece": 0.013438965007662774
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
},
|
| 97 |
+
"bitext_support": {
|
| 98 |
+
"heldout": false,
|
| 99 |
+
"acc": 0.998,
|
| 100 |
+
"nll": 0.016967715695500374,
|
| 101 |
+
"ece": 0.01042288645108536
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
},
|
| 103 |
+
"boolq": {
|
| 104 |
+
"heldout": false,
|
| 105 |
+
"acc": 0.9033333333333333,
|
| 106 |
+
"nll": 0.24676379561424255,
|
| 107 |
+
"ece": 0.029159295320510863
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
},
|
| 109 |
+
"cb": {
|
| 110 |
+
"heldout": true,
|
| 111 |
+
"acc": 0.8392857142857143,
|
| 112 |
+
"nll": 0.4322512745857239,
|
| 113 |
+
"ece": 0.11792815795966557
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
},
|
| 115 |
+
"civil_comments": {
|
| 116 |
+
"heldout": false,
|
| 117 |
+
"acc": 0.9328,
|
| 118 |
+
"nll": 0.1662478744983673,
|
| 119 |
+
"ece": 0.010289057048161809
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
},
|
| 121 |
+
"clinc_oos": {
|
| 122 |
+
"heldout": false,
|
| 123 |
+
"acc": 0.9826666666666667,
|
| 124 |
+
"nll": 0.08267337828874588,
|
| 125 |
+
"ece": 0.024905774275461832
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
},
|
| 127 |
+
"cola": {
|
| 128 |
+
"heldout": false,
|
| 129 |
+
"acc": 0.8331735378715245,
|
| 130 |
+
"nll": 0.3790046274662018,
|
| 131 |
+
"ece": 0.02507039284546103
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
},
|
| 133 |
+
"commonsense_qa": {
|
| 134 |
+
"heldout": false,
|
| 135 |
+
"acc": 0.823914823914824,
|
| 136 |
+
"nll": 0.4847744107246399,
|
| 137 |
+
"ece": 0.030845976944930447
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
},
|
| 139 |
+
"copa": {
|
| 140 |
+
"heldout": false,
|
| 141 |
+
"acc": 1.0,
|
| 142 |
+
"nll": 0.030766163021326065,
|
| 143 |
+
"ece": 0.028578150868415832
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
},
|
| 145 |
+
"counterfactual": {
|
| 146 |
+
"heldout": false,
|
| 147 |
+
"acc": 0.9573333333333334,
|
| 148 |
+
"nll": 0.13998979330062866,
|
| 149 |
+
"ece": 0.012234268069267251
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
},
|
| 151 |
+
"cr_reviews": {
|
| 152 |
+
"heldout": true,
|
| 153 |
+
"acc": 0.897742363877822,
|
| 154 |
+
"nll": 0.24005697667598724,
|
| 155 |
+
"ece": 0.045616757347289316
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
},
|
| 157 |
+
"dbpedia": {
|
| 158 |
+
"heldout": false,
|
| 159 |
+
"acc": 0.9933333333333333,
|
| 160 |
+
"nll": 0.027618318796157837,
|
| 161 |
+
"ece": 0.013420193096001943
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
},
|
| 163 |
+
"dbpedia_l2": {
|
|
|
|
| 164 |
"heldout": true,
|
| 165 |
+
"acc": 0.9506666666666667,
|
| 166 |
+
"nll": 0.1401711255311966,
|
| 167 |
+
"ece": 0.017278132518132504
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
},
|
| 169 |
+
"dbpedia_l3": {
|
|
|
|
| 170 |
"heldout": true,
|
| 171 |
+
"acc": 0.9913333333333333,
|
| 172 |
+
"nll": 0.03723839297890663,
|
| 173 |
+
"ece": 0.011898971815903936
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
},
|
| 175 |
+
"dolly_category": {
|
|
|
|
| 176 |
"heldout": true,
|
| 177 |
+
"acc": 0.374,
|
| 178 |
+
"nll": 1.7009543180465698,
|
| 179 |
+
"ece": 0.1419213018019994
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
},
|
| 181 |
+
"emotion": {
|
|
|
|
| 182 |
"heldout": false,
|
| 183 |
+
"acc": 0.8333333333333334,
|
| 184 |
+
"nll": 0.4790882170200348,
|
| 185 |
+
"ece": 0.025491972724596655
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
},
|
| 187 |
+
"enron_spam": {
|
| 188 |
+
"heldout": false,
|
| 189 |
+
"acc": 0.988,
|
| 190 |
+
"nll": 0.03346330299973488,
|
| 191 |
+
"ece": 0.006207752108573955
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
},
|
| 193 |
+
"fever": {
|
| 194 |
+
"heldout": false,
|
| 195 |
+
"acc": 0.8806666666666667,
|
| 196 |
+
"nll": 0.32262682914733887,
|
| 197 |
+
"ece": 0.01808753836154938
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
},
|
| 199 |
+
"fin_phrasebank": {
|
| 200 |
+
"heldout": true,
|
| 201 |
+
"acc": 0.6989690721649484,
|
| 202 |
+
"nll": 0.6234146952629089,
|
| 203 |
+
"ece": 0.07664692620026696
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
},
|
| 205 |
+
"fin_sentiment": {
|
| 206 |
+
"heldout": true,
|
| 207 |
+
"acc": 0.826,
|
| 208 |
+
"nll": 0.42305630445480347,
|
| 209 |
+
"ece": 0.051281696399052924
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
},
|
| 211 |
+
"glaive_tools": {
|
| 212 |
+
"heldout": false,
|
| 213 |
+
"acc": 0.9369436201780416,
|
| 214 |
+
"nll": 0.2514188289642334,
|
| 215 |
+
"ece": 0.10150587457047022
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
},
|
| 217 |
+
"go_emotions": {
|
| 218 |
+
"heldout": false,
|
| 219 |
+
"acc": 0.776,
|
| 220 |
+
"nll": 0.6853362917900085,
|
| 221 |
+
"ece": 0.03606782659888266
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
},
|
| 223 |
+
"hate_offensive": {
|
|
|
|
| 224 |
"heldout": false,
|
| 225 |
+
"acc": 0.9133333333333333,
|
| 226 |
+
"nll": 0.26428458094596863,
|
| 227 |
+
"ece": 0.014751521805922176
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
},
|
| 229 |
+
"hate_speech_scales": {
|
| 230 |
+
"heldout": false,
|
| 231 |
+
"acc": 0.5582666666666667,
|
| 232 |
+
"nll": 0.9945353269577026,
|
| 233 |
+
"ece": 0.03258252822558084
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
},
|
| 235 |
+
"hellaswag": {
|
| 236 |
+
"heldout": false,
|
| 237 |
+
"acc": 0.9346666666666666,
|
| 238 |
+
"nll": 0.1996963769197464,
|
| 239 |
+
"ece": 0.015657478451728855
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
},
|
| 241 |
+
"helpsteer2": {
|
| 242 |
+
"heldout": false,
|
| 243 |
+
"acc": 0.5980732177263969,
|
| 244 |
+
"nll": 0.9590670466423035,
|
| 245 |
+
"ece": 0.02256552288183126
|
| 246 |
+
},
|
| 247 |
+
"helpsteer3_pref": {
|
| 248 |
+
"heldout": false,
|
| 249 |
+
"acc": 0.38605442176870747,
|
| 250 |
+
"nll": 1.5417133569717407,
|
| 251 |
+
"ece": 0.061995073291314706
|
| 252 |
+
},
|
| 253 |
+
"hermes_tools": {
|
| 254 |
"heldout": true,
|
| 255 |
+
"acc": 0.7373333333333333,
|
| 256 |
+
"nll": 0.5897114872932434,
|
| 257 |
+
"ece": 0.1240579075018565
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
},
|
| 259 |
+
"hh_rlhf": {
|
| 260 |
+
"heldout": false,
|
| 261 |
+
"acc": 0.6451612903225806,
|
| 262 |
+
"nll": 0.680734395980835,
|
| 263 |
+
"ece": 0.11346792193349971
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
},
|
| 265 |
+
"hwu64": {
|
| 266 |
+
"heldout": true,
|
| 267 |
+
"acc": 0.9628252788104089,
|
| 268 |
+
"nll": 0.12855161726474762,
|
| 269 |
+
"ece": 0.03735405791093864
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
},
|
| 271 |
+
"imdb": {
|
| 272 |
+
"heldout": false,
|
| 273 |
+
"acc": 0.968,
|
| 274 |
+
"nll": 0.09611714631319046,
|
| 275 |
+
"ece": 0.01006534445285793
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 276 |
},
|
| 277 |
+
"insincere_questions": {
|
| 278 |
+
"heldout": false,
|
| 279 |
+
"acc": 0.9553333333333334,
|
| 280 |
+
"nll": 0.12364762276411057,
|
| 281 |
+
"ece": 0.01763951281706497
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
},
|
| 283 |
+
"liar2": {
|
| 284 |
+
"heldout": false,
|
| 285 |
+
"acc": 0.35,
|
| 286 |
+
"nll": 1.513845682144165,
|
| 287 |
+
"ece": 0.06293645719687144
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
},
|
| 289 |
+
"massive_intent": {
|
| 290 |
+
"heldout": false,
|
| 291 |
+
"acc": 0.9606666666666667,
|
| 292 |
+
"nll": 0.13908076286315918,
|
| 293 |
+
"ece": 0.02024710043271384
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
},
|
| 295 |
+
"massive_scenario": {
|
|
|
|
| 296 |
"heldout": true,
|
| 297 |
+
"acc": 0.7933333333333333,
|
| 298 |
+
"nll": 0.5642920732498169,
|
| 299 |
+
"ece": 0.05245566362142563
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
},
|
| 301 |
+
"medmcqa": {
|
| 302 |
+
"heldout": false,
|
| 303 |
+
"acc": 0.6233333333333333,
|
| 304 |
+
"nll": 0.9161791801452637,
|
| 305 |
+
"ece": 0.07326398479938506
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
},
|
| 307 |
+
"medqa": {
|
|
|
|
| 308 |
"heldout": false,
|
| 309 |
+
"acc": 0.6779261586802828,
|
| 310 |
+
"nll": 0.8010168075561523,
|
| 311 |
+
"ece": 0.0796375350744258
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
},
|
| 313 |
+
"mind2web": {
|
| 314 |
+
"heldout": false,
|
| 315 |
+
"acc": 0.822,
|
| 316 |
+
"nll": 0.48613396286964417,
|
| 317 |
+
"ece": 0.04646803086996078
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
},
|
| 319 |
+
"mmlu": {
|
| 320 |
+
"heldout": false,
|
| 321 |
+
"acc": 0.742,
|
| 322 |
+
"nll": 0.6732416749000549,
|
| 323 |
+
"ece": 0.04000420778989793
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
},
|
| 325 |
+
"mnli": {
|
| 326 |
+
"heldout": false,
|
| 327 |
+
"acc": 0.9026666666666666,
|
| 328 |
+
"nll": 0.28677940368652344,
|
| 329 |
+
"ece": 0.019106337686379753
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
},
|
| 331 |
+
"mrpc": {
|
| 332 |
+
"heldout": false,
|
| 333 |
+
"acc": 0.8431372549019608,
|
| 334 |
+
"nll": 0.35424306988716125,
|
| 335 |
+
"ece": 0.031691053334404445
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
},
|
| 337 |
+
"msmarco_rel": {
|
| 338 |
+
"heldout": false,
|
| 339 |
+
"acc": 0.6874135546334716,
|
| 340 |
+
"nll": 0.586560845375061,
|
| 341 |
+
"ece": 0.035539872212693564
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 342 |
},
|
| 343 |
+
"multirc": {
|
| 344 |
+
"heldout": false,
|
| 345 |
+
"acc": 0.9053333333333333,
|
| 346 |
+
"nll": 0.2743209898471832,
|
| 347 |
+
"ece": 0.025939866781234736
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 348 |
},
|
| 349 |
+
"newsgroups": {
|
| 350 |
+
"heldout": false,
|
| 351 |
+
"acc": 0.820109439124487,
|
| 352 |
+
"nll": 0.5166534781455994,
|
| 353 |
+
"ece": 0.0274887290539885
|
| 354 |
+
},
|
| 355 |
+
"offtopic_probe": {
|
| 356 |
"heldout": true,
|
| 357 |
+
"acc": 0.8234567901234567,
|
| 358 |
+
"nll": 0.5037797093391418,
|
| 359 |
+
"ece": 0.043301358119941055
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 360 |
},
|
| 361 |
+
"openbookqa": {
|
| 362 |
+
"heldout": false,
|
| 363 |
+
"acc": 0.904,
|
| 364 |
+
"nll": 0.2716519832611084,
|
| 365 |
+
"ece": 0.033541144907474535
|
| 366 |
+
},
|
| 367 |
+
"paws": {
|
| 368 |
+
"heldout": true,
|
| 369 |
+
"acc": 0.794,
|
| 370 |
+
"nll": 0.5527914762496948,
|
| 371 |
+
"ece": 0.12406627035140992
|
|
|
|
| 372 |
},
|
| 373 |
"piqa": {
|
| 374 |
+
"heldout": false,
|
| 375 |
+
"acc": 0.89,
|
| 376 |
+
"nll": 0.2665766477584839,
|
| 377 |
+
"ece": 0.026692868391672748
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 378 |
},
|
| 379 |
+
"prosocial_safety": {
|
| 380 |
+
"heldout": false,
|
| 381 |
+
"acc": 0.512,
|
| 382 |
+
"nll": 1.1915110349655151,
|
| 383 |
+
"ece": 0.030761619885762537
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
},
|
| 385 |
+
"pubmedqa": {
|
| 386 |
+
"heldout": true,
|
| 387 |
+
"acc": 0.758,
|
| 388 |
+
"nll": 0.6072925329208374,
|
| 389 |
+
"ece": 0.05524836438894271
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 390 |
},
|
| 391 |
+
"qasc": {
|
| 392 |
+
"heldout": false,
|
| 393 |
+
"acc": 0.8596112311015118,
|
| 394 |
+
"nll": 0.47038528323173523,
|
| 395 |
+
"ece": 0.06783940297094844
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
},
|
| 397 |
+
"qnli": {
|
| 398 |
+
"heldout": false,
|
| 399 |
+
"acc": 0.946,
|
| 400 |
+
"nll": 0.14609812200069427,
|
| 401 |
+
"ece": 0.01228535489241284
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
},
|
| 403 |
+
"qqp": {
|
| 404 |
+
"heldout": false,
|
| 405 |
+
"acc": 0.848,
|
| 406 |
+
"nll": 0.3371011018753052,
|
| 407 |
+
"ece": 0.03070641124248504
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 408 |
},
|
| 409 |
+
"quality": {
|
|
|
|
| 410 |
"heldout": true,
|
| 411 |
+
"acc": 0.5606666666666666,
|
| 412 |
+
"nll": 1.1722065210342407,
|
| 413 |
+
"ece": 0.17895789907375972
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
},
|
| 415 |
+
"quality_full": {
|
|
|
|
| 416 |
"heldout": true,
|
| 417 |
+
"acc": 0.505,
|
| 418 |
+
"nll": 1.2171955108642578,
|
| 419 |
+
"ece": 0.1881948218246301
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 420 |
},
|
| 421 |
+
"race": {
|
|
|
|
| 422 |
"heldout": false,
|
| 423 |
+
"acc": 0.8953333333333333,
|
| 424 |
+
"nll": 0.33984363079071045,
|
| 425 |
+
"ece": 0.02000871032476428
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 426 |
},
|
| 427 |
+
"reward_bench": {
|
| 428 |
+
"heldout": true,
|
| 429 |
+
"acc": 0.8526666666666667,
|
| 430 |
+
"nll": 0.34169474244117737,
|
| 431 |
+
"ece": 0.03198828514417014
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 432 |
},
|
| 433 |
+
"rte": {
|
| 434 |
+
"heldout": false,
|
| 435 |
+
"acc": 0.9205776173285198,
|
| 436 |
+
"nll": 0.1940610110759735,
|
| 437 |
+
"ece": 0.04438359793342838
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 438 |
},
|
| 439 |
+
"sciq": {
|
| 440 |
+
"heldout": true,
|
| 441 |
+
"acc": 0.991,
|
| 442 |
+
"nll": 0.044908951967954636,
|
| 443 |
+
"ece": 0.02056253519654279
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 444 |
},
|
| 445 |
"shp": {
|
| 446 |
+
"heldout": false,
|
| 447 |
+
"acc": 0.7353333333333333,
|
| 448 |
+
"nll": 0.594969630241394,
|
| 449 |
+
"ece": 0.1105338017543157
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 450 |
},
|
| 451 |
+
"sms_spam": {
|
| 452 |
+
"heldout": false,
|
| 453 |
+
"acc": 0.987,
|
| 454 |
+
"nll": 0.055126290768384933,
|
| 455 |
+
"ece": 0.006505105614662178
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 456 |
},
|
| 457 |
+
"snli": {
|
| 458 |
+
"heldout": false,
|
| 459 |
+
"acc": 0.9227642276422764,
|
| 460 |
+
"nll": 0.24105508625507355,
|
| 461 |
+
"ece": 0.03949038551105716
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 462 |
},
|
| 463 |
+
"social_iqa": {
|
|
|
|
| 464 |
"heldout": true,
|
| 465 |
+
"acc": 0.7593333333333333,
|
| 466 |
+
"nll": 0.5866184830665588,
|
| 467 |
+
"ece": 0.06180198764801027
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 468 |
},
|
| 469 |
+
"sst2": {
|
| 470 |
+
"heldout": false,
|
| 471 |
+
"acc": 0.948394495412844,
|
| 472 |
+
"nll": 0.14050182700157166,
|
| 473 |
+
"ece": 0.01752297238472409
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
},
|
| 475 |
+
"sst5": {
|
| 476 |
+
"heldout": false,
|
| 477 |
+
"acc": 0.5826666666666667,
|
| 478 |
+
"nll": 0.9461587071418762,
|
| 479 |
+
"ece": 0.0451480305393537
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 480 |
},
|
| 481 |
+
"strategyqa": {
|
|
|
|
| 482 |
"heldout": true,
|
| 483 |
+
"acc": 0.6317321688500728,
|
| 484 |
+
"nll": 0.6970252990722656,
|
| 485 |
+
"ece": 0.1567338213129335
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 486 |
},
|
| 487 |
+
"student_questions": {
|
| 488 |
+
"heldout": true,
|
| 489 |
+
"acc": 0.94,
|
| 490 |
+
"nll": 0.20459797978401184,
|
| 491 |
+
"ece": 0.05185317244132365
|
| 492 |
+
},
|
| 493 |
+
"subjectivity": {
|
| 494 |
"heldout": false,
|
| 495 |
+
"acc": 0.9566666666666667,
|
| 496 |
+
"nll": 0.11102409660816193,
|
| 497 |
+
"ece": 0.015209745287895248
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
},
|
| 499 |
+
"support_tickets": {
|
| 500 |
+
"heldout": false,
|
| 501 |
+
"acc": 0.5586666666666666,
|
| 502 |
+
"nll": 1.0297108888626099,
|
| 503 |
+
"ece": 0.024460139827595817
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 504 |
},
|
| 505 |
+
"synth": {
|
| 506 |
+
"heldout": false,
|
| 507 |
+
"acc": 0.8066666666666666,
|
| 508 |
+
"nll": 0.4917465150356293,
|
| 509 |
+
"ece": 0.04993985931078593
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 510 |
},
|
| 511 |
+
"toolace": {
|
| 512 |
+
"heldout": false,
|
| 513 |
+
"acc": 0.931,
|
| 514 |
+
"nll": 0.2593076229095459,
|
| 515 |
+
"ece": 0.06617412987351419
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 516 |
},
|
| 517 |
+
"toxic_chat": {
|
| 518 |
+
"heldout": false,
|
| 519 |
+
"acc": 0.977,
|
| 520 |
+
"nll": 0.06245163083076477,
|
| 521 |
+
"ece": 0.00981356755892436
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 522 |
},
|
| 523 |
+
"trec": {
|
| 524 |
+
"heldout": true,
|
| 525 |
+
"acc": 0.842,
|
| 526 |
+
"nll": 0.5022116899490356,
|
| 527 |
+
"ece": 0.02651941215991974
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 528 |
},
|
| 529 |
+
"truthfulqa": {
|
| 530 |
+
"heldout": true,
|
| 531 |
+
"acc": 0.653610771113831,
|
| 532 |
+
"nll": 1.0122824907302856,
|
| 533 |
+
"ece": 0.06321512999849775
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 534 |
},
|
| 535 |
+
"tweet_emotion": {
|
| 536 |
+
"heldout": false,
|
| 537 |
+
"acc": 0.8578465869106263,
|
| 538 |
+
"nll": 0.41329097747802734,
|
| 539 |
+
"ece": 0.039397706623063994
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 540 |
},
|
| 541 |
+
"tweet_hate": {
|
| 542 |
+
"heldout": false,
|
| 543 |
+
"acc": 0.5126666666666667,
|
| 544 |
+
"nll": 1.136211633682251,
|
| 545 |
+
"ece": 0.34860085622469583
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 546 |
},
|
| 547 |
+
"tweet_irony": {
|
|
|
|
| 548 |
"heldout": true,
|
| 549 |
+
"acc": 0.826530612244898,
|
| 550 |
+
"nll": 0.39445212483406067,
|
| 551 |
+
"ece": 0.027230415189144572
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 552 |
},
|
| 553 |
+
"tweet_offensive": {
|
| 554 |
+
"heldout": false,
|
| 555 |
+
"acc": 0.8523255813953489,
|
| 556 |
+
"nll": 0.3407946228981018,
|
| 557 |
+
"ece": 0.021613172181817006
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 558 |
},
|
| 559 |
+
"tweet_sentiment": {
|
|
|
|
| 560 |
"heldout": false,
|
| 561 |
+
"acc": 0.7206666666666667,
|
| 562 |
+
"nll": 0.610216498374939,
|
| 563 |
+
"ece": 0.028348857482274364
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 564 |
},
|
| 565 |
+
"ultrafeedback_pref": {
|
| 566 |
+
"heldout": false,
|
| 567 |
+
"acc": 0.7713333333333333,
|
| 568 |
+
"nll": 0.4769253432750702,
|
| 569 |
+
"ece": 0.06639519715309146
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 570 |
},
|
| 571 |
+
"wic": {
|
| 572 |
+
"heldout": false,
|
| 573 |
+
"acc": 0.7429467084639498,
|
| 574 |
+
"nll": 0.5646101832389832,
|
| 575 |
+
"ece": 0.09329287749846528
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 576 |
},
|
| 577 |
+
"wiki_qa": {
|
| 578 |
+
"heldout": false,
|
| 579 |
+
"acc": 0.9089874857792947,
|
| 580 |
+
"nll": 0.2449624091386795,
|
| 581 |
+
"ece": 0.020241137725365718
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 582 |
},
|
| 583 |
+
"winogrande": {
|
| 584 |
+
"heldout": false,
|
| 585 |
+
"acc": 0.8089976322020521,
|
| 586 |
+
"nll": 0.48967406153678894,
|
| 587 |
+
"ece": 0.08959193594736103
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 588 |
},
|
| 589 |
+
"xstory_cloze": {
|
|
|
|
| 590 |
"heldout": true,
|
| 591 |
+
"acc": 0.9706666666666667,
|
| 592 |
+
"nll": 0.07805304229259491,
|
| 593 |
+
"ece": 0.01724668137232463
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 594 |
},
|
| 595 |
+
"yahoo_topics": {
|
| 596 |
+
"heldout": false,
|
| 597 |
+
"acc": 0.7613333333333333,
|
| 598 |
+
"nll": 0.7648204565048218,
|
| 599 |
+
"ece": 0.0657656339406967
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 600 |
},
|
| 601 |
+
"yelp": {
|
| 602 |
+
"heldout": false,
|
| 603 |
+
"acc": 0.7033333333333334,
|
| 604 |
+
"nll": 0.7055407166481018,
|
| 605 |
+
"ece": 0.04224825153748195
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 606 |
}
|
| 607 |
},
|
| 608 |
"other_sets": {
|
| 609 |
"general_validation_847": {
|
| 610 |
+
"acc": 0.8501,
|
| 611 |
+
"nll": 0.4186,
|
| 612 |
+
"ece": 0.0305
|
| 613 |
},
|
| 614 |
"typesafe_102": {
|
| 615 |
+
"acc": 0.8627,
|
| 616 |
+
"nll": 0.4101,
|
| 617 |
+
"ece": 0.0723,
|
| 618 |
+
"tv_to_reference": 0.1961
|
| 619 |
},
|
| 620 |
"openjev_5252": {
|
| 621 |
+
"acc": 0.6672,
|
| 622 |
+
"nll": 0.789,
|
| 623 |
+
"ece": 0.1309,
|
| 624 |
+
"macro_acc_3_sources": 0.8098
|
| 625 |
},
|
| 626 |
"mind2web_1770": {
|
| 627 |
+
"acc": 0.874,
|
| 628 |
+
"nll": 0.3935,
|
| 629 |
+
"ece": 0.0512
|
| 630 |
},
|
| 631 |
"jevbench_public_items": {
|
| 632 |
"easy": 1.0,
|
| 633 |
+
"standard": 0.9861,
|
| 634 |
+
"hard": 0.6757,
|
| 635 |
+
"easy_top_label_ece": 0.0078,
|
| 636 |
+
"standard_top_label_ece": 0.0854,
|
| 637 |
+
"hard_top_label_ece": 0.0708,
|
| 638 |
+
"note": "read once at T 1.719 after selection; ECE rescaled to T 1.935 from stored probabilities",
|
| 639 |
+
"score_items_kept_at_T_1719": 18,
|
| 640 |
+
"hard_mean_confidence": 0.7401,
|
| 641 |
+
"hard_conf_ge_0_9_coverage": 0.3063,
|
| 642 |
+
"hard_conf_ge_0_9_accuracy": 0.9412
|
| 643 |
},
|
| 644 |
"bespoke_public_suite": {
|
| 645 |
+
"macro": 0.7725,
|
| 646 |
+
"micro": 0.7809,
|
| 647 |
+
"macro_untrained": 0.7514,
|
| 648 |
"per_subset": {
|
| 649 |
+
"vitaminc-dev": 0.778,
|
| 650 |
+
"massive-en-US": 0.8686,
|
| 651 |
+
"massive-de-DE": 0.8371,
|
| 652 |
+
"boolq": 0.86,
|
| 653 |
+
"squad2": 0.7926,
|
| 654 |
+
"paws": 0.832,
|
| 655 |
+
"multinli": 0.9264,
|
| 656 |
+
"civil_comments": 0.8567,
|
| 657 |
+
"aegis2": 0.812,
|
| 658 |
"helpsteer2": 0.4659,
|
| 659 |
+
"summeval-relevance": 0.4625,
|
| 660 |
+
"summeval-consistency": 0.8264,
|
| 661 |
+
"pubmedqa": 0.724
|
| 662 |
}
|
| 663 |
},
|
| 664 |
"zero_shot_games_win_rate": {
|
| 665 |
+
"sampled_all": 0.2244,
|
| 666 |
+
"greedy_all": 0.2778,
|
| 667 |
+
"sampled_bags": 0.3789,
|
| 668 |
+
"greedy_bags": 0.4844
|
| 669 |
},
|
| 670 |
"text_games_zero_shot_5_episodes": {
|
| 671 |
"pong": {
|
|
|
|
| 679 |
"random": 0.0
|
| 680 |
},
|
| 681 |
"breakout": {
|
| 682 |
+
"model": 12.0,
|
| 683 |
"teacher": 22.0,
|
| 684 |
"random": 0.8
|
| 685 |
},
|
|
|
|
| 689 |
"random": 0.0
|
| 690 |
},
|
| 691 |
"cliffwalking": {
|
| 692 |
+
"model": -60.0,
|
| 693 |
"teacher": -13.0,
|
| 694 |
"random": -574.8
|
| 695 |
},
|
|
|
|
| 700 |
},
|
| 701 |
"minigrid_empty": {
|
| 702 |
"model": 0.0,
|
| 703 |
+
"teacher": 0.961328125,
|
| 704 |
"random": 0.0
|
| 705 |
},
|
| 706 |
"minigrid_lavagap": {
|
| 707 |
"model": 0.0,
|
| 708 |
+
"teacher": 0.19173469387755102,
|
| 709 |
"random": 0.0
|
| 710 |
},
|
| 711 |
"minigrid_doorkey": {
|
|
|
|
| 714 |
"random": 0.0
|
| 715 |
},
|
| 716 |
"babyai_goto": {
|
| 717 |
+
"model": 0.3521875,
|
| 718 |
+
"teacher": 0.3409375,
|
| 719 |
+
"random": 0.1184375
|
| 720 |
}
|
| 721 |
},
|
| 722 |
"miniwob_live_22x8": {
|
| 723 |
+
"sampled": 0.8807,
|
| 724 |
+
"sampled_held_out": 0.75,
|
| 725 |
+
"greedy": 0.9261,
|
| 726 |
+
"greedy_held_out": 0.8125
|
| 727 |
},
|
| 728 |
"decision_index_4k_sample": {
|
| 729 |
+
"note": "read at T 1.719 through decider-ai 1.2.1; calibration rescaled to T 1.935 from stored probabilities (argmax unchanged); sample index measured at T 1.719",
|
| 730 |
+
"sample_index_T1719": 48.3,
|
| 731 |
+
"ece_bw": 0.0738,
|
| 732 |
+
"acc_bw": 0.6373,
|
| 733 |
+
"conf_bw": 0.6901,
|
| 734 |
+
"over95_bw": 0.0123,
|
| 735 |
+
"brier_bw": 0.4788,
|
| 736 |
+
"pooled_ece": 0.0305,
|
| 737 |
+
"n": 27662,
|
| 738 |
+
"benchmarks": 33
|
| 739 |
+
},
|
| 740 |
+
"behaviour_probes": {
|
| 741 |
+
"note": "decider.probes.batteries / applications / isolated through decider-ai 1.2.1; the isolated-level probe reads raw logits (T=1)",
|
| 742 |
+
"generic": 0.95,
|
| 743 |
+
"specific": 1.0,
|
| 744 |
+
"catchall": 0.95,
|
| 745 |
+
"abstain_battery": "8/8",
|
| 746 |
+
"router_tier": 0.935,
|
| 747 |
+
"needs_live_data": 0.839,
|
| 748 |
+
"command_risk": 0.911,
|
| 749 |
+
"destructive_called_safe": 0,
|
| 750 |
+
"touches_outside_project": 0.933,
|
| 751 |
+
"browser_element": 0.938,
|
| 752 |
+
"browser_action": 0.938,
|
| 753 |
+
"isolated_minus_listwise_max_abs_points": 2.0,
|
| 754 |
+
"per_level_fit_sum_range": [
|
| 755 |
+
0.92,
|
| 756 |
+
1.0
|
| 757 |
+
],
|
| 758 |
+
"listwise_ece_five_rating_sets_T1": [
|
| 759 |
+
0.127,
|
| 760 |
+
0.265
|
| 761 |
+
]
|
| 762 |
+
},
|
| 763 |
+
"speed": {
|
| 764 |
+
"note": "same weights, measured on 2026-09-24 in the candidate readout session (server config T 1.719; the temperature does not change speed); one unshared B300, bf16",
|
| 765 |
+
"eager_game_state_median_ms": 34.6,
|
| 766 |
+
"v1_same_session_ms": 32.4,
|
| 767 |
+
"graphs_compile_single_request_ms": 5.2,
|
| 768 |
+
"fp8_single_request_ms": 5.0,
|
| 769 |
+
"batch32_decisions_per_s": 1178,
|
| 770 |
+
"batch32_fp8_decisions_per_s": 1349,
|
| 771 |
+
"http_decide_1_client_req_per_s": 72.8,
|
| 772 |
+
"http_decide_1_client_p50_ms": 13.3,
|
| 773 |
+
"http_decide_64_clients_req_per_s": 189.7
|
| 774 |
+
}
|
| 775 |
+
},
|
| 776 |
+
"paired": {
|
| 777 |
+
"regression_set_per_task_bootstrap": {
|
| 778 |
+
"v2-v1 T_1.05|in_task": {
|
| 779 |
+
"acc": {
|
| 780 |
+
"tasks": 67,
|
| 781 |
+
"delta": -0.00963326990956669,
|
| 782 |
+
"ci95": [
|
| 783 |
+
-0.012258285462742567,
|
| 784 |
+
-0.007113672993330958
|
| 785 |
+
],
|
| 786 |
+
"higher": 6,
|
| 787 |
+
"lower": 54,
|
| 788 |
+
"equal": 7
|
| 789 |
+
},
|
| 790 |
+
"nll": {
|
| 791 |
+
"tasks": 67,
|
| 792 |
+
"delta": 0.0367151916395428,
|
| 793 |
+
"ci95": [
|
| 794 |
+
0.02853969128380196,
|
| 795 |
+
0.04618769902040932
|
| 796 |
+
],
|
| 797 |
+
"higher": 64,
|
| 798 |
+
"lower": 3,
|
| 799 |
+
"equal": 0
|
| 800 |
+
},
|
| 801 |
+
"ece": {
|
| 802 |
+
"tasks": 67,
|
| 803 |
+
"delta": 0.014469173095775816,
|
| 804 |
+
"ci95": [
|
| 805 |
+
0.008371143739489972,
|
| 806 |
+
0.021221732726272202
|
| 807 |
+
],
|
| 808 |
+
"higher": 49,
|
| 809 |
+
"lower": 18,
|
| 810 |
+
"equal": 0
|
| 811 |
}
|
| 812 |
},
|
| 813 |
+
"v2-v1 T_1.05|heldout": {
|
| 814 |
+
"acc": {
|
| 815 |
+
"tasks": 28,
|
| 816 |
+
"delta": -0.008823480116377602,
|
| 817 |
+
"ci95": [
|
| 818 |
+
-0.019676785964620195,
|
| 819 |
+
0.001414172129592744
|
| 820 |
+
],
|
| 821 |
+
"higher": 7,
|
| 822 |
+
"lower": 21,
|
| 823 |
+
"equal": 0
|
| 824 |
+
},
|
| 825 |
+
"nll": {
|
| 826 |
+
"tasks": 28,
|
| 827 |
+
"delta": 0.00806199632851141,
|
| 828 |
+
"ci95": [
|
| 829 |
+
-0.024438296351581807,
|
| 830 |
+
0.03533247855292367
|
| 831 |
+
],
|
| 832 |
+
"higher": 20,
|
| 833 |
+
"lower": 8,
|
| 834 |
+
"equal": 0
|
| 835 |
+
},
|
| 836 |
+
"ece": {
|
| 837 |
+
"tasks": 28,
|
| 838 |
+
"delta": 0.009488148203351523,
|
| 839 |
+
"ci95": [
|
| 840 |
+
-0.002820037805815392,
|
| 841 |
+
0.02130860449786515
|
| 842 |
+
],
|
| 843 |
+
"higher": 20,
|
| 844 |
+
"lower": 8,
|
| 845 |
+
"equal": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 846 |
}
|
| 847 |
},
|
| 848 |
+
"v2-v10|in_task": {
|
| 849 |
+
"acc": {
|
| 850 |
+
"tasks": 67,
|
| 851 |
+
"delta": 0.01875302115583182,
|
| 852 |
+
"ci95": [
|
| 853 |
+
0.01015619959044516,
|
| 854 |
+
0.027614901925500205
|
| 855 |
+
],
|
| 856 |
+
"higher": 44,
|
| 857 |
+
"lower": 21,
|
| 858 |
+
"equal": 2
|
| 859 |
+
},
|
| 860 |
+
"nll": {
|
| 861 |
+
"tasks": 67,
|
| 862 |
+
"delta": -0.032433275216773375,
|
| 863 |
+
"ci95": [
|
| 864 |
+
-0.05438354930479024,
|
| 865 |
+
-0.011119020796283635
|
| 866 |
+
],
|
| 867 |
+
"higher": 26,
|
| 868 |
+
"lower": 41,
|
| 869 |
+
"equal": 0
|
| 870 |
+
},
|
| 871 |
+
"ece": {
|
| 872 |
+
"tasks": 67,
|
| 873 |
+
"delta": 0.004320193883140634,
|
| 874 |
+
"ci95": [
|
| 875 |
+
-0.0023582249916685393,
|
| 876 |
+
0.011625304997016925
|
| 877 |
+
],
|
| 878 |
+
"higher": 34,
|
| 879 |
+
"lower": 33,
|
| 880 |
+
"equal": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 881 |
}
|
| 882 |
},
|
| 883 |
+
"v2-v10|heldout": {
|
| 884 |
+
"acc": {
|
| 885 |
+
"tasks": 28,
|
| 886 |
+
"delta": 0.02370397041876381,
|
| 887 |
+
"ci95": [
|
| 888 |
+
0.011139798470057867,
|
| 889 |
+
0.03700944122337325
|
| 890 |
+
],
|
| 891 |
+
"higher": 22,
|
| 892 |
+
"lower": 6,
|
| 893 |
+
"equal": 0
|
| 894 |
+
},
|
| 895 |
+
"nll": {
|
| 896 |
+
"tasks": 28,
|
| 897 |
+
"delta": -0.05593727236347539,
|
| 898 |
+
"ci95": [
|
| 899 |
+
-0.093489749350452,
|
| 900 |
+
-0.023956677370837752
|
| 901 |
+
],
|
| 902 |
+
"higher": 6,
|
| 903 |
+
"lower": 22,
|
| 904 |
+
"equal": 0
|
| 905 |
+
},
|
| 906 |
+
"ece": {
|
| 907 |
+
"tasks": 28,
|
| 908 |
+
"delta": -0.003365505320264168,
|
| 909 |
+
"ci95": [
|
| 910 |
+
-0.01585441365540306,
|
| 911 |
+
0.008293014476259788
|
| 912 |
+
],
|
| 913 |
+
"higher": 13,
|
| 914 |
+
"lower": 15,
|
| 915 |
+
"equal": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 916 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 917 |
},
|
| 918 |
+
"v2-35b|in_task": {
|
| 919 |
+
"acc": {
|
| 920 |
+
"tasks": 67,
|
| 921 |
+
"delta": -0.031028858088253602,
|
| 922 |
+
"ci95": [
|
| 923 |
+
-0.039777794555657386,
|
| 924 |
+
-0.02317882618464841
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 925 |
],
|
| 926 |
+
"higher": 3,
|
| 927 |
+
"lower": 61,
|
| 928 |
+
"equal": 3
|
| 929 |
+
},
|
| 930 |
+
"nll": {
|
| 931 |
+
"tasks": 67,
|
| 932 |
+
"delta": 0.08398698643544938,
|
| 933 |
+
"ci95": [
|
| 934 |
+
0.06702507901571886,
|
| 935 |
+
0.10335495943019389
|
| 936 |
+
],
|
| 937 |
+
"higher": 67,
|
| 938 |
+
"lower": 0,
|
| 939 |
+
"equal": 0
|
| 940 |
+
},
|
| 941 |
+
"ece": {
|
| 942 |
+
"tasks": 67,
|
| 943 |
+
"delta": 0.015340690748236678,
|
| 944 |
+
"ci95": [
|
| 945 |
+
0.009872991235955714,
|
| 946 |
+
0.021626024452136343
|
| 947 |
+
],
|
| 948 |
+
"higher": 55,
|
| 949 |
+
"lower": 12,
|
| 950 |
+
"equal": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 951 |
}
|
| 952 |
},
|
| 953 |
+
"v2-35b|heldout": {
|
| 954 |
+
"acc": {
|
| 955 |
+
"tasks": 28,
|
| 956 |
+
"delta": -0.03173775153445216,
|
| 957 |
+
"ci95": [
|
| 958 |
+
-0.045258765155078186,
|
| 959 |
+
-0.018006466515002026
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 960 |
],
|
| 961 |
+
"higher": 4,
|
| 962 |
+
"lower": 24,
|
| 963 |
+
"equal": 0
|
| 964 |
+
},
|
| 965 |
+
"nll": {
|
| 966 |
+
"tasks": 28,
|
| 967 |
+
"delta": 0.06927653994145137,
|
| 968 |
+
"ci95": [
|
| 969 |
+
0.03497178333179493,
|
| 970 |
+
0.10177155091660098
|
| 971 |
+
],
|
| 972 |
+
"higher": 24,
|
| 973 |
+
"lower": 4,
|
| 974 |
+
"equal": 0
|
| 975 |
+
},
|
| 976 |
+
"ece": {
|
| 977 |
+
"tasks": 28,
|
| 978 |
+
"delta": 0.01149923111649334,
|
| 979 |
+
"ci95": [
|
| 980 |
+
-0.010094514078614029,
|
| 981 |
+
0.03067631731368639
|
| 982 |
+
],
|
| 983 |
+
"higher": 20,
|
| 984 |
+
"lower": 8,
|
| 985 |
+
"equal": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 986 |
}
|
| 987 |
}
|
| 988 |
},
|
| 989 |
+
"fixtures_row_bootstrap_minus_v1": {
|
| 990 |
"general_validation": {
|
| 991 |
+
"accuracy": {
|
| 992 |
+
"delta": -0.010625737898465172,
|
| 993 |
+
"ci95": [
|
| 994 |
+
-0.025974025974025976,
|
| 995 |
+
0.004722550177095631
|
| 996 |
+
]
|
| 997 |
+
},
|
| 998 |
+
"nll": {
|
| 999 |
+
"delta": 0.0015418035959596215,
|
| 1000 |
+
"ci95": [
|
| 1001 |
+
-0.018830652980342588,
|
| 1002 |
+
0.02145239419471463
|
| 1003 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1004 |
}
|
| 1005 |
},
|
| 1006 |
"typesafe": {
|
| 1007 |
+
"accuracy": {
|
| 1008 |
+
"delta": 0.049019607843137254,
|
| 1009 |
+
"ci95": [
|
| 1010 |
+
-0.00980392156862745,
|
| 1011 |
+
0.10784313725490197
|
| 1012 |
+
]
|
| 1013 |
+
},
|
| 1014 |
+
"nll": {
|
| 1015 |
+
"delta": -0.20073007691013034,
|
| 1016 |
+
"ci95": [
|
| 1017 |
+
-0.34779699906684913,
|
| 1018 |
+
-0.07224570606300662
|
| 1019 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1020 |
}
|
| 1021 |
},
|
| 1022 |
"openjev_external": {
|
| 1023 |
+
"accuracy": {
|
| 1024 |
+
"delta": 0.028370144706778372,
|
| 1025 |
+
"ci95": [
|
| 1026 |
+
0.017707539984767706,
|
| 1027 |
+
0.03865194211728865
|
| 1028 |
+
]
|
| 1029 |
+
},
|
| 1030 |
+
"nll": {
|
| 1031 |
+
"delta": -0.10404728527555326,
|
| 1032 |
+
"ci95": [
|
| 1033 |
+
-0.12081249076065353,
|
| 1034 |
+
-0.08734350246247681
|
| 1035 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1036 |
}
|
| 1037 |
},
|
| 1038 |
"mind2web": {
|
| 1039 |
+
"accuracy": {
|
| 1040 |
+
"delta": -0.0096045197740113,
|
| 1041 |
+
"ci95": [
|
| 1042 |
+
-0.01977401129943503,
|
| 1043 |
+
0.0005649717514124294
|
| 1044 |
+
]
|
| 1045 |
+
},
|
| 1046 |
+
"nll": {
|
| 1047 |
+
"delta": 0.027492282187420017,
|
| 1048 |
+
"ci95": [
|
| 1049 |
+
0.010634569199404512,
|
| 1050 |
+
0.04390014037543978
|
| 1051 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1052 |
}
|
| 1053 |
}
|
| 1054 |
},
|
| 1055 |
+
"games_and_browser": {
|
| 1056 |
+
"games": {
|
| 1057 |
+
"v2-v1|sampled|all": {
|
| 1058 |
+
"n": 234,
|
| 1059 |
+
"a": 0.22435897435897437,
|
| 1060 |
+
"b": 0.2777777777777778,
|
| 1061 |
+
"delta": -0.053418803418803416,
|
| 1062 |
+
"ci95": [
|
| 1063 |
+
-0.07585470085470085,
|
| 1064 |
+
-0.030982905982905984
|
| 1065 |
+
]
|
| 1066 |
+
},
|
| 1067 |
+
"v2-v1|sampled|bag_game": {
|
| 1068 |
+
"n": 64,
|
| 1069 |
+
"a": 0.37890625,
|
| 1070 |
+
"b": 0.56640625,
|
| 1071 |
+
"delta": -0.1875,
|
| 1072 |
+
"ci95": [
|
| 1073 |
+
-0.24609375,
|
| 1074 |
+
-0.12890625
|
| 1075 |
+
]
|
| 1076 |
+
},
|
| 1077 |
+
"v2-v1|sampled|stochastic_grid": {
|
| 1078 |
+
"n": 64,
|
| 1079 |
+
"a": 0.16015625,
|
| 1080 |
+
"b": 0.1640625,
|
| 1081 |
+
"delta": -0.00390625,
|
| 1082 |
+
"ci95": [
|
| 1083 |
+
-0.02734375,
|
| 1084 |
+
0.01953125
|
| 1085 |
+
]
|
| 1086 |
+
},
|
| 1087 |
+
"v2-v1|sampled|tic_tac_toe": {
|
| 1088 |
+
"n": 74,
|
| 1089 |
+
"a": 0.24324324324324326,
|
| 1090 |
+
"b": 0.24324324324324326,
|
| 1091 |
+
"delta": 0.0,
|
| 1092 |
+
"ci95": [
|
| 1093 |
+
-0.02702702702702703,
|
| 1094 |
+
0.02702702702702703
|
| 1095 |
+
]
|
| 1096 |
+
},
|
| 1097 |
+
"v2-v1|sampled|exact_minesweeper": {
|
| 1098 |
+
"n": 32,
|
| 1099 |
+
"a": 0.0,
|
| 1100 |
+
"b": 0.0078125,
|
| 1101 |
+
"delta": -0.0078125,
|
| 1102 |
+
"ci95": [
|
| 1103 |
+
-0.0234375,
|
| 1104 |
+
0.0
|
| 1105 |
+
]
|
| 1106 |
+
},
|
| 1107 |
+
"v2-v1|greedy|all": {
|
| 1108 |
+
"n": 234,
|
| 1109 |
+
"a": 0.2777777777777778,
|
| 1110 |
+
"b": 0.2905982905982906,
|
| 1111 |
+
"delta": -0.01282051282051282,
|
| 1112 |
+
"ci95": [
|
| 1113 |
+
-0.05555555555555555,
|
| 1114 |
+
0.02564102564102564
|
| 1115 |
+
]
|
| 1116 |
+
},
|
| 1117 |
+
"v2-v1|greedy|bag_game": {
|
| 1118 |
+
"n": 64,
|
| 1119 |
+
"a": 0.484375,
|
| 1120 |
+
"b": 0.625,
|
| 1121 |
+
"delta": -0.140625,
|
| 1122 |
+
"ci95": [
|
| 1123 |
+
-0.234375,
|
| 1124 |
+
-0.0625
|
| 1125 |
+
]
|
| 1126 |
+
},
|
| 1127 |
+
"v2-v1|greedy|stochastic_grid": {
|
| 1128 |
+
"n": 64,
|
| 1129 |
+
"a": 0.1875,
|
| 1130 |
+
"b": 0.125,
|
| 1131 |
+
"delta": 0.0625,
|
| 1132 |
+
"ci95": [
|
| 1133 |
+
0.0,
|
| 1134 |
+
0.140625
|
| 1135 |
+
]
|
| 1136 |
+
},
|
| 1137 |
+
"v2-v1|greedy|tic_tac_toe": {
|
| 1138 |
+
"n": 74,
|
| 1139 |
+
"a": 0.2972972972972973,
|
| 1140 |
+
"b": 0.2702702702702703,
|
| 1141 |
+
"delta": 0.02702702702702703,
|
| 1142 |
+
"ci95": [
|
| 1143 |
+
-0.04054054054054054,
|
| 1144 |
+
0.0945945945945946
|
| 1145 |
+
]
|
| 1146 |
+
},
|
| 1147 |
+
"v2-v1|greedy|exact_minesweeper": {
|
| 1148 |
+
"n": 32,
|
| 1149 |
+
"a": 0.0,
|
| 1150 |
+
"b": 0.0,
|
| 1151 |
+
"delta": 0.0,
|
| 1152 |
+
"ci95": [
|
| 1153 |
+
0.0,
|
| 1154 |
+
0.0
|
| 1155 |
+
]
|
| 1156 |
+
},
|
| 1157 |
+
"v2-v2_T1719|sampled|all": {
|
| 1158 |
+
"n": 234,
|
| 1159 |
+
"a": 0.22435897435897437,
|
| 1160 |
+
"b": 0.23397435897435898,
|
| 1161 |
+
"delta": -0.009615384615384616,
|
| 1162 |
+
"ci95": [
|
| 1163 |
+
-0.021367521367521368,
|
| 1164 |
+
0.0010683760683760685
|
| 1165 |
+
]
|
| 1166 |
+
},
|
| 1167 |
+
"v2-v2_T1719|sampled|bag_game": {
|
| 1168 |
+
"n": 64,
|
| 1169 |
+
"a": 0.37890625,
|
| 1170 |
+
"b": 0.390625,
|
| 1171 |
+
"delta": -0.01171875,
|
| 1172 |
+
"ci95": [
|
| 1173 |
+
-0.04296875,
|
| 1174 |
+
0.01953125
|
| 1175 |
+
]
|
| 1176 |
+
},
|
| 1177 |
+
"v2-v2_T1719|sampled|stochastic_grid": {
|
| 1178 |
+
"n": 64,
|
| 1179 |
+
"a": 0.16015625,
|
| 1180 |
+
"b": 0.1796875,
|
| 1181 |
+
"delta": -0.01953125,
|
| 1182 |
+
"ci95": [
|
| 1183 |
+
-0.04296875,
|
| 1184 |
+
0.0
|
| 1185 |
+
]
|
| 1186 |
+
},
|
| 1187 |
+
"v2-v2_T1719|sampled|tic_tac_toe": {
|
| 1188 |
+
"n": 74,
|
| 1189 |
+
"a": 0.24324324324324326,
|
| 1190 |
+
"b": 0.24662162162162163,
|
| 1191 |
+
"delta": -0.0033783783783783786,
|
| 1192 |
+
"ci95": [
|
| 1193 |
+
-0.016891891891891893,
|
| 1194 |
+
0.006756756756756757
|
| 1195 |
+
]
|
| 1196 |
+
},
|
| 1197 |
+
"v2-v2_T1719|sampled|exact_minesweeper": {
|
| 1198 |
+
"n": 32,
|
| 1199 |
+
"a": 0.0,
|
| 1200 |
+
"b": 0.0,
|
| 1201 |
+
"delta": 0.0,
|
| 1202 |
+
"ci95": [
|
| 1203 |
+
0.0,
|
| 1204 |
+
0.0
|
| 1205 |
+
]
|
| 1206 |
+
},
|
| 1207 |
+
"v2-v2_T1719|greedy|all": {
|
| 1208 |
+
"n": 234,
|
| 1209 |
+
"a": 0.2777777777777778,
|
| 1210 |
+
"b": 0.2777777777777778,
|
| 1211 |
+
"delta": 0.0,
|
| 1212 |
+
"ci95": [
|
| 1213 |
+
0.0,
|
| 1214 |
+
0.0
|
| 1215 |
+
]
|
| 1216 |
+
},
|
| 1217 |
+
"v2-v2_T1719|greedy|bag_game": {
|
| 1218 |
+
"n": 64,
|
| 1219 |
+
"a": 0.484375,
|
| 1220 |
+
"b": 0.484375,
|
| 1221 |
+
"delta": 0.0,
|
| 1222 |
+
"ci95": [
|
| 1223 |
+
0.0,
|
| 1224 |
+
0.0
|
| 1225 |
+
]
|
| 1226 |
+
},
|
| 1227 |
+
"v2-v2_T1719|greedy|stochastic_grid": {
|
| 1228 |
+
"n": 64,
|
| 1229 |
+
"a": 0.1875,
|
| 1230 |
+
"b": 0.1875,
|
| 1231 |
+
"delta": 0.0,
|
| 1232 |
+
"ci95": [
|
| 1233 |
+
0.0,
|
| 1234 |
+
0.0
|
| 1235 |
+
]
|
| 1236 |
+
},
|
| 1237 |
+
"v2-v2_T1719|greedy|tic_tac_toe": {
|
| 1238 |
+
"n": 74,
|
| 1239 |
+
"a": 0.2972972972972973,
|
| 1240 |
+
"b": 0.2972972972972973,
|
| 1241 |
+
"delta": 0.0,
|
| 1242 |
+
"ci95": [
|
| 1243 |
+
0.0,
|
| 1244 |
+
0.0
|
| 1245 |
+
]
|
| 1246 |
+
},
|
| 1247 |
+
"v2-v2_T1719|greedy|exact_minesweeper": {
|
| 1248 |
+
"n": 32,
|
| 1249 |
+
"a": 0.0,
|
| 1250 |
+
"b": 0.0,
|
| 1251 |
+
"delta": 0.0,
|
| 1252 |
+
"ci95": [
|
| 1253 |
+
0.0,
|
| 1254 |
+
0.0
|
| 1255 |
+
]
|
| 1256 |
+
},
|
| 1257 |
+
"v2-v10|sampled|all": {
|
| 1258 |
+
"n": 234,
|
| 1259 |
+
"a": 0.22435897435897437,
|
| 1260 |
+
"b": 0.23717948717948717,
|
| 1261 |
+
"delta": -0.01282051282051282,
|
| 1262 |
+
"ci95": [
|
| 1263 |
+
-0.041666666666666664,
|
| 1264 |
+
0.014957264957264958
|
| 1265 |
+
]
|
| 1266 |
+
},
|
| 1267 |
+
"v2-v10|sampled|bag_game": {
|
| 1268 |
+
"n": 64,
|
| 1269 |
+
"a": 0.37890625,
|
| 1270 |
+
"b": 0.4140625,
|
| 1271 |
+
"delta": -0.03515625,
|
| 1272 |
+
"ci95": [
|
| 1273 |
+
-0.08984375,
|
| 1274 |
+
0.01953125
|
| 1275 |
+
]
|
| 1276 |
+
},
|
| 1277 |
+
"v2-v10|sampled|stochastic_grid": {
|
| 1278 |
+
"n": 64,
|
| 1279 |
+
"a": 0.16015625,
|
| 1280 |
+
"b": 0.1875,
|
| 1281 |
+
"delta": -0.02734375,
|
| 1282 |
+
"ci95": [
|
| 1283 |
+
-0.10546875,
|
| 1284 |
+
0.04296875
|
| 1285 |
+
]
|
| 1286 |
+
},
|
| 1287 |
+
"v2-v10|sampled|tic_tac_toe": {
|
| 1288 |
+
"n": 74,
|
| 1289 |
+
"a": 0.24324324324324326,
|
| 1290 |
+
"b": 0.22972972972972974,
|
| 1291 |
+
"delta": 0.013513513513513514,
|
| 1292 |
+
"ci95": [
|
| 1293 |
+
-0.02364864864864865,
|
| 1294 |
+
0.05405405405405406
|
| 1295 |
+
]
|
| 1296 |
+
},
|
| 1297 |
+
"v2-v10|sampled|exact_minesweeper": {
|
| 1298 |
+
"n": 32,
|
| 1299 |
+
"a": 0.0,
|
| 1300 |
+
"b": 0.0,
|
| 1301 |
+
"delta": 0.0,
|
| 1302 |
+
"ci95": [
|
| 1303 |
+
0.0,
|
| 1304 |
+
0.0
|
| 1305 |
+
]
|
| 1306 |
+
},
|
| 1307 |
+
"v2-v10|greedy|all": {
|
| 1308 |
+
"n": 234,
|
| 1309 |
+
"a": 0.2777777777777778,
|
| 1310 |
+
"b": 0.26495726495726496,
|
| 1311 |
+
"delta": 0.01282051282051282,
|
| 1312 |
+
"ci95": [
|
| 1313 |
+
-0.042735042735042736,
|
| 1314 |
+
0.06837606837606838
|
| 1315 |
+
]
|
| 1316 |
+
},
|
| 1317 |
+
"v2-v10|greedy|bag_game": {
|
| 1318 |
+
"n": 64,
|
| 1319 |
+
"a": 0.484375,
|
| 1320 |
+
"b": 0.578125,
|
| 1321 |
+
"delta": -0.09375,
|
| 1322 |
+
"ci95": [
|
| 1323 |
+
-0.203125,
|
| 1324 |
+
0.015625
|
| 1325 |
+
]
|
| 1326 |
+
},
|
| 1327 |
+
"v2-v10|greedy|stochastic_grid": {
|
| 1328 |
+
"n": 64,
|
| 1329 |
+
"a": 0.1875,
|
| 1330 |
+
"b": 0.15625,
|
| 1331 |
+
"delta": 0.03125,
|
| 1332 |
+
"ci95": [
|
| 1333 |
+
-0.078125,
|
| 1334 |
+
0.140625
|
| 1335 |
+
]
|
| 1336 |
+
},
|
| 1337 |
+
"v2-v10|greedy|tic_tac_toe": {
|
| 1338 |
+
"n": 74,
|
| 1339 |
+
"a": 0.2972972972972973,
|
| 1340 |
+
"b": 0.20270270270270271,
|
| 1341 |
+
"delta": 0.0945945945945946,
|
| 1342 |
+
"ci95": [
|
| 1343 |
+
-0.013513513513513514,
|
| 1344 |
+
0.20270270270270271
|
| 1345 |
+
]
|
| 1346 |
+
},
|
| 1347 |
+
"v2-v10|greedy|exact_minesweeper": {
|
| 1348 |
+
"n": 32,
|
| 1349 |
+
"a": 0.0,
|
| 1350 |
+
"b": 0.0,
|
| 1351 |
+
"delta": 0.0,
|
| 1352 |
+
"ci95": [
|
| 1353 |
+
0.0,
|
| 1354 |
+
0.0
|
| 1355 |
+
]
|
| 1356 |
+
},
|
| 1357 |
+
"v2-35b|sampled|all": {
|
| 1358 |
+
"n": 234,
|
| 1359 |
+
"a": 0.22435897435897437,
|
| 1360 |
+
"b": 0.24145299145299146,
|
| 1361 |
+
"delta": -0.017094017094017096,
|
| 1362 |
+
"ci95": [
|
| 1363 |
+
-0.03739316239316239,
|
| 1364 |
+
0.002136752136752137
|
| 1365 |
+
]
|
| 1366 |
+
},
|
| 1367 |
+
"v2-35b|sampled|bag_game": {
|
| 1368 |
+
"n": 64,
|
| 1369 |
+
"a": 0.37890625,
|
| 1370 |
+
"b": 0.41796875,
|
| 1371 |
+
"delta": -0.0390625,
|
| 1372 |
+
"ci95": [
|
| 1373 |
+
-0.0859375,
|
| 1374 |
+
0.0078125
|
| 1375 |
+
]
|
| 1376 |
+
},
|
| 1377 |
+
"v2-35b|sampled|stochastic_grid": {
|
| 1378 |
+
"n": 64,
|
| 1379 |
+
"a": 0.16015625,
|
| 1380 |
+
"b": 0.16796875,
|
| 1381 |
+
"delta": -0.0078125,
|
| 1382 |
+
"ci95": [
|
| 1383 |
+
-0.04296875,
|
| 1384 |
+
0.02734375
|
| 1385 |
+
]
|
| 1386 |
+
},
|
| 1387 |
+
"v2-35b|sampled|tic_tac_toe": {
|
| 1388 |
+
"n": 74,
|
| 1389 |
+
"a": 0.24324324324324326,
|
| 1390 |
+
"b": 0.25675675675675674,
|
| 1391 |
+
"delta": -0.013513513513513514,
|
| 1392 |
+
"ci95": [
|
| 1393 |
+
-0.05405405405405406,
|
| 1394 |
+
0.02027027027027027
|
| 1395 |
+
]
|
| 1396 |
+
},
|
| 1397 |
+
"v2-35b|sampled|exact_minesweeper": {
|
| 1398 |
+
"n": 32,
|
| 1399 |
+
"a": 0.0,
|
| 1400 |
+
"b": 0.0,
|
| 1401 |
+
"delta": 0.0,
|
| 1402 |
+
"ci95": [
|
| 1403 |
+
0.0,
|
| 1404 |
+
0.0
|
| 1405 |
+
]
|
| 1406 |
+
},
|
| 1407 |
+
"v2-35b|greedy|all": {
|
| 1408 |
+
"n": 234,
|
| 1409 |
+
"a": 0.2777777777777778,
|
| 1410 |
+
"b": 0.3717948717948718,
|
| 1411 |
+
"delta": -0.09401709401709402,
|
| 1412 |
+
"ci95": [
|
| 1413 |
+
-0.14957264957264957,
|
| 1414 |
+
-0.038461538461538464
|
| 1415 |
+
]
|
| 1416 |
+
},
|
| 1417 |
+
"v2-35b|greedy|bag_game": {
|
| 1418 |
+
"n": 64,
|
| 1419 |
+
"a": 0.484375,
|
| 1420 |
+
"b": 0.625,
|
| 1421 |
+
"delta": -0.140625,
|
| 1422 |
+
"ci95": [
|
| 1423 |
+
-0.234375,
|
| 1424 |
+
-0.0625
|
| 1425 |
+
]
|
| 1426 |
+
},
|
| 1427 |
+
"v2-35b|greedy|stochastic_grid": {
|
| 1428 |
+
"n": 64,
|
| 1429 |
+
"a": 0.1875,
|
| 1430 |
+
"b": 0.328125,
|
| 1431 |
+
"delta": -0.140625,
|
| 1432 |
+
"ci95": [
|
| 1433 |
+
-0.25,
|
| 1434 |
+
-0.03125
|
| 1435 |
+
]
|
| 1436 |
+
},
|
| 1437 |
+
"v2-35b|greedy|tic_tac_toe": {
|
| 1438 |
+
"n": 74,
|
| 1439 |
+
"a": 0.2972972972972973,
|
| 1440 |
+
"b": 0.33783783783783783,
|
| 1441 |
+
"delta": -0.04054054054054054,
|
| 1442 |
+
"ci95": [
|
| 1443 |
+
-0.16216216216216217,
|
| 1444 |
+
0.08108108108108109
|
| 1445 |
+
]
|
| 1446 |
+
},
|
| 1447 |
+
"v2-35b|greedy|exact_minesweeper": {
|
| 1448 |
+
"n": 32,
|
| 1449 |
+
"a": 0.0,
|
| 1450 |
+
"b": 0.03125,
|
| 1451 |
+
"delta": -0.03125,
|
| 1452 |
+
"ci95": [
|
| 1453 |
+
-0.09375,
|
| 1454 |
+
0.0
|
| 1455 |
+
]
|
| 1456 |
+
}
|
| 1457 |
},
|
| 1458 |
+
"browser": {
|
| 1459 |
+
"v2-v1|greedy|all": {
|
| 1460 |
+
"n": 176,
|
| 1461 |
+
"a": 0.9261363636363636,
|
| 1462 |
+
"b": 0.9147727272727273,
|
| 1463 |
+
"delta": 0.011363636363636364,
|
| 1464 |
+
"ci95": [
|
| 1465 |
+
-0.017045454545454544,
|
| 1466 |
+
0.03977272727272727
|
| 1467 |
+
]
|
| 1468 |
+
},
|
| 1469 |
+
"v2-v1|greedy|rewarded": {
|
| 1470 |
+
"n": 128,
|
| 1471 |
+
"a": 0.96875,
|
| 1472 |
+
"b": 0.9765625,
|
| 1473 |
+
"delta": -0.0078125,
|
| 1474 |
+
"ci95": [
|
| 1475 |
+
-0.0234375,
|
| 1476 |
+
0.0
|
| 1477 |
+
]
|
| 1478 |
+
},
|
| 1479 |
+
"v2-v1|greedy|held_out": {
|
| 1480 |
+
"n": 48,
|
| 1481 |
+
"a": 0.8125,
|
| 1482 |
+
"b": 0.75,
|
| 1483 |
+
"delta": 0.0625,
|
| 1484 |
+
"ci95": [
|
| 1485 |
+
-0.020833333333333332,
|
| 1486 |
+
0.16666666666666666
|
| 1487 |
+
]
|
| 1488 |
+
},
|
| 1489 |
+
"v2-v1|sampled|all": {
|
| 1490 |
+
"n": 176,
|
| 1491 |
+
"a": 0.8806818181818182,
|
| 1492 |
+
"b": 0.9090909090909091,
|
| 1493 |
+
"delta": -0.028409090909090908,
|
| 1494 |
+
"ci95": [
|
| 1495 |
+
-0.07386363636363637,
|
| 1496 |
+
0.017045454545454544
|
| 1497 |
+
]
|
| 1498 |
+
},
|
| 1499 |
+
"v2-v1|sampled|rewarded": {
|
| 1500 |
+
"n": 128,
|
| 1501 |
+
"a": 0.9296875,
|
| 1502 |
+
"b": 0.9609375,
|
| 1503 |
+
"delta": -0.03125,
|
| 1504 |
+
"ci95": [
|
| 1505 |
+
-0.078125,
|
| 1506 |
+
0.0078125
|
| 1507 |
+
]
|
| 1508 |
+
},
|
| 1509 |
+
"v2-v1|sampled|held_out": {
|
| 1510 |
+
"n": 48,
|
| 1511 |
+
"a": 0.75,
|
| 1512 |
+
"b": 0.7708333333333334,
|
| 1513 |
+
"delta": -0.020833333333333332,
|
| 1514 |
+
"ci95": [
|
| 1515 |
+
-0.14583333333333334,
|
| 1516 |
+
0.10416666666666667
|
| 1517 |
+
]
|
| 1518 |
+
},
|
| 1519 |
+
"v2-v2_T1719|greedy|all": {
|
| 1520 |
+
"n": 176,
|
| 1521 |
+
"a": 0.9261363636363636,
|
| 1522 |
+
"b": 0.9261363636363636,
|
| 1523 |
+
"delta": 0.0,
|
| 1524 |
+
"ci95": [
|
| 1525 |
+
0.0,
|
| 1526 |
+
0.0
|
| 1527 |
+
]
|
| 1528 |
+
},
|
| 1529 |
+
"v2-v2_T1719|greedy|rewarded": {
|
| 1530 |
+
"n": 128,
|
| 1531 |
+
"a": 0.96875,
|
| 1532 |
+
"b": 0.96875,
|
| 1533 |
+
"delta": 0.0,
|
| 1534 |
+
"ci95": [
|
| 1535 |
+
0.0,
|
| 1536 |
+
0.0
|
| 1537 |
+
]
|
| 1538 |
+
},
|
| 1539 |
+
"v2-v2_T1719|greedy|held_out": {
|
| 1540 |
+
"n": 48,
|
| 1541 |
+
"a": 0.8125,
|
| 1542 |
+
"b": 0.8125,
|
| 1543 |
+
"delta": 0.0,
|
| 1544 |
+
"ci95": [
|
| 1545 |
+
0.0,
|
| 1546 |
+
0.0
|
| 1547 |
+
]
|
| 1548 |
+
},
|
| 1549 |
+
"v2-v2_T1719|sampled|all": {
|
| 1550 |
+
"n": 176,
|
| 1551 |
+
"a": 0.8806818181818182,
|
| 1552 |
+
"b": 0.8636363636363636,
|
| 1553 |
+
"delta": 0.017045454545454544,
|
| 1554 |
+
"ci95": [
|
| 1555 |
+
-0.022727272727272728,
|
| 1556 |
+
0.0625
|
| 1557 |
+
]
|
| 1558 |
+
},
|
| 1559 |
+
"v2-v2_T1719|sampled|rewarded": {
|
| 1560 |
+
"n": 128,
|
| 1561 |
+
"a": 0.9296875,
|
| 1562 |
+
"b": 0.8984375,
|
| 1563 |
+
"delta": 0.03125,
|
| 1564 |
+
"ci95": [
|
| 1565 |
+
-0.015625,
|
| 1566 |
+
0.078125
|
| 1567 |
+
]
|
| 1568 |
+
},
|
| 1569 |
+
"v2-v2_T1719|sampled|held_out": {
|
| 1570 |
+
"n": 48,
|
| 1571 |
+
"a": 0.75,
|
| 1572 |
+
"b": 0.7708333333333334,
|
| 1573 |
+
"delta": -0.020833333333333332,
|
| 1574 |
+
"ci95": [
|
| 1575 |
+
-0.10416666666666667,
|
| 1576 |
+
0.0625
|
| 1577 |
+
]
|
| 1578 |
+
},
|
| 1579 |
+
"v2-v10|greedy|all": {
|
| 1580 |
+
"n": 176,
|
| 1581 |
+
"a": 0.9261363636363636,
|
| 1582 |
+
"b": 0.9090909090909091,
|
| 1583 |
+
"delta": 0.017045454545454544,
|
| 1584 |
+
"ci95": [
|
| 1585 |
+
-0.03977272727272727,
|
| 1586 |
+
0.07386363636363637
|
| 1587 |
+
]
|
| 1588 |
+
},
|
| 1589 |
+
"v2-v10|greedy|rewarded": {
|
| 1590 |
+
"n": 128,
|
| 1591 |
+
"a": 0.96875,
|
| 1592 |
+
"b": 0.90625,
|
| 1593 |
+
"delta": 0.0625,
|
| 1594 |
+
"ci95": [
|
| 1595 |
+
0.0078125,
|
| 1596 |
+
0.125
|
| 1597 |
+
]
|
| 1598 |
+
},
|
| 1599 |
+
"v2-v10|greedy|held_out": {
|
| 1600 |
+
"n": 48,
|
| 1601 |
+
"a": 0.8125,
|
| 1602 |
+
"b": 0.9166666666666666,
|
| 1603 |
+
"delta": -0.10416666666666667,
|
| 1604 |
+
"ci95": [
|
| 1605 |
+
-0.22916666666666666,
|
| 1606 |
+
0.020833333333333332
|
| 1607 |
+
]
|
| 1608 |
+
},
|
| 1609 |
+
"v2-v10|sampled|all": {
|
| 1610 |
+
"n": 176,
|
| 1611 |
+
"a": 0.8806818181818182,
|
| 1612 |
+
"b": 0.9318181818181818,
|
| 1613 |
+
"delta": -0.05113636363636364,
|
| 1614 |
+
"ci95": [
|
| 1615 |
+
-0.10795454545454546,
|
| 1616 |
+
0.005681818181818182
|
| 1617 |
+
]
|
| 1618 |
+
},
|
| 1619 |
+
"v2-v10|sampled|rewarded": {
|
| 1620 |
+
"n": 128,
|
| 1621 |
+
"a": 0.9296875,
|
| 1622 |
+
"b": 0.9375,
|
| 1623 |
+
"delta": -0.0078125,
|
| 1624 |
+
"ci95": [
|
| 1625 |
+
-0.0703125,
|
| 1626 |
+
0.0546875
|
| 1627 |
+
]
|
| 1628 |
+
},
|
| 1629 |
+
"v2-v10|sampled|held_out": {
|
| 1630 |
+
"n": 48,
|
| 1631 |
+
"a": 0.75,
|
| 1632 |
+
"b": 0.9166666666666666,
|
| 1633 |
+
"delta": -0.16666666666666666,
|
| 1634 |
+
"ci95": [
|
| 1635 |
+
-0.3125,
|
| 1636 |
+
-0.041666666666666664
|
| 1637 |
+
]
|
| 1638 |
+
},
|
| 1639 |
+
"v2-35b|greedy|all": {
|
| 1640 |
+
"n": 176,
|
| 1641 |
+
"a": 0.9261363636363636,
|
| 1642 |
+
"b": 0.9715909090909091,
|
| 1643 |
+
"delta": -0.045454545454545456,
|
| 1644 |
+
"ci95": [
|
| 1645 |
+
-0.07954545454545454,
|
| 1646 |
+
-0.017045454545454544
|
| 1647 |
+
]
|
| 1648 |
+
},
|
| 1649 |
+
"v2-35b|greedy|rewarded": {
|
| 1650 |
+
"n": 128,
|
| 1651 |
+
"a": 0.96875,
|
| 1652 |
+
"b": 0.96875,
|
| 1653 |
+
"delta": 0.0,
|
| 1654 |
+
"ci95": [
|
| 1655 |
+
0.0,
|
| 1656 |
+
0.0
|
| 1657 |
+
]
|
| 1658 |
+
},
|
| 1659 |
+
"v2-35b|greedy|held_out": {
|
| 1660 |
+
"n": 48,
|
| 1661 |
+
"a": 0.8125,
|
| 1662 |
+
"b": 0.9791666666666666,
|
| 1663 |
+
"delta": -0.16666666666666666,
|
| 1664 |
+
"ci95": [
|
| 1665 |
+
-0.2708333333333333,
|
| 1666 |
+
-0.0625
|
| 1667 |
+
]
|
| 1668 |
+
},
|
| 1669 |
+
"v2-35b|sampled|all": {
|
| 1670 |
+
"n": 176,
|
| 1671 |
+
"a": 0.8806818181818182,
|
| 1672 |
+
"b": 0.8636363636363636,
|
| 1673 |
+
"delta": 0.017045454545454544,
|
| 1674 |
+
"ci95": [
|
| 1675 |
+
-0.03409090909090909,
|
| 1676 |
+
0.06832386363636415
|
| 1677 |
+
]
|
| 1678 |
+
},
|
| 1679 |
+
"v2-35b|sampled|rewarded": {
|
| 1680 |
+
"n": 128,
|
| 1681 |
+
"a": 0.9296875,
|
| 1682 |
+
"b": 0.890625,
|
| 1683 |
+
"delta": 0.0390625,
|
| 1684 |
+
"ci95": [
|
| 1685 |
+
-0.015625,
|
| 1686 |
+
0.09375
|
| 1687 |
+
]
|
| 1688 |
+
},
|
| 1689 |
+
"v2-35b|sampled|held_out": {
|
| 1690 |
+
"n": 48,
|
| 1691 |
+
"a": 0.75,
|
| 1692 |
+
"b": 0.7916666666666666,
|
| 1693 |
+
"delta": -0.041666666666666664,
|
| 1694 |
+
"ci95": [
|
| 1695 |
+
-0.16666666666666666,
|
| 1696 |
+
0.08333333333333333
|
| 1697 |
+
]
|
| 1698 |
+
},
|
| 1699 |
+
"per_task|greedy": {
|
| 1700 |
+
"click-button": 1.0,
|
| 1701 |
+
"click-button-sequence": 1.0,
|
| 1702 |
+
"click-checkboxes": 1.0,
|
| 1703 |
+
"click-checkboxes-large": 0.625,
|
| 1704 |
+
"click-checkboxes-soft": 1.0,
|
| 1705 |
+
"click-checkboxes-transfer": 1.0,
|
| 1706 |
+
"click-collapsible": 1.0,
|
| 1707 |
+
"click-collapsible-2": 0.5,
|
| 1708 |
+
"click-color": 1.0,
|
| 1709 |
+
"click-dialog": 1.0,
|
| 1710 |
+
"click-dialog-2": 1.0,
|
| 1711 |
+
"click-link": 1.0,
|
| 1712 |
+
"click-option": 1.0,
|
| 1713 |
+
"click-tab": 1.0,
|
| 1714 |
+
"click-tab-2": 0.875,
|
| 1715 |
+
"click-tab-2-hard": 1.0,
|
| 1716 |
+
"click-test": 1.0,
|
| 1717 |
+
"click-test-2": 1.0,
|
| 1718 |
+
"click-widget": 1.0,
|
| 1719 |
+
"focus-text": 1.0,
|
| 1720 |
+
"focus-text-2": 0.375,
|
| 1721 |
+
"navigate-tree": 1.0
|
| 1722 |
+
},
|
| 1723 |
+
"per_task|sampled": {
|
| 1724 |
+
"click-button": 1.0,
|
| 1725 |
+
"click-button-sequence": 1.0,
|
| 1726 |
+
"click-checkboxes": 1.0,
|
| 1727 |
+
"click-checkboxes-large": 0.75,
|
| 1728 |
+
"click-checkboxes-soft": 0.875,
|
| 1729 |
+
"click-checkboxes-transfer": 0.875,
|
| 1730 |
+
"click-collapsible": 1.0,
|
| 1731 |
+
"click-collapsible-2": 0.75,
|
| 1732 |
+
"click-color": 1.0,
|
| 1733 |
+
"click-dialog": 1.0,
|
| 1734 |
+
"click-dialog-2": 0.5,
|
| 1735 |
+
"click-link": 1.0,
|
| 1736 |
+
"click-option": 0.875,
|
| 1737 |
+
"click-tab": 0.625,
|
| 1738 |
+
"click-tab-2": 0.75,
|
| 1739 |
+
"click-tab-2-hard": 0.625,
|
| 1740 |
+
"click-test": 1.0,
|
| 1741 |
+
"click-test-2": 1.0,
|
| 1742 |
+
"click-widget": 1.0,
|
| 1743 |
+
"focus-text": 1.0,
|
| 1744 |
+
"focus-text-2": 0.75,
|
| 1745 |
+
"navigate-tree": 1.0
|
| 1746 |
+
}
|
| 1747 |
+
}
|
| 1748 |
+
},
|
| 1749 |
+
"jevbench_item_bootstrap_minus_v1": {
|
| 1750 |
+
"easy": {
|
| 1751 |
+
"n": 48,
|
| 1752 |
+
"a": 1.0,
|
| 1753 |
+
"b": 1.0,
|
| 1754 |
"delta": 0.0,
|
| 1755 |
"ci95": [
|
| 1756 |
0.0,
|
| 1757 |
0.0
|
| 1758 |
+
],
|
| 1759 |
+
"a_only": 0,
|
| 1760 |
+
"b_only": 0,
|
| 1761 |
+
"argmax_differs": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1762 |
},
|
| 1763 |
+
"standard": {
|
| 1764 |
+
"n": 72,
|
| 1765 |
+
"a": 0.9861111111111112,
|
| 1766 |
+
"b": 0.9583333333333334,
|
| 1767 |
+
"delta": 0.027777777777777776,
|
| 1768 |
"ci95": [
|
| 1769 |
0.0,
|
| 1770 |
+
0.06944444444444445
|
| 1771 |
+
],
|
| 1772 |
+
"a_only": 2,
|
| 1773 |
+
"b_only": 0,
|
| 1774 |
+
"argmax_differs": 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1775 |
},
|
| 1776 |
+
"hard": {
|
| 1777 |
+
"n": 111,
|
| 1778 |
+
"a": 0.6756756756756757,
|
| 1779 |
+
"b": 0.5495495495495496,
|
| 1780 |
+
"delta": 0.12612612612612611,
|
| 1781 |
"ci95": [
|
| 1782 |
+
0.04504504504504504,
|
| 1783 |
+
0.20743243243243326
|
| 1784 |
+
],
|
| 1785 |
+
"a_only": 20,
|
| 1786 |
+
"b_only": 6,
|
| 1787 |
+
"argmax_differs": 32
|
| 1788 |
}
|
| 1789 |
}
|
| 1790 |
},
|
| 1791 |
"references": {
|
| 1792 |
+
"decider_4b_v1": "Mapika/decider-4b revision v1, T 1.05",
|
| 1793 |
+
"decider_2b_v10": "Mapika/decider-2b, T 1.30",
|
| 1794 |
+
"decider_35b_a3b": "Mapika/decider-35b-a3b, T 1.075"
|
| 1795 |
}
|
| 1796 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 8411558400
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69e6895461c425c6469cd304838a2e5673141613c2da04782026e37c1481d936
|
| 3 |
size 8411558400
|