ArthurZ HF Staff commited on
Commit
3e7fa63
·
verified ·
1 Parent(s): 75d8d2c

Decision test files of ArthurZ/clef-flash

Browse files
decision.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels": {},
3
+ "temperature": {},
4
+ "noul_options": [
5
+ "true",
6
+ "false"
7
+ ],
8
+ "sort_choices": true
9
+ }
decision_head.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ClefDecisionHead"
4
+ ],
5
+ "attention_bias": true,
6
+ "attention_dropout": 0.0,
7
+ "backbone_hidden_size": 4096,
8
+ "dtype": "bfloat16",
9
+ "hidden_act": "gelu",
10
+ "hidden_size": 1024,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 4096,
13
+ "model_type": "clef",
14
+ "num_attention_heads": 16,
15
+ "num_evidence_layers": 2,
16
+ "num_hidden_layers": 4,
17
+ "num_key_value_heads": 16,
18
+ "transformers_version": "5.19.0.dev0",
19
+ "transformers_weights": "decision_head/model.safetensors"
20
+ }
decision_template.jinja ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- Cloudflare/clef, clef-flash (joint_schema_model.encode_record): ONE sequence per request.
2
+ Every text piece the original tokenizes on its own sits between sentinels; <|mark|> pairs give the spans the joint head
3
+ pools: per question (instruction start, end) then (option start, end) for each option in question.options order
4
+ (decision_config: noul_options = ["true", "false"], sort_choices = true). -#}
5
+ {%- macro r(x) %}{{ x if x is string else x|tojson(sort_keys=true, separators=(",", ":")) }}{% endmacro -%}
6
+ {{- "<|im_start|>system\nRead the complete state and schema. Decide every field jointly. Each answer must be exactly one of that field's allowed options.<|im_end|>\n<|im_start|>user\nSTATE:\n<|split|>" ~ r(state) ~ "<|split|>\n\nSCHEMA FIELDS:\n" -}}
7
+ {%- for q in questions -%}
8
+ {{- "<|split|>\nFIELD " ~ loop.index ~ "\nID: " ~ q.name ~ "\nTYPE: " ~ q.type ~ "\nINSTRUCTION: <|mark|>" ~ r(q.name if q.instructions is none or q.instructions == "" else q.instructions) ~ "<|mark|>\nALLOWED OPTIONS:\n" -}}
9
+ {%- for key in q.options -%}
10
+ {%- set d = q.descriptions[loop.index0] -%}
11
+ {%- if q.type == "noul" and d is none %}{% set d = {"true": "The proposition is true or the answer is yes.", "false": "The proposition is false or the answer is no."}[key] %}{% endif -%}
12
+ {{- "OPTION " ~ loop.index ~ ": <|mark|>" ~ r({"option_id": key} if d is none else {"option_id": key, "description": d}) ~ "<|mark|>\n" -}}
13
+ {%- endfor -%}
14
+ {{- "END FIELD\n" -}}
15
+ {%- endfor -%}
16
+ {{- "<|split|>\n<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\nJOINT SCHEMA DECISIONS:" -}}
decision_test.json ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "Cloudflare/clef-flash",
3
+ "revision": "8b2e5fd17c09fd49bc2880b805d5323ec7ff4ff3",
4
+ "request": {
5
+ "state": {
6
+ "msg": "Refund please"
7
+ },
8
+ "questions": {
9
+ "intent": {
10
+ "type": "choice",
11
+ "instructions": "What is wanted?",
12
+ "criteria": {
13
+ "refund": "money back",
14
+ "other": null
15
+ }
16
+ },
17
+ "urgent": {
18
+ "type": "noul",
19
+ "instructions": "Urgent?"
20
+ },
21
+ "tone": {
22
+ "type": "score",
23
+ "instructions": "Tone",
24
+ "criteria": [
25
+ "calm",
26
+ "angry"
27
+ ]
28
+ }
29
+ }
30
+ },
31
+ "sequences": [
32
+ {
33
+ "input_ids": [
34
+ 248045,
35
+ 8678,
36
+ 198,
37
+ 4274,
38
+ 279,
39
+ 4434,
40
+ 1528,
41
+ 321,
42
+ 10485,
43
+ 13,
44
+ 95462,
45
+ 1396,
46
+ 2002,
47
+ 50407,
48
+ 13,
49
+ 8618,
50
+ 4087,
51
+ 1902,
52
+ 381,
53
+ 6681,
54
+ 799,
55
+ 314,
56
+ 421,
57
+ 2002,
58
+ 579,
59
+ 5252,
60
+ 2519,
61
+ 13,
62
+ 248046,
63
+ 198,
64
+ 248045,
65
+ 846,
66
+ 198,
67
+ 23852,
68
+ 25,
69
+ 198,
70
+ 4754,
71
+ 3132,
72
+ 3147,
73
+ 3812,
74
+ 1199,
75
+ 4338,
76
+ 8934,
77
+ 271,
78
+ 3423,
79
+ 34651,
80
+ 426,
81
+ 32349,
82
+ 25,
83
+ 198,
84
+ 198,
85
+ 27806,
86
+ 220,
87
+ 16,
88
+ 198,
89
+ 887,
90
+ 25,
91
+ 7151,
92
+ 198,
93
+ 9222,
94
+ 25,
95
+ 5576,
96
+ 198,
97
+ 669,
98
+ 55530,
99
+ 25,
100
+ 220,
101
+ 3710,
102
+ 369,
103
+ 4674,
104
+ 30,
105
+ 198,
106
+ 51535,
107
+ 1425,
108
+ 49555,
109
+ 25,
110
+ 198,
111
+ 32929,
112
+ 220,
113
+ 16,
114
+ 25,
115
+ 220,
116
+ 4754,
117
+ 1979,
118
+ 816,
119
+ 3147,
120
+ 1520,
121
+ 8934,
122
+ 198,
123
+ 32929,
124
+ 220,
125
+ 17,
126
+ 25,
127
+ 220,
128
+ 4754,
129
+ 4532,
130
+ 3147,
131
+ 27342,
132
+ 1142,
133
+ 2129,
134
+ 1979,
135
+ 816,
136
+ 3147,
137
+ 66165,
138
+ 8934,
139
+ 198,
140
+ 4537,
141
+ 38945,
142
+ 198,
143
+ 198,
144
+ 27806,
145
+ 220,
146
+ 17,
147
+ 198,
148
+ 887,
149
+ 25,
150
+ 32556,
151
+ 198,
152
+ 9222,
153
+ 25,
154
+ 307,
155
+ 10644,
156
+ 198,
157
+ 669,
158
+ 55530,
159
+ 25,
160
+ 220,
161
+ 52,
162
+ 1917,
163
+ 305,
164
+ 30,
165
+ 198,
166
+ 51535,
167
+ 1425,
168
+ 49555,
169
+ 25,
170
+ 198,
171
+ 32929,
172
+ 220,
173
+ 16,
174
+ 25,
175
+ 220,
176
+ 4754,
177
+ 4532,
178
+ 3147,
179
+ 760,
180
+ 38749,
181
+ 369,
182
+ 804,
183
+ 466,
184
+ 279,
185
+ 4087,
186
+ 369,
187
+ 9542,
188
+ 46292,
189
+ 1979,
190
+ 816,
191
+ 3147,
192
+ 1802,
193
+ 8934,
194
+ 198,
195
+ 32929,
196
+ 220,
197
+ 17,
198
+ 25,
199
+ 220,
200
+ 4754,
201
+ 4532,
202
+ 3147,
203
+ 760,
204
+ 38749,
205
+ 369,
206
+ 867,
207
+ 466,
208
+ 279,
209
+ 4087,
210
+ 369,
211
+ 874,
212
+ 46292,
213
+ 1979,
214
+ 816,
215
+ 3147,
216
+ 3721,
217
+ 8934,
218
+ 198,
219
+ 4537,
220
+ 38945,
221
+ 198,
222
+ 198,
223
+ 27806,
224
+ 220,
225
+ 18,
226
+ 198,
227
+ 887,
228
+ 25,
229
+ 15754,
230
+ 198,
231
+ 9222,
232
+ 25,
233
+ 5284,
234
+ 198,
235
+ 669,
236
+ 55530,
237
+ 25,
238
+ 220,
239
+ 51,
240
+ 588,
241
+ 198,
242
+ 51535,
243
+ 1425,
244
+ 49555,
245
+ 25,
246
+ 198,
247
+ 32929,
248
+ 220,
249
+ 16,
250
+ 25,
251
+ 220,
252
+ 4754,
253
+ 4532,
254
+ 3147,
255
+ 5248,
256
+ 76,
257
+ 2129,
258
+ 1979,
259
+ 816,
260
+ 3147,
261
+ 15,
262
+ 8934,
263
+ 198,
264
+ 32929,
265
+ 220,
266
+ 17,
267
+ 25,
268
+ 220,
269
+ 4754,
270
+ 4532,
271
+ 3147,
272
+ 512,
273
+ 856,
274
+ 2129,
275
+ 1979,
276
+ 816,
277
+ 3147,
278
+ 16,
279
+ 8934,
280
+ 198,
281
+ 4537,
282
+ 38945,
283
+ 198,
284
+ 198,
285
+ 248046,
286
+ 198,
287
+ 248045,
288
+ 74455,
289
+ 198,
290
+ 248068,
291
+ 271,
292
+ 248069,
293
+ 271,
294
+ 25310,
295
+ 3118,
296
+ 7295,
297
+ 34651,
298
+ 41402,
299
+ 23451,
300
+ 50,
301
+ 25
302
+ ],
303
+ "marks": [
304
+ 67,
305
+ 71,
306
+ 82,
307
+ 88,
308
+ 94,
309
+ 105,
310
+ 127,
311
+ 131,
312
+ 142,
313
+ 160,
314
+ 166,
315
+ 184,
316
+ 205,
317
+ 207,
318
+ 218,
319
+ 229,
320
+ 235,
321
+ 246
322
+ ]
323
+ }
324
+ ]
325
+ }