Harry19081 commited on
Commit
503dfd6
·
verified ·
1 Parent(s): 78ebf43

Release Wald-Q4B22D0-f7: full DI0.2.1 54.59 and clean calibration

Browse files

Replace default weights with hash-verified22D0-f7 shards, set evaluated high/rsp policy, preserve legacy tag, update reproduction and provenance disclosures. Official admission remains pending.

CONTAMINATION.md CHANGED
@@ -1,253 +1,6 @@
1
- # Contamination statement
2
 
3
- This covers the checkpoint submitted as Wald-4B and **every stage of its lineage**, back to the base model. The Decision
4
- Index rule is that any test item an entry was trained on counts as wrong. The list below is for the maintainers to apply
5
- that rule. We also count these items wrong in our own blocklist-adjusted scores.
6
-
7
- ## 1. Decision Index items in our training data
8
-
9
- **[contamination/trained-on-di-ids.json](https://huggingface.co/Harry19081/Wald-4B/blob/main/contamination/trained-on-di-ids.json)** lists 363 item ids. For each id it
10
- gives the benchmark, the lineage stage whose data contains it, and why it is there. Please count all 363 as trained on.
11
-
12
- | benchmark | ids | scored in 0.2.1 | why they are in our data |
13
- |---|---:|---|---|
14
- | ToolRet (#2) | 67 | yes | **shared upstream source.** ToolRet aggregates the user queries of public tool-calling datasets. Our data contains the train splits of ToolACE and Glaive function-calling. |
15
- | BANKING77 (#4) | 49 | yes | **public train split duplicates a test sentence.** The BANKING77 train split is in our data, and these test sentences also appear verbatim in train. |
16
- | CLINC150+OOS (#5) | 44 | yes | **public train split duplicates a test sentence** (as above, for the CLINC-OOS train split). |
17
- | MMLU-Pro (#57) | 6 | yes | **shared upstream source.** MMLU-Pro includes MATH / TheoremQA problems, and the same problems are in our math data (MATH train). |
18
- | SATA-Bench (#33) | 4 | yes | **shared upstream source.** Reading passages from RACE, which makes up most of MMLU auxiliary_train. |
19
- | ANLI (#12) | 3 | yes | **shared upstream text.** The premise text also appears in other public datasets in our data. |
20
- | WinoGrande (#28) | 2 | yes | **public train split duplicates a test sentence.** |
21
- | BRIGHT (#36) | 1 | yes | **shared upstream source.** A public programming problem statement. |
22
- | RouterBench (#6) | 170 | no (removed in 0.2.1) | **shared upstream source.** RouterBench prompts embed GSM8K / MMLU questions, and those questions are in our math and QA training data (GSM8K train and others). |
23
- | MMLU (#24), ARC-Easy (#26), ARC-Challenge (#27) | 6 / 7 / 4 | display only | **public train split duplicates** (ARC train, MMLU auxiliary_train). These are the same kind of duplicates the board already records for other entries. |
24
-
25
- That is 176 ids on scored benchmarks. On our 6,948-request sample, counting them wrong moves the index by 0.3 points:
26
- 53.91 → 53.62 for v1.0 (effort medium, `repeat_state_plain`), and 49.62 → 49.34 for its parent at high-k4.
27
-
28
- **How the items got in.** We never trained on a Decision Index test split. Every hit above reached us through a public
29
- train split or an upstream dataset that the benchmark itself draws from. Stages 1–3 of the lineage were built before we
30
- had the full blocklist (below), so those stages contain these items. Stage 4 (the task-coverage LoRA) was filtered with the full blocklist before training: 0 hits.
31
-
32
- ## 2. Training data, by source
33
-
34
- This section names every public source in the lineage and the split we read. It gives no proportions: no ratios, token
35
- or row counts per source, or mixing weights. The training data itself is not released.
36
-
37
- ### 2.1 The lineage
38
-
39
- | stage | what it is | data |
40
- |---|---|---|
41
- | 1 | full-parameter decision training of Qwen/Qwen3.5-4B-Base | converted public datasets (§2.2), code-generated decision families, and synthetic tool, document-QA and style items |
42
- | 2 | LoRA refinement with KL replay (merged) | a curated mix of human-labelled public sets and code-generated items, synthetic hard items, and a KL-only replay of stage-1 rows |
43
- | 3 | short-thought distillation (LoRA, merged) | synthetic short thoughts on questions from the stage-2 pool, one-pass rows from the same pool, and replay rows whose target is the stage-2 model's own distribution |
44
- | 4 | task-coverage LoRA (merged; the submitted checkpoint) | the train splits of iSarcasmEval, API-Bank, ContractNLI, VAST, NLI4CT, ACOS and RAGTruth, new Home-appliance households from the Decision Index kit's generator, and a KL-only replay of stage-2 rows |
45
-
46
- Stage 1 drew on a public decision-training mixture. Its constituent datasets are listed one by one below, and its custom
47
- and routing parts were left out. Stage 4 teaches the formats of eight Decision Index benchmarks from their source train
48
- splits and the kit's own generator. No test item is included. **Home appliance scores 1.00 (skill) for this checkpoint
49
- on our sample, so please weigh that benchmark with this training in mind.** The maintainers can regenerate the rows
50
- with the kit's generator and any new seed, and compare them with their test rows.
51
-
52
- ### 2.2 Public sources
53
-
54
- Every public dataset was read through its **train split only**, unless the split column says otherwise. No test split
55
- of any source was used.
56
-
57
- In the stage column, **(replay)** means that the stage re-used rows from that source only as KL replay. For those rows
58
- the training target is the model's own earlier distribution, not the source label.
59
-
60
- The licence column gives the licence **as the source states it**. "card" means the Hugging Face dataset card, and
61
- "upstream" means the original release, used where the card is empty or says unknown. We have not reviewed these terms
62
- here.
63
-
64
- #### Constituents of the stage-1 public mixture
65
-
66
- | dataset | split(s) used | stages | licence (as stated) | note |
67
- |---|---|---|---|---|
68
- | [cais/mmlu](https://huggingface.co/datasets/cais/mmlu) (all) | auxiliary_train | 1, 2, 3, 4 (replay) | MIT (card) | dev / validation / test never used. auxiliary_train is mostly RACE passages (see §1, SATA-Bench) |
69
- | [allenai/ai2_arc](https://huggingface.co/datasets/allenai/ai2_arc) (ARC-Challenge, ARC-Easy) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-4.0 (card) | also in the wide replay (ARC-Easy). Some test questions duplicate train questions (§1) |
70
- | [tau/commonsense_qa](https://huggingface.co/datasets/tau/commonsense_qa) | train | 1, 2, 3, 4 (replay) | MIT (card) | also read directly as a human-labelled set |
71
- | [google/boolq](https://huggingface.co/datasets/google/boolq) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-3.0 (card) | also read directly as a human-labelled set |
72
- | [nyu-mll/multi_nli](https://huggingface.co/datasets/nyu-mll/multi_nli) | train | 1, 2, 3, 4 (replay) | mixed: CC-BY-3.0 / CC-BY-SA-3.0 / MIT / OANC (card) | validation_matched / mismatched never used. Also read directly |
73
- | [stanfordnlp/snli](https://huggingface.co/datasets/stanfordnlp/snli) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-4.0 (card) | |
74
- | [mteb/banking77](https://huggingface.co/datasets/mteb/banking77) | train | 1, 2, 3, 4 (replay) | MIT (card); upstream PolyAI release CC-BY-4.0 | some test sentences also appear verbatim in train (§1) |
75
- | [allenai/openbookqa](https://huggingface.co/datasets/allenai/openbookqa) (main) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (upstream allenai/OpenBookQA) | also read directly as a human-labelled set |
76
- | [GBaker/MedQA-USMLE-4-options](https://huggingface.co/datasets/GBaker/MedQA-USMLE-4-options) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card); upstream MIT | |
77
- | [allenai/winogrande](https://huggingface.co/datasets/allenai/winogrande) (winogrande_xl) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (upstream allenai/winogrande) | also in the wide replay. Some test sentences duplicate train (§1) |
78
- | [clinc/clinc_oos](https://huggingface.co/datasets/clinc/clinc_oos) (plus) | train | 1, 2, 3, 4 (replay) | CC-BY-3.0 (card) | also in the wide replay. Some test sentences duplicate train (§1) |
79
- | [SetFit/amazon_massive_intent_en-US](https://huggingface.co/datasets/SetFit/amazon_massive_intent_en-US) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (upstream Amazon MASSIVE) | |
80
- | [bitext/Bitext-customer-support-llm-chatbot-training-dataset](https://huggingface.co/datasets/bitext/Bitext-customer-support-llm-chatbot-training-dataset) | train (the only split) | 1, 2, 3, 4 (replay) | CDLA-Sharing-1.0 (card) | |
81
- | [fancyzhx/dbpedia_14](https://huggingface.co/datasets/fancyzhx/dbpedia_14) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-3.0 (card) | also read directly as a human-labelled set |
82
- | [google-research-datasets/go_emotions](https://huggingface.co/datasets/google-research-datasets/go_emotions) (simplified) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
83
- | [SetFit/hate_speech_offensive](https://huggingface.co/datasets/SetFit/hate_speech_offensive) | train | 1, 2, 3, 4 (replay) | MIT (upstream t-davidson/hate-speech-and-offensive-language) | |
84
- | [SetFit/amazon_counterfactual_en](https://huggingface.co/datasets/SetFit/amazon_counterfactual_en) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-4.0 (upstream amazon-research/amazon-multilingual-counterfactual-dataset) | |
85
- | [google/civil_comments](https://huggingface.co/datasets/google/civil_comments) | train (a leading slice) | 1, 2, 3, 4 (replay) | CC0-1.0 (card) | also in the wide replay |
86
- | [ucirvine/sms_spam](https://huggingface.co/datasets/ucirvine/sms_spam) | train (the only split) | 1, 2, 3, 4 (replay) | CC-BY-4.0 (upstream UCI SMS Spam Collection) | |
87
- | [allenai/qasc](https://huggingface.co/datasets/allenai/qasc) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also in the wide replay |
88
- | [Rowan/hellaswag](https://huggingface.co/datasets/Rowan/hellaswag) | train | 1, 2, 3, 4 (replay) | MIT (upstream rowanz/hellaswag) | validation / test never used |
89
- | [ybisk/piqa](https://huggingface.co/datasets/ybisk/piqa) | train | 1, 2, 3, 4 (replay) | unknown | also in the wide replay |
90
- | [LabHC/bias_in_bios](https://huggingface.co/datasets/LabHC/bias_in_bios) | train | 1, 2, 3, 4 (replay) | MIT (card) | |
91
- | [nvidia/HelpSteer2](https://huggingface.co/datasets/nvidia/HelpSteer2) | train | 2, 3 | CC-BY-4.0 (card) | |
92
- | [nvidia/HelpSteer3](https://huggingface.co/datasets/nvidia/HelpSteer3) (preference) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also in the wide replay |
93
- | [ucberkeley-dlab/measuring-hate-speech](https://huggingface.co/datasets/ucberkeley-dlab/measuring-hate-speech) | train (the only split) | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | |
94
- | [chengxuphd/liar2](https://huggingface.co/datasets/chengxuphd/liar2) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
95
- | [allenai/prosocial-dialog](https://huggingface.co/datasets/allenai/prosocial-dialog) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also in the wide replay |
96
- | [HuggingFaceH4/ultrafeedback_binarized](https://huggingface.co/datasets/HuggingFaceH4/ultrafeedback_binarized) | train_prefs | 1, 2, 3, 4 (replay) | MIT (card) | test_prefs never used |
97
- | [Anthropic/hh-rlhf](https://huggingface.co/datasets/Anthropic/hh-rlhf) | train | 1, 2, 3, 4 (replay) | MIT (card) | |
98
- | [glaiveai/glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2) | train (the only split) | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | also a seed source for the synthetic tool items. Shares user queries with ToolRet (§1) |
99
- | [Team-ACE/ToolACE](https://huggingface.co/datasets/Team-ACE/ToolACE) | train (the only split) | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | also in the wide replay and the tool items. Shares user queries with ToolRet (§1) |
100
- | [copenlu/fever_gold_evidence](https://huggingface.co/datasets/copenlu/fever_gold_evidence) | train | 1, 2, 3, 4 (replay) | unknown | |
101
- | [openlifescienceai/medmcqa](https://huggingface.co/datasets/openlifescienceai/medmcqa) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card); upstream MIT | also in the wide replay |
102
- | [osunlp/Mind2Web](https://huggingface.co/datasets/osunlp/Mind2Web) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also a seed source for the synthetic tool items |
103
-
104
- #### Wide replay of public train splits (sources not listed above)
105
-
106
- | dataset | split(s) used | stages | licence (as stated) | note |
107
- |---|---|---|---|---|
108
- | [allenai/cosmos_qa](https://huggingface.co/datasets/allenai/cosmos_qa) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
109
- | [ucinlp/drop](https://huggingface.co/datasets/ucinlp/drop) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-4.0 (card) | |
110
- | [allenai/quoref](https://huggingface.co/datasets/allenai/quoref) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
111
- | [allenai/quartz](https://huggingface.co/datasets/allenai/quartz) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
112
- | [allenai/ropes](https://huggingface.co/datasets/allenai/ropes) (plain_text) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
113
- | [alisawuffles/WANLI](https://huggingface.co/datasets/alisawuffles/WANLI) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | crowd labels that revise model-written candidates |
114
- | [allenai/social_i_qa](https://huggingface.co/datasets/allenai/social_i_qa) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card text) | |
115
- | [deepmind/aqua_rat](https://huggingface.co/datasets/deepmind/aqua_rat) (raw) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
116
- | [ChilleD/SVAMP](https://huggingface.co/datasets/ChilleD/SVAMP) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
117
- | [math-eval/TAL-SCQ5K](https://huggingface.co/datasets/math-eval/TAL-SCQ5K) (EN) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
118
- | [tasksource/ruletaker](https://huggingface.co/datasets/tasksource/ruletaker) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
119
- | [ImperialCollegeLondon/health_fact](https://huggingface.co/datasets/ImperialCollegeLondon/health_fact) (PUBHEALTH) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
120
- | [wenhu/tab_fact](https://huggingface.co/datasets/wenhu/tab_fact) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
121
- | [lighteval/wikitablequestions](https://huggingface.co/datasets/lighteval/wikitablequestions) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-4.0 (upstream ppasupat/WikiTableQuestions) | |
122
- | [AmazonScience/massive](https://huggingface.co/datasets/AmazonScience/massive) (en-US) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
123
- | [google-research-datasets/schema_guided_dstc8](https://huggingface.co/datasets/google-research-datasets/schema_guided_dstc8) (SGD) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-4.0 (card) | |
124
- | [tasksource/esci](https://huggingface.co/datasets/tasksource/esci) (us) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
125
- | [google-research-datasets/poem_sentiment](https://huggingface.co/datasets/google-research-datasets/poem_sentiment) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
126
- | [zeroshot/twitter-financial-news-sentiment](https://huggingface.co/datasets/zeroshot/twitter-financial-news-sentiment) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
127
- | [NousResearch/hermes-function-calling-v1](https://huggingface.co/datasets/NousResearch/hermes-function-calling-v1) (glaive subset) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
128
- | [openbmb/UltraFeedback](https://huggingface.co/datasets/openbmb/UltraFeedback) (evol_instruct, ultrachat) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | ratings in the source are model-written |
129
- | [jackhhao/jailbreak-classification](https://huggingface.co/datasets/jackhhao/jailbreak-classification) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
130
- | [deepset/prompt-injections](https://huggingface.co/datasets/deepset/prompt-injections) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
131
- | [tonytan48/TempReason](https://huggingface.co/datasets/tonytan48/TempReason) | train_l1 | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-3.0 (card) | answers recomputed by code |
132
-
133
- #### Other public decision sets
134
-
135
- | dataset | split(s) used | stages | licence (as stated) | note |
136
- |---|---|---|---|---|
137
- | [jaredpalmer/kev-suites](https://huggingface.co/datasets/jaredpalmer/kev-suites) | v7/decision-v7/train.jsonl | 2, 3 | Apache-2.0 (card); rows derive from public datasets under their own terms | Kev's public training partition. Its rows come from the BANKING77, BoolQ, DBpedia-14 and MNLI train splits |
138
- | [thu-coai/cold](https://huggingface.co/datasets/thu-coai/cold) (COLD, Chinese) | train | 2, 3 | Apache-2.0 (repo) | test never used for training |
139
- | [ZefanCai/Open-Jev](https://huggingface.co/datasets/ZefanCai/Open-Jev) | train | 1, 2, 3, 4 (replay) | CC0-1.0 (card); code MIT | labels by rules, solvers and generator latents. Its calibration / validation / test / OOD rows were never used. `customer-control-v1` excluded |
140
- | [ZefanCai/Open-Jev-v1.1](https://huggingface.co/datasets/ZefanCai/Open-Jev-v1.1) | train (`wanli-decisions-v1`, `community-diversity-v2`) | 2, 3 | CC0-1.0 (community-diversity-v2); CC-BY-4.0 (wanli-decisions-v1, from WANLI) | |
141
-
142
- #### Prompt sources for routing and verification items
143
-
144
- The items themselves are ours. A routing item labels a public prompt by the kind of source it came from, and a
145
- verification item plants an error in a human-written solution by code.
146
-
147
- | dataset | split(s) used | stages | licence (as stated) | note |
148
- |---|---|---|---|---|
149
- | [openai/gsm8k](https://huggingface.co/datasets/openai/gsm8k) (main) | train | 1, 2, 3, 4 (replay) | MIT (card) | routing prompts and the worked solutions of the verification items. Test never used. RouterBench embeds GSM8K questions (§1) |
150
- | [EleutherAI/hendrycks_math](https://huggingface.co/datasets/EleutherAI/hendrycks_math) | train | 1, 2, 3, 4 (replay) | MIT (card) | test never used. MMLU-Pro includes MATH problems (§1) |
151
- | [deepmind/code_contests](https://huggingface.co/datasets/deepmind/code_contests) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | valid / test never used |
152
- | [google-research-datasets/mbpp](https://huggingface.co/datasets/google-research-datasets/mbpp) (full) | train, validation, prompt | 2, 3 | CC-BY-4.0 (card) | test never used |
153
- | [princeton-nlp/SWE-bench](https://huggingface.co/datasets/princeton-nlp/SWE-bench) | train | 1, 2, 3, 4 (replay) | MIT (card) | test (the benchmark) never used |
154
- | [mandarjoshi/trivia_qa](https://huggingface.co/datasets/mandarjoshi/trivia_qa) (rc.nocontext) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
155
- | [abisee/cnn_dailymail](https://huggingface.co/datasets/abisee/cnn_dailymail) (3.0.0) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
156
- | [OpenAssistant/oasst1](https://huggingface.co/datasets/OpenAssistant/oasst1) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
157
- | [HuggingFaceM4/WebSight](https://huggingface.co/datasets/HuggingFaceM4/WebSight) (v0.2) | train (the only split) | 1, 2, 3 | CC-BY-4.0 (card) | |
158
-
159
- #### Text embedded in long states
160
-
161
- | dataset | split(s) used | stages | licence (as stated) | note |
162
- |---|---|---|---|---|
163
- | [HuggingFaceFW/fineweb-edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) (sample-10BT) | train (the only split) | 1, 2, 3, 4 (replay) | ODC-BY-1.0 (card) | documents placed inside code-generated long-state items |
164
- | [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) (20231101.en) | train (the only split) | 1, 2, 3, 4 (replay) | CC-BY-SA-3.0 and GFDL (card) | as above |
165
-
166
- #### Seed sources of the synthetic tool items
167
-
168
- | dataset | split(s) used | stages | licence (as stated) | note |
169
- |---|---|---|---|---|
170
- | [nvidia/When2Call](https://huggingface.co/datasets/nvidia/When2Call) | train_sft | 1 | CC-BY-4.0 (card) | test never used |
171
- | [liminghao1630/API-Bank](https://huggingface.co/datasets/liminghao1630/API-Bank) | training-data: lv1 (stage 1); lv1 + lv2 (stage 4) | 1, 4 | MIT (card); the GitHub repo AlibabaResearch/DAMO-ConvAI (api-bank) states Apache-2.0 | test-data never used. In stage 4, 53-option tool catalogs are built the kit's way from the train tool pool |
172
- | [AgentGym/AgentTraj-L](https://huggingface.co/datasets/AgentGym/AgentTraj-L) | train | 1 | unknown | |
173
-
174
- #### Stage 4: Decision Index benchmark sources
175
-
176
- | dataset | split(s) used | stages | licence (as stated) | note |
177
- |---|---|---|---|---|
178
- | [iSarcasmEval](https://github.com/iabufarha/iSarcasmEval) (SemEval-2022 Task 6) | train.En.csv (tasks A-En, B-En), train.Ar.csv (task A-Ar) | 4 | MIT (repo LICENSE); the README asks for the task citation | test never used |
179
- | [ContractNLI](https://github.com/stanfordnlp/contract-nli) | train | 4 | CC BY 4.0 (README / project site) | train rows only. Rows that share clauses with test contracts were dropped |
180
- | [VAST](https://github.com/emilyallaway/zero-shot-stance) @ e7c4775 | data/VAST/vast_train.csv | 4 | unknown | test never used |
181
- | [NLI4CT](https://github.com/ai-systems/Task-2-SemEval-2024) (SemEval-2024 Task 2) @ 7f32fa6 | train.json, dev.json | 4 | unknown | test never used |
182
- | [ACOS](https://github.com/NUSTM/ACOS) @ 45d179a | data/*/*_quad_train.tsv | 4 | unknown | test never used |
183
- | [RAGTruth](https://github.com/ParticleMedia/RAGTruth) @ c103204 | response.jsonl split = train, source_info.jsonl | 4 | MIT (repo LICENSE); contexts: unknown | test never used |
184
- | [Decision Index kit](https://github.com/apolinario/decision-index) @ 19ad28e, Home-appliance generator (`decision_index/suite/build/home_appliance.py`) | new households from our own seed | 4 | MIT (repo) | code, not a dataset. 0 states are shared with the benchmark's dev + test rows |
185
-
186
- That is **84 public sources**: 83 datasets and one generator.
187
-
188
- ### 2.3 Synthetic data
189
-
190
- Everything that is not a public source above falls into four categories.
191
-
192
- - **Code-generated and code-labelled items.** These are decision families whose answer a program computes: rule
193
- application, dates and business days, numeric extraction, lookup, ordering, long policies with amendments and decoys,
194
- temporal traces, multi-hop and buried-evidence long states, and tool-use worlds. The judge items plant an error in a
195
- human-written GSM8K solution by code, so the label holds by construction. The routing items take their label from the
196
- prompt's source dataset. This category also includes the rule-based renderings (JSON, described, wide and
197
- single-question forms) and the rule-twin items that ship with the stage-1 mixture's public code, and the stage-4
198
- Home-appliance households.
199
- - **Synthetic items and short thoughts.** Part of the data is synthetic: items and short thoughts written or labelled
200
- by much larger frontier LLMs — far above 120B parameters where the size is published. An item is kept only when
201
- checks by code or independent answers agree and it passes our schema, shortcut and overlap gates; a thought is kept
202
- only if its final answer matches the gold label.
203
- - **Our own model's errors, used for judge data.** None of the four stages' training files contain this category. The
204
- judge items of v1.0 are the code-planted errors described above, plus synthetic judge items.
205
- - **KL replay.** Stages 2, 3 and 4 re-show earlier rows, and the target is the model's own distribution before that
206
- stage (§2.2, "(replay)"). This keeps earlier abilities while the new rows are learned. No label is added.
207
-
208
- The training data is not released.
209
-
210
- ### 2.4 How Decision Index items were screened
211
-
212
- - **Stages 1–3** were built before the full blocklist existed. For stage 3, we removed the 5 rows that held the strictly
213
- verified hits known at the time. Every remaining hit in the stage-1, stage-2 and stage-3 training files is listed in
214
- §1: 363 ids in [contamination/trained-on-di-ids.json](https://huggingface.co/Harry19081/Wald-4B/blob/main/contamination/trained-on-di-ids.json). Please count them as
215
- trained on.
216
- - **The blocklist.** Since 2026-09-27, every Decision Index 0.2 request we rebuilt (all but HLE) is on a permanent
217
- blocklist in our training repository (`trainer/data/blocklists`). Items are stored as fingerprints, not text. The data acceptance gate fails any
218
- training row that matches it (§3).
219
- - **Stage 4** was checked row by row before training against the full blocklist, our sample rows, the calibration
220
- holdouts and our vertical test sets. It passed the gate with 0 rows that contain a Decision Index item.
221
-
222
- ## 3. How we scanned
223
-
224
- - **Suite.** The Decision Index 0.2 suite was rebuilt with the maintainers' public kit (github.com/apolinario/decision-index
225
- @ 19ad28e) from its pinned public sources. It has 154,877 requests; HLE (501 rows, gated) is not included.
226
- - **Match rule** (applied to every string of every training record):
227
- - Words are lower-case `[a-z0-9]+`.
228
- - Each item's state is taken after stripping the benchmark's fixed instruction line. A shared prompt prefix is
229
- stripped too, so training text without the DI prompt is still recognized.
230
- - A state of 4–11 words must appear verbatim.
231
- - A state of 12 words or more needs ≥ 80 % of its 8-word shingles in one record. Shingles that occur in more than 20
232
- states are dropped as boilerplate.
233
- - Benchmarks whose options are the item's content (MMLU / ARC / MMLU-Pro / GPQA / BBH / HellaSwag / WinoGrande …)
234
- also need ≥ 50 % of the option text to match.
235
- - States under 8 words are recorded as "weak" and not counted.
236
- - **Coverage.** The scan covered every training file of every stage of this lineage, plus sibling and ancestor corpora.
237
- The per-file scan outputs (line counts, file sha256, hit counts) are summarized in the `scans` field of
238
- trained-on-di-ids.json.
239
- - **Blocklist.** Since 2026-09-27 every Decision Index item is on a permanent blocklist, stored as fingerprints, not
240
- text. The data acceptance gate fails any training row that hits it.
241
- - **Items the scan cannot see.** Items without free text cannot be checked this way: CLINC150 short intents, POP909 and
242
- cfcolor. Nothing in the pretraining data of the base model was scanned.
243
-
244
- ## 4. What we did not do
245
-
246
- - We never used a Decision Index test split, the kit's suite rows or the sample rows for training, selection or
247
- calibration.
248
- - We never tuned the prompt, the readout or the effort policy per benchmark. The knockout for more than 26 options is one
249
- rule for every question.
250
- - We selected checkpoints on our own holdouts only. The Decision Index was read once per candidate checkpoint.
251
- - One disclosure: the benchmarks that stage 4 covers were chosen from our Decision Index sample reads, as the
252
- benchmarks where we trailed Jev most. That choice used scores only. No items were used, and the stage has no
253
- checkpoint selection.
 
1
+ # Evaluation notes
2
 
3
+ - Known strict training overlaps were filtered and training-file hashes checked. Weak/semantic overlap and foundation-model pretraining contamination are not ruled out; HLE training overlap has not been independently cleared. Benchmark samples informed development, so this is not a sealed evaluation.
4
+ - The complete **54.59** run used a frozen **256-row XL-dev calibration** fit after excluding known DI matches. No DI labels or DI index score were used to fit it. HLE calibration screening found no additional match.
5
+ - The earlier **54.02** sample used the previous calibration table with known overlaps and remains historical. Old v1.0 disclosures apply to its own weights and are preserved under `v1.0-legacy`.
6
+ - Full-run response artifacts are unchanged. No request payloads or generated reasoning text are included. Official maintainer serial latency validation and leaderboard admission remain pending.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
MANIFEST.json CHANGED
@@ -1,34 +1,222 @@
1
  {
2
- "chat_template.jinja": {
3
- "bytes": 7756,
4
- "sha256": "a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715"
5
- },
6
- "config.json": {
7
- "bytes": 1979,
8
- "sha256": "4ccab9e001f1b53e8213882a6e36c9aa3db09413aa2cf1e11caf18085077aabe"
9
- },
10
- "generation_config.json": {
11
- "bytes": 116,
12
- "sha256": "62153eb6c69f2e1f426beaa8002b7186437e949c7588167085df14e10e9c0a73"
13
- },
14
- "model.safetensors": {
15
- "bytes": 8411558400,
16
- "sha256": "dabeb7bc3f43bf6ea7d20ecfdac8758b3945517a991809a5772988829598e893"
17
- },
18
- "serving.json": {
19
- "bytes": 126,
20
- "sha256": "34ae0348497abc99bedee0e8f65b4f6de5bc7888f7347ca30cb926b75acf8ca6"
21
- },
22
- "temperature.json": {
23
- "bytes": 2717,
24
- "sha256": "a0f72cd2d0a653e81051e5a0c77fc1a69131552a8102b580a93a6dbe7908b2da"
25
- },
26
- "tokenizer.json": {
27
- "bytes": 19989509,
28
- "sha256": "bd53432f0de26d67a83b634040d4f043053da4ecd0c759e7f4b24ad4f8bb9a81"
29
- },
30
- "tokenizer_config.json": {
31
- "bytes": 1127,
32
- "sha256": "171ecbe7ddae98d11840698f7df2b8d5b4722139db0f0620d3bbf429bd656250"
33
- }
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  {
2
+ "CONTAMINATION.md": {
3
+ "bytes": 930,
4
+ "sha256": "1f2eb3e028e40fc2baeb5e6f48d706493c09dffd5b23c18147b132063fe2e581"
5
+ },
6
+ "Dockerfile": {
7
+ "bytes": 1201,
8
+ "sha256": "b353502e02205a000a48a4ea4478328e8461ac012f246b23c7cfcba572ac69f3"
9
+ },
10
+ "LICENSE": {
11
+ "bytes": 11358,
12
+ "sha256": "c95bae1d1ce0235ecccd3560b772ec1efb97f348a79f0fbe0a634f0c2ccefe2c"
13
+ },
14
+ "NOTICE": {
15
+ "bytes": 1347,
16
+ "sha256": "0131c7b4b198ca2befcd123f0ec0078fa13a078d4c447c258adac0ea41911027"
17
+ },
18
+ "PROVENANCE.md": {
19
+ "bytes": 977,
20
+ "sha256": "953551e746a887044cc0ce65dec9b96ea3a763d69fda7d3a296f524bb37bca19"
21
+ },
22
+ "README.md": {
23
+ "bytes": 4488,
24
+ "sha256": "31ecd4e2fc669a6a51673b940a3ae7eb3ac79d2092811da59bec3cf5e08c8234"
25
+ },
26
+ "RUNBOOK.md": {
27
+ "bytes": 2648,
28
+ "sha256": "61d9c4ae885406dce42f2f21d30da8f827d26b4472b0d4671b98d3e9b773ba5c"
29
+ },
30
+ "chat_template.jinja": {
31
+ "bytes": 7756,
32
+ "sha256": "a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715"
33
+ },
34
+ "config.json": {
35
+ "bytes": 1979,
36
+ "sha256": "63f47812d0f11118e4d252d2b3ad488707eb9287a11589f4fd382a1d31182724"
37
+ },
38
+ "docs/lora-cli.md": {
39
+ "bytes": 7501,
40
+ "sha256": "8b4be9b9256822ff6ba545d4cac874fa405846da9d466525e958f0bbc69507d7"
41
+ },
42
+ "docs/observations/one-lora-all-verticals.md": {
43
+ "bytes": 9088,
44
+ "sha256": "e385b92e333eaaa9395a09daf26c09420645bee242456552a55500db45919bc7"
45
+ },
46
+ "docs/readmes/README.zh.md": {
47
+ "bytes": 878,
48
+ "sha256": "2f1e5dc3bdae9e1b853cce92b236dfb9eb668c6139c0d33af38cd08acc05809b"
49
+ },
50
+ "evaluation/benchmark-summary.json": {
51
+ "bytes": 36014,
52
+ "sha256": "78983f2d4f3d2c708159879ff1e66b6da7a2a10d95f732417fe8b27c39f3c1ae"
53
+ },
54
+ "evaluation/index.json": {
55
+ "bytes": 10559,
56
+ "sha256": "6f2ef43841fc619b3ba7bdf9d4d7b5fc7d17055048dc155bd45a61f92d3dbe4b"
57
+ },
58
+ "evaluation/release-validation.json": {
59
+ "bytes": 413,
60
+ "sha256": "163475465b5d97d1c774d284ed637352beab136fa737b5c8d464e6069d92de89"
61
+ },
62
+ "evaluation/scores.json": {
63
+ "bytes": 33084,
64
+ "sha256": "5bccdf55495daf82396123ca1062d084e910d603536f27f4950dea037b84122e"
65
+ },
66
+ "evaluation/serial-latency-preflight-corrected.json": {
67
+ "bytes": 336,
68
+ "sha256": "db1da0eb255ea38105a2d8e76e221e0ae50b18b6ad37737a10787240e3f8e567"
69
+ },
70
+ "generation_config.json": {
71
+ "bytes": 116,
72
+ "sha256": "62153eb6c69f2e1f426beaa8002b7186437e949c7588167085df14e10e9c0a73"
73
+ },
74
+ "history/v1.0/CONTAMINATION.md": {
75
+ "bytes": 26100,
76
+ "sha256": "a4f840155d12964dd9fc1dde90611c18252bb55082844145b37cd00ffe8ab090"
77
+ },
78
+ "history/v1.0/README.md": {
79
+ "bytes": 10639,
80
+ "sha256": "f468e58384b9978060038a43434a0ed6ce2973185dcb3ff7e059fdc0314bb1d2"
81
+ },
82
+ "history/v1.0/RUNBOOK.md": {
83
+ "bytes": 6268,
84
+ "sha256": "ab03ccc6bfbd4a9a7772e579dd1a729eec9a3ea072ca8c54ded21018c1d15ec3"
85
+ },
86
+ "model-00001-of-00002.safetensors": {
87
+ "bytes": 4972947968,
88
+ "sha256": "da734796f724511e86abffb00d21a7cc6e249047f60e567c10ad064e83a0810f"
89
+ },
90
+ "model-00002-of-00002.safetensors": {
91
+ "bytes": 3438610328,
92
+ "sha256": "3ac28e54c66a3370138bf6ca3be7c3ed3d90b751f5017f24dbfd91e846ce919c"
93
+ },
94
+ "model-files/serving.json": {
95
+ "bytes": 128,
96
+ "sha256": "ffe91e4ad89f007666e84328b0168755bb4a887b366a6a87c89bf94aace38f9e"
97
+ },
98
+ "model.safetensors.index.json": {
99
+ "bytes": 41993,
100
+ "sha256": "83620b40d724f8b286580b5c7c504222b0bdbdd7dc9f068e565132409c7eec9d"
101
+ },
102
+ "reference/eval/__init__.py": {
103
+ "bytes": 0,
104
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
105
+ },
106
+ "reference/eval/systemone_vllm.py": {
107
+ "bytes": 25186,
108
+ "sha256": "881195545231b7b26c7753d4a43fdce5d65a2c49b50a78aec5eee69468e59136"
109
+ },
110
+ "reference/kev/__init__.py": {
111
+ "bytes": 0,
112
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
113
+ },
114
+ "reference/kev/api.py": {
115
+ "bytes": 7086,
116
+ "sha256": "23bac9af0e79702428447c62662b88910071595f6171d9e3c82d6fa35fb0dbd1"
117
+ },
118
+ "reference/midtrain/__init__.py": {
119
+ "bytes": 0,
120
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
121
+ },
122
+ "reference/midtrain/encode.py": {
123
+ "bytes": 19164,
124
+ "sha256": "fb0d35c055c7052a3a3b019cd2cb4de1857ca733467680fa6182a106b045ecec"
125
+ },
126
+ "reference/midtrain/letter.py": {
127
+ "bytes": 12651,
128
+ "sha256": "e053b6dd1790818e8473fea4ad5350c65f9de53cd59e1a750a3bdff8d5085963"
129
+ },
130
+ "reference/midtrain/rawprompt.py": {
131
+ "bytes": 11856,
132
+ "sha256": "5abe943f8c39e84018006fcea3fd32df1df89635eba1c87639b04057654a2ffa"
133
+ },
134
+ "reference/midtrain/tokens.py": {
135
+ "bytes": 3488,
136
+ "sha256": "7fbc482959e405dcc537bfadf0fa24df2d89bcaaab5919bcb765a70ea81e21de"
137
+ },
138
+ "run.sh": {
139
+ "bytes": 915,
140
+ "sha256": "d5b7b3e62d43c5f0dae4779f723b1eb4408aa9c21fcbdb6ed65e1da049dd050a"
141
+ },
142
+ "server/README.md": {
143
+ "bytes": 849,
144
+ "sha256": "e32014b15ad7e0aa37623d7a5c4561d68f5cd25c9f5514339a8e36d886c1b36f"
145
+ },
146
+ "server/pyproject.toml": {
147
+ "bytes": 565,
148
+ "sha256": "f5d1763d77797fab431a8d05b1a457278d5468f1487636545ae290c4b6e7ff53"
149
+ },
150
+ "server/src/wald_serve/__init__.py": {
151
+ "bytes": 139,
152
+ "sha256": "6794303c203fd5ae4dc9246eb4ce75be8006a6e058c9c7f572896e1b880ab961"
153
+ },
154
+ "server/src/wald_serve/__main__.py": {
155
+ "bytes": 51,
156
+ "sha256": "540fd0a5992ca535482a9d44b2e268ce3a39bb47a0576f301214afa5ef4494b9"
157
+ },
158
+ "server/src/wald_serve/engine.py": {
159
+ "bytes": 13300,
160
+ "sha256": "09672d5a560ab5f5f2b9f432d176f6a151b7fcce5ea7729763e8f50af1d6231a"
161
+ },
162
+ "server/src/wald_serve/prompt.py": {
163
+ "bytes": 4192,
164
+ "sha256": "bb45a10734f2546eb1ea1bd7e8b5717ecd8305a4aded0b816f80cd7e85188f7a"
165
+ },
166
+ "server/src/wald_serve/server.py": {
167
+ "bytes": 7195,
168
+ "sha256": "6eaf25b7b9eecf3d375b7f9b87ed4b16de211af7e5689966287c76e1e7733cfd"
169
+ },
170
+ "server/src/wald_serve/wire.py": {
171
+ "bytes": 3670,
172
+ "sha256": "836ce54ce93016a98f94a6beaa508cc03982e24c3d3b4d62b8ef667389cd14af"
173
+ },
174
+ "server/tests/fakevllm.py": {
175
+ "bytes": 2895,
176
+ "sha256": "e1a6c2cdf113d491bad0cb8efc292d1323c16ee70609ee0dfe81a8fab222a08e"
177
+ },
178
+ "server/tests/test_parity.py": {
179
+ "bytes": 4392,
180
+ "sha256": "cd1e4142090076114f2b07efce49fdc5466e302a5c79996b993f3833a3457566"
181
+ },
182
+ "server/tests/test_server.py": {
183
+ "bytes": 11924,
184
+ "sha256": "8f8fecbcff18abb6b44da743f6e041472124ba4188881f9e75845348e46ca405"
185
+ },
186
+ "serving.json": {
187
+ "bytes": 128,
188
+ "sha256": "ffe91e4ad89f007666e84328b0168755bb4a887b366a6a87c89bf94aace38f9e"
189
+ },
190
+ "temperature.json": {
191
+ "bytes": 4348,
192
+ "sha256": "a4e9a1983a2246de34ce4c4b48e5d501daf7c66ae4f3654a79591f0ed0059da5"
193
+ },
194
+ "tokenizer.json": {
195
+ "bytes": 19989509,
196
+ "sha256": "bd53432f0de26d67a83b634040d4f043053da4ecd0c759e7f4b24ad4f8bb9a81"
197
+ },
198
+ "tokenizer_config.json": {
199
+ "bytes": 1127,
200
+ "sha256": "171ecbe7ddae98d11840698f7df2b8d5b4722139db0f0620d3bbf429bd656250"
201
+ },
202
+ "tools/export_contamination.py": {
203
+ "bytes": 5572,
204
+ "sha256": "a5723b781031c0bde60349691b82a63f150aa408afaf5621a893bde6ee82f6f8"
205
+ },
206
+ "tools/export_figure_data.py": {
207
+ "bytes": 10121,
208
+ "sha256": "ba889a4b90d59c9487cbca34768a5ea90fafb805c5f246124d1f3475ee067a43"
209
+ },
210
+ "tools/make_figures.py": {
211
+ "bytes": 19067,
212
+ "sha256": "207d02dea21ee9a83763490247b4aa0fe146068cf1c4922a07e4647a3fc546f8"
213
+ },
214
+ "tools/prepare_model_dir.py": {
215
+ "bytes": 1890,
216
+ "sha256": "0c1811fbfd98fc3a8c802298de3691b5039455aceef1475b73cfced72365708e"
217
+ },
218
+ "tools/secret_scan.py": {
219
+ "bytes": 1698,
220
+ "sha256": "ad20de47de5bbe7f72417f3d87e6f72aae7987fab913eb814b818e4a4bbc6e1e"
221
+ }
222
+ }
NOTICE CHANGED
@@ -17,3 +17,5 @@ Third-party code and text in server/
17
  Apache License, Version 2.0. It is used only by the `repeat_state_plain` prompt format.
18
 
19
  No benchmark items or training data are included in this repository.
 
 
 
17
  Apache License, Version 2.0. It is used only by the `repeat_state_plain` prompt format.
18
 
19
  No benchmark items or training data are included in this repository.
20
+
21
+ 2026-09-29 release: Wald-Q4B 022D0-f7. See PROVENANCE.md for later training-source rights limitations; the code/base license does not grant rights to third-party training texts.
PROVENANCE.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Training data
2
+
3
+ **WaldGen** is the name of our internally generated decision-training corpus. It covers structured decisions and short reasoning. The model also uses public training datasets; WaldGen does not rename or claim authorship of those sources.
4
+
5
+ Public-source acknowledgments include [ACOS](https://github.com/NUSTM/ACOS), [NLI4CT](https://github.com/ai-systems/Task-2-SemEval-2024), [RAGTruth](https://github.com/ParticleMedia/RAGTruth), and [VAST](https://github.com/emilyallaway/zero-shot-stance). RAGTruth contains third-party MS MARCO/Yelp contexts. [MS MARCO terms](https://microsoft.github.io/msmarco/) limit dataset use to non-commercial research; other source-text permissions are not uniformly specified. Model/code licensing does not grant rights in those texts or constitute commercial clearance.
6
+
7
+ Base model: [Qwen3.5-4B-Base](https://huggingface.co/Qwen/Qwen3.5-4B-Base), Apache-2.0. No training rows or benchmark request payloads are distributed here.
README.md CHANGED
@@ -7,195 +7,50 @@ language:
7
  tags:
8
  - decision-model
9
  - calibration
10
- - typesafe
11
  - decision-index
 
12
  pipeline_tag: text-generation
13
  ---
14
 
15
- <div align="center">
16
- <h1>Wald-4B v1.0</h1>
17
- <p><strong>A calibrated decision model: one forward pass turns a state and a question into a probability for every option.</strong></p>
18
- </div>
19
 
20
- **W**ait **A** bit, **L**ook, then **D**ecide. Sure? Decide now. Not sure? Look once more. Also named after Abraham Wald (1902–1950), who founded sequential analysis: stop as soon as the evidence is enough.
21
 
22
- ---
23
-
24
- <p align="center"><a href="https://huggingface.co/Harry19081/Wald-4B">English</a> · <a href="https://huggingface.co/Harry19081/Wald-4B/blob/main/docs/readmes/README.zh.md">简体中文</a></p>
25
-
26
- ---
27
-
28
- **Wald-4B turns a decision into one forward pass.** Give it a state and a question, and it returns a calibrated
29
- probability for every option: which tool to call, whether to ask the user, which intent, whether an output is safe. Act
30
- above 0.9, ask a person below 0.6, and send the cases in between to a larger model. Under effort `medium` it thinks
31
- (≤ 512 tokens) only when its top probability is below 0.7, about one question in nine; the answer is always a
32
- distribution, never parsed text.
33
-
34
- ## At a glance
35
-
36
- - **Decision Index 0.2.1: 53.91** (sample estimate), #6 of 67 on the board and the best 4B entry ([Decision Index](#decision-index-021)).
37
- - **XL hidden split: 63.2**, #2 behind Jev and the best 4B ([XL](#xl-hidden-split)).
38
- - **Your task for under $2:** one LoRA beats Jev on 9 of 12 public tasks ([Verticals](#verticals-a-quick-lora-per-task)).
39
- - **~50 ms per decision** at p50, about 1/5 of Jev's price per 1k decisions ([Latency and cost](#latency-and-cost)).
40
-
41
- ![Decision Index vs model size](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/di-vs-size.svg)
42
-
43
- ## How it works
44
-
45
- A 4B model built on Qwen/Qwen3.5-4B-Base @ `1001bb4d826a52d1f399e183466143f4da7b741b`: full-parameter decision training,
46
- then three merged LoRAs (refinement with KL replay, short-thought distillation, task coverage). Each question becomes one
47
- plain prompt with no chat template and no new tokens. The state is written twice (format `repeat_state_plain`; the
48
- second copy is introduced by one fixed sentence, see NOTICE), then:
49
-
50
- ```
51
- Question: {instructions}
52
- (A) {option 1}
53
- (B) {option 2}
54
- Answer: (
55
- ```
56
-
57
- The option-letter logits at the last position give the distribution. Above 26 options, options are read in ⌈n / 26⌉
58
- chunks and the chunk winners are read again (knockout). A temperature per (question type, option count), fitted on our own
59
- held-out rows, changes confidence only. The prompt format, the policy and the context limit are fixed in `serving.json`
60
- and are the same for every benchmark.
61
-
62
- **Training data** (not released): four stages over 84 public sources (83 datasets read through their train splits only, NLI4CT also its dev split,
63
- plus the Decision Index kit's MIT Home-appliance generator), code-generated and code-labelled decision items, and KL
64
- replay of earlier rows. Part of the data is synthetic: items and short thoughts written or labelled by much larger
65
- frontier LLMs — far above 120B parameters where the size is published. Every source, and how Decision Index items
66
- were screened: [CONTAMINATION.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/CONTAMINATION.md).
67
-
68
- ## Benchmarks
69
-
70
- What we measured: the Decision Index 0.2.1 (the board), XL (a decision benchmark with a hidden split), task LoRAs on
71
- public verticals, and serving latency. All numbers are our own reads, zero-shot unless marked, with the same requests
72
- for every system; rows marked *board* are the official leaderboard's.
73
-
74
- ### Decision Index 0.2.1
75
-
76
- Our read is a **stratified sample of 6,948 requests** (37,469 questions; the kit's own sampler and seed; HLE not
77
- rebuilt), scored with the 0.2.1 rules. Jev reads 57.19 on this sample against its board 57.89, so the sample reads about
78
- 0.7 points low. Board rows are official full-suite numbers ([board](https://huggingface.co/spaces/multimodalart/jev-decision-index)).
79
-
80
- | system | size | Decision Index 0.2.1 | source |
81
- |---|---|---|---|
82
- | Jev (hosted API, jev-1.13.0) | undisclosed | 57.19 [55.29, 58.60] · board 57.89 | ours, sample · board |
83
- | simple-jev · Qwen3.8-27B (board #4) · Jebadiah 27B (#5) | 27B | 55.74 · 54.67 | board |
84
- | **Wald-4B v1.0 · effort medium** | 4B | **53.91** [51.87, 55.27] | ours, sample |
85
- | reflex 27B (board #6) · Decider chat · Qwen3.6-27B (#7) | 27B | 52.16 · 51.35 | board |
86
- | Qwen3.8-27B, untrained, our letter readout (one pass) | 27B | 47.78 [45.95, 49.17] | ours, sample |
87
- | Decider 35B-A3B (board #11) | 35B-A3B | 47.11 | board |
88
- | Decider 4B (board #15) | 4B | 40.70 | board |
89
- | Kev 9B (board #23) · Kev 4B (#28) | 9B · 4B | 38.48 · 34.64 | board |
90
-
91
- 53.91 places #6 on the 67-entry board (between Jebadiah 27B and reflex 27B); against Jev on the same sample it is
92
- −3.3 [−4.9, −1.8]. On the same 4B base it is +19.3 over Kev 4B.
93
 
94
- ![Decision Index by area](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/di-areas.svg)
 
 
 
 
95
 
96
- **Disclosures.** 363 Decision Index item ids reached our training data through public train splits or shared upstream
97
- sources (never a test split); counting them wrong gives **53.62**. Home appliance scores 1.00 (skill): the last stage
98
- trained on new households from the benchmark's own MIT generator (new seed, 0 shared states); with Home appliance held
99
- at the parent build's answers the index is 51.57 [49.56, 52.95]. Details: [CONTAMINATION.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/CONTAMINATION.md).
100
 
101
- **Same-request suite.** JevBench public 231 (accuracy %): Wald-4B v1.0 **88.3** (packaged server), Jev 86.6, raw
102
- Qwen3.5-4B-Base 67.5, Laya 421M 58.0, CLM-8B 39.0. CLM-8B and Laya have no Decision Index read.
103
-
104
- ### XL (hidden split)
105
-
106
- A decision benchmark we built (13 families; ranked on a hidden split of 1,895 items, chance-corrected composite XL-Int).
107
- We are its authors, so no number is independent; our models score far higher on its public split than on the hidden one,
108
- so only the hidden split is reported.
109
-
110
- | system | XL-Int (hidden) | rank |
111
- |---|---:|---:|
112
- | Jev (API, v1.13) | 73.0 [69.8, 75.9] | #1 |
113
- | **Wald-4B v1.0 · effort medium** | **63.2** [60.0, 66.4] | **#2**, best 4B |
114
- | Cygnet (gemma-4-12B-it + shim) | 59.8 [56.7, 62.7] | #4 |
115
- | Laya 421M · CLM-8B | 13.4 · 12.7 | #24 · #25 |
116
-
117
- ### Verticals: a quick LoRA per task
118
-
119
- ![Verticals](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/verticals.svg)
120
-
121
- One LoRA on the task's labels costs $0.12–$1.81 of GPU time (< 2 GPU-hours); every other system is zero-shot on the
122
- same fixed test items and byte-identical requests. Differences to Jev are paired bootstrap 95 % CIs; ▲ = the CI excludes
123
- 0. These reads use the pre-release build v0.9 (see Versioning).
124
-
125
- | task (metric) | Wald-4B v0.9 + LoRA | Jev |
126
- |---|---:|---:|
127
- | MetaTool (tool selection, accuracy) | **97.0** | 83.0 |
128
- | BANKING77 (77 intents, macro-F1) | **92.8** | 78.1 |
129
- | AndroidControl (phone-agent action, accuracy) | **85.8**¹ | 73.4 |
130
- | ToxicChat (toxic-class F1) | **84.9** | 80.4 |
131
- | COLD, Chinese offensive language (macro-F1, full 5,323-item test) | **84.1** [83.2, 85.1] | 75.3 |
132
- | When2Call (call / ask / refuse, accuracy) | **83.0**² | 72.6 |
133
-
134
- ¹ Trained on all training steps; the figure shows the first all-labels arm (81.6). ² Best of 8 LoRA configurations read
135
- on test; the dev-selected one scores 82.6. COLD: paired +8.8 [7.7, 10.0]; 83.8 on the 4,823 items not used for
136
- temperature fitting; ties the best published 83.7.
137
-
138
- #### With few labels, starting from Wald beats LoRA on the raw base
139
-
140
- Same LoRA recipe, labels and test items; Wald-4B (v0.9) minus raw Qwen3.5-4B-Base, points, paired 95 % CIs.
141
- **Bold** = the CI excludes 0.
142
-
143
- | task (metric) | 0 labels (zero-shot) | 300 labels |
144
- |---|---:|---:|
145
- | When2Call (accuracy) | **+21.2** [17.0, 25.2] | +2.0 [−0.2, 4.2] |
146
- | BANKING77 (macro-F1) | **+10.9** [7.6, 14.7] | **+4.4** [2.0, 7.2] |
147
- | SGD intent (macro-F1) | +2.8 (n.s.) | −0.1 |
148
-
149
- ### Latency and cost
150
-
151
- ![Latency and cost](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/latency-cost.svg)
152
-
153
- One question, one pass, serial: p50 26 ms on one RTX PRO 6000 (51 ms on an H100). Batched: 115 decisions/s (fp8), about
154
- $0.007 per 1,000 decisions at the GPU-hour price; the Jev API lists $0.04. Under `medium` the median stays at the
155
- one-pass level and the p95 is about one second. Measured on v0.9, which has the same architecture and serving path.
156
-
157
- ## Train your own task LoRA (CLI, releasing soon)
158
-
159
- Every vertical above was made with one CLI, which we plan to release soon. It splits a labelled dataset with fixed seeds,
160
- checks the test items for leaks, trains a LoRA on Wald-4B on a GPU you choose, reads the same test items with your LoRA,
161
- Jev and zero-shot baselines, and serves the adapter behind the same `/v1/systemone` API.
162
-
163
- ![Architecture of the vertical CLI](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/lora-cli-architecture.svg)
164
-
165
- Stages, guards, costs and a command preview: [docs/lora-cli.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/docs/lora-cli.md).
166
-
167
- ## Serving
168
 
169
  ```sh
170
- docker build -t wald-serve .
171
- docker run --gpus all -v /path/to/Wald-4B:/model:ro -p 8000:8000 wald-serve # ready when GET /health is {"ok": true}
 
172
  ```
173
 
174
- Without Docker: `./run.sh /path/to/Wald-4B`. The server takes `--effort` (`none | low | medium | high | high-k<k>`), and a
175
- request may carry `"effort"` to override it. Declared: effort `medium`, prompt format `repeat_state_plain`, 131,072
176
- tokens per question prompt (longer → HTTP 422, never truncated), 1–255 options. Commands, limits and runtimes:
177
- [RUNBOOK.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/RUNBOOK.md). Weights: bf16, `model.safetensors` sha256
178
- `dabeb7bc3f43bf6ea7d20ecfdac8758b3945517a991809a5772988829598e893`; every file's sha256 is in `MANIFEST.json`.
179
 
180
- ## Limits
181
 
182
- - Our non-regression gate against the parent build has no failing metric. Two losses exceed the tolerance but are not
183
- significant after correction: XL long_policy −6.7 [−11.6, −2.0] and JevBench public 231 −2.6 [−5.2, 0.0] (plain-prompt
184
- read).
185
- - The temperature table is the parent build's, the one the measured Decision Index read used.
186
- - Our Decision Index read used a 16,384-token context; prompts longer than that were counted unsupported there and are
187
- answered by the packaged server.
188
 
189
- ## Versioning
190
 
191
- | version | status | checkpoint | base | date | policy | prompt format |
192
- |---|---|---|---|---|---|---|
193
- | **v1.0** | current release | internal build 021A0-f10 | Qwen/Qwen3.5-4B-Base | 2026-09-27 | effort `medium` | `repeat_state_plain` |
194
- | v0.9 | pre-release; the vertical LoRAs and latency above | internal build 015D0-f4 | Qwen/Qwen3.5-4B-Base | 2026-09-26 | effort `medium` | plain |
195
 
196
- v1.x = serving or LoRA refreshes on the same base generation; v2.0 = a new base generation.
197
 
198
- ---
199
 
200
- Apache-2.0 (weights and code), subject to the licence of the base model Qwen/Qwen3.5-4B-Base (Apache-2.0, © the Qwen
201
- team, Alibaba Cloud). Third-party notices: [NOTICE](https://huggingface.co/Harry19081/Wald-4B/blob/main/NOTICE).
 
7
  tags:
8
  - decision-model
9
  - calibration
 
10
  - decision-index
11
+ - wald-q4b
12
  pipeline_tag: text-generation
13
  ---
14
 
15
+ # Wald-Q4B · 22D0-f7
 
 
 
16
 
17
+ **Latest default weights: `022D0-f7` (2026-09-29).** This repository now serves the Qwen 4B model used for our complete Decision Index 0.2.1 run: **54.59**, with **150,317/150,317 successful requests**, including HLE. This is an author-run result using the pinned reproduction kit; leaderboard admission and the maintainer's serial latency check are pending.
18
 
19
+ Wald returns a probability distribution over the supplied options. The evaluated **high** policy reads option-letter logits, generates up to 512 reasoning tokens, and reads the options again. The default has changed from the old v1.0 medium policy to **high**. `none`, `low`, and `medium` remain available, but the 54.59 score applies to the frozen high configuration only.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
+ | Release / configuration | Decision Index 0.2.1 | Evaluation scope |
22
+ |---|---:|---|
23
+ | **22D0-f7 · high · repeat_state_plain · clean calibration** | **54.59** | Complete suite, 150,317 requests, all successful |
24
+ | 22D0-f7 · previous high configuration | 54.02 | Historical 6,948-request sample; older calibration had known overlap |
25
+ | Previous v1.0 | 53.91 | Historical sample, different weights and medium policy |
26
 
27
+ Full-run raw index: 65.90; breadth skill: 52.62. [Scores](evaluation/scores.json), [per-benchmark results](evaluation/benchmark-summary.json), and [submission run artifacts](https://huggingface.co/datasets/Harry19081/Wald-Q4B-decision-index-results/tree/main/runs/wald-q4b-22d0-f7-full021). Sample and complete-suite results are not interchangeable. No official rank or SOTA claim is made here.
 
 
 
28
 
29
+ ## Load and serve
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  ```sh
32
+ hf download Harry19081/Wald-4B --revision 22D0-f7 --local-dir ./Wald-Q4B-22D
33
+ cd Wald-Q4B-22D
34
+ ./run.sh "$PWD"
35
  ```
36
 
37
+ Requires a Linux CUDA machine and `uv`; the launcher installs vLLM 0.30.0 and the included `wald-serve` package. Use `POST /v1/systemone` with `state` and typed `questions`. `GET /health` reports the effective policy. See [RUNBOOK.md](RUNBOOK.md) for the frozen reference engine and reproduction settings. Standard `AutoModelForCausalLM` loading works for the weights, but generic chat/text generation does not reproduce this decision protocol.
 
 
 
 
38
 
39
+ ## Frozen evaluation protocol
40
 
41
+ - Base: `Qwen/Qwen3.5-4B-Base@1001bb4d826a52d1f399e183466143f4da7b741b`.
42
+ - Weights: the two BF16 safetensors shards listed in `MANIFEST.json`; no further quantization or weight conversion.
43
+ - Plain parenthesized letter readout, `repeat_state_plain` prompt, high gate 1.01, maximum 512 reasoning tokens, one thought, wide-option knockout, 131,072-token context limit. Over-limit requests are refused, never truncated.
44
+ - `temperature.json` is the exact 256-row XL-dev fit used for this complete run (SHA256 `a4e9a1983a2246de34ce4c4b48e5d501daf7c66ae4f3654a79591f0ed0059da5`). Nineteen known DI overlaps were excluded from the old 275-row fit; HLE screening found no additional match. No DI labels or DI score were used for this fit.
45
+ - Kit: `apolinario/decision-index@87d4650b42b377c0291a89c1f1a879f9b31082bf`, edition 0.2.1. Hardware: one NVIDIA RTX PRO 6000 96GB, BF16, vLLM 0.30.0.
46
+ - Concurrent execution is for throughput, not the official latency test. A 32-request serial preflight had median 821.3ms; the separate maintainer 750-request serial test remains **unverified**. This release does not claim the old version's ~50ms latency.
47
 
48
+ ## Training data
49
 
50
+ Trained on **WaldGen**, our generated decision-training corpus, together with public training datasets. Training combines decision learning, short reasoning, LoRA refinement and RLCD. We publish the model weights; the training corpus is not included.
 
 
 
51
 
52
+ Public-source attribution and usage notes: [PROVENANCE.md](PROVENANCE.md). Some source text terms are research-restricted or unspecified; this release is not commercial-rights clearance. Known exact benchmark overlaps were filtered, but semantic/pretraining overlap is not ruled out. [Evaluation notes](CONTAMINATION.md).
53
 
54
+ ## Previous release
55
 
56
+ The previous default HF revision is `78ebf43de121d7f2afef4fe1dae79019aa1544b0`, retained under tag `v1.0-legacy`. Its XL, vertical LoRA and latency results describe that historical version; they have not been remeasured on 22D0-f7. Older adapters must be used with their recorded parent revision. [Archived v1.0 card](history/v1.0/README.md).
 
RUNBOOK.md CHANGED
@@ -1,110 +1,29 @@
1
- # Runbook for the Decision Index maintainers
2
 
3
- These steps serve Wald-4B on one NVIDIA RTX PRO 6000 (96 GB) so that the kit's `http` engine can run the full 0.2.1
4
- suite against it.
5
 
6
- ## 1. Install
7
-
8
- The weights are in the Hub repo `Harry19081/Wald-4B` (bf16 safetensors, tokenizer, config, `temperature.json`,
9
- `serving.json`, `MANIFEST.json`). The code is in this repository, pinned by commit.
10
 
11
  ```sh
12
- huggingface-cli download Harry19081/Wald-4B --local-dir /models/Wald-4B
13
- cd /models/Wald-4B && python - <<'EOF' # optional: verify every file against MANIFEST.json
14
- import hashlib, json; m = json.load(open("MANIFEST.json"))
15
- for f, v in m.items():
16
- h = hashlib.sha256(open(f, "rb").read()).hexdigest(); assert h == v["sha256"], f
17
- print("ok", len(m))
18
- EOF
19
  ```
20
 
21
- Choose one of the following.
22
-
23
- - **Docker:**
24
- ```sh
25
- docker build -t wald-serve .
26
- docker run --gpus '"device=0"' -v /models/Wald-4B:/model:ro -p 8000:8000 wald-serve
27
- ```
28
- - **No Docker** (Python 3.12 and `uv`):
29
- ```sh
30
- ./run.sh /models/Wald-4B
31
- ```
32
- - **By hand:**
33
- ```sh
34
- uv venv -p 3.12 .venv && VIRTUAL_ENV=.venv uv pip install "vllm==0.30.0" ./server
35
- VLLM_USE_FLASHINFER_SAMPLER=0 .venv/bin/wald-serve --model /models/Wald-4B --port 8000
36
- ```
37
- `VLLM_USE_FLASHINFER_SAMPLER=0` is needed because FlashInfer's sampler refuses sm_120 in vLLM 0.30.0.
38
 
39
- In every case, `wald-serve` starts vLLM 0.30.0 on the weights: bf16, loopback only, `--max-model-len 131072`,
40
- `--gpu-memory-utilization 0.90`, `--max-num-seqs 256`, `--seed 0`. It then serves `POST /v1/systemone` on port 8000. The
41
- service is ready when `curl -s localhost:8000/health` returns `{"ok": true, ...}` with the effective configuration. The
42
- first start takes about 2–4 minutes (weights load and CUDA graph capture).
43
 
44
- ## 2. Run the suite
45
 
46
  ```sh
47
- python -m decision_index run --engine http --option base_url=http://127.0.0.1:8000 --option model=wald-4b \
48
- --option timeout=3600 ...
 
49
  ```
50
 
51
- - **Send requests concurrently.** We ran 16–32 kit processes over group-balanced shards against one server, and vLLM
52
- batches them. A single sequential client would be several times slower (section 4).
53
- - **Use a long timeout (≥ 3,600 s).** Under load, the p95 request latency was several minutes, from the requests with
54
- many long questions (BRIGHT / ToolRet chunks, ContractNLI, ACOS).
55
- - **A 422 means a declared capacity limit**, and the body contains `maximum context length`. Count it as unsupported,
56
- not as an error.
57
- - **Smoke test:**
58
- ```sh
59
- curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{"state":"I was charged twice.","questions":{"q":{"type":"noul","instructions":"Is this a billing problem?"}}}'
60
- ```
61
-
62
- ## 3. Declared configuration and limits
63
-
64
- | item | value |
65
- |---|---|
66
- | declared policy | **effort `medium`**: one pass; if the top probability is below 0.7, a thought of at most 512 tokens (temperature 0.6, top-p 0.95, top-k 20, seed = hash of the request and question id), then a second read |
67
- | prompt format | `repeat_state_plain` (the state written twice), from `serving.json`; the same for every benchmark |
68
- | readout | option-letter logits at the last position; tempered with `temperature.json` (A table for one-pass answers, B512 after a thought) |
69
- | > 26 options | knockout: ⌈n / 26�� consecutive chunks, then a final over the chunk winners; one pass; up to 676 options (the wire allows 255) |
70
- | context | 131,072 tokens per question prompt; longer → HTTP 422 `maximum context length`, never truncated |
71
- | thought that does not fit | if prompt + 512 + 64 tokens exceeds the context, the one-pass answer is returned |
72
- | questions per request | no fixed limit; read concurrently (8 at a time per request); tested up to 64 |
73
- | determinism | same request → same thought seed → same answer, up to bf16 batch-order noise (argmax agreement 99.7 % between two reads of 36k questions) |
74
-
75
- Nothing in the server depends on the benchmark: there is no per-benchmark prompt, option filtering, retry or truncation.
76
-
77
- ## 4. Expected runtime of the full suite on one RTX PRO 6000
78
-
79
- The full suite has about 150,500 scoreable requests, including the display-only MMLU / ARC and RouterBench (not scored
80
- in 0.2.1). HLE is not counted here.
81
-
82
- **How we estimated.** Our basis is the measured wall time of our 6,948-request sample reads:
83
- - one pass: 875 s;
84
- - medium: 1,702 s. Both were measured on one card shared with a second engine, with 16 kit processes each.
85
- - always-think: 5,520 s, on a shared card, including a k = 4 read of the knowledge and language rows.
86
-
87
- We scaled these by a full-to-sample work ratio of 12–15×. That ratio weights each benchmark's per-request latency by its
88
- full size; the sample over-represents long-prompt benchmarks. A dedicated card is assumed to be 1.25–1.7× faster than
89
- our shared runs. `repeat_state_plain` writes the state twice, which adds about 30–60 % to prefill: this is an estimate,
90
- not measured on the full suite. The in-request question concurrency of this server shortens the tail of requests with
91
- many questions, and the table does not credit it.
92
-
93
- | policy | thinks on | plain prompt | repeat_state_plain (declared) |
94
- |---|---|---|---|
95
- | none | 0 % | ≈ 2–3 h | ≈ 2.5–4.5 h |
96
- | low | a few % | ≈ 2.5–4 h | ≈ 3–5.5 h |
97
- | **medium (declared)** | ≈ 12 % of questions | **≈ 3.5–6 h** | **≈ 4.5–9 h** |
98
- | high | every 2–26-option question | ≈ 7–12 h | ≈ 9–16 h |
99
- | high-k4 | every question, 4 thoughts | ≈ 12–20 h | ≈ 15–25 h |
100
-
101
- These are estimates, and our own full-suite read with the packaged server will replace them (CHECKLIST.md). We declare
102
- `medium`. `high-k4` would take most of a day on one card: prefill for every question would be about 2.3× that of `high`,
103
- and decoding 4×. Our measured `high-k4` gain over `high` was not significant (+0.48 [−0.4, +1.5] on the parent
104
- checkpoint), and that measurement applied k = 4 only to the knowledge and language benchmarks.
105
 
106
- ## 5. Throughput and latency (for reference)
107
 
108
- - One question, one pass, serial: p50 26 ms on one RTX PRO 6000; 51 ms on an H100.
109
- - `medium`, serial: p50 ≈ 52 ms, p95 ≈ 1.1 s (the questions that think).
110
- - Batched one-pass throughput: about 115 decisions/s on one RTX PRO 6000 (fp8). bf16 throughput was not measured separately.
 
1
+ # Reproduce Wald-Q4B 22D0-f7
2
 
3
+ Download the immutable HF tag 22D0-f7 (or the full HF commit in the submission) into a fresh directory. Do not mix old v1.0 single-file weights with the new shards. MANIFEST.json lists the exact model, tokenizer, temperature and code hashes.
 
4
 
5
+ ## Convenient packaged server
 
 
 
6
 
7
  ```sh
8
+ hf download Harry19081/Wald-4B --revision 22D0-f7 --local-dir ./Wald-Q4B-22D
9
+ cd Wald-Q4B-22D
10
+ ./run.sh "$PWD"
 
 
 
 
11
  ```
12
 
13
+ Default policy is high, repeat_state_plain, context 131072. Lower effort modes are alternative configurations with no 54.59 claim. GPU requirements: vLLM 0.30.0, BF16, NVIDIA RTX PRO 6000 96GB for comparison. The packaged server has parity tests against the reference below for prompts and answer probabilities. Scheduling may differ; latency is not established by those tests.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
+ ## Frozen reference protocol
 
 
 
16
 
17
+ The full run used eval.systemone_vllm from the private development checkout; that checkout was not committed at launch. The included reference/ files freeze the release-time implementation, with hashes in MANIFEST.json. This code provenance limitation is disclosed rather than presenting a later public commit as the original launch commit.
18
 
19
  ```sh
20
+ python -m vllm.entrypoints.openai.api_server --model "$PWD" --served-model-name Wald-Q4B-022D0-f7-full021 --host 127.0.0.1 --port 8321 --max-model-len 131072 --gpu-memory-utilization 0.60 --max-num-seqs 128 --seed 0
21
+ # Separate terminal, same environment:
22
+ PYTHONPATH="$PWD/reference" python -m eval.systemone_vllm --vllm http://127.0.0.1:8321 --served Wald-Q4B-022D0-f7-full021 --gate 1.01 --budget 512 --temperature "$PWD/temperature.json" --wide knockout --template paren --max-model-len 131072 --return-raw --prompt-format repeat_state_plain --port 8421 --model-name Wald-Q4B-022D0-f7-full021
23
  ```
24
 
25
+ Install the pinned kit `apolinario/decision-index@87d4650b42b377c0291a89c1f1a879f9b31082bf`, rebuild and verify its complete suite locally, then run its http engine against port 8421. Suite payloads are not redistributed. No request or option pruning/truncation. Complete saved responses are untouched and suitable for maintainer rescoring.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
+ Capacity: 131,072 tokens. Wide questions use ordered knockout over all supplied options. A thought that cannot fit falls back to the one-pass read. The full run had 0 unsupported and 0 errors. Concurrency ranged 16–40 request runners for throughput; timing is not the maintainer's serial admission gate. The 32-request preflight median 821.3 ms does not replace 750 private serial requests after warm-up.
28
 
29
+ Training/data/calibration limitations are in CONTAMINATION.md and PROVENANCE.md. Official admission remains pending.
 
 
config.json CHANGED
@@ -78,6 +78,6 @@
78
  },
79
  "tie_word_embeddings": true,
80
  "transformers_version": "5.17.0",
81
- "use_cache": false,
82
  "vocab_size": 248320
83
- }
 
78
  },
79
  "tie_word_embeddings": true,
80
  "transformers_version": "5.17.0",
81
+ "use_cache": true,
82
  "vocab_size": 248320
83
+ }
docs/lora-cli.md CHANGED
@@ -1,3 +1,5 @@
 
 
1
  # Fine-tune Wald-4B on your task (CLI, releasing soon)
2
 
3
  > **Preview.** The CLI is not public yet; we plan to release it soon. The commands below are preview syntax and may
@@ -6,10 +8,10 @@
6
  **One dataset in, one task model out, with an honest comparison to Jev.** The `vertical` CLI takes a labelled dataset (a
7
  Hugging Face repo, a URL, or your own file) and trains a LoRA on Wald-4B for that one task. It then reads the task's
8
  fixed test items with your LoRA, with Jev and with zero-shot baselines, using byte-identical requests, and writes a report
9
- with paired confidence intervals and calibration. The verticals in the [README](https://huggingface.co/Harry19081/Wald-4B#verticals-a-quick-lora-per-task)
10
  were all made this way. One LoRA costs $0.12–$1.81 of GPU time (under 2 GPU-hours).
11
 
12
- ![Architecture of the vertical CLI](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/lora-cli-architecture.svg)
13
 
14
  ## The pipeline
15
 
 
1
+ > Historical v1.0 documentation. Use HF revision `v1.0-legacy` and each adapter's recorded parent. These results and adapters are not validated on the current 22D0-f7 default.
2
+
3
  # Fine-tune Wald-4B on your task (CLI, releasing soon)
4
 
5
  > **Preview.** The CLI is not public yet; we plan to release it soon. The commands below are preview syntax and may
 
8
  **One dataset in, one task model out, with an honest comparison to Jev.** The `vertical` CLI takes a labelled dataset (a
9
  Hugging Face repo, a URL, or your own file) and trains a LoRA on Wald-4B for that one task. It then reads the task's
10
  fixed test items with your LoRA, with Jev and with zero-shot baselines, using byte-identical requests, and writes a report
11
+ with paired confidence intervals and calibration. The verticals in the [README](../README.md#verticals-a-quick-lora-per-task)
12
  were all made this way. One LoRA costs $0.12–$1.81 of GPU time (under 2 GPU-hours).
13
 
14
+ ![Architecture of the vertical CLI](../figures/lora-cli-architecture.svg)
15
 
16
  ## The pipeline
17
 
docs/observations/one-lora-all-verticals.md CHANGED
@@ -1,3 +1,5 @@
 
 
1
  # One LoRA for all verticals? (observation, 2026-09-27)
2
 
3
  **中文摘要:** 用一个 LoRA 代替每个任务各自一个 LoRA:在 13 个 vertical 的训练数据(外加几个 Decision Index 弱项的训练数据)上混训一个 LoRA,
 
1
+ > Historical v1.0 documentation. Use HF revision `v1.0-legacy` and each adapter's recorded parent. These results and adapters are not validated on the current 22D0-f7 default.
2
+
3
  # One LoRA for all verticals? (observation, 2026-09-27)
4
 
5
  **中文摘要:** 用一个 LoRA 代替每个任务各自一个 LoRA:在 13 个 vertical 的训练数据(外加几个 Decision Index 弱项的训练数据)上混训一个 LoRA,
docs/readmes/README.zh.md CHANGED
@@ -1,173 +1,7 @@
1
- <div align="center">
2
- <h1>Wald-4B v1.0</h1>
3
- <p><strong>经过校准的决策模型:一次前向,把状态和问题变成每个选项的概率。</strong></p>
4
- </div>
5
 
6
- **W**ait **A** bit, **L**ook, then **D**ecide(等一下,看一眼,再决定):有把握,立刻决定;没把握,再看一眼。名字也取自 Abraham Wald(1902–1950),序贯分析的创立者:证据够了就停下来做决定。
7
 
8
- ---
9
 
10
- <p align="center"><a href="https://huggingface.co/Harry19081/Wald-4B">English</a> · <a href="https://huggingface.co/Harry19081/Wald-4B/blob/main/docs/readmes/README.zh.md">简体中文</a></p>
11
-
12
- ---
13
-
14
- **Wald-4B 把一次决策变成一次前向。** 给它一段状态和一个问题,它为每个选项返回一个校准过的概率:调哪个工具、要不要问用户、
15
- 属于哪个意图、输出是否安全。概率高于 0.9 直接执行,低于 0.6 交给人,中间的交给更大的模型。在 `medium` 档位下,只有最高概率
16
- 低于 0.7 时它才先想一想(不超过 512 token),大约九题一次;输出始终是概率分布,不解析文本。
17
-
18
- ## 一览
19
-
20
- - **Decision Index 0.2.1:53.91**(样本估计),67 条榜单中排第 6,4B 中第一(见下文“基准测试”)。
21
- - **XL 隐藏集:63.2**,第 2,仅次于 Jev,4B 中第一。
22
- - **你的任务,不到 $2**:每个任务一个 LoRA,12 个公开任务中 9 个超过 Jev。
23
- - **每次决策约 50 ms**(p50),每千次决策的价格约为 Jev 的 1/5。
24
-
25
- ![Decision Index 与模型大小](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/di-vs-size.svg)
26
-
27
- ## 工作原理
28
-
29
- 基于 Qwen/Qwen3.5-4B-Base @ `1001bb4d826a52d1f399e183466143f4da7b741b` 的 4B 模型:先做全参数决策训练,再合并三个 LoRA
30
- (带 KL 回放的精调、短思考蒸馏、任务覆盖)。每个问题变成一条纯文本提示,不用对话模板,不加新 token。状态写两遍(格式
31
- `repeat_state_plain`;第二遍由一句固定的话引出,见 NOTICE),然后是:
32
-
33
- ```
34
- Question: {instructions}
35
- (A) {option 1}
36
- (B) {option 2}
37
- Answer: (
38
- ```
39
-
40
- 最后一个位置上选项字母的 logits 给出分布。超过 26 个选项时,按 ⌈n / 26⌉ 块分别读,再把各块的胜者读一次(淘汰赛)。
41
- 每个(题型、选项数)一个温度,在我们自己的留出数据上拟合,只改变置信度。提示格式、策略和上下文上限都固定在 `serving.json`
42
- 里,所有基准一律相同。
43
-
44
- **训练数据**(不公开):四个阶段,用到 84 个公开来源(83 个数据集,只读训练切分,NLI4CT 另读了 dev 切分;外加 Decision Index 工具包里 MIT 许可的
45
- Home-appliance 生成器)、由代码生成并由代码标注的决策题,以及对早先数据的 KL 回放。其中一部分是合成数据:题目和短思考
46
- 由大得多的前沿大模型编写或标注——凡公开了参数量的都远超 120B。全部来源及 Decision Index 题目的筛查方法见
47
- [CONTAMINATION.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/CONTAMINATION.md)。
48
-
49
- ## 基准测试
50
-
51
- 我们测了四项:Decision Index 0.2.1(榜单)、XL(带隐藏集的决策基准)、公开垂直任务上的 LoRA,以及服务延迟。除非标注
52
- “榜单”,所有数字都是我们自己的读数,默认零样本,所有系统收到相同的请求。
53
-
54
- ### Decision Index 0.2.1
55
-
56
- 我们读的是 **6,948 个请求的分层样本**(37,469 个问题;用工具包自带的采样器和种子;未重建 HLE),按 0.2.1 规则计分。
57
- Jev 在这个样本上是 57.19,榜单全量是 57.89,所以样本大约偏低 0.7 分。榜单行是官方全量数字
58
- ([榜单](https://huggingface.co/spaces/multimodalart/jev-decision-index))。
59
-
60
- | 系统 | 规模 | Decision Index 0.2.1 | 来源 |
61
- |---|---|---|---|
62
- | Jev(托管 API,jev-1.13.0) | 未公开 | 57.19 [55.29, 58.60] · 榜单 57.89 | 我们的样本 · 榜单 |
63
- | simple-jev · Qwen3.8-27B(榜单第 4)· Jebadiah 27B(第 5) | 27B | 55.74 · 54.67 | 榜单 |
64
- | **Wald-4B v1.0 · medium** | 4B | **53.91** [51.87, 55.27] | 我们的样本 |
65
- | reflex 27B(榜单第 6)· Decider chat · Qwen3.6-27B(第 7) | 27B | 52.16 · 51.35 | 榜单 |
66
- | Qwen3.8-27B,未训练,用我们的字母读出(一遍) | 27B | 47.78 [45.95, 49.17] | 我们的样本 |
67
- | Decider 35B-A3B(榜单第 11) | 35B-A3B | 47.11 | 榜单 |
68
- | Decider 4B(榜单第 15) | 4B | 40.70 | 榜单 |
69
- | Kev 9B(榜单�� 23)· Kev 4B(第 28) | 9B · 4B | 38.48 · 34.64 | 榜单 |
70
-
71
- 53.91 在 67 条榜单中排第 6(在 Jebadiah 27B 与 reflex 27B 之间);在同一样本上比 Jev 低 3.3 [−4.9, −1.8]。
72
- 同样是 4B 底座,比 Kev 4B 高 19.3。
73
-
74
- ![Decision Index 分大类](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/di-areas.svg)
75
-
76
- **披露。** 有 363 个 Decision Index 题目 id 通过公开训练切分或共同的上游来源进入了我们的训练数据(从未用过测试切分);
77
- 把它们全部记错,得分为 **53.62**。Home appliance 得 1.00(skill):最后一个阶段用该基准自己的 MIT 生成器造了新的家庭数据来训练
78
- (新种子,与测试数据没有共享状态);把 Home appliance 换回父版本的答案,指数为 51.57 [49.56, 52.95]。详见
79
- [CONTAMINATION.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/CONTAMINATION.md)。
80
-
81
- **同请求套件。** JevBench public 231(准确率 %):Wald-4B v1.0 **88.3**(打包后的服务),Jev 86.6,未训练的
82
- Qwen3.5-4B-Base 67.5,Laya 421M 58.0,CLM-8B 39.0。CLM-8B 和 Laya 没有 Decision Index 读数。
83
-
84
- ### XL(隐藏集)
85
-
86
- 我们自己构建的决策基准(13 个题族;按 1,895 题的隐藏集排名,指标为机会校正后的综合分 XL-Int)。我们是它的作者,
87
- 所以没有一个数字是独立的;我们的模型在公开集上的得分远高于隐藏集,因此只报告隐藏集。
88
-
89
- | 系统 | XL-Int(隐藏集) | 名次 |
90
- |---|---:|---:|
91
- | Jev(API,v1.13) | 73.0 [69.8, 75.9] | 第 1 |
92
- | **Wald-4B v1.0 · medium** | **63.2** [60.0, 66.4] | **第 2**,4B 中第一 |
93
- | Cygnet(gemma-4-12B-it + shim) | 59.8 [56.7, 62.7] | 第 4 |
94
- | Laya 421M · CLM-8B | 13.4 · 12.7 | 第 24 · 第 25 |
95
-
96
- ### 垂直任务:每个任务一个快速 LoRA
97
-
98
- ![垂直任务](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/verticals.svg)
99
-
100
- 用任务标签训练一个 LoRA,花费 $0.12–$1.81 的 GPU 时间(不到 2 GPU 小时);其他系统都是零样本,用同一批固定测试题和逐字节
101
- 相同的请求。与 Jev 的差值为配对 bootstrap 95 % 置信区间;▲ 表示区间不含 0。这些读数来自预发布版本 v0.9(见“版本”)。
102
-
103
- | 任务(指标) | Wald-4B v0.9 + LoRA | Jev |
104
- |---|---:|---:|
105
- | MetaTool(工具选择,准确率) | **97.0** | 83.0 |
106
- | BANKING77(77 个意图,宏 F1) | **92.8** | 78.1 |
107
- | AndroidControl(手机智能体动作,准确率) | **85.8**¹ | 73.4 |
108
- | ToxicChat(有害类 F1) | **84.9** | 80.4 |
109
- | COLD,中文冒犯语言(宏 F1,完整 5,323 题测试集) | **84.1** [83.2, 85.1] | 75.3 |
110
- | When2Call(调用 / 追问 / 拒绝,准确率) | **83.0**² | 72.6 |
111
-
112
- ¹ 用全部训练步训练的臂;图中是第一个全标签臂(81.6)。² 8 个 LoRA 配置中在测试集上最好的一个;按 dev 选出的配置为 82.6。
113
- COLD:配对差 +8.8 [7.7, 10.0];在未用于温度拟合的 4,823 题上为 83.8;与已发表的最好结果 83.7 持平。
114
-
115
- #### 标签很少时,从 Wald 起步胜过在原始底座上训 LoRA
116
-
117
- 相同的 LoRA 配方、标签和测试题;表中为 Wald-4B(v0.9)减去原始 Qwen3.5-4B-Base 的分差,配对 95 % 置信区间。
118
- **加粗**表示区间不含 0。
119
-
120
- | 任务(指标) | 0 个标签(零样本) | 300 个标签 |
121
- |---|---:|---:|
122
- | When2Call(准确率) | **+21.2** [17.0, 25.2] | +2.0 [−0.2, 4.2] |
123
- | BANKING77(宏 F1) | **+10.9** [7.6, 14.7] | **+4.4** [2.0, 7.2] |
124
- | SGD intent(宏 F1) | +2.8(不显著) | −0.1 |
125
-
126
- ### 延迟与成本
127
-
128
- ![延迟与成本](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/latency-cost.svg)
129
-
130
- 单个问题、一遍、串行:一张 RTX PRO 6000 上 p50 为 26 ms(H100 上 51 ms)。批处理:115 次决策/秒(fp8),按 GPU 小时价格
131
- 约 $0.007 / 千次决策;Jev API 标价 $0.04。`medium` 下中位延迟与一遍相同,p95 约 1 秒。测于 v0.9,架构与服务路径相同。
132
-
133
- ## 训练你自己的任务 LoRA(CLI,即将发布)
134
-
135
- 上面每个垂直任务都是用同一个 CLI 做的,我们计划很快发布。它用固定种子切分带标签的数据集,检查测试题泄漏,在你选的 GPU 上
136
- 基于 Wald-4B 训练 LoRA,用你的 LoRA、Jev 和零样本基线读同一批测试题,并把适配器放在同样的 `/v1/systemone` API 后面提供服务。
137
-
138
- ![垂直任务 CLI 架构](https://huggingface.co/Harry19081/Wald-4B/resolve/main/figures/lora-cli-architecture.svg)
139
-
140
- 阶段、防护、成本和命令预览:[docs/lora-cli.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/docs/lora-cli.md)(英文)。
141
-
142
- ## 服务
143
-
144
- ```sh
145
- docker build -t wald-serve .
146
- docker run --gpus all -v /path/to/Wald-4B:/model:ro -p 8000:8000 wald-serve # GET /health 返回 {"ok": true} 即就绪
147
- ```
148
-
149
- 不用 Docker:`./run.sh /path/to/Wald-4B`。服务端接受 `--effort`(`none | low | medium | high | high-k<k>`),请求里也可以带
150
- `"effort"` 覆盖。声明���置:effort `medium`,提示格式 `repeat_state_plain`,每个问题提示最多 131,072 token(更长返回 HTTP 422,
151
- 从不截断),1–255 个选项。命令、上限和运行时间见 [RUNBOOK.md](https://huggingface.co/Harry19081/Wald-4B/blob/main/RUNBOOK.md)(英文)。权重为 bf16,
152
- `model.safetensors` 的 sha256 为 `dabeb7bc3f43bf6ea7d20ecfdac8758b3945517a991809a5772988829598e893`;每个文件的 sha256 见 `MANIFEST.json`。
153
-
154
- ## 局限
155
-
156
- - 对父版本的不退步门槛没有失败项。两项下降超出容差,但多重校正后不显著:XL long_policy −6.7 [−11.6, −2.0],
157
- JevBench public 231 −2.6 [−5.2, 0.0](plain 提示的读数)。
158
- - 温度表沿用父版本的,也就是 Decision Index 实测读数所用的那张。
159
- - 我们的 Decision Index 读数用的是 16,384 token 上下文;超出的提示当时记为不支持,打包后的服务会作答。
160
-
161
- ## 版本
162
-
163
- | 版本 | 状态 | 检查点 | 底座 | 日期 | 策略 | 提示格式 |
164
- |---|---|---|---|---|---|---|
165
- | **v1.0** | 当前版本 | 内部版本 021A0-f10 | Qwen/Qwen3.5-4B-Base | 2026-09-27 | effort `medium` | `repeat_state_plain` |
166
- | v0.9 | 预发布;上文的垂直任务 LoRA 和延迟 | 内部版本 015D0-f4 | Qwen/Qwen3.5-4B-Base | 2026-09-26 | effort `medium` | plain |
167
-
168
- v1.x = 同一底座代上的服务或 LoRA 更新;v2.0 = 新的底座代。
169
-
170
- ---
171
-
172
- Apache-2.0(权重和代码),同时受底座模型 Qwen/Qwen3.5-4B-Base 许可约束(Apache-2.0,© 阿里云通义千问团队)。第三方声明:
173
- [NOTICE](https://huggingface.co/Harry19081/Wald-4B/blob/main/NOTICE)。
 
1
+ # Wald-Q4B · 22D0-f7
 
 
 
2
 
3
+ 2026-09-29 默认权重已更新为022D0-f7。完整 Decision Index0.2.1为 **54.59**,150,317请求全部成功,包含HLE。已发布的完整结果属于作者自行运行官方复现工具的测量;维护者的750请求串行延迟验证和榜单录取待定。
4
 
5
+ 默认推理配置现在为 **high / repeat_state_plain**,最多512思考token,干净256行XL-dev校准表。旧版medium、约50ms延迟、XL与垂直LoRA分数不应套用到当前权重。旧版保留在HF标签v1.0-legacy。
6
 
7
+ 加载、复现与来源说明见[英文模型卡](../../README.md)、[运行说明](../../RUNBOOK.md)、[污染披露](../../CONTAMINATION.md)、[数据来源](../../PROVENANCE.md)。自生成决策训练语料名为 **WaldGen**,并混合公开训练数据。来源与使用限制见数据来源页;训练数据和评测题不随权重发布。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
evaluation/benchmark-summary.json ADDED
@@ -0,0 +1,1445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "engine": "run",
3
+ "counts": {
4
+ "ok": 150317
5
+ },
6
+ "successful_request_latency_ms": {
7
+ "median": 2359.699470922351,
8
+ "p95": 16111.272985115647,
9
+ "mean": 5418.758716251101
10
+ },
11
+ "benchmarks": [
12
+ {
13
+ "catalog_id": 1,
14
+ "dataset": "BFCL",
15
+ "requests": 1694,
16
+ "answered": 1694,
17
+ "unsupported": 0,
18
+ "errors": 0,
19
+ "abstained": 0,
20
+ "pending": 0,
21
+ "scored_requests": 1694,
22
+ "metric": "case exact accuracy",
23
+ "score": 0.9380165289256198,
24
+ "reference_same_cases": null,
25
+ "median_ms": 3426.984826568514,
26
+ "detail": {
27
+ "field_accuracy": 0.9765100671140939,
28
+ "case_exact_accuracy": 0.9380165289256198,
29
+ "custom_metrics": {},
30
+ "positive_micro_f1": 0.9665271966527197
31
+ }
32
+ },
33
+ {
34
+ "catalog_id": 2,
35
+ "dataset": "ToolRet",
36
+ "requests": 685,
37
+ "answered": 685,
38
+ "unsupported": 0,
39
+ "errors": 0,
40
+ "abstained": 0,
41
+ "pending": 0,
42
+ "scored_requests": 685,
43
+ "metric": "nDCG@10",
44
+ "score": 0.6599801605965329,
45
+ "reference_same_cases": null,
46
+ "median_ms": 48200.27800090611,
47
+ "detail": {
48
+ "field_accuracy": null,
49
+ "case_exact_accuracy": null,
50
+ "custom_metrics": {
51
+ "ndcg_at_10": 0.6599801605965329,
52
+ "mrr": 0.6914171268549018,
53
+ "recall_at_10": 0.7920802919708029,
54
+ "candidate_recall": 0.8401355578727842,
55
+ "scorable_candidate_recall": 0.8401355578727842,
56
+ "candidates_scored": 31.9985401459854,
57
+ "candidates_retrieved": 32,
58
+ "bm25_ndcg_at_10": 0.5430661225020075
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "catalog_id": 3,
64
+ "dataset": "API-Bank",
65
+ "requests": 508,
66
+ "answered": 508,
67
+ "unsupported": 0,
68
+ "errors": 0,
69
+ "abstained": 0,
70
+ "pending": 0,
71
+ "scored_requests": 508,
72
+ "metric": "accuracy",
73
+ "score": 0.7874015748031497,
74
+ "reference_same_cases": null,
75
+ "median_ms": 893.8293964602053,
76
+ "detail": {
77
+ "field_accuracy": 0.7874015748031497,
78
+ "case_exact_accuracy": 0.7874015748031497,
79
+ "custom_metrics": {}
80
+ }
81
+ },
82
+ {
83
+ "catalog_id": 4,
84
+ "dataset": "BANKING77",
85
+ "requests": 3080,
86
+ "answered": 3080,
87
+ "unsupported": 0,
88
+ "errors": 0,
89
+ "abstained": 0,
90
+ "pending": 0,
91
+ "scored_requests": 3080,
92
+ "metric": "macro-F1",
93
+ "score": 0.7745043485694704,
94
+ "reference_same_cases": null,
95
+ "median_ms": 347.37241826951504,
96
+ "detail": {
97
+ "field_accuracy": 0.7801948051948052,
98
+ "case_exact_accuracy": 0.7801948051948052,
99
+ "macro_f1": 0.7745043485694704,
100
+ "custom_metrics": {}
101
+ }
102
+ },
103
+ {
104
+ "catalog_id": 5,
105
+ "dataset": "CLINC150+OOS",
106
+ "requests": 5500,
107
+ "answered": 5500,
108
+ "unsupported": 0,
109
+ "errors": 0,
110
+ "abstained": 0,
111
+ "pending": 0,
112
+ "scored_requests": 5500,
113
+ "metric": "macro-F1",
114
+ "score": 0.8488214873473507,
115
+ "reference_same_cases": null,
116
+ "median_ms": 578.8702610880136,
117
+ "detail": {
118
+ "field_accuracy": 0.8443636363636363,
119
+ "case_exact_accuracy": 0.8443636363636363,
120
+ "macro_f1": 0.8488214873473507,
121
+ "custom_metrics": {}
122
+ }
123
+ },
124
+ {
125
+ "catalog_id": 6,
126
+ "dataset": "RouterBench",
127
+ "requests": 10000,
128
+ "answered": 10000,
129
+ "unsupported": 0,
130
+ "errors": 0,
131
+ "abstained": 0,
132
+ "pending": 0,
133
+ "scored_requests": 10000,
134
+ "metric": "selected quality (quality objective)",
135
+ "score": 0.766715,
136
+ "reference_same_cases": null,
137
+ "median_ms": 14357.00093023479,
138
+ "tracks": {
139
+ "RouterBench-0shot": {
140
+ "metric": "selected quality (quality objective)",
141
+ "score": 0.7308614831101339,
142
+ "scored_requests": 5003
143
+ },
144
+ "RouterBench-5shot": {
145
+ "metric": "selected quality (quality objective)",
146
+ "score": 0.8026115669401641,
147
+ "scored_requests": 4997
148
+ }
149
+ },
150
+ "detail": {
151
+ "field_accuracy": null,
152
+ "case_exact_accuracy": null,
153
+ "custom_metrics": {
154
+ "quality_quality": 0.766715,
155
+ "quality_cost_usd": 0.0051317415112,
156
+ "quality_utility": 0.766715,
157
+ "quality_oracle_optimal": 0.8018,
158
+ "quality_utility_regret": 0.152345,
159
+ "cost_aware_quality": 0.761955,
160
+ "cost_aware_cost_usd": 0.0044944866884,
161
+ "cost_aware_utility": 0.717010133116,
162
+ "cost_aware_oracle_optimal": 0.0339,
163
+ "cost_aware_utility_regret": 0.198519209512
164
+ }
165
+ }
166
+ },
167
+ {
168
+ "catalog_id": 9,
169
+ "dataset": "Home appliance simulator",
170
+ "requests": 88,
171
+ "answered": 88,
172
+ "unsupported": 0,
173
+ "errors": 0,
174
+ "abstained": 0,
175
+ "pending": 0,
176
+ "scored_requests": 88,
177
+ "metric": "case exact accuracy",
178
+ "score": 0.875,
179
+ "reference_same_cases": null,
180
+ "median_ms": 23359.19329803437,
181
+ "detail": {
182
+ "field_accuracy": 0.9874213836477987,
183
+ "case_exact_accuracy": 0.875,
184
+ "custom_metrics": {},
185
+ "subgroups": {
186
+ "outcome": {
187
+ "n": 88,
188
+ "mean": 0.9545454545454546
189
+ },
190
+ "post_0": {
191
+ "n": 69,
192
+ "mean": 0.9855072463768116
193
+ },
194
+ "post_1": {
195
+ "n": 25,
196
+ "mean": 1
197
+ },
198
+ "resolution": {
199
+ "n": 88,
200
+ "mean": 0.9886363636363636
201
+ },
202
+ "state_read": {
203
+ "n": 88,
204
+ "mean": 1
205
+ },
206
+ "target_member": {
207
+ "n": 1232,
208
+ "mean": 0.9886363636363636
209
+ }
210
+ }
211
+ }
212
+ },
213
+ {
214
+ "catalog_id": 10,
215
+ "dataset": "SGD/SGD-X",
216
+ "requests": 2500,
217
+ "answered": 2500,
218
+ "unsupported": 0,
219
+ "errors": 0,
220
+ "abstained": 0,
221
+ "pending": 0,
222
+ "scored_requests": 2500,
223
+ "metric": "macro-F1",
224
+ "score": 0.07479226910929453,
225
+ "reference_same_cases": null,
226
+ "median_ms": 1550.9728929027915,
227
+ "detail": {
228
+ "field_accuracy": 0.1012,
229
+ "case_exact_accuracy": 0.1012,
230
+ "macro_f1": 0.07479226910929453,
231
+ "custom_metrics": {}
232
+ }
233
+ },
234
+ {
235
+ "catalog_id": 11,
236
+ "dataset": "ContractNLI",
237
+ "requests": 123,
238
+ "answered": 123,
239
+ "unsupported": 0,
240
+ "errors": 0,
241
+ "abstained": 0,
242
+ "pending": 0,
243
+ "scored_requests": 123,
244
+ "metric": "macro-F1",
245
+ "score": 0.7609773126992904,
246
+ "reference_same_cases": null,
247
+ "median_ms": 48119.10995375365,
248
+ "detail": {
249
+ "field_accuracy": 0.7910090865614539,
250
+ "case_exact_accuracy": 0.008130081300813009,
251
+ "macro_f1": 0.7609773126992904,
252
+ "custom_metrics": {}
253
+ }
254
+ },
255
+ {
256
+ "catalog_id": 12,
257
+ "dataset": "ANLI",
258
+ "requests": 3200,
259
+ "answered": 3200,
260
+ "unsupported": 0,
261
+ "errors": 0,
262
+ "abstained": 0,
263
+ "pending": 0,
264
+ "scored_requests": 3200,
265
+ "metric": "macro-F1",
266
+ "score": 0.6880934385906878,
267
+ "reference_same_cases": null,
268
+ "median_ms": 1871.6593426652253,
269
+ "detail": {
270
+ "field_accuracy": 0.69,
271
+ "case_exact_accuracy": 0.69,
272
+ "macro_f1": 0.6880934385906878,
273
+ "custom_metrics": {}
274
+ }
275
+ },
276
+ {
277
+ "catalog_id": 20,
278
+ "dataset": "BPoMP",
279
+ "requests": 5000,
280
+ "answered": 5000,
281
+ "unsupported": 0,
282
+ "errors": 0,
283
+ "abstained": 0,
284
+ "pending": 0,
285
+ "scored_requests": 5000,
286
+ "metric": "accuracy",
287
+ "score": 0.8328,
288
+ "reference_same_cases": null,
289
+ "median_ms": 3517.330222763121,
290
+ "detail": {
291
+ "field_accuracy": 0.8328,
292
+ "case_exact_accuracy": 0.4845869297163995,
293
+ "custom_metrics": {},
294
+ "subgroups": {
295
+ "beam search": {
296
+ "n": 401,
297
+ "mean": 0.6658354114713217
298
+ },
299
+ "corrupted rhyme": {
300
+ "n": 376,
301
+ "mean": 0.648936170212766
302
+ },
303
+ "delayed beam search": {
304
+ "n": 137,
305
+ "mean": 0.8248175182481752
306
+ },
307
+ "delete any 1 nonrhyming word": {
308
+ "n": 376,
309
+ "mean": 0.800531914893617
310
+ },
311
+ "delete any 1 rhyming EOL word": {
312
+ "n": 376,
313
+ "mean": 0.9175531914893617
314
+ },
315
+ "delete any 1 word": {
316
+ "n": 376,
317
+ "mean": 0.8351063829787234
318
+ },
319
+ "delete any 2 nonrhyming words": {
320
+ "n": 376,
321
+ "mean": 0.8856382978723404
322
+ },
323
+ "delete any 2 rhyming EOL words": {
324
+ "n": 376,
325
+ "mean": 0.8909574468085106
326
+ },
327
+ "delete any 2 words": {
328
+ "n": 376,
329
+ "mean": 0.8909574468085106
330
+ },
331
+ "delete any 3 nonrhyming words": {
332
+ "n": 376,
333
+ "mean": 0.9122340425531915
334
+ },
335
+ "delete any 3 rhyming words": {
336
+ "n": 376,
337
+ "mean": 0.9095744680851063
338
+ },
339
+ "delete any 3 words": {
340
+ "n": 376,
341
+ "mean": 0.9335106382978723
342
+ },
343
+ "shuffled rhyming lines": {
344
+ "n": 336,
345
+ "mean": 0.6994047619047619
346
+ },
347
+ "shuffled rhyming words": {
348
+ "n": 366,
349
+ "mean": 0.8360655737704918
350
+ }
351
+ }
352
+ }
353
+ },
354
+ {
355
+ "catalog_id": 21,
356
+ "dataset": "Humicroedit",
357
+ "requests": 2628,
358
+ "answered": 2628,
359
+ "unsupported": 0,
360
+ "errors": 0,
361
+ "abstained": 0,
362
+ "pending": 0,
363
+ "scored_requests": 2628,
364
+ "metric": "accuracy",
365
+ "score": 0.6004566210045662,
366
+ "reference_same_cases": null,
367
+ "median_ms": 1887.3216076754034,
368
+ "detail": {
369
+ "field_accuracy": 0.6004566210045662,
370
+ "case_exact_accuracy": 0.6004566210045662,
371
+ "custom_metrics": {}
372
+ }
373
+ },
374
+ {
375
+ "catalog_id": 22,
376
+ "dataset": "POP909-CL",
377
+ "requests": 2000,
378
+ "answered": 2000,
379
+ "unsupported": 0,
380
+ "errors": 0,
381
+ "abstained": 0,
382
+ "pending": 0,
383
+ "scored_requests": 2000,
384
+ "metric": "accuracy",
385
+ "score": 0.0415,
386
+ "reference_same_cases": null,
387
+ "median_ms": 951.6522623598576,
388
+ "detail": {
389
+ "field_accuracy": 0.0415,
390
+ "case_exact_accuracy": 0.0415,
391
+ "cluster_macro_accuracy": 0.042037938912938916,
392
+ "custom_metrics": {},
393
+ "subgroups": {
394
+ "A#7": {
395
+ "n": 1,
396
+ "mean": 0
397
+ },
398
+ "A#M": {
399
+ "n": 88,
400
+ "mean": 0
401
+ },
402
+ "A#m": {
403
+ "n": 43,
404
+ "mean": 0
405
+ },
406
+ "A#m7": {
407
+ "n": 7,
408
+ "mean": 0.14285714285714285
409
+ },
410
+ "A#maj7": {
411
+ "n": 3,
412
+ "mean": 0
413
+ },
414
+ "A7": {
415
+ "n": 4,
416
+ "mean": 0
417
+ },
418
+ "AM": {
419
+ "n": 73,
420
+ "mean": 0.0821917808219178
421
+ },
422
+ "Am": {
423
+ "n": 69,
424
+ "mean": 0.07246376811594203
425
+ },
426
+ "Am7": {
427
+ "n": 8,
428
+ "mean": 0
429
+ },
430
+ "Amaj7": {
431
+ "n": 3,
432
+ "mean": 0
433
+ },
434
+ "B7": {
435
+ "n": 2,
436
+ "mean": 0
437
+ },
438
+ "BM": {
439
+ "n": 88,
440
+ "mean": 0
441
+ },
442
+ "Bdim": {
443
+ "n": 1,
444
+ "mean": 0
445
+ },
446
+ "Bhalf-dim7": {
447
+ "n": 1,
448
+ "mean": 0
449
+ },
450
+ "Bm": {
451
+ "n": 65,
452
+ "mean": 0
453
+ },
454
+ "Bm7": {
455
+ "n": 6,
456
+ "mean": 0.8333333333333334
457
+ },
458
+ "Bmaj7": {
459
+ "n": 3,
460
+ "mean": 0
461
+ },
462
+ "C#7": {
463
+ "n": 1,
464
+ "mean": 0
465
+ },
466
+ "C#M": {
467
+ "n": 78,
468
+ "mean": 0
469
+ },
470
+ "C#aug / Faug / Aaug": {
471
+ "n": 1,
472
+ "mean": 0
473
+ },
474
+ "C#dim": {
475
+ "n": 1,
476
+ "mean": 0
477
+ },
478
+ "C#m": {
479
+ "n": 51,
480
+ "mean": 0.0196078431372549
481
+ },
482
+ "C#m7": {
483
+ "n": 8,
484
+ "mean": 0
485
+ },
486
+ "C#maj7": {
487
+ "n": 6,
488
+ "mean": 0
489
+ },
490
+ "C#sus2 / G#sus4": {
491
+ "n": 4,
492
+ "mean": 0
493
+ },
494
+ "C#sus4 / F#sus2": {
495
+ "n": 6,
496
+ "mean": 0
497
+ },
498
+ "C7": {
499
+ "n": 2,
500
+ "mean": 0
501
+ },
502
+ "CM": {
503
+ "n": 99,
504
+ "mean": 0
505
+ },
506
+ "Cdim": {
507
+ "n": 1,
508
+ "mean": 0
509
+ },
510
+ "Cm": {
511
+ "n": 67,
512
+ "mean": 0
513
+ },
514
+ "Cm7": {
515
+ "n": 4,
516
+ "mean": 0.5
517
+ },
518
+ "Cmaj7": {
519
+ "n": 1,
520
+ "mean": 0
521
+ },
522
+ "Csus2 / Gsus4": {
523
+ "n": 9,
524
+ "mean": 0
525
+ },
526
+ "Csus4 / Fsus2": {
527
+ "n": 6,
528
+ "mean": 0
529
+ },
530
+ "D#7": {
531
+ "n": 7,
532
+ "mean": 0
533
+ },
534
+ "D#M": {
535
+ "n": 86,
536
+ "mean": 0.011627906976744186
537
+ },
538
+ "D#aug / Gaug / Baug": {
539
+ "n": 1,
540
+ "mean": 0
541
+ },
542
+ "D#dim": {
543
+ "n": 1,
544
+ "mean": 0
545
+ },
546
+ "D#m": {
547
+ "n": 43,
548
+ "mean": 0.046511627906976744
549
+ },
550
+ "D#m7": {
551
+ "n": 3,
552
+ "mean": 0.3333333333333333
553
+ },
554
+ "D#maj7": {
555
+ "n": 6,
556
+ "mean": 0
557
+ },
558
+ "D#sus2 / A#sus4": {
559
+ "n": 7,
560
+ "mean": 0
561
+ },
562
+ "D#sus4 / G#sus2": {
563
+ "n": 4,
564
+ "mean": 0
565
+ },
566
+ "D7": {
567
+ "n": 5,
568
+ "mean": 0
569
+ },
570
+ "DM": {
571
+ "n": 77,
572
+ "mean": 0
573
+ },
574
+ "Dm": {
575
+ "n": 64,
576
+ "mean": 0.03125
577
+ },
578
+ "Dm7": {
579
+ "n": 8,
580
+ "mean": 0.125
581
+ },
582
+ "DmMaj7": {
583
+ "n": 1,
584
+ "mean": 0
585
+ },
586
+ "Dmaj7": {
587
+ "n": 3,
588
+ "mean": 0
589
+ },
590
+ "Dsus2 / Asus4": {
591
+ "n": 12,
592
+ "mean": 0.08333333333333333
593
+ },
594
+ "Dsus4 / Gsus2": {
595
+ "n": 5,
596
+ "mean": 0
597
+ },
598
+ "E7": {
599
+ "n": 2,
600
+ "mean": 0
601
+ },
602
+ "EM": {
603
+ "n": 80,
604
+ "mean": 0.075
605
+ },
606
+ "Edim": {
607
+ "n": 1,
608
+ "mean": 0
609
+ },
610
+ "Em": {
611
+ "n": 74,
612
+ "mean": 0
613
+ },
614
+ "Em7": {
615
+ "n": 6,
616
+ "mean": 0.5
617
+ },
618
+ "Emaj7": {
619
+ "n": 1,
620
+ "mean": 0
621
+ },
622
+ "Esus2 / Bsus4": {
623
+ "n": 6,
624
+ "mean": 0.16666666666666666
625
+ },
626
+ "Esus4 / Asus2": {
627
+ "n": 8,
628
+ "mean": 0
629
+ },
630
+ "F#7": {
631
+ "n": 2,
632
+ "mean": 0
633
+ },
634
+ "F#M": {
635
+ "n": 62,
636
+ "mean": 0
637
+ },
638
+ "F#dim": {
639
+ "n": 1,
640
+ "mean": 0
641
+ },
642
+ "F#half-dim7": {
643
+ "n": 1,
644
+ "mean": 0
645
+ },
646
+ "F#m": {
647
+ "n": 58,
648
+ "mean": 0.1206896551724138
649
+ },
650
+ "F#m7": {
651
+ "n": 9,
652
+ "mean": 0
653
+ },
654
+ "F#mMaj7": {
655
+ "n": 1,
656
+ "mean": 0
657
+ },
658
+ "F#maj7": {
659
+ "n": 4,
660
+ "mean": 0
661
+ },
662
+ "F#sus4 / Bsus2": {
663
+ "n": 5,
664
+ "mean": 0
665
+ },
666
+ "F7": {
667
+ "n": 2,
668
+ "mean": 0
669
+ },
670
+ "FM": {
671
+ "n": 93,
672
+ "mean": 0
673
+ },
674
+ "Fm": {
675
+ "n": 55,
676
+ "mean": 0
677
+ },
678
+ "Fm7": {
679
+ "n": 7,
680
+ "mean": 0.5714285714285714
681
+ },
682
+ "Fmaj7": {
683
+ "n": 4,
684
+ "mean": 0
685
+ },
686
+ "Fsus4 / A#sus2": {
687
+ "n": 9,
688
+ "mean": 0
689
+ },
690
+ "G#7": {
691
+ "n": 6,
692
+ "mean": 0
693
+ },
694
+ "G#M": {
695
+ "n": 88,
696
+ "mean": 0
697
+ },
698
+ "G#m": {
699
+ "n": 50,
700
+ "mean": 0
701
+ },
702
+ "G#m7": {
703
+ "n": 4,
704
+ "mean": 0.25
705
+ },
706
+ "G#maj7": {
707
+ "n": 6,
708
+ "mean": 0
709
+ },
710
+ "G7": {
711
+ "n": 2,
712
+ "mean": 0.5
713
+ },
714
+ "GM": {
715
+ "n": 102,
716
+ "mean": 0.06862745098039216
717
+ },
718
+ "Gdim": {
719
+ "n": 1,
720
+ "mean": 0
721
+ },
722
+ "Gm": {
723
+ "n": 66,
724
+ "mean": 0.045454545454545456
725
+ },
726
+ "Gm7": {
727
+ "n": 7,
728
+ "mean": 0.7142857142857143
729
+ },
730
+ "Gmaj7": {
731
+ "n": 2,
732
+ "mean": 0
733
+ },
734
+ "NoChord": {
735
+ "n": 29,
736
+ "mean": 0.5862068965517241
737
+ },
738
+ "Other": {
739
+ "n": 3,
740
+ "mean": 0
741
+ }
742
+ }
743
+ }
744
+ },
745
+ {
746
+ "catalog_id": 23,
747
+ "dataset": "cfcolor",
748
+ "requests": 5000,
749
+ "answered": 5000,
750
+ "unsupported": 0,
751
+ "errors": 0,
752
+ "abstained": 0,
753
+ "pending": 0,
754
+ "scored_requests": 5000,
755
+ "metric": "accuracy",
756
+ "score": 0.5986,
757
+ "reference_same_cases": null,
758
+ "median_ms": 5303.766316268593,
759
+ "detail": {
760
+ "field_accuracy": 0.5986,
761
+ "case_exact_accuracy": 0.5986,
762
+ "cluster_macro_accuracy": 0.5803126189513289,
763
+ "custom_metrics": {}
764
+ }
765
+ },
766
+ {
767
+ "catalog_id": 24,
768
+ "dataset": "MMLU",
769
+ "requests": 14033,
770
+ "answered": 14033,
771
+ "unsupported": 0,
772
+ "errors": 0,
773
+ "abstained": 0,
774
+ "pending": 0,
775
+ "scored_requests": 14033,
776
+ "metric": "accuracy",
777
+ "score": 0.7918477873583696,
778
+ "reference_same_cases": null,
779
+ "median_ms": 1615.4737770557404,
780
+ "detail": {
781
+ "field_accuracy": 0.7918477873583696,
782
+ "case_exact_accuracy": 0.7918477873583696,
783
+ "custom_metrics": {}
784
+ }
785
+ },
786
+ {
787
+ "catalog_id": 25,
788
+ "dataset": "GPQA Diamond",
789
+ "requests": 196,
790
+ "answered": 196,
791
+ "unsupported": 0,
792
+ "errors": 0,
793
+ "abstained": 0,
794
+ "pending": 0,
795
+ "scored_requests": 196,
796
+ "metric": "accuracy",
797
+ "score": 0.5102040816326531,
798
+ "reference_same_cases": null,
799
+ "median_ms": 5373.508852440864,
800
+ "detail": {
801
+ "field_accuracy": 0.5102040816326531,
802
+ "case_exact_accuracy": 0.5102040816326531,
803
+ "custom_metrics": {}
804
+ }
805
+ },
806
+ {
807
+ "catalog_id": 26,
808
+ "dataset": "ARC-Easy",
809
+ "requests": 2376,
810
+ "answered": 2376,
811
+ "unsupported": 0,
812
+ "errors": 0,
813
+ "abstained": 0,
814
+ "pending": 0,
815
+ "scored_requests": 2376,
816
+ "metric": "accuracy",
817
+ "score": 0.9827441077441077,
818
+ "reference_same_cases": null,
819
+ "median_ms": 915.7997132278979,
820
+ "detail": {
821
+ "field_accuracy": 0.9827441077441077,
822
+ "case_exact_accuracy": 0.9827441077441077,
823
+ "custom_metrics": {}
824
+ }
825
+ },
826
+ {
827
+ "catalog_id": 27,
828
+ "dataset": "ARC-Challenge",
829
+ "requests": 1172,
830
+ "answered": 1172,
831
+ "unsupported": 0,
832
+ "errors": 0,
833
+ "abstained": 0,
834
+ "pending": 0,
835
+ "scored_requests": 1172,
836
+ "metric": "accuracy",
837
+ "score": 0.9607508532423208,
838
+ "reference_same_cases": null,
839
+ "median_ms": 1117.716245353222,
840
+ "detail": {
841
+ "field_accuracy": 0.9607508532423208,
842
+ "case_exact_accuracy": 0.9607508532423208,
843
+ "custom_metrics": {}
844
+ }
845
+ },
846
+ {
847
+ "catalog_id": 28,
848
+ "dataset": "WinoGrande",
849
+ "requests": 1267,
850
+ "answered": 1267,
851
+ "unsupported": 0,
852
+ "errors": 0,
853
+ "abstained": 0,
854
+ "pending": 0,
855
+ "scored_requests": 1267,
856
+ "metric": "accuracy",
857
+ "score": 0.7916337805840569,
858
+ "reference_same_cases": null,
859
+ "median_ms": 1430.1900286227465,
860
+ "detail": {
861
+ "field_accuracy": 0.7916337805840569,
862
+ "case_exact_accuracy": 0.7916337805840569,
863
+ "custom_metrics": {}
864
+ }
865
+ },
866
+ {
867
+ "catalog_id": 29,
868
+ "dataset": "HellaSwag",
869
+ "requests": 10042,
870
+ "answered": 10042,
871
+ "unsupported": 0,
872
+ "errors": 0,
873
+ "abstained": 0,
874
+ "pending": 0,
875
+ "scored_requests": 10042,
876
+ "metric": "accuracy",
877
+ "score": 0.8992232622983469,
878
+ "reference_same_cases": null,
879
+ "median_ms": 2731.8548685871065,
880
+ "detail": {
881
+ "field_accuracy": 0.8992232622983469,
882
+ "case_exact_accuracy": 0.8992232622983469,
883
+ "custom_metrics": {}
884
+ }
885
+ },
886
+ {
887
+ "catalog_id": 30,
888
+ "dataset": "GSM8K",
889
+ "requests": 2638,
890
+ "answered": 2638,
891
+ "unsupported": 0,
892
+ "errors": 0,
893
+ "abstained": 0,
894
+ "pending": 0,
895
+ "scored_requests": 2638,
896
+ "metric": "accuracy",
897
+ "score": 0.9150871872630781,
898
+ "reference_same_cases": null,
899
+ "median_ms": 1297.6956362836063,
900
+ "tracks": {
901
+ "GSM8K-10choice": {
902
+ "metric": "accuracy",
903
+ "score": 0.8968915845337376,
904
+ "scored_requests": 1319
905
+ },
906
+ "GSM8K-4choice": {
907
+ "metric": "accuracy",
908
+ "score": 0.9332827899924185,
909
+ "scored_requests": 1319
910
+ }
911
+ },
912
+ "detail": {
913
+ "field_accuracy": 0.9150871872630781,
914
+ "case_exact_accuracy": 0.8529188779378317,
915
+ "custom_metrics": {}
916
+ }
917
+ },
918
+ {
919
+ "catalog_id": 31,
920
+ "dataset": "ChessBench",
921
+ "requests": 5000,
922
+ "answered": 5000,
923
+ "unsupported": 0,
924
+ "errors": 0,
925
+ "abstained": 0,
926
+ "pending": 0,
927
+ "scored_requests": 5000,
928
+ "metric": "accuracy",
929
+ "score": 0.1076,
930
+ "reference_same_cases": null,
931
+ "median_ms": 367.51645943149924,
932
+ "detail": {
933
+ "field_accuracy": 0.1076,
934
+ "case_exact_accuracy": 0.1076,
935
+ "custom_metrics": {
936
+ "value_regret": 0.18372801745557998
937
+ }
938
+ }
939
+ },
940
+ {
941
+ "catalog_id": 32,
942
+ "dataset": "MuSR",
943
+ "requests": 752,
944
+ "answered": 752,
945
+ "unsupported": 0,
946
+ "errors": 0,
947
+ "abstained": 0,
948
+ "pending": 0,
949
+ "scored_requests": 752,
950
+ "metric": "accuracy",
951
+ "score": 0.5757978723404256,
952
+ "reference_same_cases": null,
953
+ "median_ms": 2307.178660761565,
954
+ "detail": {
955
+ "field_accuracy": 0.5757978723404256,
956
+ "case_exact_accuracy": 0.5757978723404256,
957
+ "custom_metrics": {}
958
+ }
959
+ },
960
+ {
961
+ "catalog_id": 33,
962
+ "dataset": "SATA-Bench",
963
+ "requests": 1650,
964
+ "answered": 1650,
965
+ "unsupported": 0,
966
+ "errors": 0,
967
+ "abstained": 0,
968
+ "pending": 0,
969
+ "scored_requests": 1650,
970
+ "metric": "case exact accuracy",
971
+ "score": 0.2503030303030303,
972
+ "reference_same_cases": null,
973
+ "median_ms": 20847.185611724854,
974
+ "detail": {
975
+ "field_accuracy": 0.8205194303022492,
976
+ "case_exact_accuracy": 0.2503030303030303,
977
+ "custom_metrics": {},
978
+ "positive_micro_f1": 0.7247207670257981
979
+ }
980
+ },
981
+ {
982
+ "catalog_id": 34,
983
+ "dataset": "SimpleBench",
984
+ "requests": 10,
985
+ "answered": 10,
986
+ "unsupported": 0,
987
+ "errors": 0,
988
+ "abstained": 0,
989
+ "pending": 0,
990
+ "scored_requests": 10,
991
+ "metric": "accuracy",
992
+ "score": 0.1,
993
+ "reference_same_cases": null,
994
+ "median_ms": 6311.753438320011,
995
+ "detail": {
996
+ "field_accuracy": 0.1,
997
+ "case_exact_accuracy": 0.1,
998
+ "custom_metrics": {}
999
+ }
1000
+ },
1001
+ {
1002
+ "catalog_id": 36,
1003
+ "dataset": "BRIGHT",
1004
+ "requests": 220,
1005
+ "answered": 220,
1006
+ "unsupported": 0,
1007
+ "errors": 0,
1008
+ "abstained": 0,
1009
+ "pending": 0,
1010
+ "scored_requests": 220,
1011
+ "metric": "nDCG@10",
1012
+ "score": 0.4020609591792302,
1013
+ "reference_same_cases": null,
1014
+ "median_ms": 51917.97356912866,
1015
+ "detail": {
1016
+ "field_accuracy": null,
1017
+ "case_exact_accuracy": null,
1018
+ "custom_metrics": {
1019
+ "ndcg_at_10": 0.4020609591792302,
1020
+ "mrr": 0.5646233806616843,
1021
+ "recall_at_10": 0.4450765040138066,
1022
+ "candidate_recall": 0.5445170600851817,
1023
+ "scorable_candidate_recall": 0.5445170600851817,
1024
+ "candidates_scored": 32,
1025
+ "candidates_retrieved": 32,
1026
+ "bm25_ndcg_at_10": 0.2761244257399229
1027
+ }
1028
+ }
1029
+ },
1030
+ {
1031
+ "catalog_id": 37,
1032
+ "dataset": "Amazon ESCI",
1033
+ "requests": 5000,
1034
+ "answered": 5000,
1035
+ "unsupported": 0,
1036
+ "errors": 0,
1037
+ "abstained": 0,
1038
+ "pending": 0,
1039
+ "scored_requests": 5000,
1040
+ "metric": "macro-F1",
1041
+ "score": 0.5261359848492435,
1042
+ "reference_same_cases": null,
1043
+ "median_ms": 1674.7833923436701,
1044
+ "detail": {
1045
+ "field_accuracy": 0.6572,
1046
+ "case_exact_accuracy": 0.6572,
1047
+ "macro_f1": 0.5261359848492435,
1048
+ "custom_metrics": {}
1049
+ }
1050
+ },
1051
+ {
1052
+ "catalog_id": 38,
1053
+ "dataset": "ACOS",
1054
+ "requests": 1565,
1055
+ "answered": 1565,
1056
+ "unsupported": 0,
1057
+ "errors": 0,
1058
+ "abstained": 0,
1059
+ "pending": 0,
1060
+ "scored_requests": 1565,
1061
+ "metric": "per-review F1",
1062
+ "score": 0.565202380952381,
1063
+ "reference_same_cases": null,
1064
+ "median_ms": 92273.02807290107,
1065
+ "detail": {
1066
+ "field_accuracy": 0.9961577306459404,
1067
+ "case_exact_accuracy": 0.4575,
1068
+ "custom_metrics": {},
1069
+ "positive_micro_f1": 0.6276595744680851
1070
+ }
1071
+ },
1072
+ {
1073
+ "catalog_id": 39,
1074
+ "dataset": "FinEntity",
1075
+ "requests": 979,
1076
+ "answered": 979,
1077
+ "unsupported": 0,
1078
+ "errors": 0,
1079
+ "abstained": 0,
1080
+ "pending": 0,
1081
+ "scored_requests": 979,
1082
+ "metric": "macro-F1",
1083
+ "score": 0.8918373948358955,
1084
+ "reference_same_cases": null,
1085
+ "median_ms": 2899.8704813420773,
1086
+ "detail": {
1087
+ "field_accuracy": 0.8924377642085486,
1088
+ "case_exact_accuracy": 0.8375893769152196,
1089
+ "macro_f1": 0.8918373948358955,
1090
+ "custom_metrics": {}
1091
+ }
1092
+ },
1093
+ {
1094
+ "catalog_id": 40,
1095
+ "dataset": "iSarcasmEval",
1096
+ "requests": 4600,
1097
+ "answered": 4600,
1098
+ "unsupported": 0,
1099
+ "errors": 0,
1100
+ "abstained": 0,
1101
+ "pending": 0,
1102
+ "scored_requests": 4600,
1103
+ "metric": "see separate subtask tracks",
1104
+ "score": null,
1105
+ "reference_same_cases": null,
1106
+ "median_ms": 1845.6848883070052,
1107
+ "tracks": {
1108
+ "iSarcasmEval-A-Ar": {
1109
+ "metric": "see separate subtask tracks",
1110
+ "score": null,
1111
+ "scored_requests": 1400
1112
+ },
1113
+ "iSarcasmEval-A-En": {
1114
+ "metric": "see separate subtask tracks",
1115
+ "score": null,
1116
+ "scored_requests": 1400
1117
+ },
1118
+ "iSarcasmEval-B-En": {
1119
+ "metric": "see separate subtask tracks",
1120
+ "score": null,
1121
+ "scored_requests": 1400
1122
+ },
1123
+ "iSarcasmEval-C-Ar": {
1124
+ "metric": "see separate subtask tracks",
1125
+ "score": null,
1126
+ "scored_requests": 200
1127
+ },
1128
+ "iSarcasmEval-C-En": {
1129
+ "metric": "see separate subtask tracks",
1130
+ "score": null,
1131
+ "scored_requests": 200
1132
+ }
1133
+ },
1134
+ "detail": {
1135
+ "field_accuracy": 0.9248275862068965,
1136
+ "case_exact_accuracy": 0.828695652173913,
1137
+ "macro_f1": 0.6524847844864738,
1138
+ "custom_metrics": {},
1139
+ "positive_f1_by_field": {
1140
+ "sarcastic": 0.5298429319371728,
1141
+ "sarcasm": 0.5792079207920792,
1142
+ "irony": 0.13953488372093023,
1143
+ "satire": 0.0,
1144
+ "understatement": 0.0,
1145
+ "overstatement": 0.15384615384615385,
1146
+ "rhetorical_question": 0.20454545454545456
1147
+ },
1148
+ "category_macro_f1": 0.2295681921202558
1149
+ }
1150
+ },
1151
+ {
1152
+ "catalog_id": 41,
1153
+ "dataset": "VAST",
1154
+ "requests": 3006,
1155
+ "answered": 3006,
1156
+ "unsupported": 0,
1157
+ "errors": 0,
1158
+ "abstained": 0,
1159
+ "pending": 0,
1160
+ "scored_requests": 3006,
1161
+ "metric": "macro-F1",
1162
+ "score": 0.7783562716934314,
1163
+ "reference_same_cases": null,
1164
+ "median_ms": 1187.6625251024961,
1165
+ "detail": {
1166
+ "field_accuracy": 0.7821024617431803,
1167
+ "case_exact_accuracy": 0.7821024617431803,
1168
+ "macro_f1": 0.7783562716934314,
1169
+ "custom_metrics": {}
1170
+ }
1171
+ },
1172
+ {
1173
+ "catalog_id": 42,
1174
+ "dataset": "NLI4CT",
1175
+ "requests": 5500,
1176
+ "answered": 5500,
1177
+ "unsupported": 0,
1178
+ "errors": 0,
1179
+ "abstained": 0,
1180
+ "pending": 0,
1181
+ "scored_requests": 5500,
1182
+ "metric": "macro-F1",
1183
+ "score": 0.7894291325110083,
1184
+ "reference_same_cases": null,
1185
+ "median_ms": 2523.8324641250074,
1186
+ "detail": {
1187
+ "field_accuracy": 0.8176363636363636,
1188
+ "case_exact_accuracy": 0.8176363636363636,
1189
+ "macro_f1": 0.7894291325110083,
1190
+ "custom_metrics": {}
1191
+ }
1192
+ },
1193
+ {
1194
+ "catalog_id": 43,
1195
+ "dataset": "CRUXEval",
1196
+ "requests": 570,
1197
+ "answered": 570,
1198
+ "unsupported": 0,
1199
+ "errors": 0,
1200
+ "abstained": 0,
1201
+ "pending": 0,
1202
+ "scored_requests": 570,
1203
+ "metric": "accuracy",
1204
+ "score": 0.7824561403508772,
1205
+ "reference_same_cases": null,
1206
+ "median_ms": 2111.403521616012,
1207
+ "detail": {
1208
+ "field_accuracy": 0.7824561403508772,
1209
+ "case_exact_accuracy": 0.7824561403508772,
1210
+ "custom_metrics": {}
1211
+ }
1212
+ },
1213
+ {
1214
+ "catalog_id": 44,
1215
+ "dataset": "CLadder",
1216
+ "requests": 5000,
1217
+ "answered": 5000,
1218
+ "unsupported": 0,
1219
+ "errors": 0,
1220
+ "abstained": 0,
1221
+ "pending": 0,
1222
+ "scored_requests": 5000,
1223
+ "metric": "accuracy",
1224
+ "score": 0.7442,
1225
+ "reference_same_cases": null,
1226
+ "median_ms": 3131.1482251621783,
1227
+ "detail": {
1228
+ "field_accuracy": 0.7442,
1229
+ "case_exact_accuracy": 0.7442,
1230
+ "custom_metrics": {}
1231
+ }
1232
+ },
1233
+ {
1234
+ "catalog_id": 45,
1235
+ "dataset": "HLE",
1236
+ "requests": 501,
1237
+ "answered": 501,
1238
+ "unsupported": 0,
1239
+ "errors": 0,
1240
+ "abstained": 0,
1241
+ "pending": 0,
1242
+ "scored_requests": 501,
1243
+ "metric": "accuracy",
1244
+ "score": 0.0998003992015968,
1245
+ "reference_same_cases": null,
1246
+ "median_ms": 5403.478977270424,
1247
+ "detail": {
1248
+ "field_accuracy": 0.0998003992015968,
1249
+ "case_exact_accuracy": 0.0998003992015968,
1250
+ "custom_metrics": {}
1251
+ }
1252
+ },
1253
+ {
1254
+ "catalog_id": 48,
1255
+ "dataset": "ForecastBench",
1256
+ "requests": 10139,
1257
+ "answered": 10139,
1258
+ "unsupported": 0,
1259
+ "errors": 0,
1260
+ "abstained": 0,
1261
+ "pending": 0,
1262
+ "scored_requests": 10139,
1263
+ "metric": "Brier (lower is better)",
1264
+ "score": 0.2033022735375425,
1265
+ "reference_same_cases": null,
1266
+ "median_ms": 5139.224340207875,
1267
+ "detail": {
1268
+ "field_accuracy": null,
1269
+ "case_exact_accuracy": null,
1270
+ "custom_metrics": {
1271
+ "brier": 0.2033022735375425,
1272
+ "log_loss": 0.5891763444652418,
1273
+ "accuracy": 0.6683104842686656
1274
+ },
1275
+ "subgroups": {
1276
+ "joint": {
1277
+ "n": 3242,
1278
+ "mean": 0.17453645721315736
1279
+ },
1280
+ "scalar": {
1281
+ "n": 6897,
1282
+ "mean": 0.21682391722663288
1283
+ }
1284
+ }
1285
+ }
1286
+ },
1287
+ {
1288
+ "catalog_id": 50,
1289
+ "dataset": "Habermas Machine",
1290
+ "requests": 1676,
1291
+ "answered": 1676,
1292
+ "unsupported": 0,
1293
+ "errors": 0,
1294
+ "abstained": 0,
1295
+ "pending": 0,
1296
+ "scored_requests": 1676,
1297
+ "metric": "accuracy",
1298
+ "score": 0.41229116945107397,
1299
+ "reference_same_cases": null,
1300
+ "median_ms": 3961.426212452352,
1301
+ "detail": {
1302
+ "field_accuracy": 0.41229116945107397,
1303
+ "case_exact_accuracy": 0.41229116945107397,
1304
+ "custom_metrics": {
1305
+ "normalized_rank_regret": 0.20616547334924423
1306
+ }
1307
+ }
1308
+ },
1309
+ {
1310
+ "catalog_id": 56,
1311
+ "dataset": "PhishNChips phishing decisions",
1312
+ "requests": 2000,
1313
+ "answered": 2000,
1314
+ "unsupported": 0,
1315
+ "errors": 0,
1316
+ "abstained": 0,
1317
+ "pending": 0,
1318
+ "metric": "accuracy",
1319
+ "score": 0.5225,
1320
+ "median_ms": 13023.058699909598,
1321
+ "scored_requests": 2000,
1322
+ "detail": {
1323
+ "field_accuracy": 0.5225,
1324
+ "scored_fields": 2000,
1325
+ "chance_on_rows": 0.5
1326
+ }
1327
+ },
1328
+ {
1329
+ "catalog_id": 57,
1330
+ "dataset": "MMLU-Pro",
1331
+ "requests": 12032,
1332
+ "answered": 12032,
1333
+ "unsupported": 0,
1334
+ "errors": 0,
1335
+ "abstained": 0,
1336
+ "pending": 0,
1337
+ "metric": "accuracy",
1338
+ "score": 0.6505984042553191,
1339
+ "median_ms": 2305.6644881144166,
1340
+ "scored_requests": 12032,
1341
+ "detail": {
1342
+ "field_accuracy": 0.6505984042553191,
1343
+ "scored_fields": 12032,
1344
+ "chance_on_rows": 0.11087694718844986
1345
+ }
1346
+ },
1347
+ {
1348
+ "catalog_id": 58,
1349
+ "dataset": "BBH fixed-option tasks",
1350
+ "requests": 5507,
1351
+ "answered": 5507,
1352
+ "unsupported": 0,
1353
+ "errors": 0,
1354
+ "abstained": 0,
1355
+ "pending": 0,
1356
+ "metric": "accuracy",
1357
+ "score": 0.7773742509533321,
1358
+ "median_ms": 1827.8180677443743,
1359
+ "scored_requests": 5507,
1360
+ "detail": {
1361
+ "field_accuracy": 0.7773742509533321,
1362
+ "scored_fields": 5507,
1363
+ "chance_on_rows": 0.31010949680343713
1364
+ }
1365
+ },
1366
+ {
1367
+ "catalog_id": 59,
1368
+ "dataset": "RAGTruth response-level hallucination",
1369
+ "requests": 2700,
1370
+ "answered": 2700,
1371
+ "unsupported": 0,
1372
+ "errors": 0,
1373
+ "abstained": 0,
1374
+ "pending": 0,
1375
+ "metric": "F1 on hallucinated class",
1376
+ "score": 0.7730232558139535,
1377
+ "median_ms": 2469.0013113431633,
1378
+ "scored_requests": 2700,
1379
+ "detail": {
1380
+ "field_accuracy": 0.8192592592592592,
1381
+ "scored_fields": 2700,
1382
+ "chance_on_rows": 0.41125163541212384
1383
+ }
1384
+ },
1385
+ {
1386
+ "catalog_id": 61,
1387
+ "dataset": "HoVer claim verification",
1388
+ "requests": 4000,
1389
+ "answered": 4000,
1390
+ "unsupported": 0,
1391
+ "errors": 0,
1392
+ "abstained": 0,
1393
+ "pending": 0,
1394
+ "metric": "accuracy",
1395
+ "score": 0.78075,
1396
+ "median_ms": 2006.9982912391424,
1397
+ "scored_requests": 4000,
1398
+ "detail": {
1399
+ "field_accuracy": 0.78075,
1400
+ "scored_fields": 4000,
1401
+ "chance_on_rows": 0.5
1402
+ }
1403
+ },
1404
+ {
1405
+ "catalog_id": 62,
1406
+ "dataset": "When2Call MCQ",
1407
+ "requests": 3652,
1408
+ "answered": 3652,
1409
+ "unsupported": 0,
1410
+ "errors": 0,
1411
+ "abstained": 0,
1412
+ "pending": 0,
1413
+ "metric": "accuracy",
1414
+ "score": 0.828039430449069,
1415
+ "median_ms": 1970.3904683701694,
1416
+ "scored_requests": 3652,
1417
+ "detail": {
1418
+ "field_accuracy": 0.828039430449069,
1419
+ "scored_fields": 3652,
1420
+ "chance_on_rows": 0.25
1421
+ }
1422
+ },
1423
+ {
1424
+ "catalog_id": 64,
1425
+ "dataset": "New Yorker caption matching",
1426
+ "requests": 528,
1427
+ "answered": 528,
1428
+ "unsupported": 0,
1429
+ "errors": 0,
1430
+ "abstained": 0,
1431
+ "pending": 0,
1432
+ "metric": "accuracy",
1433
+ "score": 0.5984848484848485,
1434
+ "median_ms": 2952.091441489756,
1435
+ "scored_requests": 528,
1436
+ "detail": {
1437
+ "field_accuracy": 0.5984848484848485,
1438
+ "scored_fields": 528,
1439
+ "chance_on_rows": 0.2
1440
+ }
1441
+ }
1442
+ ],
1443
+ "note": "Native benchmark metrics on complete supported case groups. Unsupported cases excluded from accuracy but retained in coverage.",
1444
+ "edition": "0.2.1"
1445
+ }
evaluation/index.json ADDED
@@ -0,0 +1,506 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "edition": "0.2.1",
3
+ "panel_id": "decision-index-0.2.1",
4
+ "index": 54.59,
5
+ "raw_index": 65.9,
6
+ "scores": {
7
+ "balanced_skill": 54.59,
8
+ "balanced_raw": 65.9,
9
+ "breadth_skill": 52.62
10
+ },
11
+ "areas": [
12
+ {
13
+ "id": "knowledge",
14
+ "label": "Knowledge & Reasoning",
15
+ "raw": 0.539,
16
+ "skill": 0.4253,
17
+ "coverage": 1.0,
18
+ "n": 10,
19
+ "benchmarks": [
20
+ 25,
21
+ 30,
22
+ 31,
23
+ 32,
24
+ 33,
25
+ 43,
26
+ 44,
27
+ 45,
28
+ 57,
29
+ 58
30
+ ]
31
+ },
32
+ {
33
+ "id": "language",
34
+ "label": "Language Understanding",
35
+ "raw": 0.7533,
36
+ "skill": 0.6283,
37
+ "coverage": 1.0,
38
+ "n": 10,
39
+ "benchmarks": [
40
+ 11,
41
+ 12,
42
+ 28,
43
+ 29,
44
+ 38,
45
+ 39,
46
+ 40,
47
+ 41,
48
+ 42,
49
+ 59
50
+ ]
51
+ },
52
+ {
53
+ "id": "retrieval",
54
+ "label": "Retrieval & Classification",
55
+ "raw": 0.6454,
56
+ "skill": 0.5067,
57
+ "coverage": 1.0,
58
+ "n": 6,
59
+ "benchmarks": [
60
+ 4,
61
+ 5,
62
+ 36,
63
+ 37,
64
+ 56,
65
+ 61
66
+ ]
67
+ },
68
+ {
69
+ "id": "tools",
70
+ "label": "Tools & Automation",
71
+ "raw": 0.821,
72
+ "skill": 0.7949,
73
+ "coverage": 1.0,
74
+ "n": 5,
75
+ "benchmarks": [
76
+ 1,
77
+ 2,
78
+ 3,
79
+ 9,
80
+ 62
81
+ ]
82
+ },
83
+ {
84
+ "id": "arts",
85
+ "label": "Arts & Human Taste",
86
+ "raw": 0.4569,
87
+ "skill": 0.268,
88
+ "coverage": 1.0,
89
+ "n": 7,
90
+ "benchmarks": [
91
+ 20,
92
+ 21,
93
+ 22,
94
+ 23,
95
+ 48,
96
+ 50,
97
+ 64
98
+ ]
99
+ }
100
+ ],
101
+ "benchmarks": {
102
+ "1": {
103
+ "raw": 0.938,
104
+ "skill": 0.9163,
105
+ "coverage": 1.0,
106
+ "random": 0.2592,
107
+ "rule": "track",
108
+ "in_index": true,
109
+ "tracks": []
110
+ },
111
+ "2": {
112
+ "raw": 0.66,
113
+ "skill": 0.6073,
114
+ "coverage": 1.0,
115
+ "random": 0.1341,
116
+ "rule": "track",
117
+ "in_index": true,
118
+ "tracks": []
119
+ },
120
+ "3": {
121
+ "raw": 0.7874,
122
+ "skill": 0.7833,
123
+ "coverage": 1.0,
124
+ "random": 0.0189,
125
+ "rule": "chance",
126
+ "in_index": true
127
+ },
128
+ "4": {
129
+ "raw": 0.7745,
130
+ "skill": 0.7716,
131
+ "coverage": 1.0,
132
+ "random": 0.0127,
133
+ "rule": "chance",
134
+ "in_index": true
135
+ },
136
+ "5": {
137
+ "raw": 0.8488,
138
+ "skill": 0.8479,
139
+ "coverage": 1.0,
140
+ "random": 0.006,
141
+ "rule": "chance",
142
+ "in_index": true
143
+ },
144
+ "9": {
145
+ "raw": 0.875,
146
+ "skill": 0.875,
147
+ "coverage": 1.0,
148
+ "random": 0.0,
149
+ "rule": "chance",
150
+ "in_index": true
151
+ },
152
+ "11": {
153
+ "raw": 0.761,
154
+ "skill": 0.6543,
155
+ "coverage": 1.0,
156
+ "random": 0.3085,
157
+ "rule": "track",
158
+ "in_index": true,
159
+ "tracks": []
160
+ },
161
+ "12": {
162
+ "raw": 0.6881,
163
+ "skill": 0.5328,
164
+ "coverage": 1.0,
165
+ "random": 0.3324,
166
+ "rule": "chance",
167
+ "in_index": true
168
+ },
169
+ "20": {
170
+ "raw": 0.8322,
171
+ "skill": 0.6644,
172
+ "coverage": 1.0,
173
+ "random": 0.5,
174
+ "rule": "track",
175
+ "in_index": true,
176
+ "tracks": []
177
+ },
178
+ "21": {
179
+ "raw": 0.6005,
180
+ "skill": 0.2009,
181
+ "coverage": 1.0,
182
+ "random": 0.5,
183
+ "rule": "track",
184
+ "in_index": true,
185
+ "tracks": []
186
+ },
187
+ "22": {
188
+ "raw": 0.042,
189
+ "skill": 0.0346,
190
+ "coverage": 1.0,
191
+ "random": 0.0078,
192
+ "rule": "track",
193
+ "in_index": true,
194
+ "tracks": []
195
+ },
196
+ "23": {
197
+ "raw": 0.5803,
198
+ "skill": 0.1606,
199
+ "coverage": 1.0,
200
+ "random": 0.5,
201
+ "rule": "track",
202
+ "in_index": true,
203
+ "tracks": []
204
+ },
205
+ "25": {
206
+ "raw": 0.5102,
207
+ "skill": 0.3469,
208
+ "coverage": 1.0,
209
+ "random": 0.25,
210
+ "rule": "track",
211
+ "in_index": true,
212
+ "tracks": []
213
+ },
214
+ "28": {
215
+ "raw": 0.7916,
216
+ "skill": 0.5832,
217
+ "coverage": 1.0,
218
+ "random": 0.5,
219
+ "rule": "chance",
220
+ "in_index": true
221
+ },
222
+ "29": {
223
+ "raw": 0.8992,
224
+ "skill": 0.8656,
225
+ "coverage": 1.0,
226
+ "random": 0.25,
227
+ "rule": "chance",
228
+ "in_index": true
229
+ },
230
+ "30": {
231
+ "raw": 0.9151,
232
+ "skill": 0.8982,
233
+ "coverage": 1.0,
234
+ "random": 0.25,
235
+ "rule": "track",
236
+ "in_index": true,
237
+ "tracks": [
238
+ {
239
+ "track": "GSM8K-4choice",
240
+ "score": 0.9333,
241
+ "headline": false
242
+ },
243
+ {
244
+ "track": "GSM8K-10choice",
245
+ "score": 0.8969,
246
+ "headline": false
247
+ }
248
+ ]
249
+ },
250
+ "31": {
251
+ "raw": 0.1076,
252
+ "skill": 0.028,
253
+ "coverage": 1.0,
254
+ "random": 0.0819,
255
+ "rule": "track",
256
+ "in_index": true,
257
+ "tracks": []
258
+ },
259
+ "32": {
260
+ "raw": 0.5758,
261
+ "skill": 0.3256,
262
+ "coverage": 1.0,
263
+ "random": 0.371,
264
+ "rule": "chance",
265
+ "in_index": true
266
+ },
267
+ "33": {
268
+ "raw": 0.2503,
269
+ "skill": 0.2403,
270
+ "coverage": 1.0,
271
+ "random": 0.0131,
272
+ "rule": "chance",
273
+ "in_index": true
274
+ },
275
+ "36": {
276
+ "raw": 0.4021,
277
+ "skill": 0.3236,
278
+ "coverage": 1.0,
279
+ "random": 0.116,
280
+ "rule": "track",
281
+ "in_index": true,
282
+ "tracks": []
283
+ },
284
+ "37": {
285
+ "raw": 0.5261,
286
+ "skill": 0.4056,
287
+ "coverage": 1.0,
288
+ "random": 0.2027,
289
+ "rule": "track",
290
+ "in_index": true,
291
+ "tracks": []
292
+ },
293
+ "38": {
294
+ "raw": 0.5652,
295
+ "skill": 0.5513,
296
+ "coverage": 1.0,
297
+ "random": 0.031,
298
+ "rule": "chance",
299
+ "in_index": true
300
+ },
301
+ "39": {
302
+ "raw": 0.8918,
303
+ "skill": 0.8409,
304
+ "coverage": 1.0,
305
+ "random": 0.3201,
306
+ "rule": "chance",
307
+ "in_index": true
308
+ },
309
+ "40": {
310
+ "raw": 0.5714,
311
+ "skill": 0.4487,
312
+ "coverage": 1.0,
313
+ "random": 0.2227,
314
+ "rule": "track",
315
+ "in_index": true,
316
+ "tracks": [
317
+ {
318
+ "track": "A · Arabic",
319
+ "score": 0.4873,
320
+ "headline": false
321
+ },
322
+ {
323
+ "track": "A · English",
324
+ "score": 0.5714,
325
+ "headline": true
326
+ },
327
+ {
328
+ "track": "C · Arabic pairs",
329
+ "score": 0.675,
330
+ "headline": false
331
+ },
332
+ {
333
+ "track": "C · English pairs",
334
+ "score": 0.905,
335
+ "headline": false
336
+ }
337
+ ]
338
+ },
339
+ "41": {
340
+ "raw": 0.7784,
341
+ "skill": 0.6675,
342
+ "coverage": 1.0,
343
+ "random": 0.3333,
344
+ "rule": "track",
345
+ "in_index": true,
346
+ "tracks": []
347
+ },
348
+ "42": {
349
+ "raw": 0.7894,
350
+ "skill": 0.5903,
351
+ "coverage": 1.0,
352
+ "random": 0.486,
353
+ "rule": "chance",
354
+ "in_index": true
355
+ },
356
+ "43": {
357
+ "raw": 0.7825,
358
+ "skill": 0.6548,
359
+ "coverage": 1.0,
360
+ "random": 0.3697,
361
+ "rule": "track",
362
+ "in_index": true,
363
+ "tracks": []
364
+ },
365
+ "44": {
366
+ "raw": 0.7442,
367
+ "skill": 0.4884,
368
+ "coverage": 1.0,
369
+ "random": 0.5,
370
+ "rule": "track",
371
+ "in_index": true,
372
+ "tracks": []
373
+ },
374
+ "45": {
375
+ "raw": 0.0998,
376
+ "skill": 0.0,
377
+ "coverage": 1.0,
378
+ "random": 0.1641,
379
+ "rule": "chance",
380
+ "in_index": true
381
+ },
382
+ "48": {
383
+ "raw": 0.1868,
384
+ "skill": 0.1868,
385
+ "coverage": 1.0,
386
+ "random": 0.25,
387
+ "rule": "vs baseline",
388
+ "in_index": true
389
+ },
390
+ "50": {
391
+ "raw": 0.4123,
392
+ "skill": 0.147,
393
+ "coverage": 1.0,
394
+ "random": 0.311,
395
+ "rule": "track",
396
+ "in_index": true,
397
+ "tracks": []
398
+ },
399
+ "56": {
400
+ "raw": 0.5225,
401
+ "skill": 0.045,
402
+ "coverage": 1.0,
403
+ "random": 0.5,
404
+ "rule": "chance",
405
+ "in_index": true
406
+ },
407
+ "57": {
408
+ "raw": 0.6506,
409
+ "skill": 0.607,
410
+ "coverage": 1.0,
411
+ "random": 0.1109,
412
+ "rule": "chance",
413
+ "in_index": true
414
+ },
415
+ "58": {
416
+ "raw": 0.7774,
417
+ "skill": 0.6773,
418
+ "coverage": 1.0,
419
+ "random": 0.3101,
420
+ "rule": "chance",
421
+ "in_index": true
422
+ },
423
+ "59": {
424
+ "raw": 0.773,
425
+ "skill": 0.5293,
426
+ "coverage": 1.0,
427
+ "random": 0.5177,
428
+ "rule": "chance",
429
+ "in_index": true
430
+ },
431
+ "61": {
432
+ "raw": 0.7808,
433
+ "skill": 0.5616,
434
+ "coverage": 1.0,
435
+ "random": 0.5,
436
+ "rule": "chance",
437
+ "in_index": true
438
+ },
439
+ "62": {
440
+ "raw": 0.828,
441
+ "skill": 0.7707,
442
+ "coverage": 1.0,
443
+ "random": 0.25,
444
+ "rule": "chance",
445
+ "in_index": true
446
+ },
447
+ "64": {
448
+ "raw": 0.5985,
449
+ "skill": 0.4981,
450
+ "coverage": 1.0,
451
+ "random": 0.2,
452
+ "rule": "chance",
453
+ "in_index": true
454
+ },
455
+ "6": {
456
+ "raw": 0.7667,
457
+ "skill": 0.453,
458
+ "coverage": 1.0,
459
+ "random": 0.5735,
460
+ "rule": "shown, not counted",
461
+ "in_index": false
462
+ },
463
+ "10": {
464
+ "raw": 0.0748,
465
+ "skill": 0.0,
466
+ "coverage": 1.0,
467
+ "random": 0.399,
468
+ "rule": "shown, not counted",
469
+ "in_index": false
470
+ },
471
+ "24": {
472
+ "raw": 0.7918,
473
+ "skill": 0.7224,
474
+ "coverage": 1.0,
475
+ "random": 0.25,
476
+ "rule": "shown, not counted",
477
+ "in_index": false
478
+ },
479
+ "26": {
480
+ "raw": 0.9827,
481
+ "skill": 0.9769,
482
+ "coverage": 1.0,
483
+ "random": 0.2502,
484
+ "rule": "shown, not counted",
485
+ "in_index": false
486
+ },
487
+ "27": {
488
+ "raw": 0.9608,
489
+ "skill": 0.9477,
490
+ "coverage": 1.0,
491
+ "random": 0.2502,
492
+ "rule": "shown, not counted",
493
+ "in_index": false
494
+ },
495
+ "34": {
496
+ "raw": 0.1,
497
+ "skill": 0.0,
498
+ "coverage": 1.0,
499
+ "random": 0.1667,
500
+ "rule": "shown, not counted",
501
+ "in_index": false
502
+ }
503
+ },
504
+ "coverage": 1.0,
505
+ "note": "Decision Index 0.2.1 averages 38 benchmarks in five areas. Arts & Human Taste weighs 10%; the other four share 90% in proportion to the square root of their benchmark count (knowledge 25.8%, language 25.8%, retrieval 20.0%, tools 18.3%). Inside an area, gold ★ benchmarks weigh 1.2 and the rest 1.0; the index is 100 x the weighted mean of the five areas. Each benchmark is chance-corrected first, (score - chance) / (1 - chance) clipped to 0-1, so 0 means random guessing and 100 means perfect. Every score is coverage-adjusted, so an unanswered or unsupported request counts as wrong. ForecastBench enters against its baseline: clip((0.25 - Brier) / 0.25) x coverage, so always predicting 0.5 scores zero. MMLU, ARC-Easy, ARC-Challenge, RouterBench, SGD stay on the board as non-index benchmarks. The six interactive environments are still unrun and stay out. Every entrant on the board has results on all 38 index benchmarks. Point estimates only, no uncertainty intervals yet."
506
+ }
evaluation/release-validation.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "server_tests": {
3
+ "passed": 24,
4
+ "includes": "generated-request prompt/answer parity with reference; fake vLLM",
5
+ "gpu_rerun": false
6
+ },
7
+ "result_archive_scan": {
8
+ "rows": 150317,
9
+ "request_payload_fields": 0,
10
+ "generated_reasoning_fields": 0,
11
+ "raw_answer_fields": [
12
+ "mode",
13
+ "keys",
14
+ "A",
15
+ "B"
16
+ ]
17
+ },
18
+ "serial_750_gate": "maintainer verification pending"
19
+ }
evaluation/scores.json ADDED
@@ -0,0 +1,1448 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "engine": "run",
3
+ "edition": "0.2.1",
4
+ "generated_utc": "2026-09-28T23:16:58+00:00",
5
+ "suite": {
6
+ "edition": "release-v2.1",
7
+ "requests": 120340,
8
+ "scoreable": 119898,
9
+ "excluded": 442,
10
+ "added_requests": 30419,
11
+ "benchmarks": 44,
12
+ "rows_sha256": "b2b56d6fb636837ca469e689087bdbf373dda8de7638aa2da6793e6eda0792d5",
13
+ "added_sha256": "7429f3c9cdddb772c1cfc42bb2a45e8516b0032152b746e6929f1c8b52f4ce89"
14
+ },
15
+ "completed": 150317,
16
+ "complete": true,
17
+ "counts": {
18
+ "ok": 150317
19
+ },
20
+ "latency_ms": {
21
+ "median": 2359.7,
22
+ "p95": 16111.3,
23
+ "mean": 5418.8
24
+ },
25
+ "decision_index": 54.59,
26
+ "raw_index": 65.9,
27
+ "scores": {
28
+ "balanced_skill": 54.59,
29
+ "balanced_raw": 65.9,
30
+ "breadth_skill": 52.62
31
+ },
32
+ "areas": [
33
+ {
34
+ "id": "knowledge",
35
+ "label": "Knowledge & Reasoning",
36
+ "raw": 0.539,
37
+ "skill": 0.4253,
38
+ "coverage": 1.0,
39
+ "n": 10,
40
+ "benchmarks": [
41
+ 25,
42
+ 30,
43
+ 31,
44
+ 32,
45
+ 33,
46
+ 43,
47
+ 44,
48
+ 45,
49
+ 57,
50
+ 58
51
+ ]
52
+ },
53
+ {
54
+ "id": "language",
55
+ "label": "Language Understanding",
56
+ "raw": 0.7533,
57
+ "skill": 0.6283,
58
+ "coverage": 1.0,
59
+ "n": 10,
60
+ "benchmarks": [
61
+ 11,
62
+ 12,
63
+ 28,
64
+ 29,
65
+ 38,
66
+ 39,
67
+ 40,
68
+ 41,
69
+ 42,
70
+ 59
71
+ ]
72
+ },
73
+ {
74
+ "id": "retrieval",
75
+ "label": "Retrieval & Classification",
76
+ "raw": 0.6454,
77
+ "skill": 0.5067,
78
+ "coverage": 1.0,
79
+ "n": 6,
80
+ "benchmarks": [
81
+ 4,
82
+ 5,
83
+ 36,
84
+ 37,
85
+ 56,
86
+ 61
87
+ ]
88
+ },
89
+ {
90
+ "id": "tools",
91
+ "label": "Tools & Automation",
92
+ "raw": 0.821,
93
+ "skill": 0.7949,
94
+ "coverage": 1.0,
95
+ "n": 5,
96
+ "benchmarks": [
97
+ 1,
98
+ 2,
99
+ 3,
100
+ 9,
101
+ 62
102
+ ]
103
+ },
104
+ {
105
+ "id": "arts",
106
+ "label": "Arts & Human Taste",
107
+ "raw": 0.4569,
108
+ "skill": 0.268,
109
+ "coverage": 1.0,
110
+ "n": 7,
111
+ "benchmarks": [
112
+ 20,
113
+ 21,
114
+ 22,
115
+ 23,
116
+ 48,
117
+ 50,
118
+ 64
119
+ ]
120
+ }
121
+ ],
122
+ "index_benchmarks": {
123
+ "1": {
124
+ "raw": 0.938,
125
+ "skill": 0.9163,
126
+ "coverage": 1.0,
127
+ "random": 0.2592,
128
+ "rule": "track",
129
+ "in_index": true,
130
+ "tracks": []
131
+ },
132
+ "2": {
133
+ "raw": 0.66,
134
+ "skill": 0.6073,
135
+ "coverage": 1.0,
136
+ "random": 0.1341,
137
+ "rule": "track",
138
+ "in_index": true,
139
+ "tracks": []
140
+ },
141
+ "3": {
142
+ "raw": 0.7874,
143
+ "skill": 0.7833,
144
+ "coverage": 1.0,
145
+ "random": 0.0189,
146
+ "rule": "chance",
147
+ "in_index": true
148
+ },
149
+ "4": {
150
+ "raw": 0.7745,
151
+ "skill": 0.7716,
152
+ "coverage": 1.0,
153
+ "random": 0.0127,
154
+ "rule": "chance",
155
+ "in_index": true
156
+ },
157
+ "5": {
158
+ "raw": 0.8488,
159
+ "skill": 0.8479,
160
+ "coverage": 1.0,
161
+ "random": 0.006,
162
+ "rule": "chance",
163
+ "in_index": true
164
+ },
165
+ "9": {
166
+ "raw": 0.875,
167
+ "skill": 0.875,
168
+ "coverage": 1.0,
169
+ "random": 0.0,
170
+ "rule": "chance",
171
+ "in_index": true
172
+ },
173
+ "11": {
174
+ "raw": 0.761,
175
+ "skill": 0.6543,
176
+ "coverage": 1.0,
177
+ "random": 0.3085,
178
+ "rule": "track",
179
+ "in_index": true,
180
+ "tracks": []
181
+ },
182
+ "12": {
183
+ "raw": 0.6881,
184
+ "skill": 0.5328,
185
+ "coverage": 1.0,
186
+ "random": 0.3324,
187
+ "rule": "chance",
188
+ "in_index": true
189
+ },
190
+ "20": {
191
+ "raw": 0.8322,
192
+ "skill": 0.6644,
193
+ "coverage": 1.0,
194
+ "random": 0.5,
195
+ "rule": "track",
196
+ "in_index": true,
197
+ "tracks": []
198
+ },
199
+ "21": {
200
+ "raw": 0.6005,
201
+ "skill": 0.2009,
202
+ "coverage": 1.0,
203
+ "random": 0.5,
204
+ "rule": "track",
205
+ "in_index": true,
206
+ "tracks": []
207
+ },
208
+ "22": {
209
+ "raw": 0.042,
210
+ "skill": 0.0346,
211
+ "coverage": 1.0,
212
+ "random": 0.0078,
213
+ "rule": "track",
214
+ "in_index": true,
215
+ "tracks": []
216
+ },
217
+ "23": {
218
+ "raw": 0.5803,
219
+ "skill": 0.1606,
220
+ "coverage": 1.0,
221
+ "random": 0.5,
222
+ "rule": "track",
223
+ "in_index": true,
224
+ "tracks": []
225
+ },
226
+ "25": {
227
+ "raw": 0.5102,
228
+ "skill": 0.3469,
229
+ "coverage": 1.0,
230
+ "random": 0.25,
231
+ "rule": "track",
232
+ "in_index": true,
233
+ "tracks": []
234
+ },
235
+ "28": {
236
+ "raw": 0.7916,
237
+ "skill": 0.5832,
238
+ "coverage": 1.0,
239
+ "random": 0.5,
240
+ "rule": "chance",
241
+ "in_index": true
242
+ },
243
+ "29": {
244
+ "raw": 0.8992,
245
+ "skill": 0.8656,
246
+ "coverage": 1.0,
247
+ "random": 0.25,
248
+ "rule": "chance",
249
+ "in_index": true
250
+ },
251
+ "30": {
252
+ "raw": 0.9151,
253
+ "skill": 0.8982,
254
+ "coverage": 1.0,
255
+ "random": 0.25,
256
+ "rule": "track",
257
+ "in_index": true,
258
+ "tracks": [
259
+ {
260
+ "track": "GSM8K-4choice",
261
+ "score": 0.9333,
262
+ "headline": false
263
+ },
264
+ {
265
+ "track": "GSM8K-10choice",
266
+ "score": 0.8969,
267
+ "headline": false
268
+ }
269
+ ]
270
+ },
271
+ "31": {
272
+ "raw": 0.1076,
273
+ "skill": 0.028,
274
+ "coverage": 1.0,
275
+ "random": 0.0819,
276
+ "rule": "track",
277
+ "in_index": true,
278
+ "tracks": []
279
+ },
280
+ "32": {
281
+ "raw": 0.5758,
282
+ "skill": 0.3256,
283
+ "coverage": 1.0,
284
+ "random": 0.371,
285
+ "rule": "chance",
286
+ "in_index": true
287
+ },
288
+ "33": {
289
+ "raw": 0.2503,
290
+ "skill": 0.2403,
291
+ "coverage": 1.0,
292
+ "random": 0.0131,
293
+ "rule": "chance",
294
+ "in_index": true
295
+ },
296
+ "36": {
297
+ "raw": 0.4021,
298
+ "skill": 0.3236,
299
+ "coverage": 1.0,
300
+ "random": 0.116,
301
+ "rule": "track",
302
+ "in_index": true,
303
+ "tracks": []
304
+ },
305
+ "37": {
306
+ "raw": 0.5261,
307
+ "skill": 0.4056,
308
+ "coverage": 1.0,
309
+ "random": 0.2027,
310
+ "rule": "track",
311
+ "in_index": true,
312
+ "tracks": []
313
+ },
314
+ "38": {
315
+ "raw": 0.5652,
316
+ "skill": 0.5513,
317
+ "coverage": 1.0,
318
+ "random": 0.031,
319
+ "rule": "chance",
320
+ "in_index": true
321
+ },
322
+ "39": {
323
+ "raw": 0.8918,
324
+ "skill": 0.8409,
325
+ "coverage": 1.0,
326
+ "random": 0.3201,
327
+ "rule": "chance",
328
+ "in_index": true
329
+ },
330
+ "40": {
331
+ "raw": 0.5714,
332
+ "skill": 0.4487,
333
+ "coverage": 1.0,
334
+ "random": 0.2227,
335
+ "rule": "track",
336
+ "in_index": true,
337
+ "tracks": [
338
+ {
339
+ "track": "A · Arabic",
340
+ "score": 0.4873,
341
+ "headline": false
342
+ },
343
+ {
344
+ "track": "A · English",
345
+ "score": 0.5714,
346
+ "headline": true
347
+ },
348
+ {
349
+ "track": "C · Arabic pairs",
350
+ "score": 0.675,
351
+ "headline": false
352
+ },
353
+ {
354
+ "track": "C · English pairs",
355
+ "score": 0.905,
356
+ "headline": false
357
+ }
358
+ ]
359
+ },
360
+ "41": {
361
+ "raw": 0.7784,
362
+ "skill": 0.6675,
363
+ "coverage": 1.0,
364
+ "random": 0.3333,
365
+ "rule": "track",
366
+ "in_index": true,
367
+ "tracks": []
368
+ },
369
+ "42": {
370
+ "raw": 0.7894,
371
+ "skill": 0.5903,
372
+ "coverage": 1.0,
373
+ "random": 0.486,
374
+ "rule": "chance",
375
+ "in_index": true
376
+ },
377
+ "43": {
378
+ "raw": 0.7825,
379
+ "skill": 0.6548,
380
+ "coverage": 1.0,
381
+ "random": 0.3697,
382
+ "rule": "track",
383
+ "in_index": true,
384
+ "tracks": []
385
+ },
386
+ "44": {
387
+ "raw": 0.7442,
388
+ "skill": 0.4884,
389
+ "coverage": 1.0,
390
+ "random": 0.5,
391
+ "rule": "track",
392
+ "in_index": true,
393
+ "tracks": []
394
+ },
395
+ "45": {
396
+ "raw": 0.0998,
397
+ "skill": 0.0,
398
+ "coverage": 1.0,
399
+ "random": 0.1641,
400
+ "rule": "chance",
401
+ "in_index": true
402
+ },
403
+ "48": {
404
+ "raw": 0.1868,
405
+ "skill": 0.1868,
406
+ "coverage": 1.0,
407
+ "random": 0.25,
408
+ "rule": "vs baseline",
409
+ "in_index": true
410
+ },
411
+ "50": {
412
+ "raw": 0.4123,
413
+ "skill": 0.147,
414
+ "coverage": 1.0,
415
+ "random": 0.311,
416
+ "rule": "track",
417
+ "in_index": true,
418
+ "tracks": []
419
+ },
420
+ "56": {
421
+ "raw": 0.5225,
422
+ "skill": 0.045,
423
+ "coverage": 1.0,
424
+ "random": 0.5,
425
+ "rule": "chance",
426
+ "in_index": true
427
+ },
428
+ "57": {
429
+ "raw": 0.6506,
430
+ "skill": 0.607,
431
+ "coverage": 1.0,
432
+ "random": 0.1109,
433
+ "rule": "chance",
434
+ "in_index": true
435
+ },
436
+ "58": {
437
+ "raw": 0.7774,
438
+ "skill": 0.6773,
439
+ "coverage": 1.0,
440
+ "random": 0.3101,
441
+ "rule": "chance",
442
+ "in_index": true
443
+ },
444
+ "59": {
445
+ "raw": 0.773,
446
+ "skill": 0.5293,
447
+ "coverage": 1.0,
448
+ "random": 0.5177,
449
+ "rule": "chance",
450
+ "in_index": true
451
+ },
452
+ "61": {
453
+ "raw": 0.7808,
454
+ "skill": 0.5616,
455
+ "coverage": 1.0,
456
+ "random": 0.5,
457
+ "rule": "chance",
458
+ "in_index": true
459
+ },
460
+ "62": {
461
+ "raw": 0.828,
462
+ "skill": 0.7707,
463
+ "coverage": 1.0,
464
+ "random": 0.25,
465
+ "rule": "chance",
466
+ "in_index": true
467
+ },
468
+ "64": {
469
+ "raw": 0.5985,
470
+ "skill": 0.4981,
471
+ "coverage": 1.0,
472
+ "random": 0.2,
473
+ "rule": "chance",
474
+ "in_index": true
475
+ },
476
+ "6": {
477
+ "raw": 0.7667,
478
+ "skill": 0.453,
479
+ "coverage": 1.0,
480
+ "random": 0.5735,
481
+ "rule": "shown, not counted",
482
+ "in_index": false
483
+ },
484
+ "10": {
485
+ "raw": 0.0748,
486
+ "skill": 0.0,
487
+ "coverage": 1.0,
488
+ "random": 0.399,
489
+ "rule": "shown, not counted",
490
+ "in_index": false
491
+ },
492
+ "24": {
493
+ "raw": 0.7918,
494
+ "skill": 0.7224,
495
+ "coverage": 1.0,
496
+ "random": 0.25,
497
+ "rule": "shown, not counted",
498
+ "in_index": false
499
+ },
500
+ "26": {
501
+ "raw": 0.9827,
502
+ "skill": 0.9769,
503
+ "coverage": 1.0,
504
+ "random": 0.2502,
505
+ "rule": "shown, not counted",
506
+ "in_index": false
507
+ },
508
+ "27": {
509
+ "raw": 0.9608,
510
+ "skill": 0.9477,
511
+ "coverage": 1.0,
512
+ "random": 0.2502,
513
+ "rule": "shown, not counted",
514
+ "in_index": false
515
+ },
516
+ "34": {
517
+ "raw": 0.1,
518
+ "skill": 0.0,
519
+ "coverage": 1.0,
520
+ "random": 0.1667,
521
+ "rule": "shown, not counted",
522
+ "in_index": false
523
+ }
524
+ },
525
+ "benchmarks": {
526
+ "1": {
527
+ "catalog_id": 1,
528
+ "dataset": "BFCL",
529
+ "requests": 1694,
530
+ "answered": 1694,
531
+ "unsupported": 0,
532
+ "errors": 0,
533
+ "abstained": 0,
534
+ "pending": 0,
535
+ "scored_requests": 1694,
536
+ "metric": "case exact accuracy",
537
+ "score": 0.938,
538
+ "reference_same_cases": null,
539
+ "median_ms": 3427.0,
540
+ "index_raw": 0.938,
541
+ "index_skill": 0.9163,
542
+ "coverage": 1.0,
543
+ "chance": 0.2592,
544
+ "in_index": true
545
+ },
546
+ "2": {
547
+ "catalog_id": 2,
548
+ "dataset": "ToolRet",
549
+ "requests": 685,
550
+ "answered": 685,
551
+ "unsupported": 0,
552
+ "errors": 0,
553
+ "abstained": 0,
554
+ "pending": 0,
555
+ "scored_requests": 685,
556
+ "metric": "nDCG@10",
557
+ "score": 0.66,
558
+ "reference_same_cases": null,
559
+ "median_ms": 48200.3,
560
+ "index_raw": 0.66,
561
+ "index_skill": 0.6073,
562
+ "coverage": 1.0,
563
+ "chance": 0.1341,
564
+ "in_index": true
565
+ },
566
+ "3": {
567
+ "catalog_id": 3,
568
+ "dataset": "API-Bank",
569
+ "requests": 508,
570
+ "answered": 508,
571
+ "unsupported": 0,
572
+ "errors": 0,
573
+ "abstained": 0,
574
+ "pending": 0,
575
+ "scored_requests": 508,
576
+ "metric": "accuracy",
577
+ "score": 0.7874,
578
+ "reference_same_cases": null,
579
+ "median_ms": 893.8,
580
+ "index_raw": 0.7874,
581
+ "index_skill": 0.7833,
582
+ "coverage": 1.0,
583
+ "chance": 0.0189,
584
+ "in_index": true
585
+ },
586
+ "4": {
587
+ "catalog_id": 4,
588
+ "dataset": "BANKING77",
589
+ "requests": 3080,
590
+ "answered": 3080,
591
+ "unsupported": 0,
592
+ "errors": 0,
593
+ "abstained": 0,
594
+ "pending": 0,
595
+ "scored_requests": 3080,
596
+ "metric": "macro-F1",
597
+ "score": 0.7745,
598
+ "reference_same_cases": null,
599
+ "median_ms": 347.4,
600
+ "index_raw": 0.7745,
601
+ "index_skill": 0.7716,
602
+ "coverage": 1.0,
603
+ "chance": 0.0127,
604
+ "in_index": true
605
+ },
606
+ "5": {
607
+ "catalog_id": 5,
608
+ "dataset": "CLINC150+OOS",
609
+ "requests": 5500,
610
+ "answered": 5500,
611
+ "unsupported": 0,
612
+ "errors": 0,
613
+ "abstained": 0,
614
+ "pending": 0,
615
+ "scored_requests": 5500,
616
+ "metric": "macro-F1",
617
+ "score": 0.8488,
618
+ "reference_same_cases": null,
619
+ "median_ms": 578.9,
620
+ "index_raw": 0.8488,
621
+ "index_skill": 0.8479,
622
+ "coverage": 1.0,
623
+ "chance": 0.006,
624
+ "in_index": true
625
+ },
626
+ "6": {
627
+ "catalog_id": 6,
628
+ "dataset": "RouterBench",
629
+ "requests": 10000,
630
+ "answered": 10000,
631
+ "unsupported": 0,
632
+ "errors": 0,
633
+ "abstained": 0,
634
+ "pending": 0,
635
+ "scored_requests": 10000,
636
+ "metric": "selected quality (quality objective)",
637
+ "score": 0.7667,
638
+ "reference_same_cases": null,
639
+ "median_ms": 14357.0,
640
+ "tracks": {
641
+ "RouterBench-0shot": {
642
+ "metric": "selected quality (quality objective)",
643
+ "score": 0.7308614831101339,
644
+ "scored_requests": 5003
645
+ },
646
+ "RouterBench-5shot": {
647
+ "metric": "selected quality (quality objective)",
648
+ "score": 0.8026115669401641,
649
+ "scored_requests": 4997
650
+ }
651
+ },
652
+ "index_raw": 0.7667,
653
+ "index_skill": 0.453,
654
+ "coverage": 1.0,
655
+ "chance": 0.5735,
656
+ "in_index": false
657
+ },
658
+ "9": {
659
+ "catalog_id": 9,
660
+ "dataset": "Home appliance simulator",
661
+ "requests": 88,
662
+ "answered": 88,
663
+ "unsupported": 0,
664
+ "errors": 0,
665
+ "abstained": 0,
666
+ "pending": 0,
667
+ "scored_requests": 88,
668
+ "metric": "case exact accuracy",
669
+ "score": 0.875,
670
+ "reference_same_cases": null,
671
+ "median_ms": 23359.2,
672
+ "index_raw": 0.875,
673
+ "index_skill": 0.875,
674
+ "coverage": 1.0,
675
+ "chance": 0.0,
676
+ "in_index": true
677
+ },
678
+ "10": {
679
+ "catalog_id": 10,
680
+ "dataset": "SGD/SGD-X",
681
+ "requests": 2500,
682
+ "answered": 2500,
683
+ "unsupported": 0,
684
+ "errors": 0,
685
+ "abstained": 0,
686
+ "pending": 0,
687
+ "scored_requests": 2500,
688
+ "metric": "macro-F1",
689
+ "score": 0.0748,
690
+ "reference_same_cases": null,
691
+ "median_ms": 1551.0,
692
+ "index_raw": 0.0748,
693
+ "index_skill": 0.0,
694
+ "coverage": 1.0,
695
+ "chance": 0.399,
696
+ "in_index": false
697
+ },
698
+ "11": {
699
+ "catalog_id": 11,
700
+ "dataset": "ContractNLI",
701
+ "requests": 123,
702
+ "answered": 123,
703
+ "unsupported": 0,
704
+ "errors": 0,
705
+ "abstained": 0,
706
+ "pending": 0,
707
+ "scored_requests": 123,
708
+ "metric": "macro-F1",
709
+ "score": 0.761,
710
+ "reference_same_cases": null,
711
+ "median_ms": 48119.1,
712
+ "index_raw": 0.761,
713
+ "index_skill": 0.6543,
714
+ "coverage": 1.0,
715
+ "chance": 0.3085,
716
+ "in_index": true
717
+ },
718
+ "12": {
719
+ "catalog_id": 12,
720
+ "dataset": "ANLI",
721
+ "requests": 3200,
722
+ "answered": 3200,
723
+ "unsupported": 0,
724
+ "errors": 0,
725
+ "abstained": 0,
726
+ "pending": 0,
727
+ "scored_requests": 3200,
728
+ "metric": "macro-F1",
729
+ "score": 0.6881,
730
+ "reference_same_cases": null,
731
+ "median_ms": 1871.7,
732
+ "index_raw": 0.6881,
733
+ "index_skill": 0.5328,
734
+ "coverage": 1.0,
735
+ "chance": 0.3324,
736
+ "in_index": true
737
+ },
738
+ "20": {
739
+ "catalog_id": 20,
740
+ "dataset": "BPoMP",
741
+ "requests": 5000,
742
+ "answered": 5000,
743
+ "unsupported": 0,
744
+ "errors": 0,
745
+ "abstained": 0,
746
+ "pending": 0,
747
+ "scored_requests": 5000,
748
+ "metric": "accuracy",
749
+ "score": 0.8328,
750
+ "reference_same_cases": null,
751
+ "median_ms": 3517.3,
752
+ "index_raw": 0.8322,
753
+ "index_skill": 0.6644,
754
+ "coverage": 1.0,
755
+ "chance": 0.5,
756
+ "in_index": true
757
+ },
758
+ "21": {
759
+ "catalog_id": 21,
760
+ "dataset": "Humicroedit",
761
+ "requests": 2628,
762
+ "answered": 2628,
763
+ "unsupported": 0,
764
+ "errors": 0,
765
+ "abstained": 0,
766
+ "pending": 0,
767
+ "scored_requests": 2628,
768
+ "metric": "accuracy",
769
+ "score": 0.6005,
770
+ "reference_same_cases": null,
771
+ "median_ms": 1887.3,
772
+ "index_raw": 0.6005,
773
+ "index_skill": 0.2009,
774
+ "coverage": 1.0,
775
+ "chance": 0.5,
776
+ "in_index": true
777
+ },
778
+ "22": {
779
+ "catalog_id": 22,
780
+ "dataset": "POP909-CL",
781
+ "requests": 2000,
782
+ "answered": 2000,
783
+ "unsupported": 0,
784
+ "errors": 0,
785
+ "abstained": 0,
786
+ "pending": 0,
787
+ "scored_requests": 2000,
788
+ "metric": "accuracy",
789
+ "score": 0.0415,
790
+ "reference_same_cases": null,
791
+ "median_ms": 951.7,
792
+ "index_raw": 0.042,
793
+ "index_skill": 0.0346,
794
+ "coverage": 1.0,
795
+ "chance": 0.0078,
796
+ "in_index": true
797
+ },
798
+ "23": {
799
+ "catalog_id": 23,
800
+ "dataset": "cfcolor",
801
+ "requests": 5000,
802
+ "answered": 5000,
803
+ "unsupported": 0,
804
+ "errors": 0,
805
+ "abstained": 0,
806
+ "pending": 0,
807
+ "scored_requests": 5000,
808
+ "metric": "accuracy",
809
+ "score": 0.5986,
810
+ "reference_same_cases": null,
811
+ "median_ms": 5303.8,
812
+ "index_raw": 0.5803,
813
+ "index_skill": 0.1606,
814
+ "coverage": 1.0,
815
+ "chance": 0.5,
816
+ "in_index": true
817
+ },
818
+ "24": {
819
+ "catalog_id": 24,
820
+ "dataset": "MMLU",
821
+ "requests": 14033,
822
+ "answered": 14033,
823
+ "unsupported": 0,
824
+ "errors": 0,
825
+ "abstained": 0,
826
+ "pending": 0,
827
+ "scored_requests": 14033,
828
+ "metric": "accuracy",
829
+ "score": 0.7918,
830
+ "reference_same_cases": null,
831
+ "median_ms": 1615.5,
832
+ "index_raw": 0.7918,
833
+ "index_skill": 0.7224,
834
+ "coverage": 1.0,
835
+ "chance": 0.25,
836
+ "in_index": false
837
+ },
838
+ "25": {
839
+ "catalog_id": 25,
840
+ "dataset": "GPQA Diamond",
841
+ "requests": 196,
842
+ "answered": 196,
843
+ "unsupported": 0,
844
+ "errors": 0,
845
+ "abstained": 0,
846
+ "pending": 0,
847
+ "scored_requests": 196,
848
+ "metric": "accuracy",
849
+ "score": 0.5102,
850
+ "reference_same_cases": null,
851
+ "median_ms": 5373.5,
852
+ "index_raw": 0.5102,
853
+ "index_skill": 0.3469,
854
+ "coverage": 1.0,
855
+ "chance": 0.25,
856
+ "in_index": true
857
+ },
858
+ "26": {
859
+ "catalog_id": 26,
860
+ "dataset": "ARC-Easy",
861
+ "requests": 2376,
862
+ "answered": 2376,
863
+ "unsupported": 0,
864
+ "errors": 0,
865
+ "abstained": 0,
866
+ "pending": 0,
867
+ "scored_requests": 2376,
868
+ "metric": "accuracy",
869
+ "score": 0.9827,
870
+ "reference_same_cases": null,
871
+ "median_ms": 915.8,
872
+ "index_raw": 0.9827,
873
+ "index_skill": 0.9769,
874
+ "coverage": 1.0,
875
+ "chance": 0.2502,
876
+ "in_index": false
877
+ },
878
+ "27": {
879
+ "catalog_id": 27,
880
+ "dataset": "ARC-Challenge",
881
+ "requests": 1172,
882
+ "answered": 1172,
883
+ "unsupported": 0,
884
+ "errors": 0,
885
+ "abstained": 0,
886
+ "pending": 0,
887
+ "scored_requests": 1172,
888
+ "metric": "accuracy",
889
+ "score": 0.9608,
890
+ "reference_same_cases": null,
891
+ "median_ms": 1117.7,
892
+ "index_raw": 0.9608,
893
+ "index_skill": 0.9477,
894
+ "coverage": 1.0,
895
+ "chance": 0.2502,
896
+ "in_index": false
897
+ },
898
+ "28": {
899
+ "catalog_id": 28,
900
+ "dataset": "WinoGrande",
901
+ "requests": 1267,
902
+ "answered": 1267,
903
+ "unsupported": 0,
904
+ "errors": 0,
905
+ "abstained": 0,
906
+ "pending": 0,
907
+ "scored_requests": 1267,
908
+ "metric": "accuracy",
909
+ "score": 0.7916,
910
+ "reference_same_cases": null,
911
+ "median_ms": 1430.2,
912
+ "index_raw": 0.7916,
913
+ "index_skill": 0.5832,
914
+ "coverage": 1.0,
915
+ "chance": 0.5,
916
+ "in_index": true
917
+ },
918
+ "29": {
919
+ "catalog_id": 29,
920
+ "dataset": "HellaSwag",
921
+ "requests": 10042,
922
+ "answered": 10042,
923
+ "unsupported": 0,
924
+ "errors": 0,
925
+ "abstained": 0,
926
+ "pending": 0,
927
+ "scored_requests": 10042,
928
+ "metric": "accuracy",
929
+ "score": 0.8992,
930
+ "reference_same_cases": null,
931
+ "median_ms": 2731.9,
932
+ "index_raw": 0.8992,
933
+ "index_skill": 0.8656,
934
+ "coverage": 1.0,
935
+ "chance": 0.25,
936
+ "in_index": true
937
+ },
938
+ "30": {
939
+ "catalog_id": 30,
940
+ "dataset": "GSM8K",
941
+ "requests": 2638,
942
+ "answered": 2638,
943
+ "unsupported": 0,
944
+ "errors": 0,
945
+ "abstained": 0,
946
+ "pending": 0,
947
+ "scored_requests": 2638,
948
+ "metric": "accuracy",
949
+ "score": 0.9151,
950
+ "reference_same_cases": null,
951
+ "median_ms": 1297.7,
952
+ "tracks": [
953
+ {
954
+ "track": "GSM8K-4choice",
955
+ "score": 0.9333,
956
+ "headline": false
957
+ },
958
+ {
959
+ "track": "GSM8K-10choice",
960
+ "score": 0.8969,
961
+ "headline": false
962
+ }
963
+ ],
964
+ "index_raw": 0.9151,
965
+ "index_skill": 0.8982,
966
+ "coverage": 1.0,
967
+ "chance": 0.25,
968
+ "in_index": true
969
+ },
970
+ "31": {
971
+ "catalog_id": 31,
972
+ "dataset": "ChessBench",
973
+ "requests": 5000,
974
+ "answered": 5000,
975
+ "unsupported": 0,
976
+ "errors": 0,
977
+ "abstained": 0,
978
+ "pending": 0,
979
+ "scored_requests": 5000,
980
+ "metric": "accuracy",
981
+ "score": 0.1076,
982
+ "reference_same_cases": null,
983
+ "median_ms": 367.5,
984
+ "index_raw": 0.1076,
985
+ "index_skill": 0.028,
986
+ "coverage": 1.0,
987
+ "chance": 0.0819,
988
+ "in_index": true
989
+ },
990
+ "32": {
991
+ "catalog_id": 32,
992
+ "dataset": "MuSR",
993
+ "requests": 752,
994
+ "answered": 752,
995
+ "unsupported": 0,
996
+ "errors": 0,
997
+ "abstained": 0,
998
+ "pending": 0,
999
+ "scored_requests": 752,
1000
+ "metric": "accuracy",
1001
+ "score": 0.5758,
1002
+ "reference_same_cases": null,
1003
+ "median_ms": 2307.2,
1004
+ "index_raw": 0.5758,
1005
+ "index_skill": 0.3256,
1006
+ "coverage": 1.0,
1007
+ "chance": 0.371,
1008
+ "in_index": true
1009
+ },
1010
+ "33": {
1011
+ "catalog_id": 33,
1012
+ "dataset": "SATA-Bench",
1013
+ "requests": 1650,
1014
+ "answered": 1650,
1015
+ "unsupported": 0,
1016
+ "errors": 0,
1017
+ "abstained": 0,
1018
+ "pending": 0,
1019
+ "scored_requests": 1650,
1020
+ "metric": "case exact accuracy",
1021
+ "score": 0.2503,
1022
+ "reference_same_cases": null,
1023
+ "median_ms": 20847.2,
1024
+ "index_raw": 0.2503,
1025
+ "index_skill": 0.2403,
1026
+ "coverage": 1.0,
1027
+ "chance": 0.0131,
1028
+ "in_index": true
1029
+ },
1030
+ "34": {
1031
+ "catalog_id": 34,
1032
+ "dataset": "SimpleBench",
1033
+ "requests": 10,
1034
+ "answered": 10,
1035
+ "unsupported": 0,
1036
+ "errors": 0,
1037
+ "abstained": 0,
1038
+ "pending": 0,
1039
+ "scored_requests": 10,
1040
+ "metric": "accuracy",
1041
+ "score": 0.1,
1042
+ "reference_same_cases": null,
1043
+ "median_ms": 6311.8,
1044
+ "index_raw": 0.1,
1045
+ "index_skill": 0.0,
1046
+ "coverage": 1.0,
1047
+ "chance": 0.1667,
1048
+ "in_index": false
1049
+ },
1050
+ "36": {
1051
+ "catalog_id": 36,
1052
+ "dataset": "BRIGHT",
1053
+ "requests": 220,
1054
+ "answered": 220,
1055
+ "unsupported": 0,
1056
+ "errors": 0,
1057
+ "abstained": 0,
1058
+ "pending": 0,
1059
+ "scored_requests": 220,
1060
+ "metric": "nDCG@10",
1061
+ "score": 0.4021,
1062
+ "reference_same_cases": null,
1063
+ "median_ms": 51918.0,
1064
+ "index_raw": 0.4021,
1065
+ "index_skill": 0.3236,
1066
+ "coverage": 1.0,
1067
+ "chance": 0.116,
1068
+ "in_index": true
1069
+ },
1070
+ "37": {
1071
+ "catalog_id": 37,
1072
+ "dataset": "Amazon ESCI",
1073
+ "requests": 5000,
1074
+ "answered": 5000,
1075
+ "unsupported": 0,
1076
+ "errors": 0,
1077
+ "abstained": 0,
1078
+ "pending": 0,
1079
+ "scored_requests": 5000,
1080
+ "metric": "macro-F1",
1081
+ "score": 0.5261,
1082
+ "reference_same_cases": null,
1083
+ "median_ms": 1674.8,
1084
+ "index_raw": 0.5261,
1085
+ "index_skill": 0.4056,
1086
+ "coverage": 1.0,
1087
+ "chance": 0.2027,
1088
+ "in_index": true
1089
+ },
1090
+ "38": {
1091
+ "catalog_id": 38,
1092
+ "dataset": "ACOS",
1093
+ "requests": 1565,
1094
+ "answered": 1565,
1095
+ "unsupported": 0,
1096
+ "errors": 0,
1097
+ "abstained": 0,
1098
+ "pending": 0,
1099
+ "scored_requests": 1565,
1100
+ "metric": "per-review F1",
1101
+ "score": 0.5652,
1102
+ "reference_same_cases": null,
1103
+ "median_ms": 92273.0,
1104
+ "index_raw": 0.5652,
1105
+ "index_skill": 0.5513,
1106
+ "coverage": 1.0,
1107
+ "chance": 0.031,
1108
+ "in_index": true
1109
+ },
1110
+ "39": {
1111
+ "catalog_id": 39,
1112
+ "dataset": "FinEntity",
1113
+ "requests": 979,
1114
+ "answered": 979,
1115
+ "unsupported": 0,
1116
+ "errors": 0,
1117
+ "abstained": 0,
1118
+ "pending": 0,
1119
+ "scored_requests": 979,
1120
+ "metric": "macro-F1",
1121
+ "score": 0.8918,
1122
+ "reference_same_cases": null,
1123
+ "median_ms": 2899.9,
1124
+ "index_raw": 0.8918,
1125
+ "index_skill": 0.8409,
1126
+ "coverage": 1.0,
1127
+ "chance": 0.3201,
1128
+ "in_index": true
1129
+ },
1130
+ "40": {
1131
+ "catalog_id": 40,
1132
+ "dataset": "iSarcasmEval",
1133
+ "requests": 4600,
1134
+ "answered": 4600,
1135
+ "unsupported": 0,
1136
+ "errors": 0,
1137
+ "abstained": 0,
1138
+ "pending": 0,
1139
+ "scored_requests": 4600,
1140
+ "metric": "Sarcasm F1 · track A, English",
1141
+ "score": 0.5714,
1142
+ "reference_same_cases": null,
1143
+ "median_ms": 1845.7,
1144
+ "tracks": [
1145
+ {
1146
+ "track": "A · Arabic",
1147
+ "score": 0.4873,
1148
+ "headline": false
1149
+ },
1150
+ {
1151
+ "track": "A · English",
1152
+ "score": 0.5714,
1153
+ "headline": true
1154
+ },
1155
+ {
1156
+ "track": "C · Arabic pairs",
1157
+ "score": 0.675,
1158
+ "headline": false
1159
+ },
1160
+ {
1161
+ "track": "C · English pairs",
1162
+ "score": 0.905,
1163
+ "headline": false
1164
+ }
1165
+ ],
1166
+ "index_raw": 0.5714,
1167
+ "index_skill": 0.4487,
1168
+ "coverage": 1.0,
1169
+ "chance": 0.2227,
1170
+ "in_index": true
1171
+ },
1172
+ "41": {
1173
+ "catalog_id": 41,
1174
+ "dataset": "VAST",
1175
+ "requests": 3006,
1176
+ "answered": 3006,
1177
+ "unsupported": 0,
1178
+ "errors": 0,
1179
+ "abstained": 0,
1180
+ "pending": 0,
1181
+ "scored_requests": 3006,
1182
+ "metric": "macro-F1",
1183
+ "score": 0.7784,
1184
+ "reference_same_cases": null,
1185
+ "median_ms": 1187.7,
1186
+ "index_raw": 0.7784,
1187
+ "index_skill": 0.6675,
1188
+ "coverage": 1.0,
1189
+ "chance": 0.3333,
1190
+ "in_index": true
1191
+ },
1192
+ "42": {
1193
+ "catalog_id": 42,
1194
+ "dataset": "NLI4CT",
1195
+ "requests": 5500,
1196
+ "answered": 5500,
1197
+ "unsupported": 0,
1198
+ "errors": 0,
1199
+ "abstained": 0,
1200
+ "pending": 0,
1201
+ "scored_requests": 5500,
1202
+ "metric": "macro-F1",
1203
+ "score": 0.7894,
1204
+ "reference_same_cases": null,
1205
+ "median_ms": 2523.8,
1206
+ "index_raw": 0.7894,
1207
+ "index_skill": 0.5903,
1208
+ "coverage": 1.0,
1209
+ "chance": 0.486,
1210
+ "in_index": true
1211
+ },
1212
+ "43": {
1213
+ "catalog_id": 43,
1214
+ "dataset": "CRUXEval",
1215
+ "requests": 570,
1216
+ "answered": 570,
1217
+ "unsupported": 0,
1218
+ "errors": 0,
1219
+ "abstained": 0,
1220
+ "pending": 0,
1221
+ "scored_requests": 570,
1222
+ "metric": "accuracy",
1223
+ "score": 0.7825,
1224
+ "reference_same_cases": null,
1225
+ "median_ms": 2111.4,
1226
+ "index_raw": 0.7825,
1227
+ "index_skill": 0.6548,
1228
+ "coverage": 1.0,
1229
+ "chance": 0.3697,
1230
+ "in_index": true
1231
+ },
1232
+ "44": {
1233
+ "catalog_id": 44,
1234
+ "dataset": "CLadder",
1235
+ "requests": 5000,
1236
+ "answered": 5000,
1237
+ "unsupported": 0,
1238
+ "errors": 0,
1239
+ "abstained": 0,
1240
+ "pending": 0,
1241
+ "scored_requests": 5000,
1242
+ "metric": "accuracy",
1243
+ "score": 0.7442,
1244
+ "reference_same_cases": null,
1245
+ "median_ms": 3131.1,
1246
+ "index_raw": 0.7442,
1247
+ "index_skill": 0.4884,
1248
+ "coverage": 1.0,
1249
+ "chance": 0.5,
1250
+ "in_index": true
1251
+ },
1252
+ "45": {
1253
+ "catalog_id": 45,
1254
+ "dataset": "HLE",
1255
+ "requests": 501,
1256
+ "answered": 501,
1257
+ "unsupported": 0,
1258
+ "errors": 0,
1259
+ "abstained": 0,
1260
+ "pending": 0,
1261
+ "scored_requests": 501,
1262
+ "metric": "accuracy",
1263
+ "score": 0.0998,
1264
+ "reference_same_cases": null,
1265
+ "median_ms": 5403.5,
1266
+ "index_raw": 0.0998,
1267
+ "index_skill": 0.0,
1268
+ "coverage": 1.0,
1269
+ "chance": 0.1641,
1270
+ "in_index": true
1271
+ },
1272
+ "48": {
1273
+ "catalog_id": 48,
1274
+ "dataset": "ForecastBench",
1275
+ "requests": 10139,
1276
+ "answered": 10139,
1277
+ "unsupported": 0,
1278
+ "errors": 0,
1279
+ "abstained": 0,
1280
+ "pending": 0,
1281
+ "scored_requests": 10139,
1282
+ "metric": "Brier (lower is better)",
1283
+ "score": 0.2033,
1284
+ "reference_same_cases": null,
1285
+ "median_ms": 5139.2,
1286
+ "index_raw": 0.1868,
1287
+ "index_skill": 0.1868,
1288
+ "coverage": 1.0,
1289
+ "chance": 0.25,
1290
+ "in_index": true
1291
+ },
1292
+ "50": {
1293
+ "catalog_id": 50,
1294
+ "dataset": "Habermas Machine",
1295
+ "requests": 1676,
1296
+ "answered": 1676,
1297
+ "unsupported": 0,
1298
+ "errors": 0,
1299
+ "abstained": 0,
1300
+ "pending": 0,
1301
+ "scored_requests": 1676,
1302
+ "metric": "accuracy",
1303
+ "score": 0.4123,
1304
+ "reference_same_cases": null,
1305
+ "median_ms": 3961.4,
1306
+ "index_raw": 0.4123,
1307
+ "index_skill": 0.147,
1308
+ "coverage": 1.0,
1309
+ "chance": 0.311,
1310
+ "in_index": true
1311
+ },
1312
+ "56": {
1313
+ "catalog_id": 56,
1314
+ "dataset": "PhishNChips phishing decisions",
1315
+ "requests": 2000,
1316
+ "answered": 2000,
1317
+ "unsupported": 0,
1318
+ "errors": 0,
1319
+ "abstained": 0,
1320
+ "pending": 0,
1321
+ "metric": "accuracy",
1322
+ "score": 0.5225,
1323
+ "median_ms": 13023.1,
1324
+ "scored_requests": 2000,
1325
+ "index_raw": 0.5225,
1326
+ "index_skill": 0.045,
1327
+ "coverage": 1.0,
1328
+ "chance": 0.5,
1329
+ "in_index": true
1330
+ },
1331
+ "57": {
1332
+ "catalog_id": 57,
1333
+ "dataset": "MMLU-Pro",
1334
+ "requests": 12032,
1335
+ "answered": 12032,
1336
+ "unsupported": 0,
1337
+ "errors": 0,
1338
+ "abstained": 0,
1339
+ "pending": 0,
1340
+ "metric": "accuracy",
1341
+ "score": 0.6506,
1342
+ "median_ms": 2305.7,
1343
+ "scored_requests": 12032,
1344
+ "index_raw": 0.6506,
1345
+ "index_skill": 0.607,
1346
+ "coverage": 1.0,
1347
+ "chance": 0.1109,
1348
+ "in_index": true
1349
+ },
1350
+ "58": {
1351
+ "catalog_id": 58,
1352
+ "dataset": "BBH fixed-option tasks",
1353
+ "requests": 5507,
1354
+ "answered": 5507,
1355
+ "unsupported": 0,
1356
+ "errors": 0,
1357
+ "abstained": 0,
1358
+ "pending": 0,
1359
+ "metric": "accuracy",
1360
+ "score": 0.7774,
1361
+ "median_ms": 1827.8,
1362
+ "scored_requests": 5507,
1363
+ "index_raw": 0.7774,
1364
+ "index_skill": 0.6773,
1365
+ "coverage": 1.0,
1366
+ "chance": 0.3101,
1367
+ "in_index": true
1368
+ },
1369
+ "59": {
1370
+ "catalog_id": 59,
1371
+ "dataset": "RAGTruth response-level hallucination",
1372
+ "requests": 2700,
1373
+ "answered": 2700,
1374
+ "unsupported": 0,
1375
+ "errors": 0,
1376
+ "abstained": 0,
1377
+ "pending": 0,
1378
+ "metric": "F1 on hallucinated class",
1379
+ "score": 0.773,
1380
+ "median_ms": 2469.0,
1381
+ "scored_requests": 2700,
1382
+ "index_raw": 0.773,
1383
+ "index_skill": 0.5293,
1384
+ "coverage": 1.0,
1385
+ "chance": 0.5177,
1386
+ "in_index": true
1387
+ },
1388
+ "61": {
1389
+ "catalog_id": 61,
1390
+ "dataset": "HoVer claim verification",
1391
+ "requests": 4000,
1392
+ "answered": 4000,
1393
+ "unsupported": 0,
1394
+ "errors": 0,
1395
+ "abstained": 0,
1396
+ "pending": 0,
1397
+ "metric": "accuracy",
1398
+ "score": 0.7808,
1399
+ "median_ms": 2007.0,
1400
+ "scored_requests": 4000,
1401
+ "index_raw": 0.7808,
1402
+ "index_skill": 0.5616,
1403
+ "coverage": 1.0,
1404
+ "chance": 0.5,
1405
+ "in_index": true
1406
+ },
1407
+ "62": {
1408
+ "catalog_id": 62,
1409
+ "dataset": "When2Call MCQ",
1410
+ "requests": 3652,
1411
+ "answered": 3652,
1412
+ "unsupported": 0,
1413
+ "errors": 0,
1414
+ "abstained": 0,
1415
+ "pending": 0,
1416
+ "metric": "accuracy",
1417
+ "score": 0.828,
1418
+ "median_ms": 1970.4,
1419
+ "scored_requests": 3652,
1420
+ "index_raw": 0.828,
1421
+ "index_skill": 0.7707,
1422
+ "coverage": 1.0,
1423
+ "chance": 0.25,
1424
+ "in_index": true
1425
+ },
1426
+ "64": {
1427
+ "catalog_id": 64,
1428
+ "dataset": "New Yorker caption matching",
1429
+ "requests": 528,
1430
+ "answered": 528,
1431
+ "unsupported": 0,
1432
+ "errors": 0,
1433
+ "abstained": 0,
1434
+ "pending": 0,
1435
+ "metric": "accuracy",
1436
+ "score": 0.5985,
1437
+ "median_ms": 2952.1,
1438
+ "scored_requests": 528,
1439
+ "index_raw": 0.5985,
1440
+ "index_skill": 0.4981,
1441
+ "coverage": 1.0,
1442
+ "chance": 0.2,
1443
+ "in_index": true
1444
+ }
1445
+ },
1446
+ "panel_id": "decision-index-0.2.1",
1447
+ "note": "Decision Index 0.2.1 averages 38 benchmarks in five areas. Arts & Human Taste weighs 10%; the other four share 90% in proportion to the square root of their benchmark count (knowledge 25.8%, language 25.8%, retrieval 20.0%, tools 18.3%). Inside an area, gold ★ benchmarks weigh 1.2 and the rest 1.0; the index is 100 x the weighted mean of the five areas. Each benchmark is chance-corrected first, (score - chance) / (1 - chance) clipped to 0-1, so 0 means random guessing and 100 means perfect. Every score is coverage-adjusted, so an unanswered or unsupported request counts as wrong. ForecastBench enters against its baseline: clip((0.25 - Brier) / 0.25) x coverage, so always predicting 0.5 scores zero. MMLU, ARC-Easy, ARC-Challenge, RouterBench, SGD stay on the board as non-index benchmarks. The six interactive environments are still unrun and stay out. Every entrant on the board has results on all 38 index benchmarks. Point estimates only, no uncertainty intervals yet."
1448
+ }
evaluation/serial-latency-preflight-corrected.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "requests": 32,
3
+ "median_ms": 821.3,
4
+ "p95_ms": 3759.7,
5
+ "max_ms": 3967.4,
6
+ "admission_threshold_ms": 1000,
7
+ "passes_sample_median_threshold": true,
8
+ "official_latency_requests_required": 750,
9
+ "official_latency_eligible": false,
10
+ "note": "32-request preflight sample; official 750-request serial median gate has not run"
11
+ }
history/v1.0/CONTAMINATION.md ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contamination statement
2
+
3
+ This covers the checkpoint submitted as Wald-4B and **every stage of its lineage**, back to the base model. The Decision
4
+ Index rule is that any test item an entry was trained on counts as wrong. The list below is for the maintainers to apply
5
+ that rule. We also count these items wrong in our own blocklist-adjusted scores.
6
+
7
+ ## 1. Decision Index items in our training data
8
+
9
+ **[contamination/trained-on-di-ids.json](contamination/trained-on-di-ids.json)** lists 363 item ids. For each id it
10
+ gives the benchmark, the lineage stage whose data contains it, and why it is there. Please count all 363 as trained on.
11
+
12
+ | benchmark | ids | scored in 0.2.1 | why they are in our data |
13
+ |---|---:|---|---|
14
+ | ToolRet (#2) | 67 | yes | **shared upstream source.** ToolRet aggregates the user queries of public tool-calling datasets. Our data contains the train splits of ToolACE and Glaive function-calling. |
15
+ | BANKING77 (#4) | 49 | yes | **public train split duplicates a test sentence.** The BANKING77 train split is in our data, and these test sentences also appear verbatim in train. |
16
+ | CLINC150+OOS (#5) | 44 | yes | **public train split duplicates a test sentence** (as above, for the CLINC-OOS train split). |
17
+ | MMLU-Pro (#57) | 6 | yes | **shared upstream source.** MMLU-Pro includes MATH / TheoremQA problems, and the same problems are in our math data (MATH train). |
18
+ | SATA-Bench (#33) | 4 | yes | **shared upstream source.** Reading passages from RACE, which makes up most of MMLU auxiliary_train. |
19
+ | ANLI (#12) | 3 | yes | **shared upstream text.** The premise text also appears in other public datasets in our data. |
20
+ | WinoGrande (#28) | 2 | yes | **public train split duplicates a test sentence.** |
21
+ | BRIGHT (#36) | 1 | yes | **shared upstream source.** A public programming problem statement. |
22
+ | RouterBench (#6) | 170 | no (removed in 0.2.1) | **shared upstream source.** RouterBench prompts embed GSM8K / MMLU questions, and those questions are in our math and QA training data (GSM8K train and others). |
23
+ | MMLU (#24), ARC-Easy (#26), ARC-Challenge (#27) | 6 / 7 / 4 | display only | **public train split duplicates** (ARC train, MMLU auxiliary_train). These are the same kind of duplicates the board already records for other entries. |
24
+
25
+ That is 176 ids on scored benchmarks. On our 6,948-request sample, counting them wrong moves the index by 0.3 points:
26
+ 53.91 → 53.62 for v1.0 (effort medium, `repeat_state_plain`), and 49.62 → 49.34 for its parent at high-k4.
27
+
28
+ **How the items got in.** We never trained on a Decision Index test split. Every hit above reached us through a public
29
+ train split or an upstream dataset that the benchmark itself draws from. Stages 1–3 of the lineage were built before we
30
+ had the full blocklist (below), so those stages contain these items. Stage 4 (the task-coverage LoRA) was filtered with the full blocklist before training: 0 hits.
31
+
32
+ ## 2. Training data, by source
33
+
34
+ This section names every public source in the lineage and the split we read. It gives no proportions: no ratios, token
35
+ or row counts per source, or mixing weights. The training data itself is not released.
36
+
37
+ ### 2.1 The lineage
38
+
39
+ | stage | what it is | data |
40
+ |---|---|---|
41
+ | 1 | full-parameter decision training of Qwen/Qwen3.5-4B-Base | converted public datasets (§2.2), code-generated decision families, and synthetic tool, document-QA and style items |
42
+ | 2 | LoRA refinement with KL replay (merged) | a curated mix of human-labelled public sets and code-generated items, synthetic hard items, and a KL-only replay of stage-1 rows |
43
+ | 3 | short-thought distillation (LoRA, merged) | synthetic short thoughts on questions from the stage-2 pool, one-pass rows from the same pool, and replay rows whose target is the stage-2 model's own distribution |
44
+ | 4 | task-coverage LoRA (merged; the submitted checkpoint) | the train splits of iSarcasmEval, API-Bank, ContractNLI, VAST, NLI4CT, ACOS and RAGTruth, new Home-appliance households from the Decision Index kit's generator, and a KL-only replay of stage-2 rows |
45
+
46
+ Stage 1 drew on a public decision-training mixture. Its constituent datasets are listed one by one below, and its custom
47
+ and routing parts were left out. Stage 4 teaches the formats of eight Decision Index benchmarks from their source train
48
+ splits and the kit's own generator. No test item is included. **Home appliance scores 1.00 (skill) for this checkpoint
49
+ on our sample, so please weigh that benchmark with this training in mind.** The maintainers can regenerate the rows
50
+ with the kit's generator and any new seed, and compare them with their test rows.
51
+
52
+ ### 2.2 Public sources
53
+
54
+ Every public dataset was read through its **train split only**, unless the split column says otherwise. No test split
55
+ of any source was used.
56
+
57
+ In the stage column, **(replay)** means that the stage re-used rows from that source only as KL replay. For those rows
58
+ the training target is the model's own earlier distribution, not the source label.
59
+
60
+ The licence column gives the licence **as the source states it**. "card" means the Hugging Face dataset card, and
61
+ "upstream" means the original release, used where the card is empty or says unknown. We have not reviewed these terms
62
+ here.
63
+
64
+ #### Constituents of the stage-1 public mixture
65
+
66
+ | dataset | split(s) used | stages | licence (as stated) | note |
67
+ |---|---|---|---|---|
68
+ | [cais/mmlu](https://huggingface.co/datasets/cais/mmlu) (all) | auxiliary_train | 1, 2, 3, 4 (replay) | MIT (card) | dev / validation / test never used. auxiliary_train is mostly RACE passages (see §1, SATA-Bench) |
69
+ | [allenai/ai2_arc](https://huggingface.co/datasets/allenai/ai2_arc) (ARC-Challenge, ARC-Easy) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-4.0 (card) | also in the wide replay (ARC-Easy). Some test questions duplicate train questions (§1) |
70
+ | [tau/commonsense_qa](https://huggingface.co/datasets/tau/commonsense_qa) | train | 1, 2, 3, 4 (replay) | MIT (card) | also read directly as a human-labelled set |
71
+ | [google/boolq](https://huggingface.co/datasets/google/boolq) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-3.0 (card) | also read directly as a human-labelled set |
72
+ | [nyu-mll/multi_nli](https://huggingface.co/datasets/nyu-mll/multi_nli) | train | 1, 2, 3, 4 (replay) | mixed: CC-BY-3.0 / CC-BY-SA-3.0 / MIT / OANC (card) | validation_matched / mismatched never used. Also read directly |
73
+ | [stanfordnlp/snli](https://huggingface.co/datasets/stanfordnlp/snli) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-4.0 (card) | |
74
+ | [mteb/banking77](https://huggingface.co/datasets/mteb/banking77) | train | 1, 2, 3, 4 (replay) | MIT (card); upstream PolyAI release CC-BY-4.0 | some test sentences also appear verbatim in train (§1) |
75
+ | [allenai/openbookqa](https://huggingface.co/datasets/allenai/openbookqa) (main) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (upstream allenai/OpenBookQA) | also read directly as a human-labelled set |
76
+ | [GBaker/MedQA-USMLE-4-options](https://huggingface.co/datasets/GBaker/MedQA-USMLE-4-options) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card); upstream MIT | |
77
+ | [allenai/winogrande](https://huggingface.co/datasets/allenai/winogrande) (winogrande_xl) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (upstream allenai/winogrande) | also in the wide replay. Some test sentences duplicate train (§1) |
78
+ | [clinc/clinc_oos](https://huggingface.co/datasets/clinc/clinc_oos) (plus) | train | 1, 2, 3, 4 (replay) | CC-BY-3.0 (card) | also in the wide replay. Some test sentences duplicate train (§1) |
79
+ | [SetFit/amazon_massive_intent_en-US](https://huggingface.co/datasets/SetFit/amazon_massive_intent_en-US) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (upstream Amazon MASSIVE) | |
80
+ | [bitext/Bitext-customer-support-llm-chatbot-training-dataset](https://huggingface.co/datasets/bitext/Bitext-customer-support-llm-chatbot-training-dataset) | train (the only split) | 1, 2, 3, 4 (replay) | CDLA-Sharing-1.0 (card) | |
81
+ | [fancyzhx/dbpedia_14](https://huggingface.co/datasets/fancyzhx/dbpedia_14) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-3.0 (card) | also read directly as a human-labelled set |
82
+ | [google-research-datasets/go_emotions](https://huggingface.co/datasets/google-research-datasets/go_emotions) (simplified) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
83
+ | [SetFit/hate_speech_offensive](https://huggingface.co/datasets/SetFit/hate_speech_offensive) | train | 1, 2, 3, 4 (replay) | MIT (upstream t-davidson/hate-speech-and-offensive-language) | |
84
+ | [SetFit/amazon_counterfactual_en](https://huggingface.co/datasets/SetFit/amazon_counterfactual_en) | train | 1, 2, 3, 4 (replay) | CC-BY-SA-4.0 (upstream amazon-research/amazon-multilingual-counterfactual-dataset) | |
85
+ | [google/civil_comments](https://huggingface.co/datasets/google/civil_comments) | train (a leading slice) | 1, 2, 3, 4 (replay) | CC0-1.0 (card) | also in the wide replay |
86
+ | [ucirvine/sms_spam](https://huggingface.co/datasets/ucirvine/sms_spam) | train (the only split) | 1, 2, 3, 4 (replay) | CC-BY-4.0 (upstream UCI SMS Spam Collection) | |
87
+ | [allenai/qasc](https://huggingface.co/datasets/allenai/qasc) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also in the wide replay |
88
+ | [Rowan/hellaswag](https://huggingface.co/datasets/Rowan/hellaswag) | train | 1, 2, 3, 4 (replay) | MIT (upstream rowanz/hellaswag) | validation / test never used |
89
+ | [ybisk/piqa](https://huggingface.co/datasets/ybisk/piqa) | train | 1, 2, 3, 4 (replay) | unknown | also in the wide replay |
90
+ | [LabHC/bias_in_bios](https://huggingface.co/datasets/LabHC/bias_in_bios) | train | 1, 2, 3, 4 (replay) | MIT (card) | |
91
+ | [nvidia/HelpSteer2](https://huggingface.co/datasets/nvidia/HelpSteer2) | train | 2, 3 | CC-BY-4.0 (card) | |
92
+ | [nvidia/HelpSteer3](https://huggingface.co/datasets/nvidia/HelpSteer3) (preference) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also in the wide replay |
93
+ | [ucberkeley-dlab/measuring-hate-speech](https://huggingface.co/datasets/ucberkeley-dlab/measuring-hate-speech) | train (the only split) | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | |
94
+ | [chengxuphd/liar2](https://huggingface.co/datasets/chengxuphd/liar2) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
95
+ | [allenai/prosocial-dialog](https://huggingface.co/datasets/allenai/prosocial-dialog) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also in the wide replay |
96
+ | [HuggingFaceH4/ultrafeedback_binarized](https://huggingface.co/datasets/HuggingFaceH4/ultrafeedback_binarized) | train_prefs | 1, 2, 3, 4 (replay) | MIT (card) | test_prefs never used |
97
+ | [Anthropic/hh-rlhf](https://huggingface.co/datasets/Anthropic/hh-rlhf) | train | 1, 2, 3, 4 (replay) | MIT (card) | |
98
+ | [glaiveai/glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2) | train (the only split) | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | also a seed source for the synthetic tool items. Shares user queries with ToolRet (§1) |
99
+ | [Team-ACE/ToolACE](https://huggingface.co/datasets/Team-ACE/ToolACE) | train (the only split) | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | also in the wide replay and the tool items. Shares user queries with ToolRet (§1) |
100
+ | [copenlu/fever_gold_evidence](https://huggingface.co/datasets/copenlu/fever_gold_evidence) | train | 1, 2, 3, 4 (replay) | unknown | |
101
+ | [openlifescienceai/medmcqa](https://huggingface.co/datasets/openlifescienceai/medmcqa) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card); upstream MIT | also in the wide replay |
102
+ | [osunlp/Mind2Web](https://huggingface.co/datasets/osunlp/Mind2Web) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | also a seed source for the synthetic tool items |
103
+
104
+ #### Wide replay of public train splits (sources not listed above)
105
+
106
+ | dataset | split(s) used | stages | licence (as stated) | note |
107
+ |---|---|---|---|---|
108
+ | [allenai/cosmos_qa](https://huggingface.co/datasets/allenai/cosmos_qa) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
109
+ | [ucinlp/drop](https://huggingface.co/datasets/ucinlp/drop) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-4.0 (card) | |
110
+ | [allenai/quoref](https://huggingface.co/datasets/allenai/quoref) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
111
+ | [allenai/quartz](https://huggingface.co/datasets/allenai/quartz) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
112
+ | [allenai/ropes](https://huggingface.co/datasets/allenai/ropes) (plain_text) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
113
+ | [alisawuffles/WANLI](https://huggingface.co/datasets/alisawuffles/WANLI) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | crowd labels that revise model-written candidates |
114
+ | [allenai/social_i_qa](https://huggingface.co/datasets/allenai/social_i_qa) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card text) | |
115
+ | [deepmind/aqua_rat](https://huggingface.co/datasets/deepmind/aqua_rat) (raw) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
116
+ | [ChilleD/SVAMP](https://huggingface.co/datasets/ChilleD/SVAMP) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
117
+ | [math-eval/TAL-SCQ5K](https://huggingface.co/datasets/math-eval/TAL-SCQ5K) (EN) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
118
+ | [tasksource/ruletaker](https://huggingface.co/datasets/tasksource/ruletaker) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
119
+ | [ImperialCollegeLondon/health_fact](https://huggingface.co/datasets/ImperialCollegeLondon/health_fact) (PUBHEALTH) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
120
+ | [wenhu/tab_fact](https://huggingface.co/datasets/wenhu/tab_fact) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
121
+ | [lighteval/wikitablequestions](https://huggingface.co/datasets/lighteval/wikitablequestions) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-4.0 (upstream ppasupat/WikiTableQuestions) | |
122
+ | [AmazonScience/massive](https://huggingface.co/datasets/AmazonScience/massive) (en-US) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
123
+ | [google-research-datasets/schema_guided_dstc8](https://huggingface.co/datasets/google-research-datasets/schema_guided_dstc8) (SGD) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-4.0 (card) | |
124
+ | [tasksource/esci](https://huggingface.co/datasets/tasksource/esci) (us) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
125
+ | [google-research-datasets/poem_sentiment](https://huggingface.co/datasets/google-research-datasets/poem_sentiment) | train | 1, 2 (replay), 3, 4 (replay) | CC-BY-4.0 (card) | |
126
+ | [zeroshot/twitter-financial-news-sentiment](https://huggingface.co/datasets/zeroshot/twitter-financial-news-sentiment) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | |
127
+ | [NousResearch/hermes-function-calling-v1](https://huggingface.co/datasets/NousResearch/hermes-function-calling-v1) (glaive subset) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
128
+ | [openbmb/UltraFeedback](https://huggingface.co/datasets/openbmb/UltraFeedback) (evol_instruct, ultrachat) | train | 1, 2 (replay), 3, 4 (replay) | MIT (card) | ratings in the source are model-written |
129
+ | [jackhhao/jailbreak-classification](https://huggingface.co/datasets/jackhhao/jailbreak-classification) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
130
+ | [deepset/prompt-injections](https://huggingface.co/datasets/deepset/prompt-injections) | train | 1, 2 (replay), 3, 4 (replay) | Apache-2.0 (card) | |
131
+ | [tonytan48/TempReason](https://huggingface.co/datasets/tonytan48/TempReason) | train_l1 | 1, 2 (replay), 3, 4 (replay) | CC-BY-SA-3.0 (card) | answers recomputed by code |
132
+
133
+ #### Other public decision sets
134
+
135
+ | dataset | split(s) used | stages | licence (as stated) | note |
136
+ |---|---|---|---|---|
137
+ | [jaredpalmer/kev-suites](https://huggingface.co/datasets/jaredpalmer/kev-suites) | v7/decision-v7/train.jsonl | 2, 3 | Apache-2.0 (card); rows derive from public datasets under their own terms | Kev's public training partition. Its rows come from the BANKING77, BoolQ, DBpedia-14 and MNLI train splits |
138
+ | [thu-coai/cold](https://huggingface.co/datasets/thu-coai/cold) (COLD, Chinese) | train | 2, 3 | Apache-2.0 (repo) | test never used for training |
139
+ | [ZefanCai/Open-Jev](https://huggingface.co/datasets/ZefanCai/Open-Jev) | train | 1, 2, 3, 4 (replay) | CC0-1.0 (card); code MIT | labels by rules, solvers and generator latents. Its calibration / validation / test / OOD rows were never used. `customer-control-v1` excluded |
140
+ | [ZefanCai/Open-Jev-v1.1](https://huggingface.co/datasets/ZefanCai/Open-Jev-v1.1) | train (`wanli-decisions-v1`, `community-diversity-v2`) | 2, 3 | CC0-1.0 (community-diversity-v2); CC-BY-4.0 (wanli-decisions-v1, from WANLI) | |
141
+
142
+ #### Prompt sources for routing and verification items
143
+
144
+ The items themselves are ours. A routing item labels a public prompt by the kind of source it came from, and a
145
+ verification item plants an error in a human-written solution by code.
146
+
147
+ | dataset | split(s) used | stages | licence (as stated) | note |
148
+ |---|---|---|---|---|
149
+ | [openai/gsm8k](https://huggingface.co/datasets/openai/gsm8k) (main) | train | 1, 2, 3, 4 (replay) | MIT (card) | routing prompts and the worked solutions of the verification items. Test never used. RouterBench embeds GSM8K questions (§1) |
150
+ | [EleutherAI/hendrycks_math](https://huggingface.co/datasets/EleutherAI/hendrycks_math) | train | 1, 2, 3, 4 (replay) | MIT (card) | test never used. MMLU-Pro includes MATH problems (§1) |
151
+ | [deepmind/code_contests](https://huggingface.co/datasets/deepmind/code_contests) | train | 1, 2, 3, 4 (replay) | CC-BY-4.0 (card) | valid / test never used |
152
+ | [google-research-datasets/mbpp](https://huggingface.co/datasets/google-research-datasets/mbpp) (full) | train, validation, prompt | 2, 3 | CC-BY-4.0 (card) | test never used |
153
+ | [princeton-nlp/SWE-bench](https://huggingface.co/datasets/princeton-nlp/SWE-bench) | train | 1, 2, 3, 4 (replay) | MIT (card) | test (the benchmark) never used |
154
+ | [mandarjoshi/trivia_qa](https://huggingface.co/datasets/mandarjoshi/trivia_qa) (rc.nocontext) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
155
+ | [abisee/cnn_dailymail](https://huggingface.co/datasets/abisee/cnn_dailymail) (3.0.0) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
156
+ | [OpenAssistant/oasst1](https://huggingface.co/datasets/OpenAssistant/oasst1) | train | 1, 2, 3, 4 (replay) | Apache-2.0 (card) | |
157
+ | [HuggingFaceM4/WebSight](https://huggingface.co/datasets/HuggingFaceM4/WebSight) (v0.2) | train (the only split) | 1, 2, 3 | CC-BY-4.0 (card) | |
158
+
159
+ #### Text embedded in long states
160
+
161
+ | dataset | split(s) used | stages | licence (as stated) | note |
162
+ |---|---|---|---|---|
163
+ | [HuggingFaceFW/fineweb-edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) (sample-10BT) | train (the only split) | 1, 2, 3, 4 (replay) | ODC-BY-1.0 (card) | documents placed inside code-generated long-state items |
164
+ | [wikimedia/wikipedia](https://huggingface.co/datasets/wikimedia/wikipedia) (20231101.en) | train (the only split) | 1, 2, 3, 4 (replay) | CC-BY-SA-3.0 and GFDL (card) | as above |
165
+
166
+ #### Seed sources of the synthetic tool items
167
+
168
+ | dataset | split(s) used | stages | licence (as stated) | note |
169
+ |---|---|---|---|---|
170
+ | [nvidia/When2Call](https://huggingface.co/datasets/nvidia/When2Call) | train_sft | 1 | CC-BY-4.0 (card) | test never used |
171
+ | [liminghao1630/API-Bank](https://huggingface.co/datasets/liminghao1630/API-Bank) | training-data: lv1 (stage 1); lv1 + lv2 (stage 4) | 1, 4 | MIT (card); the GitHub repo AlibabaResearch/DAMO-ConvAI (api-bank) states Apache-2.0 | test-data never used. In stage 4, 53-option tool catalogs are built the kit's way from the train tool pool |
172
+ | [AgentGym/AgentTraj-L](https://huggingface.co/datasets/AgentGym/AgentTraj-L) | train | 1 | unknown | |
173
+
174
+ #### Stage 4: Decision Index benchmark sources
175
+
176
+ | dataset | split(s) used | stages | licence (as stated) | note |
177
+ |---|---|---|---|---|
178
+ | [iSarcasmEval](https://github.com/iabufarha/iSarcasmEval) (SemEval-2022 Task 6) | train.En.csv (tasks A-En, B-En), train.Ar.csv (task A-Ar) | 4 | MIT (repo LICENSE); the README asks for the task citation | test never used |
179
+ | [ContractNLI](https://github.com/stanfordnlp/contract-nli) | train | 4 | CC BY 4.0 (README / project site) | train rows only. Rows that share clauses with test contracts were dropped |
180
+ | [VAST](https://github.com/emilyallaway/zero-shot-stance) @ e7c4775 | data/VAST/vast_train.csv | 4 | unknown | test never used |
181
+ | [NLI4CT](https://github.com/ai-systems/Task-2-SemEval-2024) (SemEval-2024 Task 2) @ 7f32fa6 | train.json, dev.json | 4 | unknown | test never used |
182
+ | [ACOS](https://github.com/NUSTM/ACOS) @ 45d179a | data/*/*_quad_train.tsv | 4 | unknown | test never used |
183
+ | [RAGTruth](https://github.com/ParticleMedia/RAGTruth) @ c103204 | response.jsonl split = train, source_info.jsonl | 4 | MIT (repo LICENSE); contexts: unknown | test never used |
184
+ | [Decision Index kit](https://github.com/apolinario/decision-index) @ 19ad28e, Home-appliance generator (`decision_index/suite/build/home_appliance.py`) | new households from our own seed | 4 | MIT (repo) | code, not a dataset. 0 states are shared with the benchmark's dev + test rows |
185
+
186
+ That is **84 public sources**: 83 datasets and one generator.
187
+
188
+ ### 2.3 Synthetic data
189
+
190
+ Everything that is not a public source above falls into four categories.
191
+
192
+ - **Code-generated and code-labelled items.** These are decision families whose answer a program computes: rule
193
+ application, dates and business days, numeric extraction, lookup, ordering, long policies with amendments and decoys,
194
+ temporal traces, multi-hop and buried-evidence long states, and tool-use worlds. The judge items plant an error in a
195
+ human-written GSM8K solution by code, so the label holds by construction. The routing items take their label from the
196
+ prompt's source dataset. This category also includes the rule-based renderings (JSON, described, wide and
197
+ single-question forms) and the rule-twin items that ship with the stage-1 mixture's public code, and the stage-4
198
+ Home-appliance households.
199
+ - **Synthetic items and short thoughts.** Part of the data is synthetic: items and short thoughts written or labelled
200
+ by much larger frontier LLMs — far above 120B parameters where the size is published. An item is kept only when
201
+ checks by code or independent answers agree and it passes our schema, shortcut and overlap gates; a thought is kept
202
+ only if its final answer matches the gold label.
203
+ - **Our own model's errors, used for judge data.** None of the four stages' training files contain this category. The
204
+ judge items of v1.0 are the code-planted errors described above, plus synthetic judge items.
205
+ - **KL replay.** Stages 2, 3 and 4 re-show earlier rows, and the target is the model's own distribution before that
206
+ stage (§2.2, "(replay)"). This keeps earlier abilities while the new rows are learned. No label is added.
207
+
208
+ The training data is not released.
209
+
210
+ ### 2.4 How Decision Index items were screened
211
+
212
+ - **Stages 1–3** were built before the full blocklist existed. For stage 3, we removed the 5 rows that held the strictly
213
+ verified hits known at the time. Every remaining hit in the stage-1, stage-2 and stage-3 training files is listed in
214
+ §1: 363 ids in [contamination/trained-on-di-ids.json](contamination/trained-on-di-ids.json). Please count them as
215
+ trained on.
216
+ - **The blocklist.** Since 2026-09-27, every Decision Index 0.2 request we rebuilt (all but HLE) is on a permanent
217
+ blocklist in our training repository (`trainer/data/blocklists`). Items are stored as fingerprints, not text. The data acceptance gate fails any
218
+ training row that matches it (§3).
219
+ - **Stage 4** was checked row by row before training against the full blocklist, our sample rows, the calibration
220
+ holdouts and our vertical test sets. It passed the gate with 0 rows that contain a Decision Index item.
221
+
222
+ ## 3. How we scanned
223
+
224
+ - **Suite.** The Decision Index 0.2 suite was rebuilt with the maintainers' public kit (github.com/apolinario/decision-index
225
+ @ 19ad28e) from its pinned public sources. It has 154,877 requests; HLE (501 rows, gated) is not included.
226
+ - **Match rule** (applied to every string of every training record):
227
+ - Words are lower-case `[a-z0-9]+`.
228
+ - Each item's state is taken after stripping the benchmark's fixed instruction line. A shared prompt prefix is
229
+ stripped too, so training text without the DI prompt is still recognized.
230
+ - A state of 4–11 words must appear verbatim.
231
+ - A state of 12 words or more needs ≥ 80 % of its 8-word shingles in one record. Shingles that occur in more than 20
232
+ states are dropped as boilerplate.
233
+ - Benchmarks whose options are the item's content (MMLU / ARC / MMLU-Pro / GPQA / BBH / HellaSwag / WinoGrande …)
234
+ also need ≥ 50 % of the option text to match.
235
+ - States under 8 words are recorded as "weak" and not counted.
236
+ - **Coverage.** The scan covered every training file of every stage of this lineage, plus sibling and ancestor corpora.
237
+ The per-file scan outputs (line counts, file sha256, hit counts) are summarized in the `scans` field of
238
+ trained-on-di-ids.json.
239
+ - **Blocklist.** Since 2026-09-27 every Decision Index item is on a permanent blocklist, stored as fingerprints, not
240
+ text. The data acceptance gate fails any training row that hits it.
241
+ - **Items the scan cannot see.** Items without free text cannot be checked this way: CLINC150 short intents, POP909 and
242
+ cfcolor. Nothing in the pretraining data of the base model was scanned.
243
+
244
+ ## 4. What we did not do
245
+
246
+ - We never used a Decision Index test split, the kit's suite rows or the sample rows for training, selection or
247
+ calibration.
248
+ - We never tuned the prompt, the readout or the effort policy per benchmark. The knockout for more than 26 options is one
249
+ rule for every question.
250
+ - We selected checkpoints on our own holdouts only. The Decision Index was read once per candidate checkpoint.
251
+ - One disclosure: the benchmarks that stage 4 covers were chosen from our Decision Index sample reads, as the
252
+ benchmarks where we trailed Jev most. That choice used scores only. No items were used, and the stage has no
253
+ checkpoint selection.
history/v1.0/README.md ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3.5-4B-Base
4
+ base_model_relation: finetune
5
+ language:
6
+ - en
7
+ tags:
8
+ - decision-model
9
+ - calibration
10
+ - typesafe
11
+ - decision-index
12
+ pipeline_tag: text-generation
13
+ ---
14
+
15
+ <div align="center">
16
+ <h1>Wald-4B v1.0</h1>
17
+ <p><strong>A calibrated decision model: one forward pass turns a state and a question into a probability for every option.</strong></p>
18
+ </div>
19
+
20
+ **W**ait **A** bit, **L**ook, then **D**ecide. Sure? Decide now. Not sure? Look once more. Also named after Abraham Wald (1902–1950), who founded sequential analysis: stop as soon as the evidence is enough.
21
+
22
+ ---
23
+
24
+ <p align="center"><a href="README.md">English</a> · <a href="docs/readmes/README.zh.md">简体中文</a></p>
25
+
26
+ ---
27
+
28
+ **Wald-4B turns a decision into one forward pass.** Give it a state and a question, and it returns a calibrated
29
+ probability for every option: which tool to call, whether to ask the user, which intent, whether an output is safe. Act
30
+ above 0.9, ask a person below 0.6, and send the cases in between to a larger model. Under effort `medium` it thinks
31
+ (≤ 512 tokens) only when its top probability is below 0.7, about one question in nine; the answer is always a
32
+ distribution, never parsed text.
33
+
34
+ ## At a glance
35
+
36
+ - **Decision Index 0.2.1: 53.91** (sample estimate), #6 of 67 on the board and the best 4B entry ([Decision Index](#decision-index-021)).
37
+ - **XL hidden split: 63.2**, #2 behind Jev and the best 4B ([XL](#xl-hidden-split)).
38
+ - **Your task for under $2:** one LoRA beats Jev on 9 of 12 public tasks ([Verticals](#verticals-a-quick-lora-per-task)).
39
+ - **~50 ms per decision** at p50, about 1/5 of Jev's price per 1k decisions ([Latency and cost](#latency-and-cost)).
40
+
41
+ ![Decision Index vs model size](figures/di-vs-size.svg)
42
+
43
+ ## How it works
44
+
45
+ A 4B model built on Qwen/Qwen3.5-4B-Base @ `1001bb4d826a52d1f399e183466143f4da7b741b`: full-parameter decision training,
46
+ then three merged LoRAs (refinement with KL replay, short-thought distillation, task coverage). Each question becomes one
47
+ plain prompt with no chat template and no new tokens. The state is written twice (format `repeat_state_plain`; the
48
+ second copy is introduced by one fixed sentence, see NOTICE), then:
49
+
50
+ ```
51
+ Question: {instructions}
52
+ (A) {option 1}
53
+ (B) {option 2}
54
+ Answer: (
55
+ ```
56
+
57
+ The option-letter logits at the last position give the distribution. Above 26 options, options are read in ⌈n / 26⌉
58
+ chunks and the chunk winners are read again (knockout). A temperature per (question type, option count), fitted on our own
59
+ held-out rows, changes confidence only. The prompt format, the policy and the context limit are fixed in `serving.json`
60
+ and are the same for every benchmark.
61
+
62
+ **Training data** (not released): four stages over 84 public sources (83 datasets read through their train splits only, NLI4CT also its dev split,
63
+ plus the Decision Index kit's MIT Home-appliance generator), code-generated and code-labelled decision items, and KL
64
+ replay of earlier rows. Part of the data is synthetic: items and short thoughts written or labelled by much larger
65
+ frontier LLMs — far above 120B parameters where the size is published. Every source, and how Decision Index items
66
+ were screened: [CONTAMINATION.md](CONTAMINATION.md).
67
+
68
+ ## Benchmarks
69
+
70
+ What we measured: the Decision Index 0.2.1 (the board), XL (a decision benchmark with a hidden split), task LoRAs on
71
+ public verticals, and serving latency. All numbers are our own reads, zero-shot unless marked, with the same requests
72
+ for every system; rows marked *board* are the official leaderboard's.
73
+
74
+ ### Decision Index 0.2.1
75
+
76
+ Our read is a **stratified sample of 6,948 requests** (37,469 questions; the kit's own sampler and seed; HLE not
77
+ rebuilt), scored with the 0.2.1 rules. Jev reads 57.19 on this sample against its board 57.89, so the sample reads about
78
+ 0.7 points low. Board rows are official full-suite numbers ([board](https://huggingface.co/spaces/multimodalart/jev-decision-index)).
79
+
80
+ | system | size | Decision Index 0.2.1 | source |
81
+ |---|---|---|---|
82
+ | Jev (hosted API, jev-1.13.0) | undisclosed | 57.19 [55.29, 58.60] · board 57.89 | ours, sample · board |
83
+ | simple-jev · Qwen3.8-27B (board #4) · Jebadiah 27B (#5) | 27B | 55.74 · 54.67 | board |
84
+ | **Wald-4B v1.0 · effort medium** | 4B | **53.91** [51.87, 55.27] | ours, sample |
85
+ | reflex 27B (board #6) · Decider chat · Qwen3.6-27B (#7) | 27B | 52.16 · 51.35 | board |
86
+ | Qwen3.8-27B, untrained, our letter readout (one pass) | 27B | 47.78 [45.95, 49.17] | ours, sample |
87
+ | Decider 35B-A3B (board #11) | 35B-A3B | 47.11 | board |
88
+ | Decider 4B (board #15) | 4B | 40.70 | board |
89
+ | Kev 9B (board #23) · Kev 4B (#28) | 9B · 4B | 38.48 · 34.64 | board |
90
+
91
+ 53.91 places #6 on the 67-entry board (between Jebadiah 27B and reflex 27B); against Jev on the same sample it is
92
+ −3.3 [−4.9, −1.8]. On the same 4B base it is +19.3 over Kev 4B.
93
+
94
+ ![Decision Index by area](figures/di-areas.svg)
95
+
96
+ **Disclosures.** 363 Decision Index item ids reached our training data through public train splits or shared upstream
97
+ sources (never a test split); counting them wrong gives **53.62**. Home appliance scores 1.00 (skill): the last stage
98
+ trained on new households from the benchmark's own MIT generator (new seed, 0 shared states); with Home appliance held
99
+ at the parent build's answers the index is 51.57 [49.56, 52.95]. Details: [CONTAMINATION.md](CONTAMINATION.md).
100
+
101
+ **Same-request suite.** JevBench public 231 (accuracy %): Wald-4B v1.0 **88.3** (packaged server), Jev 86.6, raw
102
+ Qwen3.5-4B-Base 67.5, Laya 421M 58.0, CLM-8B 39.0. CLM-8B and Laya have no Decision Index read.
103
+
104
+ ### XL (hidden split)
105
+
106
+ A decision benchmark we built (13 families; ranked on a hidden split of 1,895 items, chance-corrected composite XL-Int).
107
+ We are its authors, so no number is independent; our models score far higher on its public split than on the hidden one,
108
+ so only the hidden split is reported.
109
+
110
+ | system | XL-Int (hidden) | rank |
111
+ |---|---:|---:|
112
+ | Jev (API, v1.13) | 73.0 [69.8, 75.9] | #1 |
113
+ | **Wald-4B v1.0 · effort medium** | **63.2** [60.0, 66.4] | **#2**, best 4B |
114
+ | Cygnet (gemma-4-12B-it + shim) | 59.8 [56.7, 62.7] | #4 |
115
+ | Laya 421M · CLM-8B | 13.4 · 12.7 | #24 · #25 |
116
+
117
+ ### Verticals: a quick LoRA per task
118
+
119
+ ![Verticals](figures/verticals.svg)
120
+
121
+ One LoRA on the task's labels costs $0.12–$1.81 of GPU time (< 2 GPU-hours); every other system is zero-shot on the
122
+ same fixed test items and byte-identical requests. Differences to Jev are paired bootstrap 95 % CIs; ▲ = the CI excludes
123
+ 0. These reads use the pre-release build v0.9 (see Versioning).
124
+
125
+ | task (metric) | Wald-4B v0.9 + LoRA | Jev |
126
+ |---|---:|---:|
127
+ | MetaTool (tool selection, accuracy) | **97.0** | 83.0 |
128
+ | BANKING77 (77 intents, macro-F1) | **92.8** | 78.1 |
129
+ | AndroidControl (phone-agent action, accuracy) | **85.8**¹ | 73.4 |
130
+ | ToxicChat (toxic-class F1) | **84.9** | 80.4 |
131
+ | COLD, Chinese offensive language (macro-F1, full 5,323-item test) | **84.1** [83.2, 85.1] | 75.3 |
132
+ | When2Call (call / ask / refuse, accuracy) | **83.0**² | 72.6 |
133
+
134
+ ¹ Trained on all training steps; the figure shows the first all-labels arm (81.6). ² Best of 8 LoRA configurations read
135
+ on test; the dev-selected one scores 82.6. COLD: paired +8.8 [7.7, 10.0]; 83.8 on the 4,823 items not used for
136
+ temperature fitting; ties the best published 83.7.
137
+
138
+ #### With few labels, starting from Wald beats LoRA on the raw base
139
+
140
+ Same LoRA recipe, labels and test items; Wald-4B (v0.9) minus raw Qwen3.5-4B-Base, points, paired 95 % CIs.
141
+ **Bold** = the CI excludes 0.
142
+
143
+ | task (metric) | 0 labels (zero-shot) | 300 labels |
144
+ |---|---:|---:|
145
+ | When2Call (accuracy) | **+21.2** [17.0, 25.2] | +2.0 [−0.2, 4.2] |
146
+ | BANKING77 (macro-F1) | **+10.9** [7.6, 14.7] | **+4.4** [2.0, 7.2] |
147
+ | SGD intent (macro-F1) | +2.8 (n.s.) | −0.1 |
148
+
149
+ ### Latency and cost
150
+
151
+ ![Latency and cost](figures/latency-cost.svg)
152
+
153
+ One question, one pass, serial: p50 26 ms on one RTX PRO 6000 (51 ms on an H100). Batched: 115 decisions/s (fp8), about
154
+ $0.007 per 1,000 decisions at the GPU-hour price; the Jev API lists $0.04. Under `medium` the median stays at the
155
+ one-pass level and the p95 is about one second. Measured on v0.9, which has the same architecture and serving path.
156
+
157
+ ## Train your own task LoRA (CLI, releasing soon)
158
+
159
+ Every vertical above was made with one CLI, which we plan to release soon. It splits a labelled dataset with fixed seeds,
160
+ checks the test items for leaks, trains a LoRA on Wald-4B on a GPU you choose, reads the same test items with your LoRA,
161
+ Jev and zero-shot baselines, and serves the adapter behind the same `/v1/systemone` API.
162
+
163
+ ![Architecture of the vertical CLI](figures/lora-cli-architecture.svg)
164
+
165
+ Stages, guards, costs and a command preview: [docs/lora-cli.md](docs/lora-cli.md).
166
+
167
+ ## Serving
168
+
169
+ ```sh
170
+ docker build -t wald-serve .
171
+ docker run --gpus all -v /path/to/Wald-4B:/model:ro -p 8000:8000 wald-serve # ready when GET /health is {"ok": true}
172
+ ```
173
+
174
+ Without Docker: `./run.sh /path/to/Wald-4B`. The server takes `--effort` (`none | low | medium | high | high-k<k>`), and a
175
+ request may carry `"effort"` to override it. Declared: effort `medium`, prompt format `repeat_state_plain`, 131,072
176
+ tokens per question prompt (longer → HTTP 422, never truncated), 1–255 options. Commands, limits and runtimes:
177
+ [RUNBOOK.md](RUNBOOK.md). Weights: bf16, `model.safetensors` sha256
178
+ `dabeb7bc3f43bf6ea7d20ecfdac8758b3945517a991809a5772988829598e893`; every file's sha256 is in `MANIFEST.json`.
179
+
180
+ ## Limits
181
+
182
+ - Our non-regression gate against the parent build has no failing metric. Two losses exceed the tolerance but are not
183
+ significant after correction: XL long_policy −6.7 [−11.6, −2.0] and JevBench public 231 −2.6 [−5.2, 0.0] (plain-prompt
184
+ read).
185
+ - The temperature table is the parent build's, the one the measured Decision Index read used.
186
+ - Our Decision Index read used a 16,384-token context; prompts longer than that were counted unsupported there and are
187
+ answered by the packaged server.
188
+
189
+ ## Versioning
190
+
191
+ | version | status | checkpoint | base | date | policy | prompt format |
192
+ |---|---|---|---|---|---|---|
193
+ | **v1.0** | current release | internal build 021A0-f10 | Qwen/Qwen3.5-4B-Base | 2026-09-27 | effort `medium` | `repeat_state_plain` |
194
+ | v0.9 | pre-release; the vertical LoRAs and latency above | internal build 015D0-f4 | Qwen/Qwen3.5-4B-Base | 2026-09-26 | effort `medium` | plain |
195
+
196
+ v1.x = serving or LoRA refreshes on the same base generation; v2.0 = a new base generation.
197
+
198
+ ---
199
+
200
+ Apache-2.0 (weights and code), subject to the licence of the base model Qwen/Qwen3.5-4B-Base (Apache-2.0, © the Qwen
201
+ team, Alibaba Cloud). Third-party notices: [NOTICE](NOTICE).
history/v1.0/RUNBOOK.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Runbook for the Decision Index maintainers
2
+
3
+ These steps serve Wald-4B on one NVIDIA RTX PRO 6000 (96 GB) so that the kit's `http` engine can run the full 0.2.1
4
+ suite against it.
5
+
6
+ ## 1. Install
7
+
8
+ The weights are in the Hub repo `Harry19081/Wald-4B` (bf16 safetensors, tokenizer, config, `temperature.json`,
9
+ `serving.json`, `MANIFEST.json`). The code is in this repository, pinned by commit.
10
+
11
+ ```sh
12
+ huggingface-cli download Harry19081/Wald-4B --local-dir /models/Wald-4B
13
+ cd /models/Wald-4B && python - <<'EOF' # optional: verify every file against MANIFEST.json
14
+ import hashlib, json; m = json.load(open("MANIFEST.json"))
15
+ for f, v in m.items():
16
+ h = hashlib.sha256(open(f, "rb").read()).hexdigest(); assert h == v["sha256"], f
17
+ print("ok", len(m))
18
+ EOF
19
+ ```
20
+
21
+ Choose one of the following.
22
+
23
+ - **Docker:**
24
+ ```sh
25
+ docker build -t wald-serve .
26
+ docker run --gpus '"device=0"' -v /models/Wald-4B:/model:ro -p 8000:8000 wald-serve
27
+ ```
28
+ - **No Docker** (Python 3.12 and `uv`):
29
+ ```sh
30
+ ./run.sh /models/Wald-4B
31
+ ```
32
+ - **By hand:**
33
+ ```sh
34
+ uv venv -p 3.12 .venv && VIRTUAL_ENV=.venv uv pip install "vllm==0.30.0" ./server
35
+ VLLM_USE_FLASHINFER_SAMPLER=0 .venv/bin/wald-serve --model /models/Wald-4B --port 8000
36
+ ```
37
+ `VLLM_USE_FLASHINFER_SAMPLER=0` is needed because FlashInfer's sampler refuses sm_120 in vLLM 0.30.0.
38
+
39
+ In every case, `wald-serve` starts vLLM 0.30.0 on the weights: bf16, loopback only, `--max-model-len 131072`,
40
+ `--gpu-memory-utilization 0.90`, `--max-num-seqs 256`, `--seed 0`. It then serves `POST /v1/systemone` on port 8000. The
41
+ service is ready when `curl -s localhost:8000/health` returns `{"ok": true, ...}` with the effective configuration. The
42
+ first start takes about 2–4 minutes (weights load and CUDA graph capture).
43
+
44
+ ## 2. Run the suite
45
+
46
+ ```sh
47
+ python -m decision_index run --engine http --option base_url=http://127.0.0.1:8000 --option model=wald-4b \
48
+ --option timeout=3600 ...
49
+ ```
50
+
51
+ - **Send requests concurrently.** We ran 16–32 kit processes over group-balanced shards against one server, and vLLM
52
+ batches them. A single sequential client would be several times slower (section 4).
53
+ - **Use a long timeout (≥ 3,600 s).** Under load, the p95 request latency was several minutes, from the requests with
54
+ many long questions (BRIGHT / ToolRet chunks, ContractNLI, ACOS).
55
+ - **A 422 means a declared capacity limit**, and the body contains `maximum context length`. Count it as unsupported,
56
+ not as an error.
57
+ - **Smoke test:**
58
+ ```sh
59
+ curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{"state":"I was charged twice.","questions":{"q":{"type":"noul","instructions":"Is this a billing problem?"}}}'
60
+ ```
61
+
62
+ ## 3. Declared configuration and limits
63
+
64
+ | item | value |
65
+ |---|---|
66
+ | declared policy | **effort `medium`**: one pass; if the top probability is below 0.7, a thought of at most 512 tokens (temperature 0.6, top-p 0.95, top-k 20, seed = hash of the request and question id), then a second read |
67
+ | prompt format | `repeat_state_plain` (the state written twice), from `serving.json`; the same for every benchmark |
68
+ | readout | option-letter logits at the last position; tempered with `temperature.json` (A table for one-pass answers, B512 after a thought) |
69
+ | > 26 options | knockout: ⌈n / 26⌉ consecutive chunks, then a final over the chunk winners; one pass; up to 676 options (the wire allows 255) |
70
+ | context | 131,072 tokens per question prompt; longer → HTTP 422 `maximum context length`, never truncated |
71
+ | thought that does not fit | if prompt + 512 + 64 tokens exceeds the context, the one-pass answer is returned |
72
+ | questions per request | no fixed limit; read concurrently (8 at a time per request); tested up to 64 |
73
+ | determinism | same request → same thought seed → same answer, up to bf16 batch-order noise (argmax agreement 99.7 % between two reads of 36k questions) |
74
+
75
+ Nothing in the server depends on the benchmark: there is no per-benchmark prompt, option filtering, retry or truncation.
76
+
77
+ ## 4. Expected runtime of the full suite on one RTX PRO 6000
78
+
79
+ The full suite has about 150,500 scoreable requests, including the display-only MMLU / ARC and RouterBench (not scored
80
+ in 0.2.1). HLE is not counted here.
81
+
82
+ **How we estimated.** Our basis is the measured wall time of our 6,948-request sample reads:
83
+ - one pass: 875 s;
84
+ - medium: 1,702 s. Both were measured on one card shared with a second engine, with 16 kit processes each.
85
+ - always-think: 5,520 s, on a shared card, including a k = 4 read of the knowledge and language rows.
86
+
87
+ We scaled these by a full-to-sample work ratio of 12–15×. That ratio weights each benchmark's per-request latency by its
88
+ full size; the sample over-represents long-prompt benchmarks. A dedicated card is assumed to be 1.25–1.7× faster than
89
+ our shared runs. `repeat_state_plain` writes the state twice, which adds about 30–60 % to prefill: this is an estimate,
90
+ not measured on the full suite. The in-request question concurrency of this server shortens the tail of requests with
91
+ many questions, and the table does not credit it.
92
+
93
+ | policy | thinks on | plain prompt | repeat_state_plain (declared) |
94
+ |---|---|---|---|
95
+ | none | 0 % | ≈ 2–3 h | ≈ 2.5–4.5 h |
96
+ | low | a few % | ≈ 2.5–4 h | ≈ 3–5.5 h |
97
+ | **medium (declared)** | ≈ 12 % of questions | **≈ 3.5–6 h** | **≈ 4.5–9 h** |
98
+ | high | every 2–26-option question | ≈ 7–12 h | ≈ 9–16 h |
99
+ | high-k4 | every question, 4 thoughts | ≈ 12–20 h | ≈ 15–25 h |
100
+
101
+ These are estimates, and our own full-suite read with the packaged server will replace them (CHECKLIST.md). We declare
102
+ `medium`. `high-k4` would take most of a day on one card: prefill for every question would be about 2.3× that of `high`,
103
+ and decoding 4×. Our measured `high-k4` gain over `high` was not significant (+0.48 [−0.4, +1.5] on the parent
104
+ checkpoint), and that measurement applied k = 4 only to the knowledge and language benchmarks.
105
+
106
+ ## 5. Throughput and latency (for reference)
107
+
108
+ - One question, one pass, serial: p50 26 ms on one RTX PRO 6000; 51 ms on an H100.
109
+ - `medium`, serial: p50 ≈ 52 ms, p95 ≈ 1.1 s (the questions that think).
110
+ - Batched one-pass throughput: about 115 decisions/s on one RTX PRO 6000 (fp8). bf16 throughput was not measured separately.
model.safetensors → model-00001-of-00002.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dabeb7bc3f43bf6ea7d20ecfdac8758b3945517a991809a5772988829598e893
3
- size 8411558400
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da734796f724511e86abffb00d21a7cc6e249047f60e567c10ad064e83a0810f
3
+ size 4972947968
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ac28e54c66a3370138bf6ca3be7c3ed3d90b751f5017f24dbfd91e846ce919c
3
+ size 3438610328
model-files/serving.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "effort": "medium",
3
- "prompt_format": "repeat_state_plain",
4
- "max_model_len": 131072,
5
- "temperature": "temperature.json"
6
  }
 
1
  {
2
+ "effort": "high",
3
+ "prompt_format": "repeat_state_plain",
4
+ "max_model_len": 131072,
5
+ "temperature": "temperature.json"
6
  }
model.safetensors.index.json ADDED
@@ -0,0 +1,434 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 4205751296,
4
+ "total_size": 8411502592
5
+ },
6
+ "weight_map": {
7
+ "model.language_model.embed_tokens.weight": "model-00001-of-00002.safetensors",
8
+ "model.language_model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
9
+ "model.language_model.layers.0.linear_attn.A_log": "model-00001-of-00002.safetensors",
10
+ "model.language_model.layers.0.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
11
+ "model.language_model.layers.0.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
12
+ "model.language_model.layers.0.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
13
+ "model.language_model.layers.0.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
14
+ "model.language_model.layers.0.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
15
+ "model.language_model.layers.0.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
16
+ "model.language_model.layers.0.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
17
+ "model.language_model.layers.0.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
18
+ "model.language_model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.language_model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
20
+ "model.language_model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
21
+ "model.language_model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
22
+ "model.language_model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
23
+ "model.language_model.layers.1.linear_attn.A_log": "model-00001-of-00002.safetensors",
24
+ "model.language_model.layers.1.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
25
+ "model.language_model.layers.1.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
26
+ "model.language_model.layers.1.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
27
+ "model.language_model.layers.1.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
28
+ "model.language_model.layers.1.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
29
+ "model.language_model.layers.1.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
30
+ "model.language_model.layers.1.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
31
+ "model.language_model.layers.1.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
32
+ "model.language_model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
33
+ "model.language_model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.language_model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
35
+ "model.language_model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
36
+ "model.language_model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
37
+ "model.language_model.layers.10.linear_attn.A_log": "model-00001-of-00002.safetensors",
38
+ "model.language_model.layers.10.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
39
+ "model.language_model.layers.10.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
40
+ "model.language_model.layers.10.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
41
+ "model.language_model.layers.10.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
42
+ "model.language_model.layers.10.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
43
+ "model.language_model.layers.10.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
44
+ "model.language_model.layers.10.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
45
+ "model.language_model.layers.10.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
46
+ "model.language_model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
47
+ "model.language_model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
48
+ "model.language_model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
49
+ "model.language_model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
50
+ "model.language_model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
51
+ "model.language_model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
52
+ "model.language_model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
53
+ "model.language_model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
54
+ "model.language_model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
55
+ "model.language_model.layers.11.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
56
+ "model.language_model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
57
+ "model.language_model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
58
+ "model.language_model.layers.11.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
59
+ "model.language_model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
60
+ "model.language_model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
61
+ "model.language_model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
62
+ "model.language_model.layers.12.linear_attn.A_log": "model-00001-of-00002.safetensors",
63
+ "model.language_model.layers.12.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
64
+ "model.language_model.layers.12.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
65
+ "model.language_model.layers.12.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
66
+ "model.language_model.layers.12.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
67
+ "model.language_model.layers.12.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
68
+ "model.language_model.layers.12.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
69
+ "model.language_model.layers.12.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
70
+ "model.language_model.layers.12.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
71
+ "model.language_model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
72
+ "model.language_model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
73
+ "model.language_model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
74
+ "model.language_model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
75
+ "model.language_model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
76
+ "model.language_model.layers.13.linear_attn.A_log": "model-00001-of-00002.safetensors",
77
+ "model.language_model.layers.13.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
78
+ "model.language_model.layers.13.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
79
+ "model.language_model.layers.13.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
80
+ "model.language_model.layers.13.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
81
+ "model.language_model.layers.13.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
82
+ "model.language_model.layers.13.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
83
+ "model.language_model.layers.13.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
84
+ "model.language_model.layers.13.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
85
+ "model.language_model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
86
+ "model.language_model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
87
+ "model.language_model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
88
+ "model.language_model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
89
+ "model.language_model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
90
+ "model.language_model.layers.14.linear_attn.A_log": "model-00001-of-00002.safetensors",
91
+ "model.language_model.layers.14.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
92
+ "model.language_model.layers.14.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
93
+ "model.language_model.layers.14.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
94
+ "model.language_model.layers.14.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
95
+ "model.language_model.layers.14.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
96
+ "model.language_model.layers.14.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
97
+ "model.language_model.layers.14.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
98
+ "model.language_model.layers.14.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
99
+ "model.language_model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
100
+ "model.language_model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
101
+ "model.language_model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
102
+ "model.language_model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
103
+ "model.language_model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
104
+ "model.language_model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
105
+ "model.language_model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
106
+ "model.language_model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
107
+ "model.language_model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
108
+ "model.language_model.layers.15.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
109
+ "model.language_model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
110
+ "model.language_model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
111
+ "model.language_model.layers.15.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
112
+ "model.language_model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
113
+ "model.language_model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
114
+ "model.language_model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
115
+ "model.language_model.layers.16.linear_attn.A_log": "model-00001-of-00002.safetensors",
116
+ "model.language_model.layers.16.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
117
+ "model.language_model.layers.16.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
118
+ "model.language_model.layers.16.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
119
+ "model.language_model.layers.16.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
120
+ "model.language_model.layers.16.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
121
+ "model.language_model.layers.16.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
122
+ "model.language_model.layers.16.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
123
+ "model.language_model.layers.16.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
124
+ "model.language_model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
125
+ "model.language_model.layers.16.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
126
+ "model.language_model.layers.16.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
127
+ "model.language_model.layers.16.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
128
+ "model.language_model.layers.17.input_layernorm.weight": "model-00002-of-00002.safetensors",
129
+ "model.language_model.layers.17.linear_attn.A_log": "model-00002-of-00002.safetensors",
130
+ "model.language_model.layers.17.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
131
+ "model.language_model.layers.17.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
132
+ "model.language_model.layers.17.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
133
+ "model.language_model.layers.17.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
134
+ "model.language_model.layers.17.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
135
+ "model.language_model.layers.17.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
136
+ "model.language_model.layers.17.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
137
+ "model.language_model.layers.17.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
138
+ "model.language_model.layers.17.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
139
+ "model.language_model.layers.17.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
140
+ "model.language_model.layers.17.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
141
+ "model.language_model.layers.17.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
142
+ "model.language_model.layers.18.input_layernorm.weight": "model-00002-of-00002.safetensors",
143
+ "model.language_model.layers.18.linear_attn.A_log": "model-00002-of-00002.safetensors",
144
+ "model.language_model.layers.18.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
145
+ "model.language_model.layers.18.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
146
+ "model.language_model.layers.18.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
147
+ "model.language_model.layers.18.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
148
+ "model.language_model.layers.18.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
149
+ "model.language_model.layers.18.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
150
+ "model.language_model.layers.18.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
151
+ "model.language_model.layers.18.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
152
+ "model.language_model.layers.18.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
153
+ "model.language_model.layers.18.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
154
+ "model.language_model.layers.18.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
155
+ "model.language_model.layers.18.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
156
+ "model.language_model.layers.19.input_layernorm.weight": "model-00002-of-00002.safetensors",
157
+ "model.language_model.layers.19.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
158
+ "model.language_model.layers.19.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
159
+ "model.language_model.layers.19.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
160
+ "model.language_model.layers.19.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
161
+ "model.language_model.layers.19.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
162
+ "model.language_model.layers.19.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
163
+ "model.language_model.layers.19.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
164
+ "model.language_model.layers.19.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
165
+ "model.language_model.layers.19.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
166
+ "model.language_model.layers.19.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
167
+ "model.language_model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
168
+ "model.language_model.layers.2.linear_attn.A_log": "model-00001-of-00002.safetensors",
169
+ "model.language_model.layers.2.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
170
+ "model.language_model.layers.2.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
171
+ "model.language_model.layers.2.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
172
+ "model.language_model.layers.2.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
173
+ "model.language_model.layers.2.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
174
+ "model.language_model.layers.2.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
175
+ "model.language_model.layers.2.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
176
+ "model.language_model.layers.2.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
177
+ "model.language_model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
178
+ "model.language_model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
179
+ "model.language_model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
180
+ "model.language_model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
181
+ "model.language_model.layers.20.input_layernorm.weight": "model-00002-of-00002.safetensors",
182
+ "model.language_model.layers.20.linear_attn.A_log": "model-00002-of-00002.safetensors",
183
+ "model.language_model.layers.20.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
184
+ "model.language_model.layers.20.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
185
+ "model.language_model.layers.20.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
186
+ "model.language_model.layers.20.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
187
+ "model.language_model.layers.20.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
188
+ "model.language_model.layers.20.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
189
+ "model.language_model.layers.20.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
190
+ "model.language_model.layers.20.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
191
+ "model.language_model.layers.20.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
192
+ "model.language_model.layers.20.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
193
+ "model.language_model.layers.20.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
194
+ "model.language_model.layers.20.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
195
+ "model.language_model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
196
+ "model.language_model.layers.21.linear_attn.A_log": "model-00002-of-00002.safetensors",
197
+ "model.language_model.layers.21.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
198
+ "model.language_model.layers.21.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
199
+ "model.language_model.layers.21.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
200
+ "model.language_model.layers.21.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
201
+ "model.language_model.layers.21.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
202
+ "model.language_model.layers.21.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
203
+ "model.language_model.layers.21.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
204
+ "model.language_model.layers.21.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
205
+ "model.language_model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
206
+ "model.language_model.layers.21.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
207
+ "model.language_model.layers.21.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
208
+ "model.language_model.layers.21.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
209
+ "model.language_model.layers.22.input_layernorm.weight": "model-00002-of-00002.safetensors",
210
+ "model.language_model.layers.22.linear_attn.A_log": "model-00002-of-00002.safetensors",
211
+ "model.language_model.layers.22.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
212
+ "model.language_model.layers.22.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
213
+ "model.language_model.layers.22.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
214
+ "model.language_model.layers.22.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
215
+ "model.language_model.layers.22.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
216
+ "model.language_model.layers.22.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
217
+ "model.language_model.layers.22.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
218
+ "model.language_model.layers.22.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
219
+ "model.language_model.layers.22.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
220
+ "model.language_model.layers.22.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
221
+ "model.language_model.layers.22.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
222
+ "model.language_model.layers.22.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
223
+ "model.language_model.layers.23.input_layernorm.weight": "model-00002-of-00002.safetensors",
224
+ "model.language_model.layers.23.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
225
+ "model.language_model.layers.23.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
226
+ "model.language_model.layers.23.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
227
+ "model.language_model.layers.23.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
228
+ "model.language_model.layers.23.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
229
+ "model.language_model.layers.23.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
230
+ "model.language_model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
231
+ "model.language_model.layers.23.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
232
+ "model.language_model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
233
+ "model.language_model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
234
+ "model.language_model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
235
+ "model.language_model.layers.24.linear_attn.A_log": "model-00002-of-00002.safetensors",
236
+ "model.language_model.layers.24.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
237
+ "model.language_model.layers.24.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
238
+ "model.language_model.layers.24.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
239
+ "model.language_model.layers.24.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
240
+ "model.language_model.layers.24.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
241
+ "model.language_model.layers.24.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
242
+ "model.language_model.layers.24.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
243
+ "model.language_model.layers.24.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
244
+ "model.language_model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
245
+ "model.language_model.layers.24.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
246
+ "model.language_model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
247
+ "model.language_model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
248
+ "model.language_model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
249
+ "model.language_model.layers.25.linear_attn.A_log": "model-00002-of-00002.safetensors",
250
+ "model.language_model.layers.25.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
251
+ "model.language_model.layers.25.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
252
+ "model.language_model.layers.25.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
253
+ "model.language_model.layers.25.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
254
+ "model.language_model.layers.25.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
255
+ "model.language_model.layers.25.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
256
+ "model.language_model.layers.25.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
257
+ "model.language_model.layers.25.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
258
+ "model.language_model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
259
+ "model.language_model.layers.25.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
260
+ "model.language_model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
261
+ "model.language_model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
262
+ "model.language_model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
263
+ "model.language_model.layers.26.linear_attn.A_log": "model-00002-of-00002.safetensors",
264
+ "model.language_model.layers.26.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
265
+ "model.language_model.layers.26.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
266
+ "model.language_model.layers.26.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
267
+ "model.language_model.layers.26.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
268
+ "model.language_model.layers.26.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
269
+ "model.language_model.layers.26.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
270
+ "model.language_model.layers.26.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
271
+ "model.language_model.layers.26.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
272
+ "model.language_model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
273
+ "model.language_model.layers.26.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
274
+ "model.language_model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
275
+ "model.language_model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
276
+ "model.language_model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
277
+ "model.language_model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
278
+ "model.language_model.layers.27.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
279
+ "model.language_model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
280
+ "model.language_model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
281
+ "model.language_model.layers.27.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
282
+ "model.language_model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
283
+ "model.language_model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
284
+ "model.language_model.layers.27.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
285
+ "model.language_model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
286
+ "model.language_model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
287
+ "model.language_model.layers.28.input_layernorm.weight": "model-00002-of-00002.safetensors",
288
+ "model.language_model.layers.28.linear_attn.A_log": "model-00002-of-00002.safetensors",
289
+ "model.language_model.layers.28.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
290
+ "model.language_model.layers.28.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
291
+ "model.language_model.layers.28.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
292
+ "model.language_model.layers.28.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
293
+ "model.language_model.layers.28.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
294
+ "model.language_model.layers.28.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
295
+ "model.language_model.layers.28.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
296
+ "model.language_model.layers.28.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
297
+ "model.language_model.layers.28.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
298
+ "model.language_model.layers.28.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
299
+ "model.language_model.layers.28.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
300
+ "model.language_model.layers.28.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
301
+ "model.language_model.layers.29.input_layernorm.weight": "model-00002-of-00002.safetensors",
302
+ "model.language_model.layers.29.linear_attn.A_log": "model-00002-of-00002.safetensors",
303
+ "model.language_model.layers.29.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
304
+ "model.language_model.layers.29.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
305
+ "model.language_model.layers.29.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
306
+ "model.language_model.layers.29.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
307
+ "model.language_model.layers.29.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
308
+ "model.language_model.layers.29.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
309
+ "model.language_model.layers.29.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
310
+ "model.language_model.layers.29.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
311
+ "model.language_model.layers.29.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
312
+ "model.language_model.layers.29.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
313
+ "model.language_model.layers.29.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
314
+ "model.language_model.layers.29.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
315
+ "model.language_model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
316
+ "model.language_model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
317
+ "model.language_model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
318
+ "model.language_model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
319
+ "model.language_model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
320
+ "model.language_model.layers.3.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
321
+ "model.language_model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
322
+ "model.language_model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
323
+ "model.language_model.layers.3.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
324
+ "model.language_model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
325
+ "model.language_model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
326
+ "model.language_model.layers.30.input_layernorm.weight": "model-00002-of-00002.safetensors",
327
+ "model.language_model.layers.30.linear_attn.A_log": "model-00002-of-00002.safetensors",
328
+ "model.language_model.layers.30.linear_attn.conv1d.weight": "model-00002-of-00002.safetensors",
329
+ "model.language_model.layers.30.linear_attn.dt_bias": "model-00002-of-00002.safetensors",
330
+ "model.language_model.layers.30.linear_attn.in_proj_a.weight": "model-00002-of-00002.safetensors",
331
+ "model.language_model.layers.30.linear_attn.in_proj_b.weight": "model-00002-of-00002.safetensors",
332
+ "model.language_model.layers.30.linear_attn.in_proj_qkv.weight": "model-00002-of-00002.safetensors",
333
+ "model.language_model.layers.30.linear_attn.in_proj_z.weight": "model-00002-of-00002.safetensors",
334
+ "model.language_model.layers.30.linear_attn.norm.weight": "model-00002-of-00002.safetensors",
335
+ "model.language_model.layers.30.linear_attn.out_proj.weight": "model-00002-of-00002.safetensors",
336
+ "model.language_model.layers.30.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
337
+ "model.language_model.layers.30.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
338
+ "model.language_model.layers.30.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
339
+ "model.language_model.layers.30.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
340
+ "model.language_model.layers.31.input_layernorm.weight": "model-00002-of-00002.safetensors",
341
+ "model.language_model.layers.31.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
342
+ "model.language_model.layers.31.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
343
+ "model.language_model.layers.31.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
344
+ "model.language_model.layers.31.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
345
+ "model.language_model.layers.31.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
346
+ "model.language_model.layers.31.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
347
+ "model.language_model.layers.31.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
348
+ "model.language_model.layers.31.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
349
+ "model.language_model.layers.31.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
350
+ "model.language_model.layers.31.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
351
+ "model.language_model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
352
+ "model.language_model.layers.4.linear_attn.A_log": "model-00001-of-00002.safetensors",
353
+ "model.language_model.layers.4.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
354
+ "model.language_model.layers.4.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
355
+ "model.language_model.layers.4.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
356
+ "model.language_model.layers.4.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
357
+ "model.language_model.layers.4.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
358
+ "model.language_model.layers.4.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
359
+ "model.language_model.layers.4.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
360
+ "model.language_model.layers.4.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
361
+ "model.language_model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
362
+ "model.language_model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
363
+ "model.language_model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
364
+ "model.language_model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
365
+ "model.language_model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
366
+ "model.language_model.layers.5.linear_attn.A_log": "model-00001-of-00002.safetensors",
367
+ "model.language_model.layers.5.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
368
+ "model.language_model.layers.5.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
369
+ "model.language_model.layers.5.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
370
+ "model.language_model.layers.5.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
371
+ "model.language_model.layers.5.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
372
+ "model.language_model.layers.5.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
373
+ "model.language_model.layers.5.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
374
+ "model.language_model.layers.5.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
375
+ "model.language_model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
376
+ "model.language_model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
377
+ "model.language_model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
378
+ "model.language_model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
379
+ "model.language_model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
380
+ "model.language_model.layers.6.linear_attn.A_log": "model-00001-of-00002.safetensors",
381
+ "model.language_model.layers.6.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
382
+ "model.language_model.layers.6.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
383
+ "model.language_model.layers.6.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
384
+ "model.language_model.layers.6.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
385
+ "model.language_model.layers.6.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
386
+ "model.language_model.layers.6.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
387
+ "model.language_model.layers.6.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
388
+ "model.language_model.layers.6.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
389
+ "model.language_model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
390
+ "model.language_model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
391
+ "model.language_model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
392
+ "model.language_model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
393
+ "model.language_model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
394
+ "model.language_model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
395
+ "model.language_model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
396
+ "model.language_model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
397
+ "model.language_model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
398
+ "model.language_model.layers.7.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
399
+ "model.language_model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
400
+ "model.language_model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
401
+ "model.language_model.layers.7.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
402
+ "model.language_model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
403
+ "model.language_model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
404
+ "model.language_model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
405
+ "model.language_model.layers.8.linear_attn.A_log": "model-00001-of-00002.safetensors",
406
+ "model.language_model.layers.8.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
407
+ "model.language_model.layers.8.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
408
+ "model.language_model.layers.8.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
409
+ "model.language_model.layers.8.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
410
+ "model.language_model.layers.8.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
411
+ "model.language_model.layers.8.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
412
+ "model.language_model.layers.8.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
413
+ "model.language_model.layers.8.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
414
+ "model.language_model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
415
+ "model.language_model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
416
+ "model.language_model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
417
+ "model.language_model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
418
+ "model.language_model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
419
+ "model.language_model.layers.9.linear_attn.A_log": "model-00001-of-00002.safetensors",
420
+ "model.language_model.layers.9.linear_attn.conv1d.weight": "model-00001-of-00002.safetensors",
421
+ "model.language_model.layers.9.linear_attn.dt_bias": "model-00001-of-00002.safetensors",
422
+ "model.language_model.layers.9.linear_attn.in_proj_a.weight": "model-00001-of-00002.safetensors",
423
+ "model.language_model.layers.9.linear_attn.in_proj_b.weight": "model-00001-of-00002.safetensors",
424
+ "model.language_model.layers.9.linear_attn.in_proj_qkv.weight": "model-00001-of-00002.safetensors",
425
+ "model.language_model.layers.9.linear_attn.in_proj_z.weight": "model-00001-of-00002.safetensors",
426
+ "model.language_model.layers.9.linear_attn.norm.weight": "model-00001-of-00002.safetensors",
427
+ "model.language_model.layers.9.linear_attn.out_proj.weight": "model-00001-of-00002.safetensors",
428
+ "model.language_model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
429
+ "model.language_model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
430
+ "model.language_model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
431
+ "model.language_model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
432
+ "model.language_model.norm.weight": "model-00002-of-00002.safetensors"
433
+ }
434
+ }
reference/eval/__init__.py ADDED
File without changes
reference/eval/systemone_vllm.py ADDED
@@ -0,0 +1,379 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """A concurrent POST /v1/systemone front-end over a vLLM server, for our Base-lineage letter models (015A0-f3 one-pass,
2
+ 015D0-f4 gated think) in TypeSafe's wire format (the Decision Index kit's `http` engine and JevBench both read it).
3
+
4
+ Per question the bytes are eval.think_paren's (kev.api.to_record -> midtrain.letter.question_prompt, paren layout):
5
+
6
+ State:\\n{state}\\n\\nQuestion: {instructions}\\n(A) {option 1}\\n(B) {option 2}\\nAnswer: ( <- one-pass read
7
+
8
+ the letters A..Z read at the next position as z_L = log(P("L") + P(" L")), softmax over the question's options. With
9
+ --gate g > 0 a question whose one-pass max p < g is re-read after a short thought (think_paren's think layout:
10
+ `Reasoning: {thought}\\nAnswer: (`, ≤ --budget tokens, temperature 0.6 / top-p 0.95 / top-k 20, seed = hash of the
11
+ request and question id, as think_paren serve); --gate 0.5 / --budget 256 is eval.effort's `low`, 0.7 / 512 its `medium`. Answers are tempered with the --temperature bucket table (the `A` / `B` tables of a gated
12
+ table, or one plain table for both).
13
+
14
+ Differences from `think_paren serve` (which stays as it is):
15
+ - no global lock: requests are answered concurrently (vLLM batches them); the client is stateless stdlib urllib;
16
+ - answers carry the TypeSafe wire keys (`type`, `choice` + `probabilities` + `confidence`, or `noul`), as
17
+ kev.api.to_answers writes them, plus `mode` (A / B / K);
18
+ - all 26 letters are read (think_paren's client reads A..P, so 17-26-option questions came back short);
19
+ - more than 26 options ("wide" questions, e.g. BANKING77's 77 intents): --wide knockout reads the options in
20
+ ceil(n / 26) near-equal consecutive chunks with the same prompt, then one final question over the chunk winners;
21
+ P(option) = P_final(its chunk) x P_chunk(option); one-pass only (no thought). --wide refuse answers 422
22
+ "at most 26 options per choice" instead. --topk K (> 0, <= 26) adds a third round: the K options with the highest
23
+ knockout probability, in their original order, are re-read as one K-way question and the top K's knockout mass is
24
+ spread by that read (mode `T`; the other options keep their knockout probability). Default 0 = plain knockout;
25
+ - a prompt longer than --max-model-len answers 422 with "maximum context length" (the kit records it as unsupported;
26
+ nothing is truncated); a thought that would not fit falls back to the one-pass read;
27
+ - --think-k k (test-time scaling): a question that thinks samples k thoughts and answers with the mean of the k
28
+ post-thought letter distributions (before tempering). Thought 0 is the k = 1 thought (same seed), thoughts 1..k-1
29
+ come from one n = k-1 request seeded from the same text + "#k"; so k = 1 answers exactly as before;
30
+ - --return-raw adds `raw` to every answer: the untempered one-pass distribution (`A`), each thought's untempered
31
+ post-thought distribution (`B`, in sample order) and the mode, so one always-think read (--gate 1.01) can be
32
+ re-scored offline as one-pass, any gate, k = 1 or the mean of the first j thoughts (trainer/eval/scripts/di_policies.py);
33
+ - --prompt-format (default `plain`: the bytes above, unchanged) applies one general rewrite to every question's prompt,
34
+ never keyed to a benchmark; adapted from featherless-ai/simple-jev @ dae340e (Apache-2.0,
35
+ hf-server/hf_prompt_policies.py; the STRICT / FULL_EXAMPLES / STATE_REPEAT / INPUT_REPEAT strings are copied
36
+ verbatim). Our base-lineage models read a plain letter layout, not a chat template, so the policies' system text
37
+ becomes a preamble before `State:` and there is no `[thinking]` prefill / JSON answer / nine-bin Noul:
38
+ repeat_state STRICT + FULL_EXAMPLES preamble; the state written twice, joined by STATE_REPEAT
39
+ repeat_state_plain the state written twice (STATE_REPEAT), no preamble (the repetition alone)
40
+ strict_mix_repeat2 STRICT preamble; the whole input (state + question + options) twice, joined by INPUT_REPEAT
41
+
42
+ python -m eval.systemone_vllm --vllm http://127.0.0.1:8011 --served 015A0-f3 --gate 0 --port 8100 \\
43
+ --temperature results/v2/015A0-f3-cal/temperature.json
44
+
45
+ Needs trainer/kev and trainer/midtrain importable (kev.api, midtrain.letter).
46
+ """
47
+ import argparse
48
+ import hashlib
49
+ import json
50
+ import math
51
+ import sys
52
+ import time
53
+ import urllib.error
54
+ import urllib.request
55
+ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
56
+ from pathlib import Path
57
+
58
+ LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
59
+ CUE = "Answer: ("
60
+ THINK = "Reasoning:"
61
+ CLOSE = "\nAnswer: ("
62
+ STOP = "\nAnswer"
63
+ BUCKETS = ((2, "2"), (4, "3-4"), (8, "5-8"), (math.inf, "9+")) # t2m_kev.temperature.BUCKETS
64
+
65
+
66
+ class Capacity(ValueError):
67
+ """A declared capacity limit: answered 422 with a marker the kit's http engine maps to `unsupported`."""
68
+
69
+
70
+ # --- temperature (serve_gated's table format) ---------------------------------------------------------------------------
71
+ def bucket_key(qtype, n):
72
+ return f"{qtype}|" + next(name for upper, name in BUCKETS if n <= upper)
73
+
74
+
75
+ def temperature(table, qtype, n):
76
+ if not table: return 1.0
77
+ b = (table.get("buckets") or {}).get(bucket_key(qtype, n))
78
+ return float(b["temperature"]) if b else float(table.get("single", 1.0))
79
+
80
+
81
+ def temper(p, t):
82
+ if t == 1.0: return list(p)
83
+ z = [math.log(max(x, 1e-12)) / t for x in p]
84
+ m = max(z); e = [math.exp(v - m) for v in z]; s = sum(e)
85
+ return [v / s for v in e]
86
+
87
+
88
+ def load_tables(path, budget=512):
89
+ """-> {"A": table, "B": table, "K": table}; a plain bucket table serves every mode; a gated table's think entry is
90
+ B<budget> when fitted for this budget, else B."""
91
+ if not path: return {}
92
+ t = json.loads(Path(path).read_text())
93
+ if "buckets" in t or "single" in t: return {"A": t, "B": t, "K": t}
94
+ return {"A": t.get("A"), "B": t.get(f"B{budget}") or t.get("B"), "K": t.get("A")}
95
+
96
+
97
+ # --- simple-jev prompt formats (Apache-2.0, featherless-ai/simple-jev @ dae340e, hf-server/hf_prompt_policies.py) ------
98
+ SJ_STRICT = 'Use the question and rubric as the decision rule. For truth or probability, assess the exact proposition, including its conditions: relevance is not truth, lack of mention is not falsity, and a plausible inference is not an explicit fact. For numerical probability, count or derive the favorable outcomes and divide by the total; evaluate the requested event rather than its complement. For ordered levels, choose the most specific level justified by the evidence, without escalating beyond what its definition requires.'
99
+ SJ_FULL_EXAMPLES = 'Independent worked examples below are not facts about the actual state. Transfer only the reasoning rules, not their entities, numbers, conclusions or answers.\nA general rule requires P and Q. A more specific applicable exception requires only P for certified repairs. The case is a certified repair; P is satisfied and Q is not. The exception replaces the general prerequisite list, so the action is permitted.\nA 72-hour window starts March 3 at 06:00 and ends March 6 at 06:00. An event exactly at the endpoint satisfies "by the deadline" but not "before the deadline". Adding a full extra calendar day would be incorrect.\nA policy requires a supervisor when total exposure is at most 50 and a director above 50. Existing exposure is 45 and the new commitment is 10, so total exposure is 55 and the director is required. Testing only the new commitment would apply the wrong quantity.\nItem K maps to unit B; unit B maps to zone 4; zone 4 maps to contact P. An override substitutes contact Q only on holidays. Today is not a holiday. Follow all mappings, then test the override condition: the operative contact is P.\nCause X has prior probability 0.2 and triggers a signal with probability 0.8. Cause Y has prior probability 0.8 and triggers it with probability 0.1. Given the signal, the probability of X is (0.2*0.8)/(0.2*0.8+0.8*0.1)=2/3, not 0.8 and not 0.2.\nLevel 0 means no evidence, level 1 requires condition P, and level 2 requires P and Q. If P holds but Q does not, the matching level is 1. Select the defined category rather than averaging the two nearby categories.\nA requested function must return the maximum of any nonempty numeric list, including negative values. A proposed implementation starts best=0 and only replaces best when a value is larger. It works on positive examples but returns 0 for [-5,-2], whose correct maximum is -2. The implementation does not meet the full requirement.\nFor the actual task, use its own evidence, definitions, exceptions and output labels. Return only the required answer; do not reproduce these explanations.'
100
+ SJ_STATE_REPEAT = '\n\nRead the same context again before answering. This is a repeated copy, not additional events or independent evidence:\n'
101
+ SJ_INPUT_REPEAT = '\n\nRead the same input again before answering:\n'
102
+ PROMPT_FORMATS = ("plain", "repeat_state", "repeat_state_plain", "strict_mix_repeat2")
103
+
104
+
105
+ def format_prompt(prompt, fmt):
106
+ """One question's plain letter prompt (`State:\\n{state}\\n\\nQuestion: ... Answer: (`) rewritten by --prompt-format."""
107
+ if fmt == "plain": return prompt
108
+ if not prompt.endswith(CUE): raise ValueError("prompt does not end with the answer cue")
109
+ if fmt in ("repeat_state", "repeat_state_plain"):
110
+ pre = SJ_STRICT + "\n\n" + SJ_FULL_EXAMPLES + "\n\n" if fmt == "repeat_state" else ""
111
+ if prompt.startswith("State:\n") and "\n\nQuestion:" in prompt:
112
+ i = prompt.index("\n\nQuestion:")
113
+ state = prompt[len("State:\n"):i]
114
+ return pre + "State:\n" + state + SJ_STATE_REPEAT + state + prompt[i:]
115
+ return pre + prompt # blank state: nothing to repeat
116
+ if fmt == "strict_mix_repeat2":
117
+ body = prompt[: -len(CUE)].rstrip("\n")
118
+ return SJ_STRICT + "\n\n" + body + SJ_INPUT_REPEAT + body + "\n" + CUE
119
+ raise ValueError(f"unknown prompt format {fmt!r}")
120
+
121
+
122
+ def hash_seed(s):
123
+ return int(hashlib.sha256(s.encode()).hexdigest()[:8], 16)
124
+
125
+
126
+ # --- vLLM client (stdlib, thread-safe: no shared mutable state after __init__) --------------------------------------------
127
+ class Client:
128
+ def __init__(self, endpoint, served, max_len, timeout=900):
129
+ self.url, self.served, self.max_len, self.timeout = endpoint.rstrip("/"), served, max_len, timeout
130
+ self.letter_ids = []
131
+ for L in LETTERS:
132
+ ids = []
133
+ for v in (L, " " + L):
134
+ t = self.ids(v)
135
+ if len(t) == 1 and t[0] not in ids: ids.append(t[0])
136
+ if not ids: raise RuntimeError(f"no single-token encoding of letter {L!r}")
137
+ self.letter_ids.append(ids)
138
+ self.close = self.ids(CLOSE)
139
+
140
+ def post(self, path, body, retries=4):
141
+ last = None
142
+ for a in range(retries):
143
+ try:
144
+ req = urllib.request.Request(self.url + path, data=json.dumps(body).encode(), method="POST", headers={"content-type": "application/json"})
145
+ with urllib.request.urlopen(req, timeout=self.timeout) as r:
146
+ return json.loads(r.read())
147
+ except urllib.error.HTTPError as e:
148
+ detail = e.read()[:400].decode("utf-8", "replace")
149
+ if e.code in (400, 413, 422):
150
+ if "maximum context length" in detail or "max_model_len" in detail or "too long" in detail:
151
+ raise Capacity(f"maximum context length: {detail[:300]}") from None
152
+ raise ValueError(f"{e.code}: {detail}") from None
153
+ last = RuntimeError(f"{e.code}: {detail}")
154
+ except (urllib.error.URLError, OSError) as e:
155
+ last = e
156
+ time.sleep(2 ** a)
157
+ raise RuntimeError(f"{path}: {last}")
158
+
159
+ def ids(self, text, special=False):
160
+ return self.post("/tokenize", {"model": self.served, "prompt": text, "add_special_tokens": special})["tokens"]
161
+
162
+ def readout(self, ids, n):
163
+ if len(ids) + 1 > self.max_len:
164
+ raise Capacity(f"prompt of {len(ids)} tokens is longer than the maximum context length {self.max_len}")
165
+ want = [t for L in self.letter_ids[:n] for t in L]
166
+ body = {"model": self.served, "prompt": ids, "max_tokens": 1, "temperature": 0.0, "logprobs": 20, "logprob_token_ids": want,
167
+ "return_tokens_as_token_ids": True}
168
+ r = self.post("/v1/completions", body)
169
+ top = r["choices"][0]["logprobs"]["top_logprobs"][0]
170
+ lp = {int(k.split(":", 1)[1]): v for k, v in top.items() if k.startswith("token_id:") and v is not None and v > -9999}
171
+ floor = min(lp.values()) - 2.0 if lp else -30.0
172
+ z = [math.log(sum(math.exp(lp.get(t, floor)) for t in L)) for L in self.letter_ids[:n]]
173
+ m = max(z); e = [math.exp(v - m) for v in z]; s = sum(e)
174
+ return [x / s for x in e], sum(math.exp(v) for v in z)
175
+
176
+ def generate(self, ids, max_tokens, seed, n=1):
177
+ """-> (text, completion tokens) for n = 1 (as before); a list of texts and the total tokens for n > 1."""
178
+ body = {"model": self.served, "prompt": ids, "max_tokens": max_tokens, "temperature": 0.6, "top_p": 0.95, "top_k": 20,
179
+ "seed": seed, "stop": [STOP], "include_stop_str_in_output": False}
180
+ if n > 1: body["n"] = n
181
+ r = self.post("/v1/completions", body)
182
+ ntok = (r.get("usage") or {}).get("completion_tokens", 0)
183
+ if n > 1: return [c.get("text") or "" for c in r["choices"]], ntok
184
+ c = r["choices"][0]
185
+ return c.get("text") or "", ntok
186
+
187
+
188
+ # --- one question ---------------------------------------------------------------------------------------------------------
189
+ def chunks(n, size=26):
190
+ k = math.ceil(n / size); base, extra = divmod(n, k)
191
+ out, i = [], 0
192
+ for c in range(k):
193
+ m = base + (1 if c < extra else 0); out.append(list(range(i, i + m))); i += m
194
+ return out
195
+
196
+
197
+ def prompt_ids(cl, state, q):
198
+ """Token ids of one question's one-pass prompt: `paren` = midtrain.letter's plain letter layout (our Base-lineage
199
+ models), `chat` = eval.vllm_letter's chat template (system + user message through the model's own chat template,
200
+ add_generation_prompt, enable_thinking False; the chat-start models, e.g. 013A0-f1)."""
201
+ if cl.template == "chat":
202
+ from eval.vllm_letter import DEFAULT_CHAT_KWARGS, chat_messages, user_message
203
+ st, instr, opts = q["chat"]
204
+ body = {"model": cl.served, "messages": chat_messages(user_message(st, instr, opts)), "add_generation_prompt": True,
205
+ "add_special_tokens": False, "chat_template_kwargs": DEFAULT_CHAT_KWARGS}
206
+ return cl.post("/tokenize", body)["tokens"]
207
+ from midtrain.letter import question_prompt
208
+ if cl.template == "rawlogit":
209
+ # Match the pretrained-base RawLogitPredictor's A./B. ... Answer: read,
210
+ # including its tokenizer's default special prefix when present.
211
+ return cl.ids(question_prompt(state, q, "rawlogit", "letter"), special=True)
212
+ return cl.ids(format_prompt(question_prompt(state, q, "paren", "letter"), getattr(cl, "prompt_format", "plain")))
213
+
214
+
215
+ def subset(q, idx):
216
+ sub = {**q, "options": [q["options"][i] for i in idx], "option_texts": [q["option_texts"][i] for i in idx]}
217
+ if "chat" in q: sub["chat"] = (q["chat"][0], q["chat"][1], [q["chat"][2][i] for i in idx])
218
+ return sub
219
+
220
+
221
+ def read_question(cl, state, q, gate, budget, seed_text, usage, k=1, raw=None):
222
+ """-> (probabilities in the question's option order, mode, the one-pass probabilities when it thought else None).
223
+ k > 1: the mean of k post-thought distributions; `raw` (a dict) receives the untempered A and per-thought B reads."""
224
+ from midtrain.letter import question_prompt
225
+ n = len(q["options"])
226
+ if n <= len(LETTERS):
227
+ ida = prompt_ids(cl, state, q); usage["input_tokens"] += len(ida)
228
+ p, _ = cl.readout(ida, n)
229
+ if raw is not None: raw["A"] = p
230
+ if gate > 0 and n > 1 and max(p) < gate and cl.template == "paren":
231
+ prompt = format_prompt(question_prompt(state, q, "paren", "letter"), getattr(cl, "prompt_format", "plain"))
232
+ if not prompt.endswith(CUE): raise ValueError("one-pass prompt does not end with the answer cue")
233
+ pre = cl.ids(prompt[: -len(CUE)] + THINK)
234
+ if len(pre) + budget + 64 <= cl.max_len: # as think_paren serve: else the one-pass answer stands
235
+ text, ntok = cl.generate(pre, budget, hash_seed(seed_text))
236
+ texts = [text]; usage["output_tokens"] += ntok
237
+ if k > 1:
238
+ more, ntok = cl.generate(pre, budget, hash_seed(seed_text + "#k"), n=k - 1)
239
+ texts += more; usage["output_tokens"] += ntok
240
+ reads = []
241
+ for text in texts:
242
+ body = text.strip()
243
+ ids = pre + (cl.ids(" " + body) if body else []) + cl.close
244
+ pb, _ = cl.readout(ids, n); usage["input_tokens"] += len(ids); reads.append(pb)
245
+ if raw is not None: raw["B"] = reads
246
+ pb = [sum(r[i] for r in reads) / len(reads) for i in range(n)]
247
+ return pb, "B", p
248
+ return p, "A", None
249
+ if cl.wide != "knockout":
250
+ raise Capacity(f"{n} options: at most {len(LETTERS)} options per choice")
251
+ if len(chunks(n)) > len(LETTERS):
252
+ raise Capacity(f"{n} options: at most {len(LETTERS) ** 2} options per choice")
253
+
254
+ def read(idx):
255
+ ids = prompt_ids(cl, state, subset(q, idx)); usage["input_tokens"] += len(ids)
256
+ return cl.readout(ids, len(idx))[0]
257
+ return wide_read(n, read, int(getattr(cl, "topk", 0) or 0))
258
+
259
+
260
+ def wide_read(n, read, topk=0):
261
+ """More than 26 options, given `read(option indices) -> probabilities over them` (one letter read of that subset):
262
+ knockout (consecutive chunks, then a final over the chunk winners; P(option) = P_final(chunk) x P_chunk(option)),
263
+ then with topk > 0 one K-way re-read of the K options with the highest knockout probability (original order; ties
264
+ to the lower index), whose knockout mass it redistributes. -> (probabilities, mode "K" | "T", knockout
265
+ probabilities when topk ran else None). Shared by this reader and the vertical harness's HF parity read."""
266
+ groups = chunks(n)
267
+ within, winners = [], []
268
+ for g in groups:
269
+ p = read(g)
270
+ within.append(p); winners.append(g[max(range(len(g)), key=lambda j: p[j])])
271
+ top = read(winners)
272
+ out = [0.0] * n
273
+ for c, g in enumerate(groups):
274
+ for j, i in enumerate(g): out[i] = top[c] * within[c][j]
275
+ s = sum(out)
276
+ out = [x / s for x in out]
277
+ k = min(int(topk or 0), len(LETTERS), n)
278
+ if k < 2:
279
+ return out, "K", None
280
+ idx = sorted(sorted(range(n), key=lambda i: (-out[i], i))[:k])
281
+ pk = read(idx)
282
+ mass = sum(out[i] for i in idx)
283
+ res = list(out)
284
+ for j, i in enumerate(idx): res[i] = mass * pk[j]
285
+ s = sum(res)
286
+ return [x / s for x in res], "T", out
287
+
288
+
289
+ def answer(cl, req, gate, budget, tables, k=1, return_raw=False):
290
+ from kev.api import SystemOneRequest, to_record
291
+ rec, meta = to_record(SystemOneRequest.model_validate(req))
292
+ answers, usage = {}, {"input_tokens": 0, "output_tokens": 0}
293
+ seed_base = json.dumps(req, sort_keys=True) # think_paren serve's seed: hash of the request + question id
294
+ chat = None
295
+ if cl.template == "chat": # = eval.vllm_letter.question_parts (kev.api rendering, positional `a: ` prefixes dropped),
296
+ from midtrain.rawprompt import raw_options # inlined: its import chain (eval.predictors -> kev.data) needs `datasets`
297
+ chat = {}
298
+ for rq, m in zip(rec["questions"], meta):
299
+ src = req["questions"][m["id"]]
300
+ chat[m["id"]] = (rec["state"], rq["instr"], raw_options(m["type"], list(src["criteria"]) if m["type"] == "choice" else None, rq["options"]))
301
+ for rq, m in zip(rec["questions"], meta):
302
+ q = {"id": m["id"], "type": rq["qtype"], "instructions": rq["instr"], "options": rq["options"], "option_texts": rq["options"]}
303
+ if chat is not None: q["chat"] = chat[m["id"]]
304
+ raw = {} if return_raw else None
305
+ p, mode, pa = read_question(cl, rec["state"], q, gate, budget, seed_base + m["id"], usage, k, raw)
306
+ keys = m["keys"]
307
+ p = temper(p, temperature(tables.get(mode), m["type"], len(keys)))
308
+ one_pass = None
309
+ if pa is not None and mode == "B": # the one-pass read this thought replaced, tempered as mode A (so one read yields both policies)
310
+ pa = temper(pa, temperature(tables.get("A"), m["type"], len(keys)))
311
+ one_pass = {"probabilities": dict(zip(keys, pa))}
312
+ j = max(range(len(p)), key=lambda i: p[i])
313
+ if m["type"] == "noul":
314
+ answers[m["id"]] = {"type": "noul", "noul": p[keys.index("true")], "mode": mode}
315
+ elif m["type"] == "choice":
316
+ K = len(p)
317
+ answers[m["id"]] = {"type": "choice", "choice": keys[j], "probabilities": dict(zip(keys, p)),
318
+ "confidence": 1.0 if K == 1 else (p[j] - 1 / K) / (1 - 1 / K), "mode": mode}
319
+ else:
320
+ answers[m["id"]] = {"type": "score", "score": sum(i * v for i, v in enumerate(p)), "probabilities": {str(i): v for i, v in enumerate(p)},
321
+ "confidence": p[j], "mode": mode}
322
+ if one_pass is not None:
323
+ answers[m["id"]]["one_pass"] = one_pass
324
+ if raw is not None:
325
+ answers[m["id"]]["raw"] = {"mode": mode, "keys": keys, "A": raw.get("A"), "B": raw.get("B")}
326
+ return answers, usage
327
+
328
+
329
+ def main(argv=None):
330
+ ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
331
+ ap.add_argument("--vllm", required=True); ap.add_argument("--served", required=True)
332
+ ap.add_argument("--gate", type=float, default=0.0, help="think when the one-pass max p < gate (0: one-pass only)")
333
+ ap.add_argument("--budget", type=int, default=512); ap.add_argument("--temperature", default=None)
334
+ ap.add_argument("--wide", choices=("knockout", "refuse"), default="knockout")
335
+ ap.add_argument("--topk", type=int, default=0, help="> 26 options: re-read the knockout's top K (<= 26) as one K-way question (0: off)")
336
+ ap.add_argument("--template", choices=("paren", "chat", "rawlogit"), default="paren", help="paren: midtrain.letter layout; chat: eval.vllm_letter's chat prompt (no thinking); rawlogit: pretrained-base A./B. plain read")
337
+ ap.add_argument("--max-model-len", type=int, default=16384); ap.add_argument("--model-name", default=None)
338
+ ap.add_argument("--prompt-format", choices=PROMPT_FORMATS, default="plain", help="general prompt rewrite adapted from simple-jev (module docstring); plain = unchanged bytes")
339
+ ap.add_argument("--think-k", type=int, default=1, help="thoughts per thinking question; the answer is their mean post-thought distribution")
340
+ ap.add_argument("--return-raw", action="store_true", help="add untempered one-pass / per-thought reads to every answer (offline policy re-scoring)")
341
+ ap.add_argument("--host", default="127.0.0.1"); ap.add_argument("--port", type=int, default=8100)
342
+ a = ap.parse_args(argv)
343
+ cl = Client(a.vllm, a.served, a.max_model_len); cl.wide = a.wide; cl.template = a.template; cl.prompt_format = a.prompt_format
344
+ if a.prompt_format != "plain" and a.template != "paren": raise SystemExit("--prompt-format needs --template paren")
345
+ cl.topk = a.topk # its own statement: on the line above it only ran when the SystemExit was raised (never)
346
+ tables = load_tables(a.temperature, a.budget)
347
+ name = a.model_name or a.served
348
+
349
+ class H(BaseHTTPRequestHandler):
350
+ protocol_version = "HTTP/1.1"
351
+
352
+ def log_message(self, *args): pass
353
+
354
+ def send(self, code, obj):
355
+ b = json.dumps(obj).encode(); self.send_response(code); self.send_header("content-type", "application/json")
356
+ self.send_header("content-length", str(len(b))); self.end_headers(); self.wfile.write(b)
357
+
358
+ def do_GET(self):
359
+ self.send(200, {"ok": True, "model": name, "gate": a.gate, "budget": a.budget, "wide": a.wide, "topk": a.topk, "max_model_len": a.max_model_len,
360
+ "think_k": a.think_k, "return_raw": a.return_raw, "prompt_format": a.prompt_format})
361
+
362
+ def do_POST(self):
363
+ req = json.loads(self.rfile.read(int(self.headers.get("content-length", 0))))
364
+ t0 = time.perf_counter()
365
+ try:
366
+ ans, usage = answer(cl, req, a.gate, a.budget, tables, a.think_k, a.return_raw)
367
+ except Capacity as e:
368
+ return self.send(422, {"error": str(e)[:400]})
369
+ except Exception as e: # noqa: BLE001
370
+ return self.send(400 if isinstance(e, ValueError) else 500, {"error": f"{type(e).__name__}: {e}"[:400]})
371
+ self.send(200, {"model": name, "answers": ans, "usage": usage, "latency_s": time.perf_counter() - t0})
372
+
373
+ ThreadingHTTPServer.daemon_threads = True
374
+ print(json.dumps({"serving": name, "gate": a.gate, "budget": a.budget, "wide": a.wide, "port": a.port}), flush=True)
375
+ ThreadingHTTPServer((a.host, a.port), H).serve_forever()
376
+
377
+
378
+ if __name__ == "__main__":
379
+ sys.exit(main())
reference/kev/__init__.py ADDED
File without changes
reference/kev/api.py ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """TypeSafe-compatible request/response shapes (POST /v1/systemone) mapped onto the single pointer primitive.
2
+
3
+ Noul -> 2 options [false, true]; answer = p(true)
4
+ Choice -> options 'name' or 'name: desc'; answer = argmax, probabilities by name, confidence
5
+ Score -> options = ordered level descriptions; answer = expected level, legend, probabilities by index
6
+ """
7
+ import json
8
+ import re
9
+ from datetime import datetime
10
+ from typing import Any, Literal, Union
11
+ from pydantic import BaseModel, Field, model_validator
12
+
13
+ JSONContent = Union[str, dict, list, int, float, bool, None]
14
+ MAX_OPTIONS = 255
15
+
16
+
17
+ class Noul(BaseModel):
18
+ type: Literal["noul"]
19
+ instructions: JSONContent = None
20
+ criteria: dict[str, JSONContent] | None = None
21
+
22
+
23
+ class Choice(BaseModel):
24
+ type: Literal["choice"]
25
+ instructions: JSONContent = None
26
+ criteria: dict[str, JSONContent]
27
+
28
+ @model_validator(mode="after")
29
+ def _check(self):
30
+ if not 1 <= len(self.criteria) <= MAX_OPTIONS: raise ValueError(f"criteria must have 1..{MAX_OPTIONS} options")
31
+ return self
32
+
33
+
34
+ class Score(BaseModel):
35
+ type: Literal["score"]
36
+ instructions: JSONContent = None
37
+ criteria: list[JSONContent] = Field(min_length=1, max_length=MAX_OPTIONS)
38
+
39
+
40
+ Question = Union[Noul, Choice, Score]
41
+
42
+
43
+ class SystemOneRequest(BaseModel):
44
+ state: JSONContent
45
+ model: str = "kev-latest"
46
+ questions: dict[str, Question] = Field(min_length=1)
47
+
48
+
49
+ def render(v: JSONContent, indent: int = 0) -> str:
50
+ """Flatten str | object | array into text the model sees. Field names are kept as labels."""
51
+ pad = " " * indent
52
+ if v is None: return ""
53
+ if isinstance(v, (str, int, float, bool)): return str(v)
54
+ if isinstance(v, list): return "\n".join(f"{pad}- {render(x, indent + 1).lstrip()}" for x in v)
55
+ return "\n".join(f"{pad}{k}:\n{render(x, indent + 1)}" if isinstance(x, (dict, list)) else f"{pad}{k}: {render(x)}" for k, x in v.items())
56
+
57
+
58
+ def option_text(name: str, desc: JSONContent) -> str:
59
+ return name if desc is None or desc == "" else f"{name}: {render(desc)}"
60
+
61
+
62
+ MONTHS = "January|February|March|April|May|June|July|August|September|October|November|December"
63
+ _DATE = re.compile(rf"\b(?:{MONTHS}) \d{{1,2}}, \d{{4}}\b|\b\d{{4}}-\d{{2}}-\d{{2}}\b")
64
+
65
+
66
+ def date_facts(text: str) -> str:
67
+ """Deterministic date arithmetic for the model: every pair of absolute dates found in `text`, as one sentence each
68
+ ("August 3, 2026 is 12 days after July 22, 2026."). The model cannot subtract dates reliably (issue #8); it can use a
69
+ stated day count. Returns "" when fewer than two dates are found. Dates are listed in order of first appearance."""
70
+ found = []
71
+ for m in _DATE.finditer(text):
72
+ raw = m.group(0)
73
+ try: d = datetime.strptime(raw, "%B %d, %Y") if "," in raw else datetime.strptime(raw, "%Y-%m-%d")
74
+ except ValueError: continue
75
+ if raw not in [r for r, _ in found]: found.append((raw, d))
76
+ facts = []
77
+ for i in range(len(found)):
78
+ for j in range(i + 1, len(found)):
79
+ n = (found[j][1] - found[i][1]).days
80
+ facts.append(f"{found[j][0]} is {abs(n)} day{'s' if abs(n) != 1 else ''} {'after' if n > 0 else 'before'} {found[i][0]}." if n else f"{found[j][0]} is the same day as {found[i][0]}.")
81
+ return " ".join(facts)
82
+
83
+
84
+ def with_date_facts(state):
85
+ """State with a `date_facts` field (object states) or an appended paragraph (string states) when two or more absolute
86
+ dates appear. Opt-in preprocessing (KEV_DATE_FACTS=1 in kev.serve, --date_facts in kev.benchmark)."""
87
+ facts = date_facts(render(state))
88
+ if not facts: return state
89
+ if isinstance(state, dict): return {**state, "date_facts": facts}
90
+ if isinstance(state, list): return state + [{"date_facts": facts}]
91
+ return f"{state}\n\ndate_facts: {facts}"
92
+
93
+
94
+ def question_keys(qtype: str, criteria) -> list[str]:
95
+ """The keys a question's probabilities are reported under, in option order: the criteria names (choice),
96
+ ["false", "true"] (noul), the level indices as strings (score). Labels, targets and anchors use the same keys."""
97
+ if qtype == "choice": return list(criteria)
98
+ if qtype == "noul": return ["false", "true"]
99
+ return [str(i) for i in range(len(criteria))]
100
+
101
+
102
+ def to_record(req: SystemOneRequest):
103
+ """-> internal record for encode(), plus per-question metadata ({"id", "type", "keys", "legend" for score}) to map
104
+ probabilities back."""
105
+ qs, meta = [], []
106
+ for qid, q in req.questions.items():
107
+ m = {"id": qid, "type": q.type, "keys": question_keys(q.type, q.criteria)}
108
+ if q.type == "noul":
109
+ c = q.criteria or {}
110
+ opts = [option_text("no", c.get("false")), option_text("yes", c.get("true"))]
111
+ elif q.type == "choice":
112
+ opts = [option_text(k, v) for k, v in q.criteria.items()]
113
+ else:
114
+ opts = [render(x) for x in q.criteria]
115
+ m["legend"] = dict(zip(m["keys"], opts))
116
+ # traj2model: qtype and keys ride along (data.materialize sets the same values) so kev.model.echo_keys can echo the short keys
117
+ qs.append({"instr": render(q.instructions), "options": opts, "label": 0, "qtype": q.type, "keys": m["keys"]}); meta.append(m)
118
+ return {"state": render(req.state), "questions": qs}, meta
119
+
120
+
121
+ def choice_confidence(p: list[float]) -> float:
122
+ K = len(p)
123
+ return 1.0 if K == 1 else (max(p) - 1 / K) / (1 - 1 / K)
124
+
125
+
126
+ def score_confidence(p: list[float]) -> float:
127
+ """Approximation of TypeSafe's 'distance from the modal level' statistic (exact formula unpublished):
128
+ 1 - E|level - mode| / (L - 1)."""
129
+ L = len(p); mode = max(range(L), key=lambda i: p[i])
130
+ return 1.0 if L == 1 else 1.0 - sum(pi * abs(i - mode) for i, pi in enumerate(p)) / (L - 1)
131
+
132
+
133
+ def round_prob(x: float) -> float:
134
+ """Serialization precision for probabilities and derived scalars. 4 decimals keeps the sum of a rounded distribution
135
+ within TypeSafe's tolerance (|sum - 1| < 0.02) at the 255-option maximum: 255 * 0.00005 < 0.02."""
136
+ return round(float(x), 4)
137
+
138
+
139
+ def to_answers(probs: list[list[float]], meta: list[dict]) -> dict[str, Any]:
140
+ out = {}
141
+ for p, m in zip(probs, meta):
142
+ if m["type"] == "noul":
143
+ out[m["id"]] = {"type": "noul", "noul": round_prob(p[1])}
144
+ elif m["type"] == "choice":
145
+ dist = {k: round_prob(v) for k, v in zip(m["keys"], p)}
146
+ out[m["id"]] = {"type": "choice", "choice": m["keys"][max(range(len(p)), key=lambda i: p[i])], "confidence": round_prob(choice_confidence(p)), "probabilities": dist}
147
+ else:
148
+ score = sum(i * pi for i, pi in enumerate(p))
149
+ out[m["id"]] = {"type": "score", "score": round_prob(score), "legend": m["legend"], "probabilities": {str(i): round_prob(v) for i, v in enumerate(p)}, "confidence": round_prob(score_confidence(p))}
150
+ return out
151
+
152
+
153
+ def output_tokens(tok, answers: dict) -> int:
154
+ """Billing-style figure: tokens of the serialised answers. Not a measure of generation (there is none)."""
155
+ return len(tok(json.dumps(answers), add_special_tokens=False).input_ids)
reference/midtrain/__init__.py ADDED
File without changes
reference/midtrain/encode.py ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Record encoding, block-causal mask and row form. Ported from Kev's kev/model.py (Apache-2.0, see NOTICE) and
2
+ extended with pause tokens, option echo, rationale (tier-2) branches and plain-text rows
3
+ (docs/reasoning-architecture.md, section 1).
4
+
5
+ Decision record -> one packed sequence; every (question, tier) branch has its own seg and restarts after the state:
6
+
7
+ <state> state tokens | <q> instr <opt> o1 </opt> ... <opt> oK </opt> SUFFIX | <q> ... | ...
8
+
9
+ SUFFIX, tier 0/1 <pause>*N <decide> readout: </opt> of o1..oK
10
+ SUFFIX, tier 0/1 + echo <pause>*N <opt> k1 </opt> ... <opt> kK </opt> <decide> echoed </opt>
11
+ SUFFIX, tier 2 <think> r1..rm <decide> readout: </opt> of o1..oK
12
+ SUFFIX, tier 2 + echo <think> r1..rm <opt> k1 </opt> ... <opt> kK </opt> <decide> echoed </opt>
13
+
14
+ k_j is option j's short key (`echo_key`). Two echo modes (the doc's table, section 1):
15
+ siblings attention-only bases: the spans share position ids (each starts right after the last pause / rationale
16
+ token), each sees everything before the echo block plus itself (`sib`, enforced by the packed mask and by
17
+ the row and fork forms' 4D masks), <decide> sits after the longest span and sees all of them, so the block
18
+ is order-invariant
19
+ sequential hybrids (recurrent layers cannot be masked): consecutive positions, the spans see each other in option
20
+ order; the same layout as Kev's echo without option isolation, which fine-tunes the Qwen3.5 checkpoints
21
+ A question with a rationale emits its tier-0/1 branch always and a tier-2 branch with probability p_tier2.
22
+
23
+ seg[i] : 0 for state tokens, k for the tokens of branch k (k >= 1)
24
+ pos[i] : position ids; every branch restarts right after the state, so branches are interchangeable
25
+ sib[i] : j + 1 on the tokens of echo span j in siblings mode, else 0
26
+ decide_idx : index of each branch's <decide>; opt_idx: index of each option's scored </opt> (echoed when echo is on)
27
+ lm_labels : next-token targets (the model shifts them): text rows everywhere; decision rows only on the rationale
28
+ (r1..rm, and <decide> as the stop target after rm, placed on the first echo token in echo mode); a
29
+ corrupted rationale (or a self-sampled one marked correct: false) gets none. Never on state, instructions,
30
+ options, pauses or echo.
31
+ qidx : index in rec["questions"] of each branch's question
32
+ tiers, rat_corrupt, rat_targets : per branch 0/1/2 and "rationale without LM targets"; LM targets in the encoding
33
+
34
+ Text record -> one causal row with seg all 0 and lm_labels = ids (the model shifts them).
35
+ """
36
+ import hashlib
37
+ import re
38
+ import torch
39
+
40
+ from .tokens import Delimiters
41
+
42
+ OPT_NONE, OPT_DECIDE, OPT_PAUSE, OPT_THINK, OPT_ECHO = -1, -2, -3, -4, -5
43
+ IGNORE = -100
44
+
45
+
46
+ class ContextOverflow(ValueError):
47
+ """A record does not fit the context (state, branch or packed limit)."""
48
+
49
+
50
+ _SPECIAL_RE = re.compile(r"<\|([A-Za-z0-9_]+)\|>")
51
+
52
+
53
+ def user_tokens(tok, delims: Delimiters, text):
54
+ """Tokenize caller text so it can never produce a delimiter or pause token (option boundaries are unforgeable).
55
+ `<|name|>` is rewritten to `<¦name¦>` (Kev) and any literal delimiter/pause string gets the same treatment."""
56
+ text = _SPECIAL_RE.sub(r"<¦\1¦>", text)
57
+ for name in delims.names.values():
58
+ if name in text:
59
+ text = text.replace(name, "<¦" + name[1:-1] + "¦>")
60
+ return tok(text, add_special_tokens=False).input_ids
61
+
62
+
63
+ def render(v, indent=0):
64
+ """Flatten a JSON state (str | object | array) into the text the model sees, exactly as Kev's serving path does
65
+ (kev.api.render), so a mid-trained base sees the same state text the fine-tune and the server will give it.
66
+ trainer/data wraps ~30 % of hf states as {"document": ...}, {"ticket": ...} or a chat list."""
67
+ pad = " " * indent
68
+ if v is None: return ""
69
+ if isinstance(v, (str, int, float, bool)): return str(v)
70
+ if isinstance(v, list): return "\n".join(f"{pad}- {render(x, indent + 1).lstrip()}" for x in v)
71
+ return "\n".join(f"{pad}{k}:\n{render(x, indent + 1)}" if isinstance(x, (dict, list)) else f"{pad}{k}: {render(x)}" for k, x in v.items())
72
+
73
+
74
+ _SLUG = re.compile(r"[a-z0-9][a-z0-9_.-]{0,39}")
75
+
76
+
77
+ def option_texts(q):
78
+ """The option strings exactly as the fine-tune and the server render them (t2m_kev.convert.to_kev_question ->
79
+ kev.api.to_record): choice options that are all distinct short slugs stay as they are, anything else becomes
80
+ `a: text`, `b: text`, ... (`o27: ...` past 26); noul is `no` / `yes` (`no: text` when the options are not literally
81
+ no/yes); score levels are the level texts. Mid-training on the same surface form is what lets the head and the
82
+ delimiter embeddings carry over into the fine-tune.
83
+ A question may carry `option_texts`, the strings already rendered (eval.predictors.MidtrainPredictor passes
84
+ kev.api.to_record's, so Kev-format keys such as `c: ...` or `none_of_these: ...` reach the model unchanged)."""
85
+ if q.get("option_texts") is not None:
86
+ return [str(o) for o in q["option_texts"]]
87
+ opts = [str(o) for o in q["options"]]
88
+ if q["type"] == "choice":
89
+ if len(set(opts)) == len(opts) and all(_SLUG.fullmatch(o) for o in opts):
90
+ return opts
91
+ keys = [chr(ord("a") + i) if len(opts) <= 26 else f"o{i + 1}" for i in range(len(opts))]
92
+ return [f"{k}: {o}" if o else k for k, o in zip(keys, opts)]
93
+ if q["type"] == "noul" and opts != ["no", "yes"]:
94
+ return [f"no: {opts[0]}" if opts[0] else "no", f"yes: {opts[1]}" if opts[1] else "yes"]
95
+ return opts
96
+
97
+
98
+ def echo_key(q, j, text):
99
+ """The short key option j is echoed by (reasoning-architecture.md, token layouts): the slug or letter `option_texts`
100
+ puts before the colon, `no`/`yes` for noul, the level index for score."""
101
+ if q["type"] == "score":
102
+ return str(j)
103
+ if q["type"] == "noul":
104
+ return ("no", "yes")[j]
105
+ return text.split(": ", 1)[0] # as kev.model.echo_keys falls back to
106
+
107
+
108
+ def rationale_of(q):
109
+ """(text, lm) of a question's rationale, or None. Accepts the trainer-JSONL string form (`rationale` plus an optional
110
+ `rationale_corrupt: true`) and the object form of reasoning-architecture.md section 3 ({"text", "corrupt", "correct",
111
+ ...}). lm is False for a corrupted rationale and for a self-sampled one marked `correct: false`: those train the head
112
+ only. An object carrying `ids` (a decoded rationale, see rationale_ids) counts even when empty (an immediate stop)."""
113
+ r = q.get("rationale")
114
+ if isinstance(r, dict):
115
+ text, corrupt, correct = r.get("text"), r.get("corrupt", q.get("rationale_corrupt", False)), r.get("correct", True)
116
+ if isinstance(r.get("ids"), list): # decoded token ids (predict, tier 2): used as they are, possibly none
117
+ return (text if isinstance(text, str) else ""), not (bool(corrupt) or correct is False)
118
+ elif isinstance(r, str):
119
+ text, corrupt, correct = r, q.get("rationale_corrupt", False), True
120
+ else:
121
+ return None
122
+ if not isinstance(text, str) or not text.strip():
123
+ return None
124
+ return text, not (bool(corrupt) or correct is False)
125
+
126
+
127
+ def rationale_ids(tok, delims, q, text):
128
+ """The rationale's token ids: `rationale.ids` when the object form carries them (a rationale decoded by the model at
129
+ tier 2, midtrain.predict: re-tokenizing its text need not give back the decoded ids), else user_tokens(text)."""
130
+ r = q.get("rationale")
131
+ if isinstance(r, dict) and isinstance(r.get("ids"), list):
132
+ return [int(t) for t in r["ids"]]
133
+ return user_tokens(tok, delims, text)
134
+
135
+
136
+ def _draw(key, p):
137
+ """A deterministic Bernoulli(p) draw from a string key (stable across processes, unlike hash())."""
138
+ if p >= 1:
139
+ return True
140
+ if p <= 0:
141
+ return False
142
+ return int.from_bytes(hashlib.blake2b(key.encode(), digest_size=8).digest(), "big") / 2 ** 64 < p
143
+
144
+
145
+ def echo_mode(hybrid):
146
+ """The echo layout a base supports: sibling spans need a maskable (attention-only) backbone."""
147
+ return "sequential" if hybrid else "siblings"
148
+
149
+
150
+ def decision_kwargs(cfg, hybrid=False):
151
+ """encode_decision keyword arguments for the config's echo / rationale switches; {} when both are off (the pilot
152
+ configs), so their encodings are unchanged."""
153
+ kw = {}
154
+ if (cfg.get("pause") or {}).get("echo_options"):
155
+ kw["echo"] = echo_mode(hybrid)
156
+ r = cfg.get("rationale") or {}
157
+ if r.get("enabled"):
158
+ kw["rationale"] = {"p_tier2": float(r.get("p_tier2", 0.3)), "max_tokens": int(r.get("max_tokens", 512)),
159
+ "seed": str((cfg.get("train") or {}).get("seed", 0))}
160
+ return kw
161
+
162
+
163
+ def encode_decision(tok, delims: Delimiters, rec, n_pause=0, max_state=1024, max_branch=1024, max_packed=4096, strict=False,
164
+ echo=False, rationale=None, rng_key=""):
165
+ """Encode one decision record. Returns a list of packed encodings: usually one; several when the branches do not fit
166
+ one packed sequence (each chunk repeats the state). Raises ContextOverflow when a tier-0/1 branch does not fit; a
167
+ tier-2 branch that does not fit (or whose rationale exceeds rationale["max_tokens"]) is dropped and counted.
168
+
169
+ echo: False, or repeat each option's key after the pauses / rationale and score the echoed </opt> (option echo,
170
+ arm C2) in mode "siblings" (True) or "sequential" (see the module docstring; `echo_mode(model.hybrid)` picks).
171
+ rationale: None (questions' rationales are ignored) or {"p_tier2", "max_tokens", "seed"}: a question with a
172
+ rationale also emits a tier-2 branch with probability p_tier2, drawn deterministically from (seed, rng_key, the
173
+ question); needs the `think` delimiter role."""
174
+ state_tokens = user_tokens(tok, delims, render(rec["state"]))
175
+ if strict and len(state_tokens) + 1 > max_state:
176
+ raise ContextOverflow(f"state exceeds {max_state} tokens: {len(state_tokens) + 1}")
177
+ S = [delims["state"]] + state_tokens[: max_state - 1]
178
+ q_id, o_id, c_id, d_id, p_id = (delims[r] for r in ("q", "opt", "opt_end", "decide", "pause"))
179
+ if echo not in (False, None, True, "siblings", "sequential"):
180
+ raise ValueError(f"echo must be False, True, 'siblings' or 'sequential', not {echo!r}")
181
+ sibling = echo in (True, "siblings")
182
+ if rationale is not None and "think" not in delims.ids:
183
+ raise ValueError("rationale training needs the `think` delimiter (install_delimiters(tok, {'think': '<think>'}))")
184
+ branches, dropped = [], 0 # (ids, opt, pos offsets, sib, labels, readout offsets, question, its index, tier, corrupt)
185
+ for qi, q in enumerate(rec["questions"]):
186
+ instr = [q_id] + user_tokens(tok, delims, q["instructions"])
187
+ texts = option_texts(q)
188
+ spans = [[o_id] + user_tokens(tok, delims, o) + [c_id] for o in texts]
189
+ prefix = instr + [t for sp in spans for t in sp]
190
+ prefix_opt = [OPT_NONE] * len(instr) + [j for j, sp in enumerate(spans) for _ in sp]
191
+ ends, cursor = [], len(instr)
192
+ for sp in spans:
193
+ cursor += len(sp); ends.append(cursor - 1)
194
+ echo_spans = [[o_id] + user_tokens(tok, delims, echo_key(q, j, t)) + [c_id] for j, t in enumerate(texts)] if echo else None
195
+ suffixes = [([p_id] * n_pause, [OPT_PAUSE] * n_pause, [IGNORE] * n_pause, 1 if n_pause else 0, False, False)]
196
+ rat = rationale_of(q) if rationale is not None else None
197
+ if rat is not None and _draw(f"{rationale.get('seed', '')}:{rng_key}:{qi}:{q.get('id')}:{q['instructions']}:{rat[0]}", rationale["p_tier2"]):
198
+ r_ids = rationale_ids(tok, delims, q, rat[0])
199
+ if len(r_ids) > int(rationale.get("max_tokens", 512)):
200
+ dropped += 1
201
+ else:
202
+ mid = [delims["think"]] + r_ids
203
+ suffixes.append((mid, [OPT_THINK] * len(mid), [IGNORE] + (r_ids if rat[1] else [IGNORE] * len(r_ids)), 2, rat[1], not rat[1]))
204
+ for mid, mid_opt, mid_lab, tier, lm, corrupt in suffixes:
205
+ br, bopt, blab = prefix + mid, prefix_opt + mid_opt, [IGNORE] * len(prefix) + mid_lab
206
+ boff, bsib = list(range(len(br))), [0] * len(br)
207
+ if echo:
208
+ e0, readout = len(br), []
209
+ for j, sp in enumerate(echo_spans):
210
+ start = e0 if sibling else len(br)
211
+ boff += range(start, start + len(sp)); bsib += [j + 1 if sibling else 0] * len(sp)
212
+ br += sp; bopt += [OPT_ECHO] * len(sp); blab += [IGNORE] * len(sp)
213
+ readout.append(len(br) - 1)
214
+ d_off = e0 + max(len(sp) for sp in echo_spans) if sibling else len(br)
215
+ if lm:
216
+ blab[e0] = d_id # the stop is learned, the echo is not: h[rm] predicts <decide> though <opt> follows
217
+ else:
218
+ readout, d_off = list(ends), len(br)
219
+ br.append(d_id); bopt.append(OPT_DECIDE); boff.append(d_off); bsib.append(0)
220
+ blab.append(d_id if lm and not echo else IGNORE)
221
+ if len(br) > max_branch or len(S) + len(br) > max_packed:
222
+ if tier == 2:
223
+ dropped += 1
224
+ continue
225
+ if len(br) > max_branch:
226
+ raise ContextOverflow(f"branch too long: {len(br)} tokens (limit {max_branch})")
227
+ raise ContextOverflow(f"state + branch exceeds {max_packed} packed tokens")
228
+ branches.append((br, bopt, boff, bsib, blab, readout, q, qi, tier, corrupt))
229
+ out, i = [], 0
230
+ while i < len(branches):
231
+ ids, seg, pos, opt, sib, lab = list(S), [0] * len(S), list(range(len(S))), [OPT_NONE] * len(S), [0] * len(S), [IGNORE] * len(S)
232
+ decide_idx, opt_idx, targets, qtypes, qids, qidx, tiers, corrupt = [], [], [], [], [], [], [], []
233
+ k = 0
234
+ while i < len(branches) and len(ids) + len(branches[i][0]) <= max_packed:
235
+ br, bopt, boff, bsib, blab, readout, q, qi, tier, bad = branches[i]; k += 1
236
+ base, p0 = len(ids), len(S)
237
+ ids += br; seg += [k] * len(br); pos += [p0 + o for o in boff]; opt += bopt; sib += bsib; lab += blab
238
+ decide_idx.append(base + len(br) - 1); opt_idx.append([base + e for e in readout])
239
+ targets.append(q["target"]); qtypes.append(q["type"]); qids.append(q.get("id", f"q{qi + 1}")); qidx.append(qi)
240
+ tiers.append(tier); corrupt.append(bad)
241
+ i += 1
242
+ out.append({"kind": "decision", "ids": ids, "seg": seg, "pos": pos, "opt": opt, "sib": sib, "decide_idx": decide_idx, "opt_idx": opt_idx,
243
+ "targets": targets, "qtypes": qtypes, "qids": qids, "qidx": qidx, "tiers": tiers, "rat_corrupt": corrupt, "lm_labels": lab,
244
+ "rat_targets": sum(l != IGNORE for l in lab), "n_pause": n_pause, "echo": ("siblings" if sibling else "sequential") if echo else False,
245
+ "tier2_dropped": dropped if not out else 0, "state_truncated": len(state_tokens) + 1 > max_state})
246
+ return out
247
+
248
+
249
+ def encode_text(tok, delims: Delimiters, text, max_len=2048):
250
+ """One causal row for the plain LM loss. Documents end with EOS so the model learns boundaries; BOS is added when the
251
+ tokenizer has one (Llama-style bases)."""
252
+ ids = user_tokens(tok, delims, text)
253
+ if tok.bos_token_id is not None and getattr(tok, "add_bos_token", False):
254
+ ids = [tok.bos_token_id] + ids
255
+ ids = ids[: max_len - 1]
256
+ if tok.eos_token_id is not None:
257
+ ids = ids + [tok.eos_token_id]
258
+ L = len(ids)
259
+ return {"kind": "text", "ids": ids, "seg": [0] * L, "pos": list(range(L)), "opt": [OPT_NONE] * L, "sib": [0] * L, "decide_idx": [], "opt_idx": [],
260
+ "targets": [], "qtypes": [], "qids": [], "qidx": [], "tiers": [], "rat_corrupt": [], "lm_labels": list(ids), "rat_targets": 0, "n_pause": 0,
261
+ "echo": False, "tier2_dropped": 0, "state_truncated": False}
262
+
263
+
264
+ def branch_mask_batch(segs, device, dtype=torch.float32, length=None, sibs=None):
265
+ """Batched block-causal mask, additive [B,1,L,L], right-padded to the longest sequence (Kev).
266
+ attend(i,j) iff j<=i and (seg[j]==0 or seg[j]==seg[i]); pads (-1) are masked keys; the diagonal is always kept
267
+ so no row is fully masked. A row whose seg is all zero gets the plain causal mask (text rows).
268
+ sibs (option echo): tokens of two different echo spans (sib > 0, unequal) never see each other."""
269
+ L = max(max(len(s) for s in segs), length or 0)
270
+ s = torch.full((len(segs), L), -1, device=device)
271
+ for b, seg in enumerate(segs):
272
+ s[b, : len(seg)] = torch.tensor(seg, device=device)
273
+ causal = torch.tril(torch.ones(L, L, dtype=torch.bool, device=device))
274
+ same = (s[:, None, :] == s[:, :, None]) | (s[:, None, :] == 0)
275
+ valid_key = (s != -1)[:, None, :]
276
+ allow = causal[None] & same & valid_key
277
+ if sibs is not None:
278
+ g = torch.zeros((len(segs), L), dtype=torch.long, device=device)
279
+ for b, sb in enumerate(sibs):
280
+ g[b, : len(sb)] = torch.tensor(sb, device=device)
281
+ allow = allow & ~((g[:, :, None] > 0) & (g[:, None, :] > 0) & (g[:, :, None] != g[:, None, :]))
282
+ allow = allow | torch.eye(L, dtype=torch.bool, device=device)[None]
283
+ return torch.zeros(len(segs), L, L, dtype=dtype, device=device).masked_fill(~allow, torch.finfo(dtype).min)[:, None]
284
+
285
+
286
+ def rows_of(enc):
287
+ """Split a packed decision encoding into (state_ids, state_pos, rows); rows[k] = {"ids", "pos", "labels", "sib",
288
+ "decide", "opts"} holds branch k's tokens (state-continuing positions), its LM labels, echo siblings and readout
289
+ offsets within the branch. state + rows[k] as one causal row equals the packed block-causal form for that branch
290
+ on any architecture (Kev); with echo siblings, on attention-only bases, given the sibling mask."""
291
+ seg = enc["seg"]; Ls = seg.count(0)
292
+ labels, sib = enc["lm_labels"], enc.get("sib") or [0] * len(seg)
293
+ rows, start = [], Ls
294
+ for k, (d, oi) in enumerate(zip(enc["decide_idx"], enc["opt_idx"]), start=1):
295
+ end = d + 1
296
+ if seg[start] != k or seg[end - 1] != k:
297
+ raise ValueError("branch layout mismatch")
298
+ rows.append({"ids": enc["ids"][start:end], "pos": enc["pos"][start:end], "labels": labels[start:end], "sib": sib[start:end],
299
+ "decide": d - start, "opts": [o - start for o in oi]})
300
+ start = end
301
+ return enc["ids"][:Ls], enc["pos"][:Ls], rows
302
+
303
+
304
+ def as_rows(enc):
305
+ """The row form of any encoding: a text row is itself; a decision encoding becomes one causal row per branch,
306
+ each = state + branch, with absolute readout indices. Returns list of (ids, pos, lm_labels, decide, opts, sib)."""
307
+ if enc["kind"] == "text":
308
+ return [(enc["ids"], enc["pos"], enc["lm_labels"], None, None, enc.get("sib") or [0] * len(enc["ids"]))]
309
+ S, Sp, rows = rows_of(enc)
310
+ return [(S + r["ids"], Sp + r["pos"], [IGNORE] * len(S) + r["labels"], len(S) + r["decide"], [len(S) + o for o in r["opts"]], [0] * len(S) + r["sib"])
311
+ for r in rows]
reference/midtrain/letter.py ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Letter layout: decision records as the plain prompt the base reads (model.readout letter / mix, docs/letter-readout.md).
2
+
3
+ The pointer layout (encode.encode_decision) wraps state, question and options in delimiter tokens the base never saw and
4
+ reads a head trained from scratch. The letter layout keeps the base's own input and output: every question is the plain
5
+ prompt an untuned base is scored with, and the answer is read from the LM head's option-letter logits at the prompt's
6
+ last token, so at step 0 a letter model scores exactly what the base scores zero-shot on the same prompt.
7
+
8
+ layout "paren" (default, decider's style) layout "rawlogit" (= midtrain.rawprompt, byte for byte)
9
+
10
+ State: State:
11
+ {state} {state}
12
+
13
+ Question: {instructions} Question: {instructions}
14
+ (A) {option 1} A. {option 1}
15
+ (B) {option 2} B. {option 2}
16
+ Answer: ( Answer:
17
+
18
+ The state block is left out when the state is blank; option strings are rawprompt.raw_options' (the rendered option
19
+ texts, a positional `a: ` prefix dropped). readout: z_j = log sum_{v in ids(L_j)} exp(W_v . h) at the last token, ids(L) =
20
+ the single-token "L" and " L" (rawprompt.letter_token_ids); the softmax over the question's options cancels log Z.
21
+ noul "yesno" (model.letter_noul): a noul question whose options are plain no / yes is asked as
22
+ `Question: {instructions}\\nAnswer (yes or no):` and read at the no / yes word tokens (yesno_token_ids) instead.
23
+
24
+ Encoding: the same dict as encode_decision (so every isolation form, packing, the batcher, the decision anchor and the
25
+ readout hooks take it unchanged): the state part is `State:\\n{state}\\n\\nQuestion:` (the tokens every question of the
26
+ record shares; with the tokenizer's special prefix, e.g. BOS), branch k is the rest of question k's prompt, positions
27
+ restart after the state. Each branch is the joint tokenization of the full prompt minus the state part whenever the
28
+ state part is a token prefix of it (the usual case; so state + branch == prompt_ids(tok, prompt) exactly), else the
29
+ branch's own tokenization (`split_mismatch` counts it). No delimiter tokens, no pauses, no LM labels. decide_idx: the
30
+ prompt's last token; opt_idx: the last token of each option line (the mix readout's pointer term reads them; a yes/no
31
+ branch has no option lines and points both at the last token, where the pointer term is a constant that cancels).
32
+ """
33
+ from .encode import IGNORE, OPT_DECIDE, OPT_NONE, ContextOverflow, option_texts, render
34
+ from .rawprompt import LETTERS, choice_keys, plain, raw_options
35
+
36
+ LAYOUTS = ("paren", "rawlogit")
37
+ # Not yet a layout here: "semif_chat" (JevK5 / Jobe's prompt; rawprompt.semif_prompt, read by eval's RawLogitPredictor
38
+ # with --raw-layout semif_chat, docs/hard-tier-leaders.md technique 1). To train on it: state_text becomes the chat
39
+ # prefix up to the evidence (`<|im_start|>system\n{SEMIF_SYSTEM}<|im_end|>\n<|im_start|>user\n{"evidence": <state JSON>,`
40
+ # -- evidence comes first in their JSON, so questions still share the state part), branch_text the rest of the JSON
41
+ # (`"criterion": ..., "options": [...]}<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n`) with option j's span
42
+ # on its "description" value; decide_idx the prompt's last token; the readout the bare letters A-P only (no " L"
43
+ # variant: rawprompt.semif_letter_ids), noul asked true-first; tokens with add_special_tokens=False and no `<|name|>`
44
+ # rewrite (the template's own specials are real). The state is the record's state as JSON, not encode.render's text.
45
+ NOUL_READOUTS = ("letter", "yesno")
46
+ _CUE = {"paren": "Answer: (", "rawlogit": "Answer:"}
47
+ YESNO_CUE = "Answer (yes or no):"
48
+ STATE_TAIL = "Question:"
49
+
50
+
51
+ def option_line(layout, j, text):
52
+ return f"({LETTERS[j]}) {plain(text)}" if layout == "paren" else f"{LETTERS[j]}. {plain(text)}"
53
+
54
+
55
+ def is_yesno(q, noul):
56
+ """Whether question q is read at the no / yes words (model.letter_noul yesno, plain no/yes options only)."""
57
+ return noul == "yesno" and q["type"] == "noul" and option_texts(q) == ["no", "yes"]
58
+
59
+
60
+ def state_text(state):
61
+ """The shared state part: `State:\\n{state}\\n\\nQuestion:` (just `Question:` for a blank state)."""
62
+ s = render(state)
63
+ return (f"State:\n{plain(s)}\n\n" if str(s).strip() else "") + STATE_TAIL
64
+
65
+
66
+ def branch_text(q, layout="paren", noul="letter"):
67
+ """(text after the state part, [(start, end) char span of option j's text within it]); ValueError past 26 options."""
68
+ if is_yesno(q, noul):
69
+ return f" {plain(q['instructions'])}\n{YESNO_CUE}", []
70
+ texts = option_texts(q)
71
+ if len(texts) > len(LETTERS):
72
+ raise ValueError(f"{len(texts)} options: the letter readout has {len(LETTERS)} letters")
73
+ keys = choice_keys(q["options"]) if q["type"] == "choice" else None
74
+ out, spans = f" {plain(q['instructions'])}", []
75
+ for j, t in enumerate(raw_options(q["type"], keys, texts)):
76
+ line = option_line(layout, j, t)
77
+ out += "\n"
78
+ spans.append((len(out), len(out) + len(line)))
79
+ out += line
80
+ return out + "\n" + _CUE[layout], spans
81
+
82
+
83
+ def question_prompt(state, q, layout="paren", noul="letter"):
84
+ """The full prompt of one question (the text a base is scored on; tests and docs)."""
85
+ return state_text(state) + branch_text(q, layout, noul)[0]
86
+
87
+
88
+ def yesno_token_ids(tok):
89
+ """[[no ids], [yes ids]]: the single-token encodings of no / No / " no" / " No" (and yes), deduplicated."""
90
+ out = []
91
+ for w in ("no", "yes"):
92
+ ids = []
93
+ for v in (w, w.capitalize(), " " + w, " " + w.capitalize()):
94
+ enc = tok(v, add_special_tokens=False).input_ids
95
+ if len(enc) == 1 and enc[0] not in ids:
96
+ ids.append(enc[0])
97
+ if not ids:
98
+ raise ValueError(f"tokenizer has no single-token encoding of {w!r}")
99
+ out.append(ids)
100
+ return out
101
+
102
+
103
+ def _tokens(tok, text, special):
104
+ enc = tok(text, add_special_tokens=special, return_offsets_mapping=bool(getattr(tok, "is_fast", False)))
105
+ return list(enc.input_ids), (list(enc.offset_mapping) if "offset_mapping" in enc else None)
106
+
107
+
108
+ def _ends(offsets, spans, shift, n, last):
109
+ """Token index (within the branch) of each option span's last token: the last token starting before the span's end."""
110
+ if offsets is None:
111
+ return [last] * len(spans)
112
+ out = []
113
+ for a, b in spans:
114
+ idx = [t for t in range(n) if offsets[t][1] > offsets[t][0] and offsets[t][0] - shift < b]
115
+ out.append(idx[-1] if idx else last)
116
+ return out
117
+
118
+
119
+ def encode_letter(tok, rec, layout="paren", noul="letter", max_state=1024, max_branch=1024, max_packed=4096, strict=False,
120
+ drop_many=False, stats=None, **_):
121
+ """Encode one decision record in the letter layout (module docstring); returns a list of packed encodings like
122
+ encode_decision. A question past 26 options raises ContextOverflow, or is left out with drop_many (training; `stats`
123
+ counts it under "letter_dropped"); a record left without questions raises ContextOverflow. A state over max_state
124
+ tokens raises with strict, else its text is cut (the state part keeps its `\\n\\nQuestion:` tail). Extra keyword
125
+ arguments (n_pause, echo, rationale) are ignored: the layout has none of them."""
126
+ if layout not in LAYOUTS:
127
+ raise ValueError(f"letter layout must be one of {LAYOUTS}, not {layout!r}")
128
+ if noul not in NOUL_READOUTS:
129
+ raise ValueError(f"letter_noul must be one of {NOUL_READOUTS}, not {noul!r}")
130
+ stats = stats if stats is not None else {}
131
+ st = state_text(rec["state"])
132
+ S, _ = _tokens(tok, st, True)
133
+ truncated = len(S) > max_state
134
+ if truncated:
135
+ if strict:
136
+ raise ContextOverflow(f"state exceeds {max_state} tokens: {len(S)}")
137
+ tail, _ = _tokens(tok, "\n\n" + STATE_TAIL, False)
138
+ head, _ = _tokens(tok, st[: -len(STATE_TAIL)].rstrip("\n"), True)
139
+ S = head[: max(1, max_state - len(tail))] + tail
140
+ branches = [] # (ids, opt, readout offsets, question index, yes/no)
141
+ for qi, q in enumerate(rec["questions"]):
142
+ try:
143
+ bt, spans = branch_text(q, layout, noul)
144
+ except ValueError as err:
145
+ if not drop_many:
146
+ raise ContextOverflow(str(err)) from None
147
+ stats["letter_dropped"] = stats.get("letter_dropped", 0) + 1
148
+ continue
149
+ ids, offs, shift = None, None, 0
150
+ if not truncated:
151
+ full, foffs = _tokens(tok, st + bt, True)
152
+ if full[: len(S)] == S:
153
+ ids, offs, shift = full[len(S):], (foffs[len(S):] if foffs else None), len(st)
154
+ if ids is None:
155
+ stats["split_mismatch"] = stats.get("split_mismatch", 0) + int(not truncated)
156
+ ids, offs = _tokens(tok, bt, False)
157
+ if not ids:
158
+ raise ContextOverflow("empty question prompt")
159
+ n = len(ids)
160
+ ends = _ends(offs, spans, shift, n, n - 1)
161
+ opt = [OPT_NONE] * n
162
+ if offs is not None:
163
+ for t in range(n):
164
+ a = offs[t][0] - shift
165
+ for j, (s0, s1) in enumerate(spans):
166
+ if s0 <= a < s1:
167
+ opt[t] = j
168
+ opt[-1] = OPT_DECIDE
169
+ if n > max_branch:
170
+ raise ContextOverflow(f"branch too long: {n} tokens (limit {max_branch})")
171
+ if len(S) + n > max_packed:
172
+ raise ContextOverflow(f"state + branch exceeds {max_packed} packed tokens")
173
+ k = len(q["options"]) if not spans else len(spans)
174
+ readout = ends if spans else [n - 1] * k
175
+ branches.append((ids, opt, readout, q, qi, bool(not spans)))
176
+ if not branches:
177
+ raise ContextOverflow("no question the letter readout can score")
178
+ out, i = [], 0
179
+ while i < len(branches):
180
+ ids, seg, pos, opt = list(S), [0] * len(S), list(range(len(S))), [OPT_NONE] * len(S)
181
+ decide_idx, opt_idx, targets, qtypes, qids, qidx, yesno = [], [], [], [], [], [], []
182
+ k = 0
183
+ while i < len(branches) and len(ids) + len(branches[i][0]) <= max_packed:
184
+ br, bopt, readout, q, qi, yn = branches[i]; k += 1
185
+ base = len(ids)
186
+ ids += br; seg += [k] * len(br); pos += [len(S) + o for o in range(len(br))]; opt += bopt
187
+ decide_idx.append(base + len(br) - 1); opt_idx.append([base + e for e in readout])
188
+ targets.append(q.get("target", 0)); qtypes.append(q["type"]); qids.append(q.get("id", f"q{qi + 1}")); qidx.append(qi)
189
+ yesno.append(yn)
190
+ i += 1
191
+ L = len(ids)
192
+ out.append({"kind": "decision", "ids": ids, "seg": seg, "pos": pos, "opt": opt, "sib": [0] * L, "decide_idx": decide_idx,
193
+ "opt_idx": opt_idx, "targets": targets, "qtypes": qtypes, "qids": qids, "qidx": qidx, "tiers": [0] * k,
194
+ "rat_corrupt": [False] * k, "lm_labels": [IGNORE] * L, "rat_targets": 0, "n_pause": 0, "echo": False,
195
+ "tier2_dropped": 0, "state_truncated": truncated, "layout": layout, "yesno": yesno})
196
+ return out
197
+
198
+
199
+ def attach_letter_raw_ids(encs, max_tokens):
200
+ """Reference prompts for the decision anchor / KL-only rows under the letter layout: branch k's prompt is the
201
+ encoding's own state + branch ids, exactly the tokens the model reads, so KL(p_ref || p_model) compares the two
202
+ models on one prompt (rawprompt.attach_raw_ids renders the rawlogit prompt instead). Sets raw_ids / raw_skip as
203
+ attach_raw_ids does: "length" past max_tokens, "yesno" for a no / yes-word branch (its readout is not the letters)."""
204
+ for e in encs:
205
+ Ls = e["seg"].count(0)
206
+ S, start = e["ids"][:Ls], Ls
207
+ ids, skip = [], []
208
+ for d, yn in zip(e["decide_idx"], e.get("yesno") or [False] * len(e["decide_idx"])):
209
+ end = d + 1
210
+ p = S + e["ids"][start:end]
211
+ start = end
212
+ if yn:
213
+ ids.append(None); skip.append("yesno")
214
+ elif len(p) > int(max_tokens):
215
+ ids.append(None); skip.append("length")
216
+ else:
217
+ ids.append(p); skip.append(None)
218
+ e["raw_ids"], e["raw_skip"] = ids, skip
219
+ return encs
220
+
221
+
222
+ def letter_kwargs(cfg):
223
+ """encode_letter keyword arguments for a run config (model.readout letter / mix), or None for the pointer layout."""
224
+ m = cfg.get("model") or {}
225
+ if m.get("readout", "pointer") == "pointer":
226
+ return None
227
+ return {"layout": m.get("letter_layout", "paren"), "noul": m.get("letter_noul", "letter")}
reference/midtrain/rawprompt.py ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """The plain lettered prompt an untuned base is read through as a direct-logit classifier (JevBench's raw-base rows).
2
+
3
+ One module for both readers, so the text is the same byte for byte:
4
+ eval.predictors.RawLogitPredictor scores Kev-format records (it renders them with kev.api.to_record, then uses
5
+ raw_options / raw_prompt / prompt_ids / letter_token_ids from here)
6
+ midtrain decision anchor (train.decision_anchor_weight) renders traj2model training records with
7
+ record_prompts, which gives the same text as RawLogitPredictor on
8
+ t2m_kev.convert.to_kev_request(record) (eval/tests/test_eval_rawlogit.py checks it)
9
+
10
+ Template (RAW_PROMPT_VERSION):
11
+
12
+ State:
13
+ {state} (the rendered state; the block is left out when it is blank)
14
+
15
+ Question: {instructions}
16
+ A. {option 1}
17
+ B. {option 2}
18
+ ...
19
+ Answer:
20
+
21
+ `<|name|>` in caller text becomes `<¦name¦>` (Kev's rule). No chat template, no trailing space after "Answer:"; the ids
22
+ are tokenizer(prompt, add_special_tokens=True). Readout: z_L = log(P("L") + P(" L")) over the full next-token
23
+ distribution, p = softmax over the present options' z. No torch or kev import here: eval imports it at module load.
24
+
25
+ A second layout, SEMIF_CHAT (semif_prompt, "semif_chat/1"), is JevK5's / Jobe's prompt byte for byte (SemIf's protocol,
26
+ TheoLeeCJ/SemIf, MIT): a system instruction, the question as one JSON object {evidence, criterion, options: [{letter,
27
+ description}]} in the user turn, the Qwen chat template with thinking off, answer letters A-P. See the section below.
28
+ """
29
+ import json
30
+ import re
31
+
32
+ LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
33
+ RAW_PROMPT_VERSION = "rawlogit/1"
34
+ _SPECIAL = re.compile(r"<\|([A-Za-z0-9_]+)\|>") # Kev's rule (midtrain.encode.user_tokens): caller text never forms <|special|>
35
+ POSITIONAL = re.compile(r"[a-z]|o[0-9]+") # choice keys that only number the options (kev.api / encode.option_texts)
36
+ _SLUG = re.compile(r"[a-z0-9][a-z0-9_.-]{0,39}") # t2m_kev.convert.SLUG / encode._SLUG
37
+
38
+
39
+ class TooManyOptions(ValueError):
40
+ """More options than letters: the letter readout cannot score the question."""
41
+
42
+
43
+ def plain(text):
44
+ return _SPECIAL.sub(r"<¦\1¦>", str(text))
45
+
46
+
47
+ def raw_options(qtype, keys, texts):
48
+ """The option strings the base sees after its letter: the rendered option texts (kev.api.to_record's, the strings
49
+ midtrain.encode.option_texts gives for a traj2model question), except that a choice question whose keys are all
50
+ positional (a, b, c, ... / o27) drops the `a: ` prefix, since the letter replaces it."""
51
+ if qtype == "choice":
52
+ keys = list(keys)
53
+ if all(POSITIONAL.fullmatch(k) for k in keys):
54
+ return [t[len(k) + 2:] if t.startswith(f"{k}: ") else t for k, t in zip(keys, texts)]
55
+ return list(texts)
56
+
57
+
58
+ def raw_prompt(state, instructions, options):
59
+ """The plain prompt (module docstring). `state` and `instructions` are already rendered text."""
60
+ if len(options) > len(LETTERS):
61
+ raise TooManyOptions(f"{len(options)} options: the letter readout has {len(LETTERS)} letters")
62
+ head = f"State:\n{plain(state)}\n\n" if str(state).strip() else ""
63
+ lines = [f"{LETTERS[j]}. {plain(o)}" for j, o in enumerate(options)]
64
+ return head + f"Question: {plain(instructions)}\n" + "\n".join(lines) + "\nAnswer:"
65
+
66
+
67
+ def prompt_ids(tok, prompt):
68
+ """The token ids RawLogitPredictor feeds the base for a prompt."""
69
+ return tok(prompt, add_special_tokens=True).input_ids
70
+
71
+
72
+ def letter_token_ids(tok, letters=LETTERS):
73
+ """{letter: [token ids]}: the single-token encodings of "A" and " A" (both, deduplicated; a variant that is not one
74
+ token is left out). A letter with neither is an error: the readout would have nothing to read."""
75
+ out = {}
76
+ for L in letters:
77
+ ids = []
78
+ for v in (L, " " + L):
79
+ enc = tok(v, add_special_tokens=False).input_ids
80
+ if len(enc) == 1 and enc[0] not in ids:
81
+ ids.append(enc[0])
82
+ if not ids:
83
+ raise ValueError(f"tokenizer has no single-token encoding of {L!r} or {' ' + L!r}")
84
+ out[L] = ids
85
+ return out
86
+
87
+
88
+ def choice_keys(options):
89
+ """A traj2model choice question's Kev keys (t2m_kev.convert.option_keys): the options themselves when they are all
90
+ distinct short slugs, else a, b, c, ... (o1, o2, ... past 26)."""
91
+ opts = [str(o) for o in options]
92
+ if opts and len(set(opts)) == len(opts) and all(isinstance(o, str) and _SLUG.fullmatch(o) for o in options):
93
+ return opts
94
+ return [chr(ord("a") + i) if len(opts) <= 26 else f"o{i + 1}" for i in range(len(opts))]
95
+
96
+
97
+ def question_prompt(state_text, q):
98
+ """The raw prompt of one traj2model question under an already rendered state; TooManyOptions past 26 options."""
99
+ from .encode import option_texts # torch-importing module; only the training side calls this
100
+ texts = option_texts(q)
101
+ keys = choice_keys(q["options"]) if q["type"] == "choice" else None
102
+ return raw_prompt(state_text, str(q["instructions"]), raw_options(q["type"], keys, texts))
103
+
104
+
105
+ def record_prompts(rec):
106
+ """traj2model decision record -> [prompt or None] per question, in question order: the text RawLogitPredictor scores
107
+ for t2m_kev.convert.to_kev_request(rec). None where the question has more options than letters."""
108
+ from .encode import render
109
+ state = render(rec["state"])
110
+ out = []
111
+ for q in rec["questions"]:
112
+ try:
113
+ out.append(question_prompt(state, q))
114
+ except TooManyOptions:
115
+ out.append(None)
116
+ return out
117
+
118
+
119
+ def attach_raw_ids(encs, rec, tok, max_tokens):
120
+ """Decision anchor, data side (the prefetch thread): give each decision encoding of `rec` two per-branch lists,
121
+ `raw_ids` (the prompt ids under `tok`, the reference model's tokenizer, or None) and `raw_skip` (None when the
122
+ branch is anchored; "tier2" for a rationale branch, which repeats its question and is not a candidate; "length" when
123
+ the prompt exceeds max_tokens; "options" past 26 options). Each question is rendered and tokenized once."""
124
+ prompts, cache = None, {}
125
+ for e in encs:
126
+ ids, skip = [], []
127
+ for qi, tier in zip(e["qidx"], e["tiers"]):
128
+ if tier == 2:
129
+ ids.append(None); skip.append("tier2")
130
+ continue
131
+ if qi not in cache:
132
+ if prompts is None:
133
+ prompts = record_prompts(rec)
134
+ p = prompts[qi]
135
+ if p is None:
136
+ cache[qi] = (None, "options")
137
+ else:
138
+ x = prompt_ids(tok, p)
139
+ cache[qi] = (x, None) if len(x) <= int(max_tokens) else (None, "length")
140
+ ids.append(cache[qi][0]); skip.append(cache[qi][1])
141
+ e["raw_ids"], e["raw_skip"] = ids, skip
142
+ return encs
143
+
144
+
145
+ # --- semif_chat: JevK5 / Jobe's prompt (docs/hard-tier-leaders.md technique 1) ----------------------------------------
146
+ # Reproduced from, byte for byte (trainer/eval/tests/test_eval_semif_chat.py checks it against prompts rendered by their
147
+ # code at these commits, trainer/eval/tests/fixtures/semif_chat_prompts.json):
148
+ # allebee/jevk5 @7b97499 jevk5/prompt.py:13 (LETTERS), 21-24 (SYSTEM), 28-32 (CHAT_TEMPLATE, "verified against
149
+ # apply_chat_template(..., add_generation_prompt=True, enable_thinking=False)"), 35-50 (messages / prompt_text),
150
+ # 53-65 (decision_options)
151
+ # MantisShrimpdev/jobe @0382f20 src/jobe/prompt.py:20-23, 95-109, 142-166; src/jobe/server.py:99-117 (options_for),
152
+ # 199-201 (Decision(evidence=state, criterion=instructions)); src/jobe/slots.py:83-128 (letter ids resolved in context)
153
+ # Jobe's server additionally describes index-only choice options from a jev-browser page state (server.py:159-175,
154
+ # describe_indices); it only fires on choice criteria with EMPTY descriptions and a state carrying page.elements, which
155
+ # no JevBench / transfer / sealed-like item has, so it is left out (JevK5 does not have it either).
156
+ # Unlike the plain layout: no `<|name|>` rewrite (their JSON carries caller text as is), the state is the request's JSON
157
+ # value (not kev.api.render's text), noul reads A = true, B = false, and at most 16 options (letters A-P).
158
+
159
+ SEMIF_PROMPT_VERSION = "semif_chat/1"
160
+ SEMIF_LETTERS = "ABCDEFGHIJKLMNOP"
161
+ SEMIF_SYSTEM = ("Apply the supplied criterion to the supplied evidence. Choose exactly one listed option. "
162
+ "Respond with only its uppercase letter, with no explanation or reasoning.")
163
+ SEMIF_CHAT_TEMPLATE = ("<|im_start|>system\n{system}<|im_end|>\n"
164
+ "<|im_start|>user\n{user}<|im_end|>\n"
165
+ "<|im_start|>assistant\n<think>\n\n</think>\n\n")
166
+
167
+
168
+ def semif_options(qtype, criteria):
169
+ """[(option id, description)] of a Kev/TypeSafe question (type, criteria as sent on the wire), in the order the letters
170
+ are given: noul true, false (the criteria text, else "The proposition is <id>."); choice the criteria keys (the value,
171
+ else the key); score the level indices. Descriptions are "<id>: <text>" (JevK5 decision_options, Jobe options_for)."""
172
+ if qtype == "noul":
173
+ c = criteria or {}
174
+ pairs = [(k, c.get(k) or f"The proposition is {k}.") for k in ("true", "false")]
175
+ elif qtype == "choice":
176
+ c = dict.fromkeys(criteria) if isinstance(criteria, list) else (criteria or {})
177
+ pairs = [(str(k), v or str(k)) for k, v in c.items()]
178
+ elif qtype == "score":
179
+ pairs = [(str(i), level) for i, level in enumerate(criteria or [])]
180
+ else:
181
+ raise ValueError(f"unknown question type {qtype!r}")
182
+ return [(k, f"{k}: {d}") for k, d in pairs]
183
+
184
+
185
+ def semif_messages(state, criterion, descriptions):
186
+ """The two chat messages (system, user JSON) for one question; `state` is the request's state value (any JSON)."""
187
+ if len(descriptions) > len(SEMIF_LETTERS):
188
+ raise TooManyOptions(f"{len(descriptions)} options: the semif_chat readout has {len(SEMIF_LETTERS)} letters")
189
+ payload = {"evidence": state, "criterion": criterion,
190
+ "options": [{"letter": SEMIF_LETTERS[i], "description": d} for i, d in enumerate(descriptions)]}
191
+ return [{"role": "system", "content": SEMIF_SYSTEM}, {"role": "user", "content": json.dumps(payload, ensure_ascii=False)}]
192
+
193
+
194
+ def semif_prompt(state, criterion, descriptions):
195
+ """The full semif_chat prompt text, chat template included and ending after `<think>\n\n</think>\n\n`, where the answer
196
+ letter goes. Tokenized with add_special_tokens=False (the template carries its own special tokens)."""
197
+ system, user = semif_messages(state, criterion, descriptions)
198
+ return SEMIF_CHAT_TEMPLATE.format(system=system["content"], user=user["content"])
199
+
200
+
201
+ def semif_question_prompt(state, question):
202
+ """(prompt, [option id in letter order]) for one Kev/TypeSafe question dict (type, instructions, criteria)."""
203
+ opts = semif_options(question["type"], question.get("criteria"))
204
+ return semif_prompt(state, question.get("instructions", ""), [d for _, d in opts]), [k for k, _ in opts]
205
+
206
+
207
+ def semif_letter_ids(tok, prompt, ids, count):
208
+ """The token id of each of the first `count` answer letters, resolved in context as Jobe does (slots.py:83-128):
209
+ encode(prompt + L)[-1], checking that the letter is one token and does not re-tokenize the prompt's tail."""
210
+ out = []
211
+ for L in SEMIF_LETTERS[:count]:
212
+ merged = tok(prompt + L, add_special_tokens=False).input_ids
213
+ if len(merged) != len(ids) + 1 or merged[:-1] != ids:
214
+ raise ValueError(f"answer letter {L!r} is not one clean token after the semif_chat prompt")
215
+ out.append(merged[-1])
216
+ if len(set(out)) != len(out):
217
+ raise ValueError("answer letters collide in context")
218
+ return out
reference/midtrain/tokens.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Delimiter and pause tokens.
2
+
3
+ Every delimiter is exactly one token of the tokenizer. Where the tokenizer already defines a rarely used reserved token
4
+ (Qwen: <|fim_prefix|> <|fim_middle|> <|box_start|> <|box_end|> <|fim_suffix|>, the same choice as Kev) it is reused and
5
+ its embedding is simply trained along with everything else (full-parameter). Where a tokenizer lacks one (MiniCPM5 has
6
+ no box tokens; SmolLM2 has none of them) the missing names are added as special tokens and the embedding matrix grows;
7
+ the new rows start at the mean embedding. `<pause>` is always added: no base ships it.
8
+ """
9
+ from dataclasses import dataclass, field
10
+
11
+ ROLES = ("state", "q", "opt", "opt_end", "decide")
12
+ # the Qwen names, reused verbatim where they exist and added under the same name where they do not, so one checkpoint
13
+ # format serves every base
14
+ PREFERRED = {"state": "<|fim_prefix|>", "q": "<|fim_middle|>", "opt": "<|box_start|>", "opt_end": "<|box_end|>", "decide": "<|fim_suffix|>"}
15
+ PAUSE = "<pause>"
16
+ # optional roles, installed only when named (so a run without them keeps its vocabulary): `think` opens a tier-2
17
+ # rationale (docs/reasoning-architecture.md); Qwen ships <think> as one token, other bases get it added
18
+ OPTIONAL_ROLES = ("think",)
19
+ THINK = "<think>"
20
+
21
+
22
+ @dataclass
23
+ class Delimiters:
24
+ ids: dict[str, int] # role -> token id (roles above plus "pause")
25
+ names: dict[str, str] # role -> token string
26
+ added: list[str] = field(default_factory=list) # tokens that were added to the tokenizer (need fresh embeddings)
27
+
28
+ def __getitem__(self, role):
29
+ return self.ids[role]
30
+
31
+ @property
32
+ def all_ids(self):
33
+ return set(self.ids.values())
34
+
35
+ def to_dict(self):
36
+ return {"ids": self.ids, "names": self.names, "added": self.added}
37
+
38
+
39
+ def _is_single_token(tok, text):
40
+ ids = tok(text, add_special_tokens=False).input_ids
41
+ return len(ids) == 1 and tok.convert_tokens_to_ids(text) == ids[0] and ids[0] != tok.unk_token_id
42
+
43
+
44
+ def install_delimiters(tok, names=None):
45
+ """Resolve (and add where missing) the delimiter and pause tokens on a tokenizer, plus any optional role (`think`)
46
+ that `names` gives. Returns Delimiters. The model's
47
+ embeddings must be resized afterwards when `added` is non-empty (see model.MidtrainModel)."""
48
+ names = {**PREFERRED, **(names or {})}
49
+ names["pause"] = names.get("pause", PAUSE)
50
+ roles = (*ROLES, "pause", *(r for r in OPTIONAL_ROLES if names.get(r)))
51
+ existing = set(tok.get_vocab())
52
+ missing = [names[r] for r in roles if names[r] not in existing]
53
+ if missing:
54
+ tok.add_tokens(missing, special_tokens=True)
55
+ ids = {r: tok.convert_tokens_to_ids(names[r]) for r in roles}
56
+ for r, t in names.items():
57
+ if r not in ids:
58
+ continue
59
+ if ids[r] is None or ids[r] == tok.unk_token_id:
60
+ raise ValueError(f"delimiter {r}={t!r} is not in the vocabulary after adding it")
61
+ if not _is_single_token(tok, t):
62
+ raise ValueError(f"delimiter {r}={t!r} does not tokenize to exactly one token")
63
+ if len(set(ids.values())) != len(ids):
64
+ raise ValueError(f"delimiter tokens collide: {ids}")
65
+ return Delimiters(ids=ids, names={r: names[r] for r in ids}, added=missing)
66
+
67
+
68
+ def pad_id(tok):
69
+ """Right-padding id (never attended to)."""
70
+ if tok.pad_token_id is not None:
71
+ return tok.pad_token_id
72
+ if tok.eos_token_id is not None:
73
+ return tok.eos_token_id
74
+ return 0
run.sh CHANGED
@@ -2,7 +2,7 @@
2
  # One command, no Docker: create a Python 3.12 environment with vLLM 0.30.0 and wald-serve, then serve the weights on
3
  # 0.0.0.0:${PORT:-8000} (POST /v1/systemone, GET /health). Needs a Linux CUDA machine and `uv`.
4
  #
5
- # ./run.sh /path/to/Wald-4B # declared policy from serving.json (effort medium)
6
  # EFFORT=high ./run.sh /path/to/Wald-4B # another policy: none | low | medium | high | high-k<k>
7
  set -euo pipefail
8
  MODEL=${1:?usage: run.sh <weights dir>}
 
2
  # One command, no Docker: create a Python 3.12 environment with vLLM 0.30.0 and wald-serve, then serve the weights on
3
  # 0.0.0.0:${PORT:-8000} (POST /v1/systemone, GET /health). Needs a Linux CUDA machine and `uv`.
4
  #
5
+ # ./run.sh /path/to/Wald-4B # declared policy from serving.json (effort high)
6
  # EFFORT=high ./run.sh /path/to/Wald-4B # another policy: none | low | medium | high | high-k<k>
7
  set -euo pipefail
8
  MODEL=${1:?usage: run.sh <weights dir>}
serving.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "effort": "medium",
3
- "prompt_format": "repeat_state_plain",
4
- "max_model_len": 131072,
5
- "temperature": "temperature.json"
6
  }
 
1
  {
2
+ "effort": "high",
3
+ "prompt_format": "repeat_state_plain",
4
+ "max_model_len": 131072,
5
+ "temperature": "temperature.json"
6
  }
temperature.json CHANGED
@@ -1,154 +1,169 @@
1
  {
2
- "A": {
3
- "single": 1.6817928305074288,
4
- "buckets": {
5
- "choice|2": {
6
- "temperature": 1.5157165665103978,
7
- "n": 37,
8
- "fitted": true
9
- },
10
- "choice|3-4": {
11
- "temperature": 1.9318726578496908,
12
- "n": 69,
13
- "fitted": true
14
- },
15
- "choice|5-8": {
16
- "temperature": 1.6817928305074288,
17
- "n": 17,
18
- "fitted": false
19
- },
20
- "choice|9+": {
21
- "temperature": 1.3660402567543957,
22
- "n": 27,
23
- "fitted": true
24
- },
25
- "noul|2": {
26
- "temperature": 1.9999999999999998,
27
- "n": 107,
28
- "fitted": true
29
- },
30
- "score|5-8": {
31
- "temperature": 1.6817928305074288,
32
- "n": 18,
33
- "fitted": false
34
- }
 
 
 
 
 
35
  },
36
- "min_rows": 20,
37
- "rows": 275,
38
- "readout": "A"
39
- },
40
- "B256": {
41
- "single": 4.756828460010884,
42
- "buckets": {
43
- "choice|2": {
44
- "temperature": 6.498019170849887,
45
- "n": 37,
46
- "fitted": true
47
- },
48
- "choice|3-4": {
49
- "temperature": 4.0,
50
- "n": 69,
51
- "fitted": true
52
- },
53
- "choice|5-8": {
54
- "temperature": 4.756828460010884,
55
- "n": 17,
56
- "fitted": false
57
- },
58
- "choice|9+": {
59
- "temperature": 3.863745315699382,
60
- "n": 27,
61
- "fitted": true
62
- },
63
- "noul|2": {
64
- "temperature": 5.856342783782502,
65
- "n": 107,
66
- "fitted": true
67
- },
68
- "score|5-8": {
69
- "temperature": 4.756828460010884,
70
- "n": 18,
71
- "fitted": false
72
- }
 
73
  },
74
- "min_rows": 20,
75
- "rows": 275,
76
- "readout": "B256"
77
- },
78
- "B512": {
79
- "single": 4.924577653379665,
80
- "buckets": {
81
- "choice|2": {
82
- "temperature": 6.727171322029713,
83
- "n": 37,
84
- "fitted": true
85
- },
86
- "choice|3-4": {
87
- "temperature": 4.43827788827138,
88
- "n": 69,
89
- "fitted": true
90
- },
91
- "choice|5-8": {
92
- "temperature": 4.924577653379665,
93
- "n": 17,
94
- "fitted": false
95
- },
96
- "choice|9+": {
97
- "temperature": 3.863745315699382,
98
- "n": 27,
99
- "fitted": true
100
- },
101
- "noul|2": {
102
- "temperature": 5.856342783782502,
103
- "n": 107,
104
- "fitted": true
105
- },
106
- "score|5-8": {
107
- "temperature": 4.924577653379665,
108
- "n": 18,
109
- "fitted": false
110
- }
 
111
  },
112
- "min_rows": 20,
113
- "rows": 275,
114
- "readout": "B512"
115
- },
116
- "B": {
117
- "single": 4.924577653379665,
118
- "buckets": {
119
- "choice|2": {
120
- "temperature": 6.727171322029713,
121
- "n": 37,
122
- "fitted": true
123
- },
124
- "choice|3-4": {
125
- "temperature": 4.43827788827138,
126
- "n": 69,
127
- "fitted": true
128
- },
129
- "choice|5-8": {
130
- "temperature": 4.924577653379665,
131
- "n": 17,
132
- "fitted": false
133
- },
134
- "choice|9+": {
135
- "temperature": 3.863745315699382,
136
- "n": 27,
137
- "fitted": true
138
- },
139
- "noul|2": {
140
- "temperature": 5.856342783782502,
141
- "n": 107,
142
- "fitted": true
143
- },
144
- "score|5-8": {
145
- "temperature": 4.924577653379665,
146
- "n": 18,
147
- "fitted": false
148
- }
 
149
  },
150
- "min_rows": 20,
151
- "rows": 275,
152
- "readout": "B512"
153
- }
 
 
 
 
 
 
 
154
  }
 
1
  {
2
+ "A": {
3
+ "single": 1.3660402567543957,
4
+ "buckets": {
5
+ "choice|2": {
6
+ "temperature": 1.189207115002721,
7
+ "n": 36,
8
+ "fitted": true
9
+ },
10
+ "choice|3-4": {
11
+ "temperature": 1.741101126592248,
12
+ "n": 59,
13
+ "fitted": true
14
+ },
15
+ "choice|5-8": {
16
+ "temperature": 1.3660402567543957,
17
+ "n": 17,
18
+ "fitted": false
19
+ },
20
+ "choice|9+": {
21
+ "temperature": 1.0717734625362931,
22
+ "n": 27,
23
+ "fitted": true
24
+ },
25
+ "noul|2": {
26
+ "temperature": 1.319507910772894,
27
+ "n": 99,
28
+ "fitted": true
29
+ },
30
+ "score|5-8": {
31
+ "temperature": 1.3660402567543957,
32
+ "n": 18,
33
+ "fitted": false
34
+ }
35
+ },
36
+ "min_rows": 20,
37
+ "rows": 256,
38
+ "readout": "A",
39
+ "fit": "min micro mean NLL over a 161-point log grid 0.25..64, per (type, option-count bucket); buckets with fewer than 20 rows use `single`"
40
  },
41
+ "B256": {
42
+ "single": 1.5157165665103978,
43
+ "buckets": {
44
+ "choice|2": {
45
+ "temperature": 1.8660659830736155,
46
+ "n": 36,
47
+ "fitted": true
48
+ },
49
+ "choice|3-4": {
50
+ "temperature": 1.8025009252216606,
51
+ "n": 59,
52
+ "fitted": true
53
+ },
54
+ "choice|5-8": {
55
+ "temperature": 1.5157165665103978,
56
+ "n": 17,
57
+ "fitted": false
58
+ },
59
+ "choice|9+": {
60
+ "temperature": 1.109569472067845,
61
+ "n": 27,
62
+ "fitted": true
63
+ },
64
+ "noul|2": {
65
+ "temperature": 1.4142135623730951,
66
+ "n": 99,
67
+ "fitted": true
68
+ },
69
+ "score|5-8": {
70
+ "temperature": 1.5157165665103978,
71
+ "n": 18,
72
+ "fitted": false
73
+ }
74
+ },
75
+ "min_rows": 20,
76
+ "rows": 256,
77
+ "readout": "B256",
78
+ "fit": "min micro mean NLL over a 161-point log grid 0.25..64, per (type, option-count bucket); buckets with fewer than 20 rows use `single`"
79
  },
80
+ "B512": {
81
+ "single": 1.5691681957935015,
82
+ "buckets": {
83
+ "choice|2": {
84
+ "temperature": 1.9999999999999998,
85
+ "n": 36,
86
+ "fitted": true
87
+ },
88
+ "choice|3-4": {
89
+ "temperature": 1.8660659830736155,
90
+ "n": 59,
91
+ "fitted": true
92
+ },
93
+ "choice|5-8": {
94
+ "temperature": 1.5691681957935015,
95
+ "n": 17,
96
+ "fitted": false
97
+ },
98
+ "choice|9+": {
99
+ "temperature": 1.0352649238413776,
100
+ "n": 27,
101
+ "fitted": true
102
+ },
103
+ "noul|2": {
104
+ "temperature": 1.5157165665103978,
105
+ "n": 99,
106
+ "fitted": true
107
+ },
108
+ "score|5-8": {
109
+ "temperature": 1.5691681957935015,
110
+ "n": 18,
111
+ "fitted": false
112
+ }
113
+ },
114
+ "min_rows": 20,
115
+ "rows": 256,
116
+ "readout": "B512",
117
+ "fit": "min micro mean NLL over a 161-point log grid 0.25..64, per (type, option-count bucket); buckets with fewer than 20 rows use `single`"
118
  },
119
+ "B": {
120
+ "single": 1.5691681957935015,
121
+ "buckets": {
122
+ "choice|2": {
123
+ "temperature": 1.9999999999999998,
124
+ "n": 36,
125
+ "fitted": true
126
+ },
127
+ "choice|3-4": {
128
+ "temperature": 1.8660659830736155,
129
+ "n": 59,
130
+ "fitted": true
131
+ },
132
+ "choice|5-8": {
133
+ "temperature": 1.5691681957935015,
134
+ "n": 17,
135
+ "fitted": false
136
+ },
137
+ "choice|9+": {
138
+ "temperature": 1.0352649238413776,
139
+ "n": 27,
140
+ "fitted": true
141
+ },
142
+ "noul|2": {
143
+ "temperature": 1.5157165665103978,
144
+ "n": 99,
145
+ "fitted": true
146
+ },
147
+ "score|5-8": {
148
+ "temperature": 1.5691681957935015,
149
+ "n": 18,
150
+ "fitted": false
151
+ }
152
+ },
153
+ "min_rows": 20,
154
+ "rows": 256,
155
+ "readout": "B512",
156
+ "fit": "min micro mean NLL over a 161-point log grid 0.25..64, per (type, option-count bucket); buckets with fewer than 20 rows use `single`"
157
  },
158
+ "provenance": {
159
+ "model": "022D0-f7 merged",
160
+ "fit_source": "XL-dev calibration only",
161
+ "raw_output_sha256": "4af949176c1348f2bb9822ee6b309274c4e774e9581a26a031e37095dc468b3a",
162
+ "source_items_sha256": "ee2e8db4eed8112e629e8b7192d46efc9e9f5eb7b8d21cdd172396e0457a22c0",
163
+ "known_di_matches_excluded": 19,
164
+ "additional_hle_matches_excluded": 0,
165
+ "calibration_rows": 256,
166
+ "b_mode": "B512",
167
+ "method": "eval.distill_eval.fit_table micro NLL; no model weight changes; no DI labels or scores used"
168
+ }
169
  }