mehran commited on
Commit
4095acc
·
verified ·
1 Parent(s): 0a54b23

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -1,35 +1,5 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
  *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  *.safetensors filter=lfs diff=lfs merge=lfs -text
2
+ image_bench.png filter=lfs diff=lfs merge=lfs -text
3
+ jevbench.png filter=lfs diff=lfs merge=lfs -text
4
+ jolt.png filter=lfs diff=lfs merge=lfs -text
5
+ text_bench.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
LICENSE ADDED
@@ -0,0 +1,438 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial-ShareAlike 4.0 International
2
+
3
+ =======================================================================
4
+
5
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
6
+ does not provide legal services or legal advice. Distribution of
7
+ Creative Commons public licenses does not create a lawyer-client or
8
+ other relationship. Creative Commons makes its licenses and related
9
+ information available on an "as-is" basis. Creative Commons gives no
10
+ warranties regarding its licenses, any material licensed under their
11
+ terms and conditions, or any related information. Creative Commons
12
+ disclaims all liability for damages resulting from their use to the
13
+ fullest extent possible.
14
+
15
+ Using Creative Commons Public Licenses
16
+
17
+ Creative Commons public licenses provide a standard set of terms and
18
+ conditions that creators and other rights holders may use to share
19
+ original works of authorship and other material subject to copyright
20
+ and certain other rights specified in the public license below. The
21
+ following considerations are for informational purposes only, are not
22
+ exhaustive, and do not form part of our licenses.
23
+
24
+ Considerations for licensors: Our public licenses are
25
+ intended for use by those authorized to give the public
26
+ permission to use material in ways otherwise restricted by
27
+ copyright and certain other rights. Our licenses are
28
+ irrevocable. Licensors should read and understand the terms
29
+ and conditions of the license they choose before applying it.
30
+ Licensors should also secure all rights necessary before
31
+ applying our licenses so that the public can reuse the
32
+ material as expected. Licensors should clearly mark any
33
+ material not subject to the license. This includes other CC-
34
+ licensed material, or material used under an exception or
35
+ limitation to copyright. More considerations for licensors:
36
+ wiki.creativecommons.org/Considerations_for_licensors
37
+
38
+ Considerations for the public: By using one of our public
39
+ licenses, a licensor grants the public permission to use the
40
+ licensed material under specified terms and conditions. If
41
+ the licensor's permission is not necessary for any reason--for
42
+ example, because of any applicable exception or limitation to
43
+ copyright--then that use is not regulated by the license. Our
44
+ licenses grant only permissions under copyright and certain
45
+ other rights that a licensor has authority to grant. Use of
46
+ the licensed material may still be restricted for other
47
+ reasons, including because others have copyright or other
48
+ rights in the material. A licensor may make special requests,
49
+ such as asking that all changes be marked or described.
50
+ Although not required by our licenses, you are encouraged to
51
+ respect those requests where reasonable. More considerations
52
+ for the public:
53
+ wiki.creativecommons.org/Considerations_for_licensees
54
+
55
+ =======================================================================
56
+
57
+ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
58
+ Public License
59
+
60
+ By exercising the Licensed Rights (defined below), You accept and agree
61
+ to be bound by the terms and conditions of this Creative Commons
62
+ Attribution-NonCommercial-ShareAlike 4.0 International Public License
63
+ ("Public License"). To the extent this Public License may be
64
+ interpreted as a contract, You are granted the Licensed Rights in
65
+ consideration of Your acceptance of these terms and conditions, and the
66
+ Licensor grants You such rights in consideration of benefits the
67
+ Licensor receives from making the Licensed Material available under
68
+ these terms and conditions.
69
+
70
+
71
+ Section 1 -- Definitions.
72
+
73
+ a. Adapted Material means material subject to Copyright and Similar
74
+ Rights that is derived from or based upon the Licensed Material
75
+ and in which the Licensed Material is translated, altered,
76
+ arranged, transformed, or otherwise modified in a manner requiring
77
+ permission under the Copyright and Similar Rights held by the
78
+ Licensor. For purposes of this Public License, where the Licensed
79
+ Material is a musical work, performance, or sound recording,
80
+ Adapted Material is always produced where the Licensed Material is
81
+ synched in timed relation with a moving image.
82
+
83
+ b. Adapter's License means the license You apply to Your Copyright
84
+ and Similar Rights in Your contributions to Adapted Material in
85
+ accordance with the terms and conditions of this Public License.
86
+
87
+ c. BY-NC-SA Compatible License means a license listed at
88
+ creativecommons.org/compatiblelicenses, approved by Creative
89
+ Commons as essentially the equivalent of this Public License.
90
+
91
+ d. Copyright and Similar Rights means copyright and/or similar rights
92
+ closely related to copyright including, without limitation,
93
+ performance, broadcast, sound recording, and Sui Generis Database
94
+ Rights, without regard to how the rights are labeled or
95
+ categorized. For purposes of this Public License, the rights
96
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
97
+ Rights.
98
+
99
+ e. Effective Technological Measures means those measures that, in the
100
+ absence of proper authority, may not be circumvented under laws
101
+ fulfilling obligations under Article 11 of the WIPO Copyright
102
+ Treaty adopted on December 20, 1996, and/or similar international
103
+ agreements.
104
+
105
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
106
+ any other exception or limitation to Copyright and Similar Rights
107
+ that applies to Your use of the Licensed Material.
108
+
109
+ g. License Elements means the license attributes listed in the name
110
+ of a Creative Commons Public License. The License Elements of this
111
+ Public License are Attribution, NonCommercial, and ShareAlike.
112
+
113
+ h. Licensed Material means the artistic or literary work, database,
114
+ or other material to which the Licensor applied this Public
115
+ License.
116
+
117
+ i. Licensed Rights means the rights granted to You subject to the
118
+ terms and conditions of this Public License, which are limited to
119
+ all Copyright and Similar Rights that apply to Your use of the
120
+ Licensed Material and that the Licensor has authority to license.
121
+
122
+ j. Licensor means the individual(s) or entity(ies) granting rights
123
+ under this Public License.
124
+
125
+ k. NonCommercial means not primarily intended for or directed towards
126
+ commercial advantage or monetary compensation. For purposes of
127
+ this Public License, the exchange of the Licensed Material for
128
+ other material subject to Copyright and Similar Rights by digital
129
+ file-sharing or similar means is NonCommercial provided there is
130
+ no payment of monetary compensation in connection with the
131
+ exchange.
132
+
133
+ l. Share means to provide material to the public by any means or
134
+ process that requires permission under the Licensed Rights, such
135
+ as reproduction, public display, public performance, distribution,
136
+ dissemination, communication, or importation, and to make material
137
+ available to the public including in ways that members of the
138
+ public may access the material from a place and at a time
139
+ individually chosen by them.
140
+
141
+ m. Sui Generis Database Rights means rights other than copyright
142
+ resulting from Directive 96/9/EC of the European Parliament and of
143
+ the Council of 11 March 1996 on the legal protection of databases,
144
+ as amended and/or succeeded, as well as other essentially
145
+ equivalent rights anywhere in the world.
146
+
147
+ n. You means the individual or entity exercising the Licensed Rights
148
+ under this Public License. Your has a corresponding meaning.
149
+
150
+
151
+ Section 2 -- Scope.
152
+
153
+ a. License grant.
154
+
155
+ 1. Subject to the terms and conditions of this Public License,
156
+ the Licensor hereby grants You a worldwide, royalty-free,
157
+ non-sublicensable, non-exclusive, irrevocable license to
158
+ exercise the Licensed Rights in the Licensed Material to:
159
+
160
+ a. reproduce and Share the Licensed Material, in whole or
161
+ in part, for NonCommercial purposes only; and
162
+
163
+ b. produce, reproduce, and Share Adapted Material for
164
+ NonCommercial purposes only.
165
+
166
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
167
+ Exceptions and Limitations apply to Your use, this Public
168
+ License does not apply, and You do not need to comply with
169
+ its terms and conditions.
170
+
171
+ 3. Term. The term of this Public License is specified in Section
172
+ 6(a).
173
+
174
+ 4. Media and formats; technical modifications allowed. The
175
+ Licensor authorizes You to exercise the Licensed Rights in
176
+ all media and formats whether now known or hereafter created,
177
+ and to make technical modifications necessary to do so. The
178
+ Licensor waives and/or agrees not to assert any right or
179
+ authority to forbid You from making technical modifications
180
+ necessary to exercise the Licensed Rights, including
181
+ technical modifications necessary to circumvent Effective
182
+ Technological Measures. For purposes of this Public License,
183
+ simply making modifications authorized by this Section 2(a)
184
+ (4) never produces Adapted Material.
185
+
186
+ 5. Downstream recipients.
187
+
188
+ a. Offer from the Licensor -- Licensed Material. Every
189
+ recipient of the Licensed Material automatically
190
+ receives an offer from the Licensor to exercise the
191
+ Licensed Rights under the terms and conditions of this
192
+ Public License.
193
+
194
+ b. Additional offer from the Licensor -- Adapted Material.
195
+ Every recipient of Adapted Material from You
196
+ automatically receives an offer from the Licensor to
197
+ exercise the Licensed Rights in the Adapted Material
198
+ under the conditions of the Adapter's License You apply.
199
+
200
+ c. No downstream restrictions. You may not offer or impose
201
+ any additional or different terms or conditions on, or
202
+ apply any Effective Technological Measures to, the
203
+ Licensed Material if doing so restricts exercise of the
204
+ Licensed Rights by any recipient of the Licensed
205
+ Material.
206
+
207
+ 6. No endorsement. Nothing in this Public License constitutes or
208
+ may be construed as permission to assert or imply that You
209
+ are, or that Your use of the Licensed Material is, connected
210
+ with, or sponsored, endorsed, or granted official status by,
211
+ the Licensor or others designated to receive attribution as
212
+ provided in Section 3(a)(1)(A)(i).
213
+
214
+ b. Other rights.
215
+
216
+ 1. Moral rights, such as the right of integrity, are not
217
+ licensed under this Public License, nor are publicity,
218
+ privacy, and/or other similar personality rights; however, to
219
+ the extent possible, the Licensor waives and/or agrees not to
220
+ assert any such rights held by the Licensor to the limited
221
+ extent necessary to allow You to exercise the Licensed
222
+ Rights, but not otherwise.
223
+
224
+ 2. Patent and trademark rights are not licensed under this
225
+ Public License.
226
+
227
+ 3. To the extent possible, the Licensor waives any right to
228
+ collect royalties from You for the exercise of the Licensed
229
+ Rights, whether directly or through a collecting society
230
+ under any voluntary or waivable statutory or compulsory
231
+ licensing scheme. In all other cases the Licensor expressly
232
+ reserves any right to collect such royalties, including when
233
+ the Licensed Material is used other than for NonCommercial
234
+ purposes.
235
+
236
+
237
+ Section 3 -- License Conditions.
238
+
239
+ Your exercise of the Licensed Rights is expressly made subject to the
240
+ following conditions.
241
+
242
+ a. Attribution.
243
+
244
+ 1. If You Share the Licensed Material (including in modified
245
+ form), You must:
246
+
247
+ a. retain the following if it is supplied by the Licensor
248
+ with the Licensed Material:
249
+
250
+ i. identification of the creator(s) of the Licensed
251
+ Material and any others designated to receive
252
+ attribution, in any reasonable manner requested by
253
+ the Licensor (including by pseudonym if
254
+ designated);
255
+
256
+ ii. a copyright notice;
257
+
258
+ iii. a notice that refers to this Public License;
259
+
260
+ iv. a notice that refers to the disclaimer of
261
+ warranties;
262
+
263
+ v. a URI or hyperlink to the Licensed Material to the
264
+ extent reasonably practicable;
265
+
266
+ b. indicate if You modified the Licensed Material and
267
+ retain an indication of any previous modifications; and
268
+
269
+ c. indicate the Licensed Material is licensed under this
270
+ Public License, and include the text of, or the URI or
271
+ hyperlink to, this Public License.
272
+
273
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
274
+ reasonable manner based on the medium, means, and context in
275
+ which You Share the Licensed Material. For example, it may be
276
+ reasonable to satisfy the conditions by providing a URI or
277
+ hyperlink to a resource that includes the required
278
+ information.
279
+ 3. If requested by the Licensor, You must remove any of the
280
+ information required by Section 3(a)(1)(A) to the extent
281
+ reasonably practicable.
282
+
283
+ b. ShareAlike.
284
+
285
+ In addition to the conditions in Section 3(a), if You Share
286
+ Adapted Material You produce, the following conditions also apply.
287
+
288
+ 1. The Adapter's License You apply must be a Creative Commons
289
+ license with the same License Elements, this version or
290
+ later, or a BY-NC-SA Compatible License.
291
+
292
+ 2. You must include the text of, or the URI or hyperlink to, the
293
+ Adapter's License You apply. You may satisfy this condition
294
+ in any reasonable manner based on the medium, means, and
295
+ context in which You Share Adapted Material.
296
+
297
+ 3. You may not offer or impose any additional or different terms
298
+ or conditions on, or apply any Effective Technological
299
+ Measures to, Adapted Material that restrict exercise of the
300
+ rights granted under the Adapter's License You apply.
301
+
302
+
303
+ Section 4 -- Sui Generis Database Rights.
304
+
305
+ Where the Licensed Rights include Sui Generis Database Rights that
306
+ apply to Your use of the Licensed Material:
307
+
308
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
309
+ to extract, reuse, reproduce, and Share all or a substantial
310
+ portion of the contents of the database for NonCommercial purposes
311
+ only;
312
+
313
+ b. if You include all or a substantial portion of the database
314
+ contents in a database in which You have Sui Generis Database
315
+ Rights, then the database in which You have Sui Generis Database
316
+ Rights (but not its individual contents) is Adapted Material,
317
+ including for purposes of Section 3(b); and
318
+
319
+ c. You must comply with the conditions in Section 3(a) if You Share
320
+ all or a substantial portion of the contents of the database.
321
+
322
+ For the avoidance of doubt, this Section 4 supplements and does not
323
+ replace Your obligations under this Public License where the Licensed
324
+ Rights include other Copyright and Similar Rights.
325
+
326
+
327
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
328
+
329
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
330
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
331
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
332
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
333
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
334
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
335
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
336
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
337
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
338
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
339
+
340
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
341
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
342
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
343
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
344
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
345
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
346
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
347
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
348
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
349
+
350
+ c. The disclaimer of warranties and limitation of liability provided
351
+ above shall be interpreted in a manner that, to the extent
352
+ possible, most closely approximates an absolute disclaimer and
353
+ waiver of all liability.
354
+
355
+
356
+ Section 6 -- Term and Termination.
357
+
358
+ a. This Public License applies for the term of the Copyright and
359
+ Similar Rights licensed here. However, if You fail to comply with
360
+ this Public License, then Your rights under this Public License
361
+ terminate automatically.
362
+
363
+ b. Where Your right to use the Licensed Material has terminated under
364
+ Section 6(a), it reinstates:
365
+
366
+ 1. automatically as of the date the violation is cured, provided
367
+ it is cured within 30 days of Your discovery of the
368
+ violation; or
369
+
370
+ 2. upon express reinstatement by the Licensor.
371
+
372
+ For the avoidance of doubt, this Section 6(b) does not affect any
373
+ right the Licensor may have to seek remedies for Your violations
374
+ of this Public License.
375
+
376
+ c. For the avoidance of doubt, the Licensor may also offer the
377
+ Licensed Material under separate terms or conditions or stop
378
+ distributing the Licensed Material at any time; however, doing so
379
+ will not terminate this Public License.
380
+
381
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
382
+ License.
383
+
384
+
385
+ Section 7 -- Other Terms and Conditions.
386
+
387
+ a. The Licensor shall not be bound by any additional or different
388
+ terms or conditions communicated by You unless expressly agreed.
389
+
390
+ b. Any arrangements, understandings, or agreements regarding the
391
+ Licensed Material not stated herein are separate from and
392
+ independent of the terms and conditions of this Public License.
393
+
394
+
395
+ Section 8 -- Interpretation.
396
+
397
+ a. For the avoidance of doubt, this Public License does not, and
398
+ shall not be interpreted to, reduce, limit, restrict, or impose
399
+ conditions on any use of the Licensed Material that could lawfully
400
+ be made without permission under this Public License.
401
+
402
+ b. To the extent possible, if any provision of this Public License is
403
+ deemed unenforceable, it shall be automatically reformed to the
404
+ minimum extent necessary to make it enforceable. If the provision
405
+ cannot be reformed, it shall be severed from this Public License
406
+ without affecting the enforceability of the remaining terms and
407
+ conditions.
408
+
409
+ c. No term or condition of this Public License will be waived and no
410
+ failure to comply consented to unless expressly agreed to by the
411
+ Licensor.
412
+
413
+ d. Nothing in this Public License constitutes or may be interpreted
414
+ as a limitation upon, or waiver of, any privileges and immunities
415
+ that apply to the Licensor or You, including from the legal
416
+ processes of any jurisdiction or authority.
417
+
418
+ =======================================================================
419
+
420
+ Creative Commons is not a party to its public
421
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
422
+ its public licenses to material it publishes and in those instances
423
+ will be considered the “Licensor.” The text of the Creative Commons
424
+ public licenses is dedicated to the public domain under the CC0 Public
425
+ Domain Dedication. Except for the limited purpose of indicating that
426
+ material is shared under a Creative Commons public license or as
427
+ otherwise permitted by the Creative Commons policies published at
428
+ creativecommons.org/policies, Creative Commons does not authorize the
429
+ use of the trademark "Creative Commons" or any other trademark or logo
430
+ of Creative Commons without its prior written consent including,
431
+ without limitation, in connection with any unauthorized modifications
432
+ to any of its public licenses or any other arrangements,
433
+ understandings, or agreements concerning use of licensed material. For
434
+ the avoidance of doubt, this paragraph does not form part of the
435
+ public licenses.
436
+
437
+ Creative Commons may be contacted at creativecommons.org.
438
+
LICENSE-CODE ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright [yyyy] [name of copyright owner]
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ Jolt model weights
2
+
3
+ Jolt adapter and decision-head weights were trained in the Jolt project using
4
+ Qwen3.5 base models. The base model is fetched from Qwen at the immutable
5
+ revision recorded in dohnuts.json; base weights are not included in this repo.
6
+
7
+ The bundled inference source is adapted from Dohnuts by PsiACE and contributors,
8
+ licensed under Apache-2.0; see LICENSE-CODE and NOTICE-CODE. The training
9
+ methodology also builds on the cited Laya and Laya Vision projects. Training data
10
+ are not included. Dataset sources and their terms remain independent.
NOTICE-CODE ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Dohnuts
2
+ Copyright 2026 PsiACE and Dohnuts contributors.
3
+
4
+ The source code is licensed under Apache-2.0. Model weights and source datasets
5
+ are separate artifacts with their own terms.
6
+
7
+ Qwen3.5-4B is developed by the Qwen team at Alibaba Cloud and is licensed under
8
+ Apache-2.0. Jolt trains a language LoRA adapter and a decision head over this Qwen
9
+ base. The Qwen base weights are fetched from the original publisher.
10
+ https://huggingface.co/Qwen/Qwen3.5-4B
11
+
12
+ The RLCD objective and evaluation protocols follow Laya by Nandha Kishor M and
13
+ Laya Vision by Reed Richards. Both projects are licensed under Apache-2.0.
14
+ Pinned references and implementation details are recorded in docs/rlcd.md and
15
+ docs/upstream-alignment.md.
16
+ https://github.com/NandhaKishorM/laya
17
+ https://github.com/r33drichards/laya-vision
18
+
19
+ JevBench supplies the public benchmark tasks and scoring protocol. Published Jev
20
+ outcomes are reference measurements, not locally executed Jev predictions.
21
+ https://github.com/fstandhartinger/jevbench
22
+
23
+ Bub supplies the agent SDK. Flash Linear Attention supplies fused operators.
24
+ They are installed as dependencies, not bundled copies of their source code.
25
+ https://github.com/bubbuild/bub
26
+ https://github.com/fla-org/flash-linear-attention
27
+
28
+ Dataset sources, provenance, and terms are listed in docs/data-and-evaluation.md.
29
+ Raw datasets, source images, and third-party model weights are not distributed
30
+ with this source repository or Python package. Reference names do not imply
31
+ endorsement by their authors.
README.md CHANGED
@@ -1,3 +1,157 @@
1
  ---
2
  license: cc-by-nc-sa-4.0
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-nc-sa-4.0
3
+ base_model: Qwen/Qwen3.5-4B
4
+ base_model_relation: adapter
5
+ tags:
6
+ - multimodal
7
+ - vision
8
+ - decision-model
9
+ - lora
10
+ - qwen3_5
11
  ---
12
+
13
+ # Jolt-4B
14
+
15
+ ![Jolt Logo](https://huggingface.co/mlengineer-ai/Jolt-4B/resolve/main/jolt.png)
16
+
17
+ Jolt-4B is a multimodal decision model. Given text or an image and a set of
18
+ candidate answers, it returns candidate probabilities, a truth estimate, or an
19
+ ordered score. It does not generate free-form answers.
20
+
21
+ ## Model details
22
+
23
+ | Property | Value |
24
+ | --- | --- |
25
+ | Base model | [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) |
26
+ | Base revision | `a7b0d22b993d71000cf2eadfb37222a67cee521e` |
27
+ | Checkpoint | L2, seed 42, selected at update 3,600 |
28
+ | Development macro accuracy | 84.39% (checkpoint selection partition) |
29
+ | Training objective | Direct-composite loss |
30
+ | Training precision | BF16 base |
31
+ | Trainable weights | Rank-8 language LoRA and a linear candidate scorer |
32
+ | Input | Text, or text plus one decoded image |
33
+ | Limits | 2–128 candidates per question; 4,096-token inference limit |
34
+
35
+ The reported development score selected the checkpoint within its run. It is not
36
+ an independent test score. Test data were not used to select this checkpoint.
37
+
38
+ ### Local evaluation results
39
+
40
+ | Held-out test lane | Dataset macro | Row weighted |
41
+ | --- | ---: | ---: |
42
+ | Text · 18 datasets | 85.11% | 85.91% |
43
+ | Images · 8 datasets | 83.96% | 96.92% |
44
+ | All · 26 datasets | 84.76% | 93.47% |
45
+
46
+ JevBench v1.2.2 public subset: **181/231** (78.35% pooled; 84.50% tier-balanced). The public subset contains 231 tasks; 303 official tasks were unavailable. This is a single checkpoint, seed 42, selected at update 3,600. Unit temperatures were used; no post-training temperature fit was applied.
47
+
48
+ ### JevBench
49
+
50
+ ![JevBench](https://huggingface.co/mlengineer-ai/Jolt-4B/resolve/main/jevbench.png)
51
+
52
+ ### 18 text dataset benchmarks
53
+
54
+ ![TextBench](https://huggingface.co/mlengineer-ai/Jolt-4B/resolve/main/text_bench.png)
55
+
56
+ ### 8 image dataset benchmarks
57
+
58
+ ![ImageBench](https://huggingface.co/mlengineer-ai/Jolt-4B/resolve/main/image_bench.png)
59
+
60
+ You can find a comprehensive model comparison report at: *model_comparison_dashboard.html*
61
+
62
+ ## Use
63
+
64
+ This repository contains the compact Jolt adapter and inference source. It does
65
+ not duplicate Qwen's base weights: the runtime downloads the pinned public Qwen
66
+ revision on first use and caches it locally. The adapter format is Jolt's custom
67
+ decision-model format, so load it with the included runtime rather than
68
+ `AutoModel.from_pretrained`.
69
+
70
+ The runtime currently requires Python 3.12+, a CUDA-enabled PyTorch setup, and a
71
+ CUDA GPU. From a clone or downloaded copy of this repository:
72
+
73
+ ```bash
74
+ python -m pip install -r requirements-cuda.txt
75
+ python -m pip install -e . --no-deps
76
+ ```
77
+
78
+ Then:
79
+
80
+ ```python
81
+ from jolt.predictor import Predictor
82
+
83
+ model = Predictor.from_checkpoint("mlengineer-ai/Jolt-4B")
84
+ result = model.predict(
85
+ {"message": "I was charged twice. Please refund the duplicate."},
86
+ {
87
+ "route": {
88
+ "type": "choice",
89
+ "instructions": "Which team should handle this request?",
90
+ "criteria": ["billing", "technical support", "sales"],
91
+ },
92
+ "refund": {
93
+ "type": "noul",
94
+ "instructions": "Is a refund requested?",
95
+ },
96
+ },
97
+ )
98
+
99
+ print(result["answers"]["route"]["choice"])
100
+ print(result["answers"]["refund"]["noul"])
101
+ ```
102
+
103
+ For an image question, pass a decoded PIL image as `state["image"]`. This
104
+ example uses the `model` loaded above:
105
+
106
+ ```python
107
+ from PIL import Image
108
+
109
+ image = Image.open("path/to/image.jpg").convert("RGB")
110
+ image_result = model.predict(
111
+ {"image": image, "question": "Which animal is shown?"},
112
+ {
113
+ "animal": {
114
+ "type": "choice",
115
+ "instructions": "Identify the animal in the image.",
116
+ "criteria": ["cat", "dog", "bird", "other"],
117
+ }
118
+ },
119
+ )
120
+
121
+ print(image_result["answers"]["animal"]["choice"])
122
+ ```
123
+
124
+ ## Training and data
125
+
126
+ Jolt follows the recipe based on the [Dohnuts](https://huggingface.co/PsiACE/Dohnuts-0.1.0-0.8B) project. These checkpoints start from the
127
+ Qwen3.5 base model listed above; they do not use Dohnuts model weights as their
128
+ base. Jolt trained rank-8 LoRA weights and a candidate scorer with the base
129
+ model frozen. Jolt's public-data task suite and split design are adapted from
130
+ Dohnuts. Its [data reference](https://github.com/PsiACE/dohnuts/blob/main/docs/data-and-evaluation.md)
131
+ lists source datasets and their known terms. The adapter metadata records
132
+ fingerprints for Jolt's training, development, calibration, and test partitions.
133
+ Training data are not included here.
134
+
135
+ ## Model variations
136
+
137
+ * https://huggingface.co/mlengineer-ai/Jolt-0.8B
138
+ * https://huggingface.co/mlengineer-ai/Jolt-4B
139
+ * https://huggingface.co/mlengineer-ai/Jolt-4B
140
+ * https://huggingface.co/mlengineer-ai/Jolt-9B
141
+
142
+ ## Licensing
143
+
144
+ This release offers the adapter and decision-head weights under CC BY-NC-SA 4.0;
145
+ see `LICENSE`. For this prepared release, this conservative default follows the
146
+ original Dohnuts model release. It is not a legal determination that every source
147
+ dataset's terms necessarily apply to trained weights. The training mixture
148
+ includes sources with different terms, including
149
+ [ScienceQA](https://github.com/lupantech/ScienceQA/blob/main/README.md), whose
150
+ maintainers specify CC BY-NC-SA 4.0 for the dataset. The available records do
151
+ not establish commercial clearance for these trained weights; review the source
152
+ dataset terms before use.
153
+
154
+ The bundled inference source is adapted from Dohnuts and is licensed under
155
+ Apache-2.0; see `LICENSE-CODE` and `NOTICE-CODE`. The Qwen base model is
156
+ separately licensed by its publisher under Apache-2.0. Those licenses do not
157
+ replace or change the terms of training data.
adapter.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:180666338c3864e41ceee9e6d4eeca93e39c9e15c830cbe1258b19d9f6e1ff64
3
+ size 65019592
dohnuts.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": 3,
3
+ "project": "jolt",
4
+ "distribution": "jolt-model-runtime",
5
+ "version": "0.1.0",
6
+ "model_id": "Jolt-4B",
7
+ "base_model": "Qwen/Qwen3.5-4B",
8
+ "base_revision": "a7b0d22b993d71000cf2eadfb37222a67cee521e",
9
+ "adapter": "qwen3.5",
10
+ "lora_rank": 8,
11
+ "lora_alpha": 16,
12
+ "lora_dropout": 0.0,
13
+ "training_loss": "direct-composite",
14
+ "image_pixels": 262144,
15
+ "max_length": 2048,
16
+ "backend": {
17
+ "linear_patch": true,
18
+ "triton_convolution": true,
19
+ "experimental_rocm_sdpa": true,
20
+ "fused_norm_and_swiglu": true,
21
+ "shared_prefix": true,
22
+ "frozen_vision_cache_MiB": 128
23
+ },
24
+ "architecture": {
25
+ "readout": "last",
26
+ "candidate_attention": false,
27
+ "adapters": {
28
+ "layers": [],
29
+ "width": 64,
30
+ "activation": "silu"
31
+ },
32
+ "head": "linear",
33
+ "unfused_mlp_layers": [],
34
+ "backbone_activation": {
35
+ "layers": [],
36
+ "initial_mix": 0.0,
37
+ "learning_rate": 0.001
38
+ },
39
+ "gpu_memory_fraction": 0.9
40
+ },
41
+ "prompt_layout": "inline",
42
+ "inference": "merged LoRA, BF16 inference, shared-prefix parallel candidate scoring",
43
+ "source_hashes": {
44
+ "train": "4e8b258c9e5d5a98810868df5d572a824a9d1d6c5aa557ab5123cb7aab5de373",
45
+ "dev": "b736750efff3e30ae8a7772c482fa248899b8a1cf69ace104310e2540671d552",
46
+ "calibration": "815cfe0855dd5494f9def19ddb2a6b12e4116c3ae24d2775db620021dd07fb28",
47
+ "test": "fdac64d536d67c011d55d00352f0be71fa3bdfb7811c0be0e05a5d66cec98095"
48
+ },
49
+ "selected_run": "L2, seed 42",
50
+ "selected_step": 3600,
51
+ "selection": "maximum development macro accuracy within the run; no test selection",
52
+ "seed": 42,
53
+ "dev_macro_accuracy": 0.843863829343734,
54
+ "temperatures": {
55
+ "choice": 1.0,
56
+ "noul": 1.0,
57
+ "score": 1.0
58
+ },
59
+ "weights_sha256": "180666338c3864e41ceee9e6d4eeca93e39c9e15c830cbe1258b19d9f6e1ff64",
60
+ "training_precision": "BF16 base",
61
+ "training_quantization": null
62
+ }
image_bench.png ADDED

Git LFS Details

  • SHA256: a9bf70144040cbe9bdf7fe9cbd771e2c58194372952bed42bf973704b4c6f172
  • Pointer size: 131 Bytes
  • Size of remote file: 102 kB
jevbench.png ADDED

Git LFS Details

  • SHA256: dbe6dc9eea23e4f8e2654ea101e6f4843b07a6936d401786ed0fb0c1945f2ab5
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB
jolt.png ADDED

Git LFS Details

  • SHA256: 170647022e4bc6c9ccf5dca28feeda0b0ffc94a532c08399e83b060651ba518a
  • Pointer size: 131 Bytes
  • Size of remote file: 895 kB
model_comparison_dashboard.html ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <meta name="color-scheme" content="light">
7
+ <title>Model evaluation comparison</title>
8
+ <style>
9
+ :root{--ink:#172a36;--muted:#5d6d77;--line:#d9e2e5;--paper:#f4f7f7;--card:#fff;--teal:#087f78;--teal2:#26a69a;--blue:#3565a8;--orange:#c26b37;--purple:#7653a6;--gold:#b8871b;--red:#ac5144;--shadow:0 8px 24px rgba(25,54,65,.06)}
10
+ *{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:1440px;margin:auto;padding:32px 28px 64px}.eyebrow{color:var(--teal);font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.hero{display:flex;justify-content:space-between;gap:32px;align-items:flex-end;margin-bottom:22px}.hero h1{font-size:clamp(30px,4vw,48px);line-height:1.07;margin:8px 0 12px;letter-spacing:-.035em}.hero p{max-width:790px;color:var(--muted);margin:0;font-size:16px}.stamp{font-size:12px;color:var(--muted);white-space:nowrap}.intro{padding:16px 18px;background:#e7f3f1;border-left:4px solid var(--teal);border-radius:10px;margin:18px 0 22px}.intro strong{color:#075d59}.controls{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);margin-bottom:18px}.control{display:flex;flex-direction:column;gap:5px}.control label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)}select{font:inherit;color:var(--ink);background:#fff;border:1px solid #bac9ce;border-radius:8px;padding:9px 34px 9px 11px;min-width:170px}button{font:inherit;border:0;cursor:pointer}.scope-tabs{display:flex;gap:6px;flex-wrap:wrap}.scope-tabs button,.metric-toggle button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px;color:var(--muted)}.scope-tabs button[aria-pressed="true"],.metric-toggle button[aria-pressed="true"]{background:#163b48;color:#fff;border-color:#163b48}.metric-toggle{display:flex;gap:6px}.view-note{margin-left:auto;color:var(--muted);font-size:13px;max-width:370px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0 18px}.kpi,.panel{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.kpi{padding:17px 18px;min-height:108px}.kpi-label{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-weight:700}.kpi-value{font-size:25px;font-weight:760;letter-spacing:-.025em;margin:5px 0 1px}.kpi-sub{font-size:12px;color:var(--muted)}.grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:16px;align-items:start}.panel{padding:20px 22px;margin-bottom:16px;min-width:0}.panel h2{font-size:19px;margin:0 0 5px;letter-spacing:-.015em}.panel>p,.panel .sub{color:var(--muted);font-size:13px;margin:0 0 15px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.chart-scroll{overflow-x:auto}.chart{width:100%;min-width:440px;display:block}#datasetChart{width:100%;min-width:0}.legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;color:var(--muted);font-size:12px}.model-picker{position:relative;min-width:190px}.picker-details{position:relative;margin:0;border:0;background:transparent}.picker-details summary{display:block;cursor:pointer;padding:8px 28px 8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px;font-weight:650;white-space:nowrap}.picker-details[open] summary{border-color:var(--teal)}.model-picker-list{position:absolute;right:0;top:4px;z-index:10;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px;width:min(380px,80vw);top:calc(100% + 4px);max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:#fff;box-shadow:var(--shadow)}.model-option{display:flex;align-items:center;gap:7px;min-width:0;padding:3px 0;color:var(--ink);font-size:11px}.model-option input{margin:0;accent-color:var(--teal)}.series-swatch{width:9px;height:9px;border-radius:50%;flex:none}.series-index{font-size:10px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.range-key{width:20px;height:2px;background:#233945;display:inline-block;position:relative}.range-key:before,.range-key:after{content:"";position:absolute;width:1px;height:7px;background:#233945;top:-3px}.range-key:before{left:0}.range-key:after{right:0}.badge{display:inline-block;padding:3px 7px;border-radius:99px;font-size:10px;line-height:1.3;font-weight:750;letter-spacing:.025em;vertical-align:middle}.badge.seed{background:#e8eff9;color:#365c8f}.badge.single{background:#edf0f1;color:#52636c}.badge.diag{background:#fff1d8;color:#81530a}.badge.exposure{background:#fae6e2;color:#913c33}.badge.clean{background:#e0f2ea;color:#166b46}.rank-item{cursor:pointer}.rank-item:hover text.rank-label{fill:var(--teal)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px}.data-table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.data-table th,.data-table td{padding:9px 10px;border-bottom:1px solid #e8edef;text-align:right}.data-table th{position:sticky;top:0;background:#f5f8f8;color:#52636c;font-size:10px;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}.data-table th:first-child,.data-table td:first-child{text-align:left;position:sticky;left:0;background:#fff;z-index:1}.data-table th:first-child{background:#f5f8f8;z-index:2}.data-table tr:last-child td{border-bottom:0}.cell{min-width:66px;border-radius:5px;padding:3px 6px}.dataset-sub{font-size:10px;color:#71818a}.tiny{font-size:11px;color:var(--muted)}.insight{padding:14px 16px;background:#f7faf9;border:1px solid var(--line);border-radius:10px;font-size:14px;margin:12px 0}.insight strong{color:#135d58}.notes{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.note{padding:14px 15px;border:1px solid var(--line);border-radius:10px;background:#fbfcfc;font-size:13px}.note h3{font-size:14px;margin:0 0 5px}.note p{margin:0;color:var(--muted)}.exposure-list{display:grid;gap:8px}.exposure-row{padding:10px 12px;border-radius:8px;background:#f7f9f9;font-size:13px}.exposure-row p{margin:5px 0 0;color:var(--muted)}details{border:1px solid var(--line);border-radius:10px;margin:10px 0;background:#fff}summary{cursor:pointer;font-weight:700;padding:13px 15px}details .detail-body{padding:0 15px 15px}.diag-chart{max-height:440px;overflow:auto}.diag-bar-row{display:grid;grid-template-columns:minmax(120px,190px) 1fr 54px;gap:9px;align-items:center;margin:7px 0;font-size:12px}.diag-track{height:13px;background:#eef2f2;border-radius:99px;overflow:hidden}.diag-fill{height:100%;background:linear-gradient(90deg,#75b9b1,#087f78);border-radius:99px}.footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.footer a{color:var(--teal)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
11
+ @media(max-width:980px){main{padding:22px 16px 44px}.grid{grid-template-columns:1fr}.hero{display:block}.stamp{margin-top:10px}.kpis{grid-template-columns:repeat(2,1fr)}.view-note{margin-left:0;max-width:none;width:100%}}
12
+ @media(max-width:580px){.model-picker{width:auto;min-width:170px}.model-picker-list{grid-template-columns:1fr}.kpis{grid-template-columns:1fr 1fr}.kpi{padding:13px;min-height:96px}.kpi-value{font-size:20px}.panel{padding:16px}.controls{align-items:stretch}.control,.control select{width:100%}.scope-tabs button{flex:1}.notes{grid-template-columns:1fr}}
13
+ @media print{body{background:#fff}main{max-width:none;padding:0}.controls{display:none}.panel,.kpi{box-shadow:none;break-inside:avoid}.grid{grid-template-columns:1fr 1fr}details{break-inside:avoid}.footer{margin-top:12px}}
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <main>
18
+ <header class="hero">
19
+ <div><div class="eyebrow">Matched model evaluation</div><h1>Same test. Different models.</h1><p>Compare Jolt, Dohnuts, Laya, and Kev on the same frozen examples. Start with the shared text test, then switch to image results or the full 26-dataset view where coverage allows.</p></div>
20
+ <div class="stamp">Built October 5, 2026 · Works offline</div>
21
+ </header>
22
+ <div class="intro"><strong>How to read this report.</strong> “Dohnuts 0.8B (retrained)” is the report name for Jolt’s B0 control. It was trained from the pinned Qwen base on Jolt’s training split with the Dohnuts recipe. “Dohnuts 0.8B (released)” is the separately trained downloaded checkpoint. The primary score is dataset-macro accuracy. Every dataset gets equal weight, so large image datasets do not drown out smaller tasks. Use row-weighted accuracy to see the result when every example counts equally. Results from different test suites appear below as diagnostics, not as part of the shared-test ranking.</div>
23
+
24
+ <section class="panel" style="border-top:4px solid var(--orange)"><div class="panel-head"><div><div class="eyebrow">Separate benchmark comparison</div><h2>JevBench · public tasks</h2><p>Headline score is the mean of easy, standard, and hard accuracy, with each tier weighted equally. Pooled accuracy is shown beside it.</p></div><div class="tiny">231 public tasks · 303 official tasks unavailable</div></div><div id="jevbenchChart" class="diag-chart"></div><div class="table-wrap"><table id="jevbenchTable" class="data-table"></table></div><p class="tiny">This is a separate suite, so these scores do not enter the 26-dataset ranking above. Jolt and Dohnuts used a 4,096-token input limit; Laya used native 1,024-token truncation; Kev used its serving context. The table names each evaluation path.</p></section>
25
+ <section class="controls" aria-label="Comparison filters">
26
+ <div class="control"><label>Evaluation lane</label><div class="scope-tabs" role="group" aria-label="Evaluation lane"><button data-scope="text" aria-pressed="true">Text · 18 datasets</button><button data-scope="image" aria-pressed="false">Images · 8 datasets</button><button data-scope="all" aria-pressed="false">All · 26 datasets</button></div></div>
27
+ <div class="control"><label for="metric">Aggregate score</label><div class="metric-toggle" role="group"><button data-metric="macro" aria-pressed="true">Dataset macro</button><button data-metric="weighted" aria-pressed="false">Row weighted</button></div></div>
28
+ <div class="view-note" id="laneNote"></div>
29
+ </section>
30
+ <section class="kpis" aria-label="Selected comparison summary">
31
+ <article class="kpi"><div class="kpi-label">Top score in view</div><div class="kpi-value" id="bestValue">—</div><div class="kpi-sub" id="bestName">—</div></article>
32
+ <article class="kpi"><div class="kpi-label">Lead over next model</div><div class="kpi-value" id="leadValue">—</div><div class="kpi-sub" id="leadName">—</div></article>
33
+ <article class="kpi"><div class="kpi-label">Shared evaluation data</div><div class="kpi-value" id="coverageValue">—</div><div class="kpi-sub" id="coverageName">—</div></article>
34
+ <article class="kpi"><div class="kpi-label">Evidence per score</div><div class="kpi-value" id="runsValue">—</div><div class="kpi-sub" id="runsName">—</div></article>
35
+ </section>
36
+ <div class="grid">
37
+ <section class="panel"><div class="panel-head"><div><h2 id="rankTitle">Aggregate ranking</h2><p id="rankSub">Seed means are shown for Jolt runs; single-run results are labeled.</p></div></div><div class="chart-scroll"><svg id="ranking" class="chart" role="img" aria-label="Model accuracy comparison"></svg></div><div class="legend" id="familyLegend"></div><div class="tiny" style="margin-top:10px">Whiskers show the minimum and maximum among Jolt seeds. They describe run-to-run variation, not a confidence interval. Scores for single-run models have no whisker.</div><div class="insight" id="readingNote"></div></section>
38
+ <section class="panel"><div class="panel-head"><div><h2>Dataset detail</h2><p>Select one or more models to compare their accuracy on each dataset in this lane.</p></div><div class="control model-picker"><label>Models to compare</label><details class="picker-details"><summary id="detailSummary">Choose models</summary><div id="detailModels" class="model-picker-list" role="group" aria-label="Models to compare"></div></details></div></div><div class="legend" id="detailLegend" aria-label="Selected model legend"></div><div class="chart-scroll"><svg id="datasetChart" class="chart" role="img" aria-label="Dataset accuracy comparison for selected models"></svg></div><div class="tiny" id="datasetCaption"></div></section>
39
+ </div>
40
+ <section class="panel"><div class="panel-head"><div><h2>Scores by dataset</h2><p>Cells show hard top-1 accuracy. Select a column heading to sort. The table follows the lane and model-family filters above.</p></div></div><div class="table-wrap"><table id="scoreTable" class="data-table"></table></div></section>
41
+ <section class="panel"><h2>What the comparison says</h2><div id="interpretation" class="notes"></div></section>
42
+ <section class="panel"><h2>Training-data exposure and limits</h2><p>Scoring every model on the same test rows makes the inputs comparable. It does not make their training histories equally clean.</p><div class="exposure-list" id="exposure"></div></section>
43
+ <section class="panel"><h2>Other evaluations</h2><p>These results use other splits or task suites. They help describe each model, but they do not belong in the matched test ranking.</p>
44
+ <details open><summary>Jolt training experiments · development screens</summary><div class="detail-body"><p class="sub">The first chart shows capped development results at updates 400 and 800. Full-development scores appear only when that evaluation was run. These are training-selection measurements, not locked-test scores.</p><div id="screenChart" class="diag-chart"></div><div class="table-wrap"><table id="screenTable" class="data-table"></table></div></div></details>
45
+ <details><summary>Kev official development suites</summary><div class="detail-body"><p class="sub">Kev's own development partitions, evaluated with its native benchmark code. These suites differ from the Jolt frozen test.</p><div class="table-wrap"><table id="kevTable" class="data-table"></table></div></div></details>
46
+ <details><summary>Jolt 0.8B L2 secondary suites</summary><div class="detail-body"><p class="sub">The additional application collection has its own task mix. Read their scores within each suite only.</p><div class="table-wrap"><table id="secondaryTable" class="data-table"></table></div></div></details>
47
+ </section>
48
+ <footer class="footer"><div>Primary evaluation source: Jolt frozen test split, SHA-256 <code>fdac64d536d67c011d55d00352f0be71fa3bdfb7811c0be0e05a5d66cec98095</code>. All included predictions were checked for exact test IDs, dataset names, and target labels. Accuracy uses top-1 label agreement. Positive temperature scaling does not change top-1 predictions, so every family uses the same accuracy rule.</div><div style="margin-top:8px">Source notes: <a href="dohnuts/experiment_findings_report.md">Jolt experiment report</a> · Kev local comparison report is stored at <code>/mnt/990Pro/kev-evaluation/comparison_report.md</code>. The dashboard embeds preaggregated scores and does not load files or libraries from the network.</div></footer>
49
+ </main>
50
+ <script>
51
+ const DATA={"meta":{"test_file":"dohnuts/data/processed/v1/test.jsonl","test_sha256":"fdac64d536d67c011d55d00352f0be71fa3bdfb7811c0be0e05a5d66cec98095","rows":180031,"dataset_count":26,"scope_counts":{"text":{"datasets":18,"rows":56426},"image":{"datasets":8,"rows":123605},"all":{"datasets":26,"rows":180031}},"metric":"Hard top-1 accuracy: predicted candidate index matches target argmax. Dataset macro averages dataset accuracies equally; row-weighted pools rows.","models":11},"datasets":{"ag_news":{"rows":7600,"kind":"text"},"aokvqa":{"rows":1138,"kind":"image"},"banking77":{"rows":3080,"kind":"text"},"boolq":{"rows":3270,"kind":"text"},"clevr_attribute":{"rows":53734,"kind":"image"},"clevr_count":{"rows":35422,"kind":"image"},"clevr_exist":{"rows":20196,"kind":"image"},"contract_nli":{"rows":1173,"kind":"text"},"emotion":{"rows":2000,"kind":"text"},"esci_es":{"rows":1482,"kind":"text"},"esci_jp":{"rows":1633,"kind":"text"},"esci_us":{"rows":1145,"kind":"text"},"mail_phishing":{"rows":1050,"kind":"text"},"mail_spam":{"rows":854,"kind":"text"},"massive_en-US":{"rows":2970,"kind":"text"},"massive_zh-CN":{"rows":2921,"kind":"text"},"scienceqa":{"rows":2017,"kind":"image"},"screenqa_choice":{"rows":848,"kind":"image"},"screenqa_noul":{"rows":2148,"kind":"image"},"sharc":{"rows":8276,"kind":"text"},"sms_spam":{"rows":794,"kind":"text"},"typed_decisions":{"rows":2000,"kind":"text"},"vqav2_yesno":{"rows":8102,"kind":"image"},"wikiqa":{"rows":6160,"kind":"text"},"xnli_en":{"rows":5009,"kind":"text"},"xnli_zh":{"rows":5009,"kind":"text"}},"models":[{"id":"jolt_b0","name":"Dohnuts 0.8B (retrained)","family":"Jolt","base":"Qwen3.5-0.8B","note":"Jolt baseline trained from the pinned Qwen base with the Dohnuts RLCD recipe, using Jolt train rows. Test rows were excluded from campaign training, selection, and calibration.","run_count":3,"runs":[{"seed":"42","scope":{}},{"seed":"43","scope":{}},{"seed":"44","scope":{}}],"scores":{"text":{"macro":0.7838329041511867,"weighted":0.7901440234407305,"macro_sd":0.011511660568638176,"macro_min":0.7706281807674302,"macro_max":0.7917561705770998,"weighted_sd":0.01137007534084037,"rows":56426,"datasets":18,"run_count":3,"weighted_min":0.7770176868819338,"weighted_max":0.7969375819657605},"image":{"macro":0.7702316778458088,"weighted":0.9151113088736972,"macro_sd":0.0017359305961422468,"macro_min":0.7682284199723828,"macro_max":0.7712939158085842,"weighted_sd":0.0016333233449448451,"rows":123605,"datasets":8,"run_count":3,"weighted_min":0.9139921524210186,"weighted_max":0.9169855588366166},"all":{"macro":0.7796479114418396,"weighted":0.8759435874932651,"macro_sd":0.007755423280125163,"macro_min":0.7708330223185544,"macro_max":0.7854227943245952,"weighted_sd":0.002456433063757501,"rows":180031,"datasets":26,"run_count":3,"weighted_min":0.8731162966378012,"weighted_max":0.8775544211830185}},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.6808442081520863,"runs":[0.6764137264378927,0.6785886901884969,0.6875302078298695],"min":0.6764137264378927,"max":0.6875302078298695,"run_count":3},"contract_nli":{"rows":1173,"kind":"text","mean":0.8249502699630576,"runs":[0.8218243819266837,0.8235294117647058,0.8294970161977835],"min":0.8218243819266837,"max":0.8294970161977835,"run_count":3},"wikiqa":{"rows":6160,"kind":"text","mean":0.9582792207792208,"runs":[0.9607142857142857,0.9586038961038961,0.9555194805194805],"min":0.9555194805194805,"max":0.9607142857142857,"run_count":3},"esci_us":{"rows":1145,"kind":"text","mean":0.520524017467249,"runs":[0.5432314410480349,0.5135371179039301,0.5048034934497817],"min":0.5048034934497817,"max":0.5432314410480349,"run_count":3},"esci_es":{"rows":1482,"kind":"text","mean":0.5636527215474584,"runs":[0.5695006747638327,0.5769230769230769,0.5445344129554656],"min":0.5445344129554656,"max":0.5769230769230769,"run_count":3},"esci_jp":{"rows":1633,"kind":"text","mean":0.6125739946927945,"runs":[0.6080832823025107,0.6117575015309247,0.617881200244948],"min":0.6080832823025107,"max":0.617881200244948,"run_count":3},"mail_spam":{"rows":854,"kind":"text","mean":0.9855581576893052,"runs":[0.9882903981264637,0.9859484777517564,0.9824355971896955],"min":0.9824355971896955,"max":0.9882903981264637,"run_count":3},"mail_phishing":{"rows":1050,"kind":"text","mean":0.9907936507936507,"runs":[0.9933333333333333,0.9914285714285714,0.9876190476190476],"min":0.9876190476190476,"max":0.9933333333333333,"run_count":3},"sms_spam":{"rows":794,"kind":"text","mean":0.9937027707808563,"runs":[0.9949622166246851,0.9924433249370277,0.9937027707808564],"min":0.9924433249370277,"max":0.9949622166246851,"run_count":3},"massive_en-US":{"rows":2970,"kind":"text","mean":0.7602693602693602,"runs":[0.7885521885521886,0.6831649831649832,0.8090909090909091],"min":0.6831649831649832,"max":0.8090909090909091,"run_count":3},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.744151546274107,"runs":[0.764464224580623,0.6737418692228688,0.7942485450188291],"min":0.6737418692228688,"max":0.7942485450188291,"run_count":3},"boolq":{"rows":3270,"kind":"text","mean":0.8265035677879715,"runs":[0.8324159021406727,0.8287461773700305,0.818348623853211],"min":0.818348623853211,"max":0.8324159021406727,"run_count":3},"ag_news":{"rows":7600,"kind":"text","mean":0.8959649122807017,"runs":[0.896578947368421,0.8892105263157895,0.9021052631578947],"min":0.8892105263157895,"max":0.9021052631578947,"run_count":3},"emotion":{"rows":2000,"kind":"text","mean":0.758,"runs":[0.774,0.7395,0.7605],"min":0.7395,"max":0.774,"run_count":3},"banking77":{"rows":3080,"kind":"text","mean":0.7093073593073593,"runs":[0.737012987012987,0.6503246753246753,0.7405844155844156],"min":0.6503246753246753,"max":0.7405844155844156,"run_count":3},"xnli_en":{"rows":5009,"kind":"text","mean":0.835296466360551,"runs":[0.8400878418846077,0.8334997005390298,0.8323018566580156],"min":0.8323018566580156,"max":0.8400878418846077,"run_count":3},"xnli_zh":{"rows":5009,"kind":"text","mean":0.7481200505756305,"runs":[0.752645238570573,0.7448592533439808,0.7468556598123378],"min":0.7448592533439808,"max":0.752645238570573,"run_count":3},"typed_decisions":{"rows":2000,"kind":"text","mean":0.7005,"runs":[0.7095,0.6955,0.6965],"min":0.6955,"max":0.7095,"run_count":3},"aokvqa":{"rows":1138,"kind":"image","mean":0.7779730521382543,"runs":[0.7741652021089631,0.7776801405975395,0.7820738137082601],"min":0.7741652021089631,"max":0.7820738137082601,"run_count":3},"scienceqa":{"rows":2017,"kind":"image","mean":0.8517600396628656,"runs":[0.8517600396628656,0.8517600396628656,0.8517600396628656],"min":0.8517600396628656,"max":0.8517600396628656,"run_count":3},"vqav2_yesno":{"rows":8102,"kind":"image","mean":0.812474286184481,"runs":[0.8120217230313502,0.8147371019501358,0.8106640335719575],"min":0.8106640335719575,"max":0.8147371019501358,"run_count":3},"clevr_exist":{"rows":20196,"kind":"image","mean":0.9760678682247309,"runs":[0.9771736977619331,0.9755397108338285,0.9754901960784313],"min":0.9754901960784313,"max":0.9771736977619331,"run_count":3},"clevr_attribute":{"rows":53734,"kind":"image","mean":0.9839021848364164,"runs":[0.9852235083931962,0.9833066587263185,0.9831763873897347],"min":0.9831763873897347,"max":0.9852235083931962,"run_count":3},"clevr_count":{"rows":35422,"kind":"image","mean":0.836683417085427,"runs":[0.8297103495003105,0.8441081813562193,0.8362317203997516],"min":0.8297103495003105,"max":0.8441081813562193,"run_count":3},"screenqa_choice":{"rows":848,"kind":"image","mean":0.21147798742138366,"runs":[0.2205188679245283,0.2169811320754717,0.19693396226415094],"min":0.19693396226415094,"max":0.2205188679245283,"run_count":3},"screenqa_noul":{"rows":2148,"kind":"image","mean":0.7115145872129113,"runs":[0.7188081936685289,0.7062383612662942,0.7094972067039106],"min":0.7062383612662942,"max":0.7188081936685289,"run_count":3}}},{"id":"jolt_l2_08","name":"Jolt 0.8B L2","family":"Jolt","base":"Qwen3.5-0.8B","note":"Jolt direct-composite objective, three matched seeds.","run_count":3,"runs":[{"seed":"42","scope":{}},{"seed":"43","scope":{}},{"seed":"44","scope":{}}],"scores":{"text":{"macro":0.8221927952803824,"weighted":0.8253701012535593,"macro_sd":0.0016162635989367905,"macro_min":0.8207989975658042,"macro_max":0.8239645448107306,"weighted_sd":0.0013302767595242486,"rows":56426,"datasets":18,"run_count":3,"weighted_min":0.824584411441534,"weighted_max":0.8269060362244356},"image":{"macro":0.7915966459326963,"weighted":0.9319175330016316,"macro_sd":0.0027212752674294688,"macro_min":0.7897190431138774,"macro_max":0.7947174864852459,"weighted_sd":0.0003808741518926863,"rows":123605,"datasets":8,"run_count":3,"weighted_min":0.931483354233243,"weighted_max":0.9321952995428987},"all":{"macro":0.8127785954810944,"weighted":0.8985230321444639,"macro_sd":0.0006465454546948455,"macro_min":0.8121344018444133,"macro_max":0.813427467365545,"weighted_sd":0.00016279808354953474,"rows":180031,"datasets":26,"run_count":3,"weighted_min":0.8983952763690698,"weighted_max":0.8987063339091601}},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.718422748509747,"runs":[0.7266795553407444,0.7135089415176413,0.7150797486708554],"min":0.7135089415176413,"max":0.7266795553407444,"run_count":3},"contract_nli":{"rows":1173,"kind":"text","mean":0.8570616652458085,"runs":[0.8593350383631714,0.8499573742540495,0.8618925831202046],"min":0.8499573742540495,"max":0.8618925831202046,"run_count":3},"wikiqa":{"rows":6160,"kind":"text","mean":0.9580086580086581,"runs":[0.9577922077922078,0.9581168831168831,0.9581168831168831],"min":0.9577922077922078,"max":0.9581168831168831,"run_count":3},"esci_us":{"rows":1145,"kind":"text","mean":0.5737991266375545,"runs":[0.588646288209607,0.5668122270742358,0.5659388646288209],"min":0.5659388646288209,"max":0.588646288209607,"run_count":3},"esci_es":{"rows":1482,"kind":"text","mean":0.6084120557804769,"runs":[0.6126855600539811,0.6126855600539811,0.5998650472334683],"min":0.5998650472334683,"max":0.6126855600539811,"run_count":3},"esci_jp":{"rows":1633,"kind":"text","mean":0.6319657072872015,"runs":[0.6301285976729945,0.646050214329455,0.6197183098591549],"min":0.6197183098591549,"max":0.646050214329455,"run_count":3},"mail_spam":{"rows":854,"kind":"text","mean":0.9867291178766587,"runs":[0.9859484777517564,0.9882903981264637,0.9859484777517564],"min":0.9859484777517564,"max":0.9882903981264637,"run_count":3},"mail_phishing":{"rows":1050,"kind":"text","mean":0.9926984126984127,"runs":[0.9923809523809524,0.9933333333333333,0.9923809523809524],"min":0.9923809523809524,"max":0.9933333333333333,"run_count":3},"sms_spam":{"rows":794,"kind":"text","mean":0.9941225860621327,"runs":[0.9937027707808564,0.9949622166246851,0.9937027707808564],"min":0.9937027707808564,"max":0.9949622166246851,"run_count":3},"massive_en-US":{"rows":2970,"kind":"text","mean":0.8613916947250281,"runs":[0.8632996632996633,0.8548821548821549,0.865993265993266],"min":0.8548821548821549,"max":0.865993265993266,"run_count":3},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.8419491041880635,"runs":[0.8418349880178021,0.8404655939746662,0.843546730571722],"min":0.8404655939746662,"max":0.843546730571722,"run_count":3},"boolq":{"rows":3270,"kind":"text","mean":0.8372069317023446,"runs":[0.8360856269113149,0.8385321100917431,0.8370030581039756],"min":0.8360856269113149,"max":0.8385321100917431,"run_count":3},"ag_news":{"rows":7600,"kind":"text","mean":0.9010087719298245,"runs":[0.8989473684210526,0.9025,0.901578947368421],"min":0.8989473684210526,"max":0.9025,"run_count":3},"emotion":{"rows":2000,"kind":"text","mean":0.8401666666666667,"runs":[0.8465,0.8375,0.8365],"min":0.8365,"max":0.8465,"run_count":3},"banking77":{"rows":3080,"kind":"text","mean":0.8461038961038961,"runs":[0.8474025974025974,0.8483766233766233,0.8425324675324676],"min":0.8425324675324676,"max":0.8483766233766233,"run_count":3},"xnli_en":{"rows":5009,"kind":"text","mean":0.8512011712251281,"runs":[0.8500698742263925,0.8500698742263925,0.8534637652225994],"min":0.8500698742263925,"max":0.8534637652225994,"run_count":3},"xnli_zh":{"rows":5009,"kind":"text","mean":0.7655553337326145,"runs":[0.7654222399680575,0.7646236773807147,0.7666200838490717],"min":0.7646236773807147,"max":0.7666200838490717,"run_count":3},"typed_decisions":{"rows":2000,"kind":"text","mean":0.7336666666666667,"runs":[0.7345,0.732,0.7345],"min":0.732,"max":0.7345,"run_count":3},"aokvqa":{"rows":1138,"kind":"image","mean":0.7867603983596952,"runs":[0.7855887521968365,0.7838312829525483,0.7908611599297012],"min":0.7838312829525483,"max":0.7908611599297012,"run_count":3},"scienceqa":{"rows":2017,"kind":"image","mean":0.8958849776896382,"runs":[0.8889439762022806,0.90233019335647,0.8963807635101636],"min":0.8889439762022806,"max":0.90233019335647,"run_count":3},"vqav2_yesno":{"rows":8102,"kind":"image","mean":0.8122685756603308,"runs":[0.8143668230066651,0.8131325598617626,0.8093063441125647],"min":0.8093063441125647,"max":0.8143668230066651,"run_count":3},"clevr_exist":{"rows":20196,"kind":"image","mean":0.9791542879778175,"runs":[0.9787086551792434,0.9788076846900376,0.9799465240641712],"min":0.9787086551792434,"max":0.9799465240641712,"run_count":3},"clevr_attribute":{"rows":53734,"kind":"image","mean":0.9879033758886365,"runs":[0.987847545315815,0.9885361223806156,0.9873264599694793],"min":0.9873264599694793,"max":0.9885361223806156,"run_count":3},"clevr_count":{"rows":35422,"kind":"image","mean":0.8824929892910244,"runs":[0.8815707752244368,0.8827564790243352,0.8831517136243012],"min":0.8815707752244368,"max":0.8831517136243012,"run_count":3},"screenqa_choice":{"rows":848,"kind":"image","mean":0.2578616352201258,"runs":[0.2535377358490566,0.24764150943396226,0.27240566037735847],"min":0.24764150943396226,"max":0.27240566037735847,"run_count":3},"screenqa_noul":{"rows":2148,"kind":"image","mean":0.7304469273743016,"runs":[0.7271880819366853,0.7257914338919925,0.7383612662942272],"min":0.7257914338919925,"max":0.7383612662942272,"run_count":3}}},{"id":"jolt_l2_2b","name":"Jolt 2B L2","family":"Jolt","base":"Qwen3.5-2B","note":"Jolt 2B transfer using the L2 objective, three matched seeds.","run_count":3,"runs":[{"seed":"42","scope":{}},{"seed":"43","scope":{}},{"seed":"44","scope":{}}],"scores":{"text":{"macro":0.8351972018453758,"weighted":0.8411902314535853,"macro_sd":0.001377254530902626,"macro_min":0.8338596432913975,"macro_max":0.8366109864101995,"weighted_sd":0.0010796082947944399,"rows":56426,"datasets":18,"run_count":3,"weighted_min":0.8399496685924929,"weighted_max":0.8419168468436536},"image":{"macro":0.8191955343382537,"weighted":0.952941493736769,"macro_sd":0.00554670635349887,"macro_min":0.8132689854852595,"macro_max":0.8242618934971736,"weighted_sd":0.0005798164883094751,"rows":123605,"datasets":8,"run_count":3,"weighted_min":0.9524857408680879,"weighted_max":0.9535941102706201},"all":{"macro":0.8302736118431843,"weighted":0.9179159885427141,"macro_sd":0.001653374289655098,"macro_min":0.8283972864962931,"macro_max":0.8315170595247005,"weighted_sd":0.0005713501968624108,"rows":180031,"datasets":26,"run_count":3,"weighted_min":0.9173920047102999,"weighted_max":0.9185251428920574}},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.750362493958434,"runs":[0.7533832769453842,0.7415418076365394,0.7561623972933784],"min":0.7415418076365394,"max":0.7561623972933784,"run_count":3},"contract_nli":{"rows":1173,"kind":"text","mean":0.8607558965615231,"runs":[0.8576300085251491,0.8627450980392157,0.8618925831202046],"min":0.8576300085251491,"max":0.8627450980392157,"run_count":3},"wikiqa":{"rows":6160,"kind":"text","mean":0.9616341991341991,"runs":[0.962012987012987,0.9618506493506493,0.961038961038961],"min":0.961038961038961,"max":0.962012987012987,"run_count":3},"esci_us":{"rows":1145,"kind":"text","mean":0.5895196506550219,"runs":[0.5877729257641922,0.6008733624454149,0.5799126637554585],"min":0.5799126637554585,"max":0.6008733624454149,"run_count":3},"esci_es":{"rows":1482,"kind":"text","mean":0.6401259559154296,"runs":[0.6322537112010796,0.6545209176788124,0.6336032388663968],"min":0.6322537112010796,"max":0.6545209176788124,"run_count":3},"esci_jp":{"rows":1633,"kind":"text","mean":0.6315574607062665,"runs":[0.6325780771586038,0.6362522963870177,0.6258420085731782],"min":0.6258420085731782,"max":0.6362522963870177,"run_count":3},"mail_spam":{"rows":854,"kind":"text","mean":0.9898516783762684,"runs":[0.9894613583138173,0.990632318501171,0.9894613583138173],"min":0.9894613583138173,"max":0.990632318501171,"run_count":3},"mail_phishing":{"rows":1050,"kind":"text","mean":0.9920634920634921,"runs":[0.9914285714285714,0.9942857142857143,0.9904761904761905],"min":0.9904761904761905,"max":0.9942857142857143,"run_count":3},"sms_spam":{"rows":794,"kind":"text","mean":0.9953820319059613,"runs":[0.9937027707808564,0.9974811083123426,0.9949622166246851],"min":0.9937027707808564,"max":0.9974811083123426,"run_count":3},"massive_en-US":{"rows":2970,"kind":"text","mean":0.8723905723905724,"runs":[0.8703703703703703,0.8723905723905724,0.8744107744107744],"min":0.8703703703703703,"max":0.8744107744107744,"run_count":3},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.8493666552550496,"runs":[0.8497090037658336,0.8476549127011298,0.8507360492981856],"min":0.8476549127011298,"max":0.8507360492981856,"run_count":3},"boolq":{"rows":3270,"kind":"text","mean":0.8760448521916411,"runs":[0.8776758409785933,0.8761467889908257,0.8743119266055046],"min":0.8743119266055046,"max":0.8776758409785933,"run_count":3},"ag_news":{"rows":7600,"kind":"text","mean":0.9042543859649124,"runs":[0.9047368421052632,0.9042105263157895,0.9038157894736842],"min":0.9038157894736842,"max":0.9047368421052632,"run_count":3},"emotion":{"rows":2000,"kind":"text","mean":0.8330000000000001,"runs":[0.841,0.84,0.818],"min":0.818,"max":0.841,"run_count":3},"banking77":{"rows":3080,"kind":"text","mean":0.8658008658008658,"runs":[0.8600649350649351,0.8707792207792208,0.8665584415584415],"min":0.8600649350649351,"max":0.8707792207792208,"run_count":3},"xnli_en":{"rows":5009,"kind":"text","mean":0.8734943767884474,"runs":[0.8762227989618686,0.8684368137352765,0.8758235176681972],"min":0.8684368137352765,"max":0.8762227989618686,"run_count":3},"xnli_zh":{"rows":5009,"kind":"text","mean":0.7897783988820124,"runs":[0.7921740866440408,0.7801956478338989,0.7969654621680974],"min":0.7801956478338989,"max":0.7969654621680974,"run_count":3},"typed_decisions":{"rows":2000,"kind":"text","mean":0.7581666666666668,"runs":[0.76,0.759,0.7555],"min":0.7555,"max":0.76,"run_count":3},"aokvqa":{"rows":1138,"kind":"image","mean":0.8482718219097832,"runs":[0.8409490333919156,0.8523725834797891,0.851493848857645],"min":0.8409490333919156,"max":0.8523725834797891,"run_count":3},"scienceqa":{"rows":2017,"kind":"image","mean":0.9416625351181622,"runs":[0.9400099157164105,0.9424888448190382,0.9424888448190382],"min":0.9400099157164105,"max":0.9424888448190382,"run_count":3},"vqav2_yesno":{"rows":8102,"kind":"image","mean":0.858430017279684,"runs":[0.8597877067390768,0.8583065909651938,0.8571957541347816],"min":0.8571957541347816,"max":0.8597877067390768,"run_count":3},"clevr_exist":{"rows":20196,"kind":"image","mean":0.9887106357694592,"runs":[0.9894038423450188,0.9872251931075461,0.989502871855813],"min":0.9872251931075461,"max":0.989502871855813,"run_count":3},"clevr_attribute":{"rows":53734,"kind":"image","mean":0.9938090098137741,"runs":[0.9930397885882309,0.9941191796627833,0.9942680611903079],"min":0.9930397885882309,"max":0.9942680611903079,"run_count":3},"clevr_count":{"rows":35422,"kind":"image","mean":0.9259405642444433,"runs":[0.9263169781491728,0.9254700468635312,0.9260346677206256],"min":0.9254700468635312,"max":0.9263169781491728,"run_count":3},"screenqa_choice":{"rows":848,"kind":"image","mean":0.26179245283018865,"runs":[0.2275943396226415,0.267688679245283,0.29009433962264153],"min":0.2275943396226415,"max":0.29009433962264153,"run_count":3},"screenqa_noul":{"rows":2148,"kind":"image","mean":0.7349472377405338,"runs":[0.729050279329609,0.7327746741154563,0.7430167597765364],"min":0.729050279329609,"max":0.7430167597765364,"run_count":3}}},{"id":"jolt_l2_4b","name":"Jolt 4B L2","family":"Jolt","base":"Qwen3.5-4B","note":"Jolt L2; BF16 base for dashboard test evaluation; seed 42, step 3600. One checkpoint evaluated on the frozen test split.","run_count":1,"runs":[{"seed":"42","scope":{}}],"scores":{"text":{"macro":0.8511217479523615,"weighted":0.859107503633077,"macro_sd":null,"macro_min":0.8511217479523615,"macro_max":0.8511217479523615,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.859107503633077,"weighted_max":0.859107503633077},"image":{"macro":0.8396383485107799,"weighted":0.9692488167954371,"macro_sd":null,"macro_min":0.8396383485107799,"macro_max":0.8396383485107799,"weighted_sd":null,"rows":123605,"datasets":8,"run_count":1,"weighted_min":0.9692488167954371,"weighted_max":0.9692488167954371},"all":{"macro":0.8475883942780288,"weighted":0.9347279079714049,"macro_sd":null,"macro_min":0.8475883942780288,"macro_max":0.8475883942780288,"weighted_sd":null,"rows":180031,"datasets":26,"run_count":1,"weighted_min":0.9347279079714049,"weighted_max":0.9347279079714049}},"by_dataset":{"ag_news":{"rows":7600,"kind":"text","mean":0.9126315789473685,"runs":[0.9126315789473685],"min":0.9126315789473685,"max":0.9126315789473685,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":0.8725834797891037,"runs":[0.8725834797891037],"min":0.8725834797891037,"max":0.8725834797891037,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.8935064935064935,"runs":[0.8935064935064935],"min":0.8935064935064935,"max":0.8935064935064935,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.9073394495412844,"runs":[0.9073394495412844],"min":0.9073394495412844,"max":0.9073394495412844,"run_count":1},"clevr_attribute":{"rows":53734,"kind":"image","mean":0.9987903375888637,"runs":[0.9987903375888637],"min":0.9987903375888637,"max":0.9987903375888637,"run_count":1},"clevr_count":{"rows":35422,"kind":"image","mean":0.9630455649031675,"runs":[0.9630455649031675],"min":0.9630455649031675,"max":0.9630455649031675,"run_count":1},"clevr_exist":{"rows":20196,"kind":"image","mean":0.9947019211725094,"runs":[0.9947019211725094],"min":0.9947019211725094,"max":0.9947019211725094,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.8797953964194374,"runs":[0.8797953964194374],"min":0.8797953964194374,"max":0.8797953964194374,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.85,"runs":[0.85],"min":0.85,"max":0.85,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.6538461538461539,"runs":[0.6538461538461539],"min":0.6538461538461539,"max":0.6538461538461539,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.6466625842008573,"runs":[0.6466625842008573],"min":0.6466625842008573,"max":0.6466625842008573,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.6096069868995633,"runs":[0.6096069868995633],"min":0.6096069868995633,"max":0.6096069868995633,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.9904761904761905,"runs":[0.9904761904761905],"min":0.9904761904761905,"max":0.9904761904761905,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.990632318501171,"runs":[0.990632318501171],"min":0.990632318501171,"max":0.990632318501171,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.8892255892255893,"runs":[0.8892255892255893],"min":0.8892255892255893,"max":0.8892255892255893,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.860664156110921,"runs":[0.860664156110921],"min":0.860664156110921,"max":0.860664156110921,"run_count":1},"scienceqa":{"rows":2017,"kind":"image","mean":0.9752107089737233,"runs":[0.9752107089737233],"min":0.9752107089737233,"max":0.9752107089737233,"run_count":1},"screenqa_choice":{"rows":848,"kind":"image","mean":0.2841981132075472,"runs":[0.2841981132075472],"min":0.2841981132075472,"max":0.2841981132075472,"run_count":1},"screenqa_noul":{"rows":2148,"kind":"image","mean":0.749534450651769,"runs":[0.749534450651769],"min":0.749534450651769,"max":0.749534450651769,"run_count":1},"sharc":{"rows":8276,"kind":"text","mean":0.7664330594490092,"runs":[0.7664330594490092],"min":0.7664330594490092,"max":0.7664330594490092,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.9937027707808564,"runs":[0.9937027707808564],"min":0.9937027707808564,"max":0.9937027707808564,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.773,"runs":[0.773],"min":0.773,"max":0.773,"run_count":1},"vqav2_yesno":{"rows":8102,"kind":"image","mean":0.8790422117995557,"runs":[0.8790422117995557],"min":0.8790422117995557,"max":0.8790422117995557,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.9637987012987013,"runs":[0.9637987012987013],"min":0.9637987012987013,"max":0.9637987012987013,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.9057696146935517,"runs":[0.9057696146935517],"min":0.9057696146935517,"max":0.9057696146935517,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.8331004192453584,"runs":[0.8331004192453584],"min":0.8331004192453584,"max":0.8331004192453584,"run_count":1}}},{"id":"jolt_l2_9b","name":"Jolt 9B L2","family":"Jolt","base":"Qwen3.5-9B","note":"Jolt L2; NF4 base with BF16 compute for dashboard test evaluation; seed 42, step 3600. One checkpoint evaluated on the frozen test split.","run_count":1,"runs":[{"seed":"42","scope":{}}],"scores":{"text":{"macro":0.8564034280991439,"weighted":0.8643533123028391,"macro_sd":null,"macro_min":0.8564034280991439,"macro_max":0.8564034280991439,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.8643533123028391,"weighted_max":0.8643533123028391},"image":{"macro":0.8414462488133791,"weighted":0.9720804174588407,"macro_sd":null,"macro_min":0.8414462488133791,"macro_max":0.8414462488133791,"weighted_sd":null,"rows":123605,"datasets":8,"run_count":1,"weighted_min":0.9720804174588407,"weighted_max":0.9720804174588407},"all":{"macro":0.8518012190881394,"weighted":0.9383161788803039,"macro_sd":null,"macro_min":0.8518012190881394,"macro_max":0.8518012190881394,"weighted_sd":null,"rows":180031,"datasets":26,"run_count":1,"weighted_min":0.9383161788803039,"weighted_max":0.9383161788803039}},"by_dataset":{"ag_news":{"rows":7600,"kind":"text","mean":0.9126315789473685,"runs":[0.9126315789473685],"min":0.9126315789473685,"max":0.9126315789473685,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":0.8857644991212654,"runs":[0.8857644991212654],"min":0.8857644991212654,"max":0.8857644991212654,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.8915584415584416,"runs":[0.8915584415584416],"min":0.8915584415584416,"max":0.8915584415584416,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.9131498470948012,"runs":[0.9131498470948012],"min":0.9131498470948012,"max":0.9131498470948012,"run_count":1},"clevr_attribute":{"rows":53734,"kind":"image","mean":0.9989764394982692,"runs":[0.9989764394982692],"min":0.9989764394982692,"max":0.9989764394982692,"run_count":1},"clevr_count":{"rows":35422,"kind":"image","mean":0.9700468635311389,"runs":[0.9700468635311389],"min":0.9700468635311389,"max":0.9700468635311389,"run_count":1},"clevr_exist":{"rows":20196,"kind":"image","mean":0.9957417310358487,"runs":[0.9957417310358487],"min":0.9957417310358487,"max":0.9957417310358487,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.8738277919863597,"runs":[0.8738277919863597],"min":0.8738277919863597,"max":0.8738277919863597,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.854,"runs":[0.854],"min":0.854,"max":0.854,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.6781376518218624,"runs":[0.6781376518218624],"min":0.6781376518218624,"max":0.6781376518218624,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.6582976117575016,"runs":[0.6582976117575016],"min":0.6582976117575016,"max":0.6582976117575016,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.6366812227074236,"runs":[0.6366812227074236],"min":0.6366812227074236,"max":0.6366812227074236,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.9904761904761905,"runs":[0.9904761904761905],"min":0.9904761904761905,"max":0.9904761904761905,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.9882903981264637,"runs":[0.9882903981264637],"min":0.9882903981264637,"max":0.9882903981264637,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.8902356902356903,"runs":[0.8902356902356903],"min":0.8902356902356903,"max":0.8902356902356903,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.8640876412187607,"runs":[0.8640876412187607],"min":0.8640876412187607,"max":0.8640876412187607,"run_count":1},"scienceqa":{"rows":2017,"kind":"image","mean":0.9781854238968766,"runs":[0.9781854238968766],"min":0.9781854238968766,"max":0.9781854238968766,"run_count":1},"screenqa_choice":{"rows":848,"kind":"image","mean":0.27004716981132076,"runs":[0.27004716981132076],"min":0.27004716981132076,"max":0.27004716981132076,"run_count":1},"screenqa_noul":{"rows":2148,"kind":"image","mean":0.74487895716946,"runs":[0.74487895716946],"min":0.74487895716946,"max":0.74487895716946,"run_count":1},"sharc":{"rows":8276,"kind":"text","mean":0.777428709521508,"runs":[0.777428709521508],"min":0.777428709521508,"max":0.777428709521508,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.9949622166246851,"runs":[0.9949622166246851],"min":0.9949622166246851,"max":0.9949622166246851,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.769,"runs":[0.769],"min":0.769,"max":0.769,"run_count":1},"vqav2_yesno":{"rows":8102,"kind":"image","mean":0.8879289064428536,"runs":[0.8879289064428536],"min":0.8879289064428536,"max":0.8879289064428536,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.9652597402597403,"runs":[0.9652597402597403],"min":0.9652597402597403,"max":0.9652597402597403,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.9147534438011579,"runs":[0.9147534438011579],"min":0.9147534438011579,"max":0.9147534438011579,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.8424835296466361,"runs":[0.8424835296466361],"min":0.8424835296466361,"max":0.8424835296466361,"run_count":1}}},{"id":"dohnuts_release","name":"Dohnuts 0.8B (released)","family":"Dohnuts","base":"Qwen3.5-0.8B","note":"Released Dohnuts checkpoint evaluated as a historical reference. This is a separately trained checkpoint, not the Jolt retrain.","run_count":1,"runs":[{"seed":"single","scope":{}}],"scores":{"text":{"macro":0.7864329665207999,"weighted":0.792542444972176,"macro_sd":null,"macro_min":0.7864329665207999,"macro_max":0.7864329665207999,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.792542444972176,"weighted_max":0.792542444972176},"image":{"macro":0.7703751188262005,"weighted":0.9138141660936047,"macro_sd":null,"macro_min":0.7703751188262005,"macro_max":0.7703751188262005,"weighted_sd":null,"rows":123605,"datasets":8,"run_count":1,"weighted_min":0.9138141660936047,"weighted_max":0.9138141660936047},"all":{"macro":0.781492090307077,"weighted":0.8758047225200104,"macro_sd":null,"macro_min":0.781492090307077,"macro_max":0.781492090307077,"weighted_sd":null,"rows":180031,"datasets":26,"run_count":1,"weighted_min":0.8758047225200104,"weighted_max":0.8758047225200104}},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.6684388593523442,"runs":[0.6684388593523442],"min":0.6684388593523442,"max":0.6684388593523442,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.815004262574595,"runs":[0.815004262574595],"min":0.815004262574595,"max":0.815004262574595,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.9594155844155844,"runs":[0.9594155844155844],"min":0.9594155844155844,"max":0.9594155844155844,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.5048034934497817,"runs":[0.5048034934497817],"min":0.5048034934497817,"max":0.5048034934497817,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.5614035087719298,"runs":[0.5614035087719298],"min":0.5614035087719298,"max":0.5614035087719298,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.6007348438456828,"runs":[0.6007348438456828],"min":0.6007348438456828,"max":0.6007348438456828,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.9871194379391101,"runs":[0.9871194379391101],"min":0.9871194379391101,"max":0.9871194379391101,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.9923809523809524,"runs":[0.9923809523809524],"min":0.9923809523809524,"max":0.9923809523809524,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.9937027707808564,"runs":[0.9937027707808564],"min":0.9937027707808564,"max":0.9937027707808564,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.7915824915824916,"runs":[0.7915824915824916],"min":0.7915824915824916,"max":0.7915824915824916,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.7548784662786717,"runs":[0.7548784662786717],"min":0.7548784662786717,"max":0.7548784662786717,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.8290519877675842,"runs":[0.8290519877675842],"min":0.8290519877675842,"max":0.8290519877675842,"run_count":1},"ag_news":{"rows":7600,"kind":"text","mean":0.895,"runs":[0.895],"min":0.895,"max":0.895,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.764,"runs":[0.764],"min":0.764,"max":0.764,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.7295454545454545,"runs":[0.7295454545454545],"min":0.7295454545454545,"max":0.7295454545454545,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.8384907167099221,"runs":[0.8384907167099221],"min":0.8384907167099221,"max":0.8384907167099221,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.755240566979437,"runs":[0.755240566979437],"min":0.755240566979437,"max":0.755240566979437,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.715,"runs":[0.715],"min":0.715,"max":0.715,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":0.7838312829525483,"runs":[0.7838312829525483],"min":0.7838312829525483,"max":0.7838312829525483,"run_count":1},"scienceqa":{"rows":2017,"kind":"image","mean":0.8448190381755082,"runs":[0.8448190381755082],"min":0.8448190381755082,"max":0.8448190381755082,"run_count":1},"vqav2_yesno":{"rows":8102,"kind":"image","mean":0.8090594914835842,"runs":[0.8090594914835842],"min":0.8090594914835842,"max":0.8090594914835842,"run_count":1},"clevr_exist":{"rows":20196,"kind":"image","mean":0.9740047534165182,"runs":[0.9740047534165182],"min":0.9740047534165182,"max":0.9740047534165182,"run_count":1},"clevr_attribute":{"rows":53734,"kind":"image","mean":0.9834369300629024,"runs":[0.9834369300629024],"min":0.9834369300629024,"max":0.9834369300629024,"run_count":1},"clevr_count":{"rows":35422,"kind":"image","mean":0.8347919372141607,"runs":[0.8347919372141607],"min":0.8347919372141607,"max":0.8347919372141607,"run_count":1},"screenqa_choice":{"rows":848,"kind":"image","mean":0.22169811320754718,"runs":[0.22169811320754718],"min":0.22169811320754718,"max":0.22169811320754718,"run_count":1},"screenqa_noul":{"rows":2148,"kind":"image","mean":0.7113594040968343,"runs":[0.7113594040968343],"min":0.7113594040968343,"max":0.7113594040968343,"run_count":1}}},{"id":"laya_multi","name":"Laya Multilingual","family":"Laya","base":"Laya multilingual","note":"Single checkpoint. Its complete training-data manifest is not public, so test-set exposure cannot be fully audited.","run_count":1,"runs":[{"seed":"single","scope":{}}],"scores":{"text":{"macro":0.5624994432347215,"weighted":0.6175699145783858,"macro_sd":null,"macro_min":0.5624994432347215,"macro_max":0.5624994432347215,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.6175699145783858,"weighted_max":0.6175699145783858},"image":null,"all":null},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.3284195263412276,"runs":[0.3284195263412276],"min":0.3284195263412276,"max":0.3284195263412276,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.22762148337595908,"runs":[0.22762148337595908],"min":0.22762148337595908,"max":0.22762148337595908,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.9412337662337662,"runs":[0.9412337662337662],"min":0.9412337662337662,"max":0.9412337662337662,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.25589519650655024,"runs":[0.25589519650655024],"min":0.25589519650655024,"max":0.25589519650655024,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.29284750337381915,"runs":[0.29284750337381915],"min":0.29284750337381915,"max":0.29284750337381915,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.288426209430496,"runs":[0.288426209430496],"min":0.288426209430496,"max":0.288426209430496,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.9789227166276346,"runs":[0.9789227166276346],"min":0.9789227166276346,"max":0.9789227166276346,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.9047619047619048,"runs":[0.9047619047619048],"min":0.9047619047619048,"max":0.9047619047619048,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.5617128463476071,"runs":[0.5617128463476071],"min":0.5617128463476071,"max":0.5617128463476071,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.48114478114478115,"runs":[0.48114478114478115],"min":0.48114478114478115,"max":0.48114478114478115,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.39438548442314275,"runs":[0.39438548442314275],"min":0.39438548442314275,"max":0.39438548442314275,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.6859327217125383,"runs":[0.6859327217125383],"min":0.6859327217125383,"max":0.6859327217125383,"run_count":1},"ag_news":{"rows":7600,"kind":"text","mean":0.908157894736842,"runs":[0.908157894736842],"min":0.908157894736842,"max":0.908157894736842,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.5195,"runs":[0.5195],"min":0.5195,"max":0.5195,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.45811688311688314,"runs":[0.45811688311688314],"min":0.45811688311688314,"max":0.45811688311688314,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.8253144340187663,"runs":[0.8253144340187663],"min":0.8253144340187663,"max":0.8253144340187663,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.7240966260730685,"runs":[0.7240966260730685],"min":0.7240966260730685,"max":0.7240966260730685,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.3485,"runs":[0.3485],"min":0.3485,"max":0.3485,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"scienceqa":{"rows":2017,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"vqav2_yesno":{"rows":8102,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_exist":{"rows":20196,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_attribute":{"rows":53734,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_count":{"rows":35422,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_choice":{"rows":848,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_noul":{"rows":2148,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0}}},{"id":"laya_vision","name":"Laya Vision","family":"Laya","base":"Laya Vision","note":"Single checkpoint. Text results are out-of-domain diagnostics. Published fine-tuning sources overlap A-OKVQA and VQAv2 test-source splits.","run_count":1,"runs":[{"seed":"single","scope":{}}],"scores":{"text":{"macro":0.419315890304322,"weighted":0.3897848509552334,"macro_sd":null,"macro_min":0.419315890304322,"macro_max":0.419315890304322,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.3897848509552334,"weighted_max":0.3897848509552334},"image":{"macro":0.515280907467984,"weighted":0.45876784919703895,"macro_sd":null,"macro_min":0.515280907467984,"macro_max":0.515280907467984,"weighted_sd":null,"rows":123605,"datasets":8,"run_count":1,"weighted_min":0.45876784919703895,"weighted_max":0.45876784919703895},"all":{"macro":0.44884358789314105,"weighted":0.4371469358055002,"macro_sd":null,"macro_min":0.44884358789314105,"macro_max":0.44884358789314105,"weighted_sd":null,"rows":180031,"datasets":26,"run_count":1,"weighted_min":0.4371469358055002,"weighted_max":0.4371469358055002}},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.347027549540841,"runs":[0.347027549540841],"min":0.347027549540841,"max":0.347027549540841,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.4373401534526854,"runs":[0.4373401534526854],"min":0.4373401534526854,"max":0.4373401534526854,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.04756493506493507,"runs":[0.04756493506493507],"min":0.04756493506493507,"max":0.04756493506493507,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.3720524017467249,"runs":[0.3720524017467249],"min":0.3720524017467249,"max":0.3720524017467249,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.36774628879892035,"runs":[0.36774628879892035],"min":0.36774628879892035,"max":0.36774628879892035,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.3998775260257195,"runs":[0.3998775260257195],"min":0.3998775260257195,"max":0.3998775260257195,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.4613583138173302,"runs":[0.4613583138173302],"min":0.4613583138173302,"max":0.4613583138173302,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.6285714285714286,"runs":[0.6285714285714286],"min":0.6285714285714286,"max":0.6285714285714286,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.8161209068010076,"runs":[0.8161209068010076],"min":0.8161209068010076,"max":0.8161209068010076,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.3053872053872054,"runs":[0.3053872053872054],"min":0.3053872053872054,"max":0.3053872053872054,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.1359123587812393,"runs":[0.1359123587812393],"min":0.1359123587812393,"max":0.1359123587812393,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.6446483180428134,"runs":[0.6446483180428134],"min":0.6446483180428134,"max":0.6446483180428134,"run_count":1},"ag_news":{"rows":7600,"kind":"text","mean":0.7294736842105263,"runs":[0.7294736842105263],"min":0.7294736842105263,"max":0.7294736842105263,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.487,"runs":[0.487],"min":0.487,"max":0.487,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.2948051948051948,"runs":[0.2948051948051948],"min":0.2948051948051948,"max":0.2948051948051948,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.3333998802156119,"runs":[0.3333998802156119],"min":0.3333998802156119,"max":0.3333998802156119,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.3333998802156119,"runs":[0.3333998802156119],"min":0.3333998802156119,"max":0.3333998802156119,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.406,"runs":[0.406],"min":0.406,"max":0.406,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":0.6221441124780316,"runs":[0.6221441124780316],"min":0.6221441124780316,"max":0.6221441124780316,"run_count":1},"scienceqa":{"rows":2017,"kind":"image","mean":0.8869608329201785,"runs":[0.8869608329201785],"min":0.8869608329201785,"max":0.8869608329201785,"run_count":1},"vqav2_yesno":{"rows":8102,"kind":"image","mean":0.7696864971611947,"runs":[0.7696864971611947],"min":0.7696864971611947,"max":0.7696864971611947,"run_count":1},"clevr_exist":{"rows":20196,"kind":"image","mean":0.5732323232323232,"runs":[0.5732323232323232],"min":0.5732323232323232,"max":0.5732323232323232,"run_count":1},"clevr_attribute":{"rows":53734,"kind":"image","mean":0.5970893661368966,"runs":[0.5970893661368966],"min":0.5970893661368966,"max":0.5970893661368966,"run_count":1},"clevr_count":{"rows":35422,"kind":"image","mean":0.08940771272090792,"runs":[0.08940771272090792],"min":0.08940771272090792,"max":0.08940771272090792,"run_count":1},"screenqa_choice":{"rows":848,"kind":"image","mean":0.08372641509433962,"runs":[0.08372641509433962],"min":0.08372641509433962,"max":0.08372641509433962,"run_count":1},"screenqa_noul":{"rows":2148,"kind":"image","mean":0.5,"runs":[0.5],"min":0.5,"max":0.5,"run_count":1}}},{"id":"kev_08","name":"Kev 0.8B","family":"Kev","base":"Kev 0.8B","note":"Single evaluation run. Kev training-source overlap is documented for AG News, Banking77, and BoolQ; XNLI is related to its MultiNLI source.","run_count":1,"runs":[{"seed":"single","scope":{}}],"scores":{"text":{"macro":0.6217632287540448,"weighted":0.6541310743274377,"macro_sd":null,"macro_min":0.6217632287540448,"macro_max":0.6217632287540448,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.6541310743274377,"weighted_max":0.6541310743274377},"image":null,"all":null},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.3878685355244079,"runs":[0.3878685355244079],"min":0.3878685355244079,"max":0.3878685355244079,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.5174765558397272,"runs":[0.5174765558397272],"min":0.5174765558397272,"max":0.5174765558397272,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.7055194805194805,"runs":[0.7055194805194805],"min":0.7055194805194805,"max":0.7055194805194805,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.39039301310043667,"runs":[0.39039301310043667],"min":0.39039301310043667,"max":0.39039301310043667,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.3974358974358974,"runs":[0.3974358974358974],"min":0.3974358974358974,"max":0.3974358974358974,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.5058175137783221,"runs":[0.5058175137783221],"min":0.5058175137783221,"max":0.5058175137783221,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.5971896955503513,"runs":[0.5971896955503513],"min":0.5971896955503513,"max":0.5971896955503513,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.6857142857142857,"runs":[0.6857142857142857],"min":0.6857142857142857,"max":0.6857142857142857,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.8073047858942065,"runs":[0.8073047858942065],"min":0.8073047858942065,"max":0.8073047858942065,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.6191919191919192,"runs":[0.6191919191919192],"min":0.6191919191919192,"max":0.6191919191919192,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.5994522423827456,"runs":[0.5994522423827456],"min":0.5994522423827456,"max":0.5994522423827456,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.8003058103975536,"runs":[0.8003058103975536],"min":0.8003058103975536,"max":0.8003058103975536,"run_count":1},"ag_news":{"rows":7600,"kind":"text","mean":0.890921052631579,"runs":[0.890921052631579],"min":0.890921052631579,"max":0.890921052631579,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.499,"runs":[0.499],"min":0.499,"max":0.499,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.8064935064935065,"runs":[0.8064935064935065],"min":0.8064935064935065,"max":0.8064935064935065,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.81493312038331,"runs":[0.81493312038331],"min":0.81493312038331,"max":0.81493312038331,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.7107207027350768,"runs":[0.7107207027350768],"min":0.7107207027350768,"max":0.7107207027350768,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.456,"runs":[0.456],"min":0.456,"max":0.456,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"scienceqa":{"rows":2017,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"vqav2_yesno":{"rows":8102,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_exist":{"rows":20196,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_attribute":{"rows":53734,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_count":{"rows":35422,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_choice":{"rows":848,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_noul":{"rows":2148,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0}}},{"id":"kev_4","name":"Kev 4B","family":"Kev","base":"Kev 4B","note":"Single evaluation run. Kev training-source overlap is documented for AG News, Banking77, and BoolQ; XNLI is related to its MultiNLI source.","run_count":1,"runs":[{"seed":"single","scope":{}}],"scores":{"text":{"macro":0.7455476250486927,"weighted":0.7756885123879063,"macro_sd":null,"macro_min":0.7455476250486927,"macro_max":0.7455476250486927,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.7756885123879063,"weighted_max":0.7756885123879063},"image":null,"all":null},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.6468100531657806,"runs":[0.6468100531657806],"min":0.6468100531657806,"max":0.6468100531657806,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.7749360613810742,"runs":[0.7749360613810742],"min":0.7749360613810742,"max":0.7749360613810742,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.9412337662337662,"runs":[0.9412337662337662],"min":0.9412337662337662,"max":0.9412337662337662,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.4794759825327511,"runs":[0.4794759825327511],"min":0.4794759825327511,"max":0.4794759825327511,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.47233468286099867,"runs":[0.47233468286099867],"min":0.47233468286099867,"max":0.47233468286099867,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.5762400489895897,"runs":[0.5762400489895897],"min":0.5762400489895897,"max":0.5762400489895897,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.9543325526932084,"runs":[0.9543325526932084],"min":0.9543325526932084,"max":0.9543325526932084,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.700952380952381,"runs":[0.700952380952381],"min":0.700952380952381,"max":0.700952380952381,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.9534005037783375,"runs":[0.9534005037783375],"min":0.9534005037783375,"max":0.9534005037783375,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.7047138047138047,"runs":[0.7047138047138047],"min":0.7047138047138047,"max":0.7047138047138047,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.6881205066757959,"runs":[0.6881205066757959],"min":0.6881205066757959,"max":0.6881205066757959,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.8990825688073395,"runs":[0.8990825688073395],"min":0.8990825688073395,"max":0.8990825688073395,"run_count":1},"ag_news":{"rows":7600,"kind":"text","mean":0.9035526315789474,"runs":[0.9035526315789474],"min":0.9035526315789474,"max":0.9035526315789474,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.5675,"runs":[0.5675],"min":0.5675,"max":0.5675,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.8555194805194806,"runs":[0.8555194805194806],"min":0.8555194805194806,"max":0.8555194805194806,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.8818127370732681,"runs":[0.8818127370732681],"min":0.8818127370732681,"max":0.8818127370732681,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.7558394889199441,"runs":[0.7558394889199441],"min":0.7558394889199441,"max":0.7558394889199441,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.664,"runs":[0.664],"min":0.664,"max":0.664,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"scienceqa":{"rows":2017,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"vqav2_yesno":{"rows":8102,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_exist":{"rows":20196,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_attribute":{"rows":53734,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_count":{"rows":35422,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_choice":{"rows":848,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_noul":{"rows":2148,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0}}},{"id":"kev_9","name":"Kev 9B","family":"Kev","base":"Kev 9B","note":"Single evaluation run. Kev training-source overlap is documented for AG News, Banking77, and BoolQ; XNLI is related to its MultiNLI source.","run_count":1,"runs":[{"seed":"single","scope":{}}],"scores":{"text":{"macro":0.7684666731466621,"weighted":0.78277744302272,"macro_sd":null,"macro_min":0.7684666731466621,"macro_max":0.7684666731466621,"weighted_sd":null,"rows":56426,"datasets":18,"run_count":1,"weighted_min":0.78277744302272,"weighted_max":0.78277744302272},"image":null,"all":null},"by_dataset":{"sharc":{"rows":8276,"kind":"text","mean":0.6210729821169647,"runs":[0.6210729821169647],"min":0.6210729821169647,"max":0.6210729821169647,"run_count":1},"contract_nli":{"rows":1173,"kind":"text","mean":0.7902813299232737,"runs":[0.7902813299232737],"min":0.7902813299232737,"max":0.7902813299232737,"run_count":1},"wikiqa":{"rows":6160,"kind":"text","mean":0.9157467532467533,"runs":[0.9157467532467533],"min":0.9157467532467533,"max":0.9157467532467533,"run_count":1},"esci_us":{"rows":1145,"kind":"text","mean":0.5056768558951965,"runs":[0.5056768558951965],"min":0.5056768558951965,"max":0.5056768558951965,"run_count":1},"esci_es":{"rows":1482,"kind":"text","mean":0.5641025641025641,"runs":[0.5641025641025641],"min":0.5641025641025641,"max":0.5641025641025641,"run_count":1},"esci_jp":{"rows":1633,"kind":"text","mean":0.6117575015309247,"runs":[0.6117575015309247],"min":0.6117575015309247,"max":0.6117575015309247,"run_count":1},"mail_spam":{"rows":854,"kind":"text","mean":0.9508196721311475,"runs":[0.9508196721311475],"min":0.9508196721311475,"max":0.9508196721311475,"run_count":1},"mail_phishing":{"rows":1050,"kind":"text","mean":0.8866666666666667,"runs":[0.8866666666666667],"min":0.8866666666666667,"max":0.8866666666666667,"run_count":1},"sms_spam":{"rows":794,"kind":"text","mean":0.9672544080604534,"runs":[0.9672544080604534],"min":0.9672544080604534,"max":0.9672544080604534,"run_count":1},"massive_en-US":{"rows":2970,"kind":"text","mean":0.7252525252525253,"runs":[0.7252525252525253],"min":0.7252525252525253,"max":0.7252525252525253,"run_count":1},"massive_zh-CN":{"rows":2921,"kind":"text","mean":0.7038685381718589,"runs":[0.7038685381718589],"min":0.7038685381718589,"max":0.7038685381718589,"run_count":1},"boolq":{"rows":3270,"kind":"text","mean":0.9045871559633027,"runs":[0.9045871559633027],"min":0.9045871559633027,"max":0.9045871559633027,"run_count":1},"ag_news":{"rows":7600,"kind":"text","mean":0.9025,"runs":[0.9025],"min":0.9025,"max":0.9025,"run_count":1},"emotion":{"rows":2000,"kind":"text","mean":0.574,"runs":[0.574],"min":0.574,"max":0.574,"run_count":1},"banking77":{"rows":3080,"kind":"text","mean":0.865909090909091,"runs":[0.865909090909091],"min":0.865909090909091,"max":0.865909090909091,"run_count":1},"xnli_en":{"rows":5009,"kind":"text","mean":0.8931922539429028,"runs":[0.8931922539429028],"min":0.8931922539429028,"max":0.8931922539429028,"run_count":1},"xnli_zh":{"rows":5009,"kind":"text","mean":0.7712118187262926,"runs":[0.7712118187262926],"min":0.7712118187262926,"max":0.7712118187262926,"run_count":1},"typed_decisions":{"rows":2000,"kind":"text","mean":0.6785,"runs":[0.6785],"min":0.6785,"max":0.6785,"run_count":1},"aokvqa":{"rows":1138,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"scienceqa":{"rows":2017,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"vqav2_yesno":{"rows":8102,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_exist":{"rows":20196,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_attribute":{"rows":53734,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"clevr_count":{"rows":35422,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_choice":{"rows":848,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0},"screenqa_noul":{"rows":2148,"kind":"image","mean":null,"runs":[],"min":null,"max":null,"run_count":0}}}]};
52
+ const DIAG={"screens":[{"id":"B0","name":"Dohnuts 0.8B (retrained)","change":"Frozen Dohnuts RLCD baseline recipe","s400":68.0,"s800":70.76,"fullDev":77.93},{"id":"L1","name":"Jolt L1","change":"Soft-target cross-entropy only","s400":74.58,"s800":76.23,"fullDev":80.57},{"id":"L2","name":"Jolt 0.8B L2","change":"Direct composite loss: CE, spherical score, ordinal RPS","s400":74.31,"s800":76.11,"fullDev":80.78},{"id":"L3","name":"Jolt L3","change":"Cross-entropy plus pathwise noisy reward","s400":74.35,"s800":76.38,"fullDev":80.52},{"id":"D1","name":"Jolt D1","change":"Sample without replacement","s400":69.65,"s800":73.18,"fullDev":null},{"id":"D2","name":"Jolt D2","change":"Expand eligible training pool, remove 6,000-row cap","s400":64.99,"s800":71.42,"fullDev":null},{"id":"H1","name":"Jolt H1","change":"Halve backbone and scorer learning rates","s400":66.44,"s800":70.64,"fullDev":null},{"id":"R1","name":"Jolt R1","change":"LoRA rank and alpha 8/16 to 16/32","s400":66.84,"s800":71.47,"fullDev":null},{"id":"A1","name":"Jolt A1","change":"Residual mixture of last four decoder layers","s400":68.07,"s800":70.24,"fullDev":null},{"id":"A2","name":"Jolt A2","change":"Candidate-marker attention","s400":69.08,"s800":69.77,"fullDev":null},{"id":"A3","name":"Jolt A3","change":"SiLU residual adapters in decoder blocks 16 to 23","s400":67.05,"s800":71.09,"fullDev":null},{"id":"A3G","name":"Jolt A3G","change":"A3 adapters with GELU activation","s400":68.48,"s800":72.37,"fullDev":72.52},{"id":"A4","name":"Jolt A4","change":"Shared GELU MLP candidate scorer","s400":70.12,"s800":71.63,"fullDev":null},{"id":"A5","name":"Jolt A5","change":"Learned SiLU/GELU mixture in last four feed-forward blocks","s400":68.43,"s800":71.57,"fullDev":null},{"id":"A5C","name":"Jolt A5C","change":"Unfused SiLU control matched to A5","s400":68.83,"s800":71.57,"fullDev":null},{"id":"P1","name":"Jolt P1","change":"Move candidate descriptions before readout markers","s400":69.55,"s800":71.66,"fullDev":77.92},{"id":"B0P1","name":"Jolt B0P1","change":"B0 prompt layout on P1 eligible training pool","s400":69.55,"s800":71.0,"fullDev":78.12}],"kevDev":[{"model":"Kev 0.8B","suite":"decision-v7","rows":1264,"score":82.8},{"model":"Kev 0.8B","suite":"transfer-v4","rows":656,"score":64.8},{"model":"Kev 0.8B","suite":"transfer-v9","rows":1046,"score":58.5},{"model":"Kev 4B","suite":"decision-v7","rows":1264,"score":87.2},{"model":"Kev 4B","suite":"transfer-v4","rows":656,"score":81.6},{"model":"Kev 4B","suite":"transfer-v9","rows":1046,"score":77.2},{"model":"Kev 9B","suite":"decision-v7","rows":1264,"score":87.4},{"model":"Kev 9B","suite":"transfer-v4","rows":656,"score":81.9},{"model":"Kev 9B","suite":"transfer-v9","rows":1046,"score":78.0}],"secondary":[{"model":"Jolt 0.8B L2","suite":"Additional application suite collection","rows":27015,"score":70.8680362761,"macro":68.5419359598,"note":"111 suites; 100% valid responses. This was a secondary evaluation and did not select the checkpoint."}],"localJevbench":[{"id":"kev_9","name":"Kev 9B","correct":184,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":70,"standard_total":72,"hard_correct":66,"hard_total":111,"rejected":0,"source":"Local evaluation; BF16, checkpoint temperature, Kev serving context."},{"id":"kev_4","name":"Kev 4B","correct":175,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":67,"standard_total":72,"hard_correct":60,"hard_total":111,"rejected":0,"source":"Local evaluation; BF16, checkpoint temperature, Kev serving context."},{"id":"jolt_l2_2b","name":"Jolt 2B L2","correct":168,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":66,"standard_total":72,"hard_correct":54,"hard_total":111,"rejected":0,"source":"Local reevaluation; seed 44, step 2,800."},{"id":"dohnuts_release","name":"Dohnuts 0.8B (released)","correct":152,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":56,"standard_total":72,"hard_correct":48,"hard_total":111,"rejected":0,"source":"Saved prior local evaluation; 4,096-token limit."},{"id":"jolt_b0","name":"Dohnuts 0.8B (retrained)","correct":148,"total":231,"easy_correct":47,"easy_total":48,"standard_correct":57,"standard_total":72,"hard_correct":44,"hard_total":111,"rejected":0,"source":"Local reevaluation; seed 44, step 3,600."},{"id":"kev_08","name":"Kev 0.8B","correct":148,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":59,"standard_total":72,"hard_correct":41,"hard_total":111,"rejected":0,"source":"Local evaluation; BF16, checkpoint temperature, Kev serving context."},{"id":"jolt_l2_08","name":"Jolt 0.8B L2","correct":147,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":57,"standard_total":72,"hard_correct":42,"hard_total":111,"rejected":0,"source":"Saved prior local evaluation; seed 42, step 3,600."},{"id":"laya_vision","name":"Laya Vision","correct":111,"total":231,"easy_correct":43,"easy_total":48,"standard_correct":34,"standard_total":72,"hard_correct":34,"hard_total":111,"rejected":0,"source":"Saved prior local evaluation on text-only tasks; native 1,024-token truncation."},{"id":"laya_multi","name":"Laya Multilingual","correct":110,"total":231,"easy_correct":43,"easy_total":48,"standard_correct":30,"standard_total":72,"hard_correct":37,"hard_total":111,"rejected":0,"source":"Saved prior local evaluation; native 1,024-token truncation."},{"id":"jolt_l2_4b","name":"Jolt 4B L2","correct":181,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":69,"standard_total":72,"hard_correct":64,"hard_total":111,"rejected":0,"source":"Local evaluation; BF16 inference, seed 42, step 3600; unit temperature, hard accuracy."},{"id":"jolt_l2_9b","name":"Jolt 9B L2","correct":180,"total":231,"easy_correct":48,"easy_total":48,"standard_correct":68,"standard_total":72,"hard_correct":64,"hard_total":111,"rejected":0,"source":"Local evaluation; BF16 inference, seed 42, step 3600; unit temperature, hard accuracy."}]};
53
+ const MODEL_COLORS={jolt_b0:'#687b84',jolt_l2_08:'#087f78',jolt_l2_2b:'#3275b7',jolt_l2_4b:'#548235',jolt_l2_9b:'#aa3d3d',dohnuts_release:'#a5774a',laya_multi:'#7653a6',laya_vision:'#ba6b98',kev_08:'#5d91c7',kev_4:'#3565a8',kev_9:'#233f70'};
54
+ let state={scope:'text',metric:'macro',sort:{key:'rows',dir:'desc'},detailModels:['jolt_b0','jolt_l2_08','jolt_l2_2b']};
55
+ const $=id=>document.getElementById(id), pct=x=>x==null?'—':(x*100).toFixed(2)+'%', pp=x=>(x>=0?'+':'')+(x*100).toFixed(2)+' pp', num=x=>Number(x).toLocaleString('en-US');
56
+ function scopeDatasets(){return Object.entries(DATA.datasets).filter(([,v])=>state.scope==='all'||v.kind===state.scope).map(([k])=>k)}
57
+ function supportedModels(){return DATA.models.filter(m=>m.scores[state.scope])}
58
+ function selectedScore(m){return m.scores[state.scope][state.metric]}
59
+ function scoreRange(m){let s=m.scores[state.scope];return state.metric==='weighted'?[s.weighted_min,s.weighted_max]:[s.macro_min,s.macro_max]}
60
+ function sortModels(list){return list.slice().sort((a,b)=>(selectedScore(b)??-1)-(selectedScore(a)??-1))}
61
+ function displayDataset(k){return k.replaceAll('_',' ').replaceAll('-',' ').replace(/\b[a-z]/g,x=>x.toUpperCase())}
62
+ function esc(s){return String(s).replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]))}
63
+ function setupDetailModels(list){let el=$('detailModels'),available=new Set(list.map(m=>m.id));state.detailModels=state.detailModels.filter(id=>available.has(id));if(!state.detailModels.length)state.detailModels=list.slice(0,Math.min(3,list.length)).map(m=>m.id);el.innerHTML=list.map(m=>`<label class="model-option"><input type="checkbox" value="${m.id}" ${state.detailModels.includes(m.id)?'checked':''}><i class="series-swatch" style="background:${MODEL_COLORS[m.id]}"></i><span>${esc(m.name)}</span></label>`).join('');$('detailSummary').textContent=`${state.detailModels.length} model${state.detailModels.length===1?'':'s'} selected`;el.querySelectorAll('input[type=checkbox]').forEach(input=>input.addEventListener('change',()=>{state.detailModels=Array.from(el.querySelectorAll('input[type=checkbox]:checked')).map(x=>x.value);$('detailSummary').textContent=`${state.detailModels.length} model${state.detailModels.length===1?'':'s'} selected`;renderDatasetDetail(sortModels(supportedModels()))}))}
64
+ function render(){let list=sortModels(supportedModels());setupDetailModels(list);let scope=DATA.meta.scope_counts[state.scope];$('laneNote').textContent=`${scope.datasets} datasets · ${num(scope.rows)} examples. Unsupported models are omitted from this lane.`;let scopeLabel=state.scope==='text'?'text':state.scope==='image'?'image':'all-dataset';$('rankTitle').textContent=`${scopeLabel[0].toUpperCase()+scopeLabel.slice(1)} lane ranking`;$('rankSub').textContent=state.metric==='macro'?'Every dataset counts equally.':'Each example counts equally.';renderKpis(list,scope);renderRank(list);renderDatasetDetail(list);renderTable(list);renderInterpretation(list);renderExposure();renderLegend(list);}
65
+ function renderKpis(list,scope){let best=list[0],next=list[1],score=best?selectedScore(best):null,lead=best&&next?score-selectedScore(next):null;$('bestValue').textContent=pct(score);$('bestName').textContent=best?best.name:'No model in view';$('leadValue').textContent=lead==null?'—':pp(lead);$('leadName').textContent=next?`ahead of ${next.name}`:'No second model in view';$('coverageValue').textContent=`${scope.datasets} / 26`; $('coverageName').textContent=`${num(scope.rows)} test examples in this lane`;$('runsValue').textContent=best?`${best.run_count} ${best.run_count===1?'run':'seeds'}`:'—';$('runsName').textContent=best?(best.run_count>1?'mean across independent Jolt seeds':'one evaluated checkpoint'):'—'}
66
+ function renderRank(list){let svg=$('ranking'),W=820,rowH=54,top=28,left=245,right=70,bottom=28,H=top+list.length*rowH+bottom,plot=W-left-right;svg.setAttribute('viewBox',`0 0 ${W} ${H}`);svg.setAttribute('height',H);let out=[];for(let tick=0;tick<=100;tick+=20){let x=left+plot*tick/100;out.push(`<line x1="${x}" x2="${x}" y1="${top-5}" y2="${H-bottom}" stroke="#e5ebed"/><text x="${x}" y="${H-6}" text-anchor="middle" font-size="11" fill="#6b7a82">${tick}%</text>`)}list.forEach((m,i)=>{let y=top+i*rowH,score=selectedScore(m);if(score==null)return;let width=plot*score,range=scoreRange(m),hasRange=m.run_count>1&&range[0]!=null&&range[1]!=null;let x1=left+plot*range[0],x2=left+plot*range[1],name=m.name+(m.id==='laya_vision'&&state.scope==='text'?' · diagnostic':'');let badge=m.run_count>1?'3 seeds':'single run';let extra=m.id==='laya_vision'&&state.scope==='text'?' · out of domain':m.family==='Kev'?' · source overlap':m.id==='dohnuts_release'?' · historical reference':'';out.push(`<g class="rank-item" tabindex="0"><title>${esc(name)}: ${pct(score)}${hasRange?` (seed range ${pct(range[0])} to ${pct(range[1])})`:''}. ${esc(m.note)}</title><text class="rank-label" x="${left-12}" y="${y+18}" text-anchor="end" font-size="13" font-weight="650" fill="#223843">${esc(name)}</text><text x="${left-12}" y="${y+36}" text-anchor="end" font-size="10" fill="#71818a">${badge}${extra}</text><rect x="${left}" y="${y+5}" width="${plot}" height="25" rx="5" fill="#f0f3f3"/><rect x="${left}" y="${y+5}" width="${width}" height="25" rx="5" fill="${MODEL_COLORS[m.id]||'#657782'}" opacity=".9"/>${hasRange?`<line x1="${x1}" x2="${x2}" y1="${y+17}" y2="${y+17}" stroke="#142d38" stroke-width="2.5"/><line x1="${x1}" x2="${x1}" y1="${y+11}" y2="${y+23}" stroke="#142d38"/><line x1="${x2}" x2="${x2}" y1="${y+11}" y2="${y+23}" stroke="#142d38"/>`:''}<text x="${Math.min(left+width+7,W-55)}" y="${y+23}" font-size="13" font-weight="750" fill="#213742">${pct(score)}</text></g>`)});svg.innerHTML=out.join('');}
67
+ function renderDatasetDetail(list){let chosen=state.detailModels.map(id=>DATA.models.find(m=>m.id===id)).filter(Boolean);let order=new Map(list.map((m,i)=>[m.id,i]));chosen.sort((a,b)=>(order.get(a.id)??Infinity)-(order.get(b.id)??Infinity));let svg=$('datasetChart');if(!chosen.length){svg.innerHTML='';$('detailLegend').innerHTML='';$('datasetCaption').textContent='Select at least one model to draw the comparison.';return}let ds=scopeDatasets().filter(d=>chosen.some(m=>m.by_dataset[d]?.mean!=null));ds.sort((a,b)=>chosen.reduce((s,m)=>s+(m.by_dataset[b]?.mean??0)-(m.by_dataset[a]?.mean??0),0));let W=Math.max(320,Math.floor(svg.parentElement?.clientWidth||980)),labelW=Math.min(190,Math.max(135,Math.floor(W*.34))),plotX=labelW+10,right=45,plot=W-plotX-right,headerH=32,modelRow=16,gap=7,top=5,bottom=18,groupH=headerH+chosen.length*modelRow+gap,H=top+ds.length*groupH+bottom;svg.setAttribute('viewBox',`0 0 ${W} ${H}`);svg.setAttribute('height',H);svg.setAttribute('width',W);let out=[];for(let tick=0;tick<=100;tick+=20){let x=plotX+plot*tick/100;out.push(`<line x1="${x}" x2="${x}" y1="${top-4}" y2="${H-bottom}" stroke="#e7edef"/><text x="${x}" y="${H-5}" text-anchor="${tick===0?'start':'middle'}" font-size="10" fill="#71818a">${tick}%</text>`)}ds.forEach((d,i)=>{let y=top+i*groupH;out.push(`<text x="0" y="${y+12}" font-size="11" font-weight="750" fill="#263d48">${esc(displayDataset(d))}</text><text x="0" y="${y+25}" font-size="9.5" fill="#71818a">${num(DATA.datasets[d].rows)} rows</text>`);chosen.forEach((m,j)=>{let a=m.by_dataset[d]?.mean;if(a==null)return;let yy=y+headerH+j*modelRow,w=a*plot,color=MODEL_COLORS[m.id]||'#657782';out.push(`<g><title>${esc(m.name)} · ${esc(displayDataset(d))}: ${pct(a)} (${num(DATA.datasets[d].rows)} examples; ${m.run_count>1?'mean of 3 seeds':'one run'})</title><text x="${plotX-8}" y="${yy+11}" text-anchor="end" font-size="9.5" fill="#435660">${esc(m.name)}</text><rect x="${plotX}" y="${yy+2}" width="${plot}" height="10" rx="4" fill="#f0f3f3"/><rect x="${plotX}" y="${yy+2}" width="${w}" height="10" rx="4" fill="${color}"/><text x="${Math.min(plotX+w+5,W-45)}" y="${yy+11}" font-size="10" font-weight="700" fill="#344850">${pct(a)}</text></g>`)});out.push(`<line x1="0" x2="${W}" y1="${y+groupH-gap/2}" y2="${y+groupH-gap/2}" stroke="#e4eaec"/>`)});svg.innerHTML=out.join('');$('detailLegend').innerHTML=chosen.map((m,i)=>`<span><i class="dot" style="background:${MODEL_COLORS[m.id]||'#657782'}"></i><b class="series-index">${i+1}.</b> ${esc(m.name)} <span class="badge ${m.run_count>1?'seed':'single'}">${m.run_count>1?'3 seeds':'single run'}</span></span>`).join('');$('datasetCaption').textContent=`Each dataset is one stacked block: its name and sample count appear above the bars. Bars run top to bottom in the numbered legend order. Jolt bars use the three-seed mean; other bars use the single evaluated checkpoint. Hover a bar for its exact score.`}
68
+ function heat(v){if(v==null)return'#f1f3f3';let t=Math.max(0,Math.min(1,(v-.35)/.65));let r=Math.round(249+(224-249)*t),g=Math.round(226+(242-226)*t),b=Math.round(220+(235-220)*t);return`rgb(${r},${g},${b})`}
69
+ function renderTable(list){let table=$('scoreTable'),ds=scopeDatasets().filter(d=>DATA.datasets[d]);let key=state.sort.key,dir=state.sort.dir;ds.sort((a,b)=>{let av=key==='rows'?DATA.datasets[a].rows:key==='dataset'?a:(DATA.models.find(m=>m.id===key)?.by_dataset[a]?.mean??-1),bv=key==='rows'?DATA.datasets[b].rows:key==='dataset'?b:(DATA.models.find(m=>m.id===key)?.by_dataset[b]?.mean??-1);return(av>bv?1:av<bv?-1:0)*(dir==='asc'?1:-1)});let header=`<thead><tr><th data-sort="dataset">Dataset ↕</th><th data-sort="rows">Rows ↕</th>${list.map(m=>`<th data-sort="${m.id}" title="${esc(m.note)}">${esc(m.name)}<br><span class="dataset-sub">${m.run_count>1?'mean · 3 seeds':'one run'}</span></th>`).join('')}</tr></thead>`;let body=ds.map(d=>`<tr><td>${esc(displayDataset(d))}<br><span class="dataset-sub">${DATA.datasets[d].kind}</span></td><td>${num(DATA.datasets[d].rows)}</td>${list.map(m=>{let val=m.by_dataset[d]?.mean;return`<td><span class="cell" style="background:${heat(val)}" title="${esc(m.name)}: ${pct(val)}">${pct(val)}</span></td>`}).join('')}</tr>`).join('');table.innerHTML=header+`<tbody>${body}</tbody>`;table.querySelectorAll('th[data-sort]').forEach(th=>th.onclick=()=>{let k=th.dataset.sort;state.sort={key:k,dir:state.sort.key===k&&state.sort.dir==='desc'?'asc':'desc'};renderTable(sortModels(supportedModels()))})}
70
+ function renderInterpretation(list){
71
+ const scope=state.scope,joltL2=DATA.models.find(m=>m.id==='jolt_l2_08'),b0=DATA.models.find(m=>m.id==='jolt_b0'),j2=DATA.models.find(m=>m.id==='jolt_l2_2b'),j4=DATA.models.find(m=>m.id==='jolt_l2_4b'),j9=DATA.models.find(m=>m.id==='jolt_l2_9b');
72
+ const score=m=>m?.scores[scope]?.macro, gap=((score(j9)-score(j4))*100).toFixed(2), items=[];
73
+ const lane=scope==='text'?'text':scope==='image'?'image':'all-dataset';
74
+ items.push(`<div class="note"><h3>Jolt 9B tops the ${lane} lane</h3><p>Its dataset-macro score is ${pct(score(j9))}, ${gap} percentage points above Jolt 4B L2. Each 4B and 9B result is from one checkpoint; the 0.8B and 2B figures are three-seed means.</p></div>`);
75
+ if(scope==='text'){
76
+ items.push(`<div class="note"><h3>The objective change beats the baseline</h3><p>Jolt 0.8B L2 is ${((score(joltL2)-score(b0))*100).toFixed(2)} percentage points above the retrained B0 baseline on text macro. Both are three-seed means from the same training campaign.</p></div>`);
77
+ items.push(`<div class="note"><h3>Kev is a one-run reference</h3><p>Kev 9B scores ${pct(DATA.models.find(m=>m.id==='kev_9').scores.text.macro)} and has known task-source overlap on some rows. These scores do not have seed-level variation estimates.</p></div>`);
78
+ }else if(scope==='image'){
79
+ items.push(`<div class="note"><h3>Image scores depend on source exposure</h3><p>Laya Vision and the released Dohnuts checkpoint have documented overlap with some image test sources. Their scores remain visible, with that exposure described below.</p></div>`);
80
+ }else{
81
+ items.push(`<div class="note"><h3>Dataset size changes the row-weighted result</h3><p>Large image datasets carry more weight in the pooled score. Dataset macro gives small tasks the same influence as CLEVR and VQAv2.</p></div>`);
82
+ }
83
+ items.push(`<div class="note"><h3>The Jolt test rows stayed held out</h3><p>These Jolt checkpoints were fine-tuned on the training partition. Development selected checkpoints; separate calibration data fit temperatures; locked test rows were excluded from fine-tuning, selection, and calibration. Qwen pretraining exposure is outside this audit.</p></div>`);
84
+ items.push(`<div class="note"><h3>Seed means are not ensembles</h3><p>The 0.8B and 2B Jolt scores average three checkpoints. Jolt 4B and 9B each have one evaluated checkpoint. None of these numbers averages predictions across checkpoints.</p></div>`);
85
+ $('interpretation').innerHTML=items.join('')
86
+ }
87
+ function renderExposure(){let rows=[['Jolt models','clean campaign holdout','B0, 0.8B L2, 2B L2, 4B L2, and 9B L2 were fine-tuned on the Jolt train partition. Development selected checkpoints; separate calibration data fit temperatures; locked test rows were excluded from campaign training, selection, and calibration. Qwen pretraining exposure is outside this audit.'],['Dohnuts 0.8B (released)','historical checkpoint exposure','The original release reports checkpoint selection on an A-OKVQA validation split that supplies Dohnuts test rows. VQAv2 also has documented validation-set fine-tuning overlap. Treat these image scores as exposed reference measurements.'],['Laya Vision','known image-source overlap','Its card documents A-OKVQA, ScienceQA, and VQAv2 fine-tuning. A-OKVQA and VQAv2 rows in this benchmark come from validation sources used in that history. Text scores are outside the model’s intended evaluation scope.'],['Kev','known text-source overlap','AG News, Banking77, and BoolQ appear in Kev training sources. XNLI is related to Kev’s MultiNLI source. The shared score table shows the results but flags this limitation.'],['Laya Multilingual','training exposure not fully audited','The model card does not provide a complete training-row manifest, so overlap with the shared test cannot be ruled out.']];$('exposure').innerHTML=rows.map(([name,badge,text])=>`<div class="exposure-row"><strong>${esc(name)}</strong> <span class="badge ${badge.includes('clean')?'clean':'exposure'}">${esc(badge)}</span><p>${esc(text)}</p></div>`).join('')}
88
+ function renderLegend(list){$('familyLegend').innerHTML=list.map(m=>`<span><i class="dot" style="background:${MODEL_COLORS[m.id]||'#657782'}"></i>${esc(m.name)}</span>`).join('')+'<span><i class="range-key"></i>seed min–max</span>'}
89
+ function makeTable(el,heads,rows){el.innerHTML=`<thead><tr>${heads.map(h=>`<th>${h}</th>`).join('')}</tr></thead><tbody>${rows.map(row=>`<tr>${row.map(v=>`<td>${v}</td>`).join('')}</tr>`).join('')}</tbody>`}
90
+ function renderLocalJevbench(){const balanced=m=>((m.easy_correct/m.easy_total)+(m.standard_correct/m.standard_total)+(m.hard_correct/m.hard_total))/3;let list=DIAG.localJevbench.slice().sort((a,b)=>balanced(b)-balanced(a));$('jevbenchChart').innerHTML=list.map(m=>{let score=balanced(m),color=MODEL_COLORS[m.id]||'#657782';return`<div class="diag-bar-row"><span title="${esc(m.source)}">${esc(m.name)}</span><div class="diag-track" title="Equal-weight tier score ${pct(score)}"><div class="diag-fill" style="width:${(score*100).toFixed(2)}%;background:${color}"></div></div><strong>${pct(score)}</strong></div>`}).join('');makeTable($('jevbenchTable'),['Model / evaluation','Tier-balanced headline','Pooled','Easy','Standard','Hard','Rejections / failures'],list.map(m=>[`${esc(m.name)}<br><span class="dataset-sub">${esc(m.source)}</span>`,pct(balanced(m)),`${m.correct}/${m.total} · ${pct(m.correct/m.total)}`,`${m.easy_correct}/${m.easy_total} · ${pct(m.easy_correct/m.easy_total)}`,`${m.standard_correct}/${m.standard_total} · ${pct(m.standard_correct/m.standard_total)}`,`${m.hard_correct}/${m.hard_total} · ${pct(m.hard_correct/m.hard_total)}`,String(m.rejected)]))}
91
+ function renderDiagnostics(){let a=DIAG.screens.slice().sort((x,y)=>y.s800-x.s800);$('screenChart').innerHTML=a.map(x=>`<div class="diag-bar-row"><span title="${esc(x.change)}">${esc(x.name)}</span><div class="diag-track" title="800-update dev screen ${x.s800.toFixed(2)}%"><div class="diag-fill" style="width:${x.s800}%"></div></div><strong>${x.s800.toFixed(2)}%</strong></div>`).join('');makeTable($('screenTable'),['Experiment','Change tested','400 updates','800 updates','Full development'],DIAG.screens.map(x=>[`${esc(x.name)} <span class="dataset-sub">${x.id}</span>`,esc(x.change),x.s400.toFixed(2)+'%',x.s800.toFixed(2)+'%',x.fullDev==null?'Not run':x.fullDev.toFixed(2)+'%']));makeTable($('kevTable'),['Model','Suite','Partition','Rows','Accuracy'],DIAG.kevDev.map(x=>[esc(x.model),esc(x.suite),'Development',num(x.rows),x.score.toFixed(1)+'%']));makeTable($('secondaryTable'),['Model','Suite','Examples','Accuracy','Suite macro','Note'],DIAG.secondary.map(x=>[esc(x.model),esc(x.suite),num(x.rows),x.score.toFixed(2)+'%',pct(x.macro/100),esc(x.note)]))}
92
+ document.querySelectorAll('[data-scope]').forEach(b=>b.addEventListener('click',()=>{state.scope=b.dataset.scope;document.querySelectorAll('[data-scope]').forEach(x=>x.setAttribute('aria-pressed',x===b));render()}));document.querySelectorAll('[data-metric]').forEach(b=>b.addEventListener('click',()=>{state.metric=b.dataset.metric;document.querySelectorAll('[data-metric]').forEach(x=>x.setAttribute('aria-pressed',x===b));render()}));
93
+ renderDiagnostics();renderLocalJevbench();render();if(typeof window!=='undefined'){let resizeTimer;window.addEventListener('resize',()=>{clearTimeout(resizeTimer);resizeTimer=setTimeout(()=>renderDatasetDetail(sortModels(supportedModels())),100)})}
94
+ </script>
95
+ </body></html>
pyproject.toml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "jolt-model-runtime"
7
+ version = "0.1.0"
8
+ description = "Inference runtime for Jolt decision models"
9
+ requires-python = ">=3.12"
10
+ license = { file = "LICENSE-CODE" }
11
+ dependencies = [
12
+ "torch>=2.9",
13
+ "torchvision>=0.24",
14
+ "transformers>=5.17,<5.18",
15
+ "peft>=0.21,<0.22",
16
+ "Pillow>=11",
17
+ "huggingface-hub>=1.0,<2",
18
+ "safetensors>=0.6",
19
+ "flash-linear-attention[cuda]==0.5.2",
20
+ ]
21
+
22
+ [tool.setuptools]
23
+ package-dir = {"" = "src"}
24
+
25
+ [tool.setuptools.packages.find]
26
+ where = ["src"]
requirements-cuda.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ torch>=2.9
2
+ torchvision>=0.24
3
+ transformers>=5.17,<5.18
4
+ peft>=0.21,<0.22
5
+ Pillow>=11
6
+ huggingface-hub>=1.0,<2
7
+ safetensors>=0.6
8
+ flash-linear-attention[cuda]==0.5.2
src/jolt/__init__.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ """Jolt model inference runtime, adapted from Dohnuts."""
2
+
3
+ __version__ = "0.1.0"
src/jolt/adapters.py ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Backbone-specific loading, image encoding, and language adaptation."""
2
+
3
+ import hashlib
4
+ import os
5
+ from collections import OrderedDict
6
+
7
+ import torch
8
+ from peft import LoraConfig, get_peft_model
9
+ from transformers import AutoModel, AutoProcessor
10
+
11
+ from jolt.execution import language_forward
12
+ from jolt.recipe import IMAGE_PIXELS
13
+
14
+
15
+ class Qwen35Adapter:
16
+ """The Qwen3.5 text/image adapter, using BF16 and merged inference."""
17
+
18
+ name = "qwen3.5"
19
+ base_model = "Qwen/Qwen3.5-0.8B"
20
+ max_input_tokens = 4096
21
+ marker = "<|fim_suffix|>"
22
+ image_prefix = "<|vision_start|><|image_pad|><|vision_end|>\n"
23
+
24
+ def processor(self, checkpoint):
25
+ return AutoProcessor.from_pretrained(checkpoint, local_files_only=True)
26
+
27
+ def load(self, checkpoint, *, architecture=None):
28
+ from jolt.kernels import (
29
+ enable_fusion,
30
+ enable_linear_patch_embedding,
31
+ enable_triton_convolution,
32
+ )
33
+
34
+ # The desktop shares this GPU. Bound the caching allocator so a sequence
35
+ # of evaluation shapes cannot retain nearly all VRAM and crash the compositor.
36
+ torch.cuda.set_per_process_memory_fraction(0.8)
37
+ if torch.version.hip:
38
+ os.environ.setdefault("TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL", "1")
39
+ enable_triton_convolution()
40
+ backbone = AutoModel.from_pretrained(
41
+ checkpoint, dtype=torch.bfloat16, attn_implementation="sdpa", local_files_only=True
42
+ ).to("cuda")
43
+ backbone.requires_grad_(False)
44
+ backbone.config.use_cache = False
45
+ enable_linear_patch_embedding(backbone.visual)
46
+ unfused_layers = (architecture or {}).get("unfused_mlp_layers", ())
47
+ enable_fusion(backbone, unfused_mlp_layers=unfused_layers)
48
+ backbone._jolt_image_cache = OrderedDict()
49
+ return backbone
50
+
51
+ def hidden_size(self, backbone):
52
+ return backbone.config.text_config.hidden_size
53
+
54
+ def text_model(self, backbone):
55
+ language = backbone.language_model
56
+ for _ in range(8):
57
+ if hasattr(language, "layers") and hasattr(language, "norm"):
58
+ return language
59
+ if hasattr(language, "get_base_model"):
60
+ language = language.get_base_model()
61
+ elif hasattr(language, "model"):
62
+ language = language.model
63
+ elif hasattr(language, "base_model"):
64
+ language = language.base_model
65
+ else:
66
+ break
67
+ raise TypeError("Could not locate the Qwen text model under the language adapter")
68
+
69
+ def language_layers(self, backbone):
70
+ return self.text_model(backbone).layers
71
+
72
+ def final_norm(self, backbone):
73
+ return self.text_model(backbone).norm
74
+
75
+ def adapt_language(self, backbone, *, training, rank=8, alpha=16, dropout=0.0):
76
+ config = LoraConfig(
77
+ r=rank,
78
+ lora_alpha=alpha,
79
+ lora_dropout=dropout,
80
+ bias="none",
81
+ target_modules=[
82
+ "q_proj",
83
+ "k_proj",
84
+ "v_proj",
85
+ "o_proj",
86
+ "in_proj_qkv",
87
+ "in_proj_z",
88
+ "in_proj_b",
89
+ "in_proj_a",
90
+ "out_proj",
91
+ "gate_proj",
92
+ "up_proj",
93
+ "down_proj",
94
+ ],
95
+ )
96
+ backbone.language_model = get_peft_model(backbone.language_model, config)
97
+ if training:
98
+ backbone.language_model.gradient_checkpointing_enable(
99
+ gradient_checkpointing_kwargs={"use_reentrant": False}
100
+ )
101
+ backbone.visual.requires_grad_(False)
102
+
103
+ def merge(self, backbone):
104
+ backbone.language_model = backbone.language_model.merge_and_unload(safe_merge=True)
105
+
106
+ def freeze_vision(self, backbone):
107
+ backbone.visual.eval()
108
+
109
+ def batch_inputs(self, processor, texts, images):
110
+ kwargs = {"text": texts, "padding": True, "return_tensors": "pt", "truncation": False}
111
+ if images:
112
+ kwargs.update(
113
+ images=images,
114
+ images_kwargs={
115
+ "size": {"shortest_edge": IMAGE_PIXELS, "longest_edge": IMAGE_PIXELS}
116
+ },
117
+ )
118
+ inputs = dict(processor(**kwargs))
119
+ if images:
120
+ self.image_metadata(inputs, images)
121
+ return inputs
122
+
123
+ def image_metadata(self, inputs, images):
124
+ inputs["image_keys"] = tuple(
125
+ hashlib.sha256(str(image.size).encode() + image.convert("RGB").tobytes()).hexdigest()
126
+ for image in images
127
+ )
128
+ inputs["image_patches"] = inputs["image_grid_thw"].prod(-1).tolist()
129
+
130
+ def shared_image_inputs(self, processor, texts, image):
131
+ inputs = dict(
132
+ processor.image_processor(
133
+ images=[image],
134
+ return_tensors="pt",
135
+ size={"shortest_edge": IMAGE_PIXELS, "longest_edge": IMAGE_PIXELS},
136
+ )
137
+ )
138
+ replacement = processor.replace_image_token(inputs, 0)
139
+ texts = [text.replace(processor.image_token, replacement, 1) for text in texts]
140
+ tokens = dict(
141
+ processor.tokenizer(
142
+ texts,
143
+ padding=True,
144
+ return_tensors="pt",
145
+ truncation=False,
146
+ return_token_type_ids=False,
147
+ )
148
+ )
149
+ tokens["mm_token_type_ids"] = torch.tensor(
150
+ processor.create_mm_token_type_ids(tokens["input_ids"]), dtype=torch.long
151
+ )
152
+ inputs.update(tokens)
153
+ self.image_metadata(inputs, [image])
154
+ inputs["image_grid_thw"] = inputs["image_grid_thw"].expand(len(texts), -1)
155
+ inputs["shared_image"] = True
156
+ return inputs
157
+
158
+ def forward(self, backbone, inputs, *, capture_layers=()):
159
+ input_ids = inputs["input_ids"]
160
+ embeddings = backbone.get_input_embeddings()(input_ids)
161
+ position_ids = None
162
+ if "pixel_values" in inputs:
163
+ features = self.image_features(backbone, inputs)
164
+ if inputs.get("shared_image"):
165
+ features = features.repeat(input_ids.shape[0], 1)
166
+ features = features.to(embeddings.dtype)
167
+ image_mask, _ = backbone.get_placeholder_mask(
168
+ input_ids, inputs_embeds=embeddings, image_features=features
169
+ )
170
+ embeddings = embeddings.masked_scatter(image_mask, features)
171
+ position_ids = backbone.compute_3d_position_ids(
172
+ input_ids=input_ids,
173
+ image_grid_thw=inputs["image_grid_thw"],
174
+ attention_mask=inputs["attention_mask"],
175
+ inputs_embeds=embeddings,
176
+ mm_token_type_ids=inputs.get("mm_token_type_ids"),
177
+ )
178
+ cut = inputs.get("prefix_length", 0)
179
+ layers = self.language_layers(backbone)
180
+ raw_layers = {index: layers[index] for index in capture_layers}
181
+ result = language_forward(
182
+ backbone.language_model,
183
+ embeddings,
184
+ inputs["attention_mask"],
185
+ position_ids,
186
+ cut,
187
+ capture_raw_layers=raw_layers,
188
+ )
189
+ if capture_layers:
190
+ intermediate = dict(zip(raw_layers, result[1:], strict=True))
191
+ return result[0], cut, intermediate
192
+ return result, cut, {}
193
+
194
+ def image_features(self, backbone, inputs):
195
+ """The frozen encoder has a model-local 128 MiB LRU; no language state persists."""
196
+ cache = backbone._jolt_image_cache
197
+ pixels = inputs["pixel_values"].split(inputs["image_patches"])
198
+ missing = {}
199
+ for i, key in enumerate(inputs["image_keys"]):
200
+ if key not in cache:
201
+ missing.setdefault(key, i)
202
+ if missing:
203
+ indices = list(missing.values())
204
+ with torch.inference_mode(False), torch.no_grad():
205
+ features = backbone.get_image_features(
206
+ torch.cat([pixels[i] for i in indices]),
207
+ inputs["image_grid_thw"][indices],
208
+ return_dict=True,
209
+ ).pooler_output
210
+ cache.update(zip(missing, features, strict=True))
211
+ result = torch.cat([cache[key] for key in inputs["image_keys"]])
212
+ for key in inputs["image_keys"]:
213
+ cache.move_to_end(key)
214
+ size = sum(t.numel() * t.element_size() for t in cache.values())
215
+ while size > 128 * 2**20:
216
+ _, value = cache.popitem(last=False)
217
+ size -= value.numel() * value.element_size()
218
+ return result
src/jolt/execution.py ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Request-scoped, differentiable prefix sharing for the Qwen hybrid cache."""
2
+
3
+ import torch
4
+ from transformers.cache_utils import DynamicCache
5
+
6
+
7
+ def plan_prefix(inputs, positions):
8
+ """Plan on CPU, before asynchronous transfer; candidates stay in each branch."""
9
+ ids = inputs["input_ids"]
10
+ cut = 0
11
+ images = inputs.get("image_keys", ())
12
+ if len(ids) > 1 and len(set(images)) <= 1:
13
+ common = (ids == ids[:1]).all(0) & inputs["attention_mask"].bool().all(0)
14
+ different = (~common).nonzero()
15
+ length = int(different[0]) if len(different) else common.numel()
16
+ cut = min(length, int(positions[:, 0].min()), ids.shape[1] - 2) // 64 * 64
17
+ inputs["prefix_length"] = cut
18
+
19
+
20
+ class PrefixCache(DynamicCache):
21
+ """Replace state tensors instead of overwriting values needed by backward."""
22
+
23
+ def update_conv_state(
24
+ self, conv_states, layer_idx, state_idx=0, conv_kernel_size=None, **kwargs
25
+ ):
26
+ if conv_kernel_size is None:
27
+ raise ValueError("PrefixCache requires conv_kernel_size")
28
+ layer = self.layers[layer_idx]
29
+ layer.device, layer.dtype = conv_states.device, conv_states.dtype
30
+ if layer.has_previous_state[state_idx]:
31
+ conv_states = torch.cat([layer.conv_states[state_idx], conv_states], dim=-1)
32
+ layer.conv_kernel_size[state_idx] = conv_kernel_size
33
+ layer.conv_states[state_idx] = conv_states[..., -conv_kernel_size:]
34
+ layer.has_previous_state[state_idx] = True
35
+ layer.is_conv_states_initialized[state_idx] = True
36
+ return conv_states
37
+
38
+ def update_recurrent_state(self, recurrent_states, layer_idx, state_idx=0, **kwargs):
39
+ layer = self.layers[layer_idx]
40
+ layer.recurrent_states[state_idx] = recurrent_states
41
+ layer.is_recurrent_states_initialized[state_idx] = True
42
+ return recurrent_states
43
+
44
+
45
+ def language_forward(
46
+ language,
47
+ embeddings,
48
+ attention_mask,
49
+ position_ids,
50
+ cut,
51
+ capture_layers=(),
52
+ capture_raw_layers=None,
53
+ ):
54
+ requested = list(capture_layers) if capture_layers else False
55
+ capture_raw_layers = capture_raw_layers or {}
56
+
57
+ def forward(
58
+ inputs_embeds,
59
+ attention_mask,
60
+ position_ids,
61
+ *,
62
+ past_key_values=None,
63
+ use_cache=False,
64
+ capture=True,
65
+ ):
66
+ return language(
67
+ inputs_embeds=inputs_embeds,
68
+ attention_mask=attention_mask,
69
+ position_ids=position_ids,
70
+ past_key_values=past_key_values,
71
+ use_cache=use_cache,
72
+ output_hidden_states=requested if capture else False,
73
+ return_dict=True,
74
+ )
75
+
76
+ def result(outputs, raw=None):
77
+ if not capture_layers and not capture_raw_layers:
78
+ return outputs.last_hidden_state
79
+ raw = raw or {}
80
+ return (
81
+ outputs.last_hidden_state,
82
+ *(outputs.hidden_states[index] for index in capture_layers),
83
+ *(raw[index] for index in capture_raw_layers),
84
+ )
85
+
86
+ def captured_forward(inputs_embeds, attention_mask, position_ids, **kwargs):
87
+ raw = {}
88
+ handles = []
89
+ if kwargs.pop("capture", True):
90
+ for index, layer in capture_raw_layers.items():
91
+ def save_raw(_module, _args, output, layer_index=index):
92
+ raw[layer_index] = output[0] if isinstance(output, tuple) else output
93
+
94
+ handles.append(layer.register_forward_hook(save_raw))
95
+ try:
96
+ outputs = forward(inputs_embeds, attention_mask, position_ids, **kwargs)
97
+ finally:
98
+ for handle in handles:
99
+ handle.remove()
100
+ return result(outputs, raw)
101
+
102
+ if not cut:
103
+ return captured_forward(embeddings, attention_mask, position_ids)
104
+
105
+ def shared_forward():
106
+ # A mutable cache cannot survive a decoder-layer checkpoint replay.
107
+ # Replay the complete request instead, constructing a fresh cache each time.
108
+ layers = [m for m in language.modules() if getattr(m, "gradient_checkpointing", False)]
109
+ for layer in layers:
110
+ layer.gradient_checkpointing = False
111
+ try:
112
+ cache = PrefixCache(config=language.config)
113
+ forward(
114
+ embeddings[:1, :cut],
115
+ attention_mask[:1, :cut],
116
+ None if position_ids is None else position_ids[:, :1, :cut],
117
+ past_key_values=cache,
118
+ use_cache=True,
119
+ capture=False,
120
+ )
121
+ # Transformers expects LongTensor; factories return Tensor with int64 dtype.
122
+ indices = torch.zeros(len(embeddings), dtype=torch.long, device=embeddings.device)
123
+ cache.reorder_cache(indices) # ty: ignore[invalid-argument-type]
124
+ return captured_forward(
125
+ embeddings[:, cut:],
126
+ attention_mask,
127
+ None if position_ids is None else position_ids[:, :, cut:],
128
+ past_key_values=cache,
129
+ use_cache=True,
130
+ )
131
+ finally:
132
+ for layer in layers:
133
+ layer.gradient_checkpointing = True
134
+
135
+ if torch.is_grad_enabled():
136
+ from torch.utils.checkpoint import checkpoint
137
+
138
+ return checkpoint(shared_forward, use_reentrant=False)
139
+ return shared_forward()
src/jolt/kernels.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Fused differentiable Qwen operations shared by training and inference."""
2
+
3
+ from types import MethodType
4
+
5
+
6
+ def fused_rms_norm(module, hidden):
7
+ from fla.modules.layernorm import rms_norm
8
+
9
+ # FLA 0.5.2 accepts bias=None, but its annotation omits None.
10
+ return rms_norm(
11
+ hidden,
12
+ module._jolt_norm_weight,
13
+ None, # ty: ignore[invalid-argument-type]
14
+ eps=module.eps,
15
+ )
16
+
17
+
18
+ def fused_gated_norm(module, hidden, gate):
19
+ from fla.modules.fused_norm_gate import rms_norm_gated
20
+
21
+ # FLA 0.5.2 accepts bias=None, but its annotation omits None.
22
+ return rms_norm_gated(
23
+ hidden,
24
+ gate,
25
+ module.weight,
26
+ None, # ty: ignore[invalid-argument-type]
27
+ eps=module.variance_epsilon,
28
+ )
29
+
30
+
31
+ def fused_mlp(module, hidden):
32
+ from fla.modules.activations import swiglu
33
+
34
+ # Keep the projection modules in the graph: they own the trainable LoRA.
35
+ return module.down_proj(swiglu(module.gate_proj(hidden), module.up_proj(hidden)))
36
+
37
+
38
+ def enable_fusion(backbone, *, unfused_mlp_layers=()):
39
+ from transformers.models.qwen3_5 import modeling_qwen3_5 as qwen
40
+
41
+ functions = {
42
+ qwen.Qwen3_5RMSNorm: fused_rms_norm,
43
+ qwen.Qwen3_5RMSNormGated: fused_gated_norm,
44
+ qwen.Qwen3_5MLP: fused_mlp,
45
+ }
46
+ language_layers = backbone.language_model.layers
47
+ unfused_mlps = {
48
+ id(language_layers[index].mlp) for index in unfused_mlp_layers
49
+ }
50
+ for module in backbone.modules():
51
+ if isinstance(module, qwen.Qwen3_5RMSNorm):
52
+ module.register_buffer(
53
+ "_jolt_norm_weight", module.weight.detach().float() + 1, persistent=False
54
+ )
55
+ if type(module) in functions and not (
56
+ isinstance(module, qwen.Qwen3_5MLP) and id(module) in unfused_mlps
57
+ ):
58
+ module.forward = MethodType(functions[type(module)], module)
59
+
60
+
61
+ def linear_patch_embedding(module, hidden_states):
62
+ """The patch Conv3d has exactly one output per independent input patch.
63
+
64
+ Flattening its kernel is the same affine map, without a convolution solver
65
+ search for every total patch count. No weights or tokens are added/removed.
66
+ """
67
+ from torch.nn import functional
68
+
69
+ weight = module.proj.weight
70
+ patches = hidden_states.reshape(-1, weight[0].numel()).to(weight.dtype)
71
+ return functional.linear(patches, weight.flatten(1), module.proj.bias)
72
+
73
+
74
+ def enable_linear_patch_embedding(visual):
75
+ module = visual.patch_embed
76
+ projection = module.proj
77
+ if (
78
+ projection.kernel_size != projection.stride
79
+ or projection.groups != 1
80
+ or any(projection.padding)
81
+ or projection.dilation != (1, 1, 1)
82
+ ):
83
+ raise ValueError("Linear patch embedding requires non-overlapping independent patches")
84
+ module.forward = MethodType(linear_patch_embedding, module)
85
+
86
+
87
+ def triton_causal_conv1d(hidden_states, weight, bias=None, activation=None, **kwargs):
88
+ from fla.modules.conv import causal_conv1d
89
+
90
+ # FLA's input_guard decorator exposes a Tensor/callable union for this function.
91
+ output, _ = causal_conv1d( # ty: ignore[call-non-callable]
92
+ hidden_states.transpose(1, 2),
93
+ weight=weight,
94
+ bias=bias,
95
+ activation=activation,
96
+ backend="triton",
97
+ output_final_state=False,
98
+ cu_seqlens=kwargs.get("cu_seq_lens_q"),
99
+ )
100
+ return output.transpose(1, 2)
101
+
102
+
103
+ def enable_triton_convolution():
104
+ """Explicit process-local override; applies only to full-sequence prefill."""
105
+ from transformers.models.qwen3_5 import modeling_qwen3_5
106
+
107
+ modeling_qwen3_5.causal_conv1d_fn = triton_causal_conv1d
src/jolt/model.py ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Parallel candidate scoring over shared text/image computation."""
2
+
3
+ import hashlib
4
+ import json
5
+ from pathlib import Path
6
+
7
+ import torch
8
+ import torch.nn.functional as F
9
+ from torch import Tensor, nn
10
+
11
+ from jolt.adapters import Qwen35Adapter
12
+ from jolt.recipe import IMAGE_PIXELS, MAX_LENGTH, normalize_architecture
13
+
14
+
15
+ def model_revision(directory):
16
+ """Identify a downloaded Hub snapshot or a locally pinned training base."""
17
+ directory = Path(directory)
18
+ revision = directory / "revision.txt"
19
+ if revision.is_file():
20
+ return revision.read_text().strip()
21
+ if directory.parent.name == "snapshots" and len(directory.name) == 40:
22
+ return directory.name
23
+ raise ValueError("The base model must be a pinned Hub snapshot or contain revision.txt")
24
+
25
+
26
+ class ResidualBottleneck(nn.Module):
27
+ def __init__(self, hidden_size, width, activation):
28
+ super().__init__()
29
+ self.norm = nn.LayerNorm(hidden_size, eps=1e-5)
30
+ self.down = nn.Linear(hidden_size, width, bias=False)
31
+ self.up = nn.Linear(width, hidden_size, bias=False)
32
+ self.activation = F.silu if activation == "silu" else F.gelu
33
+ nn.init.xavier_uniform_(self.down.weight)
34
+ nn.init.zeros_(self.up.weight)
35
+
36
+ def forward(self, hidden):
37
+ residual = hidden
38
+ block_input = hidden.to(dtype=self.norm.weight.dtype)
39
+ update = self.up(self.activation(self.down(self.norm(block_input))))
40
+ return residual + update.to(dtype=residual.dtype)
41
+
42
+
43
+ class CandidateInteraction(nn.Module):
44
+ def __init__(self, hidden_size):
45
+ super().__init__()
46
+ width = 128
47
+ self.heads = 4
48
+ self.head_width = width // self.heads
49
+ self.norm_attention = nn.LayerNorm(hidden_size, eps=1e-5)
50
+ self.query = nn.Linear(hidden_size, width)
51
+ self.key = nn.Linear(hidden_size, width)
52
+ self.value = nn.Linear(hidden_size, width)
53
+ self.output = nn.Linear(width, hidden_size)
54
+ self.norm_mlp = nn.LayerNorm(hidden_size, eps=1e-5)
55
+ self.mlp_in = nn.Linear(hidden_size, 256)
56
+ self.mlp_out = nn.Linear(256, hidden_size)
57
+ for layer in (self.query, self.key, self.value, self.mlp_in):
58
+ nn.init.xavier_uniform_(layer.weight)
59
+ nn.init.zeros_(layer.bias)
60
+ for layer in (self.output, self.mlp_out):
61
+ nn.init.zeros_(layer.weight)
62
+ nn.init.zeros_(layer.bias)
63
+
64
+ def forward(self, hidden, valid):
65
+ if valid is None:
66
+ raise ValueError("Candidate attention requires a validity mask")
67
+ output_dtype = hidden.dtype
68
+ hidden = hidden.to(dtype=self.norm_attention.weight.dtype)
69
+ normalized = self.norm_attention(hidden)
70
+ batch, candidates, _ = hidden.shape
71
+
72
+ def split_heads(tensor):
73
+ return tensor.view(batch, candidates, self.heads, self.head_width).transpose(1, 2)
74
+
75
+ attended = F.scaled_dot_product_attention(
76
+ split_heads(self.query(normalized)),
77
+ split_heads(self.key(normalized)),
78
+ split_heads(self.value(normalized)),
79
+ attn_mask=valid[:, None, None, :],
80
+ dropout_p=0.0,
81
+ )
82
+ attended = attended.transpose(1, 2).reshape(batch, candidates, -1)
83
+ hidden = hidden + self.output(attended)
84
+ hidden = hidden + self.mlp_out(F.gelu(self.mlp_in(self.norm_mlp(hidden))))
85
+ return hidden.masked_fill(~valid[..., None], 0).to(dtype=output_dtype)
86
+
87
+
88
+ class GeluScoringHead(nn.Module):
89
+ def __init__(self, hidden_size):
90
+ super().__init__()
91
+ self.in_proj = nn.Linear(hidden_size, 256, bias=False)
92
+ self.out_proj = nn.Linear(256, 1, bias=False)
93
+ nn.init.xavier_uniform_(self.in_proj.weight)
94
+ nn.init.normal_(self.out_proj.weight, std=0.01)
95
+
96
+ def forward(self, hidden):
97
+ return self.out_proj(F.gelu(self.in_proj(hidden.float()))).squeeze(-1)
98
+
99
+
100
+ class InterpolatedActivation(nn.Module):
101
+ def __init__(self, initial_mix):
102
+ super().__init__()
103
+ self.mix = nn.Parameter(torch.tensor(float(initial_mix), device="cuda"))
104
+
105
+ def forward(self, value):
106
+ mix = self.mix.to(value.dtype)
107
+ return (1 - mix) * F.silu(value) + mix * F.gelu(value)
108
+
109
+
110
+ class DecisionModel(nn.Module):
111
+ def __init__(self, checkpoint: str | Path, *, adapter=None, architecture=None):
112
+ super().__init__()
113
+ self.adapter = adapter or Qwen35Adapter()
114
+ self.base_path = Path(checkpoint)
115
+ self.architecture = normalize_architecture(architecture)
116
+ self.backbone = self.adapter.load(checkpoint, architecture=self.architecture)
117
+ hidden_size = self.adapter.hidden_size(self.backbone)
118
+ self.processor = self.adapter.processor(checkpoint)
119
+ self.head = nn.Linear(hidden_size, 1, bias=False, device="cuda", dtype=torch.float32)
120
+ nn.init.normal_(self.head.weight, std=0.01)
121
+ self.lora_rank = 8
122
+ self.lora_alpha = 16
123
+ self.lora_dropout = 0.0
124
+ self.marker_id = self.processor.tokenizer.convert_tokens_to_ids(self.adapter.marker)
125
+ if self.processor.tokenizer.encode(self.adapter.marker, add_special_tokens=False) != [
126
+ self.marker_id
127
+ ]:
128
+ raise ValueError("The candidate marker must be a single reserved token")
129
+
130
+ # Added modules use a forked RNG so they do not shift the baseline LoRA
131
+ # initialization that follows enable_lora().
132
+ with torch.random.fork_rng(devices=[torch.cuda.current_device()]):
133
+ if self.architecture["head"] == "gelu-mlp":
134
+ self.head = GeluScoringHead(hidden_size).to("cuda")
135
+ if self.architecture["candidate_attention"]:
136
+ self.candidate_block = CandidateInteraction(hidden_size).to("cuda")
137
+ else:
138
+ self.candidate_block = None
139
+
140
+ adapter_config = self.architecture["adapters"]
141
+ self.layer_adapters = nn.ModuleDict(
142
+ {
143
+ str(index): ResidualBottleneck(
144
+ hidden_size, adapter_config["width"], adapter_config["activation"]
145
+ ).to("cuda")
146
+ for index in adapter_config["layers"]
147
+ }
148
+ )
149
+
150
+ self.layer_mixture_weights = (
151
+ nn.Parameter(torch.zeros(3, device="cuda"))
152
+ if self.architecture["readout"] == "layer-mixture"
153
+ else None
154
+ )
155
+
156
+ activation_config = self.architecture["backbone_activation"]
157
+ self.activation_mix_layers = tuple(activation_config["layers"])
158
+ text_layers = self.adapter.language_layers(self.backbone)
159
+ for index in self.activation_mix_layers:
160
+ if not 0 <= index < len(text_layers):
161
+ raise ValueError(f"Backbone activation layer is out of range: {index}")
162
+ text_layers[index].mlp.act_fn = InterpolatedActivation(
163
+ activation_config["initial_mix"]
164
+ ).to("cuda")
165
+
166
+ layer_count = len(self.adapter.language_layers(self.backbone))
167
+ self.capture_layers = (20, 21, 22, 23) if self.layer_mixture_weights is not None else ()
168
+ for index in self.capture_layers:
169
+ if index >= layer_count:
170
+ raise ValueError("Layer mixture requires decoder layers 21 through 24")
171
+ for index in self.layer_adapters:
172
+ if not 0 <= int(index) < layer_count:
173
+ raise ValueError(f"Residual adapter layer is out of range: {index}")
174
+ self._adapter_hooks = []
175
+
176
+ def forward(
177
+ self, inputs: dict[str, Tensor], positions: Tensor, *, candidate_mask: Tensor | None = None
178
+ ) -> Tensor:
179
+ hidden, offset, intermediate = self.adapter.forward(
180
+ self.backbone, inputs, capture_layers=self.capture_layers
181
+ )
182
+ local_positions = (positions - offset).clamp_min(0)
183
+ rows = torch.arange(hidden.shape[0], device=hidden.device)[:, None]
184
+ if self.layer_mixture_weights is None:
185
+ candidate_hidden = hidden[rows, local_positions]
186
+ else:
187
+ norm = self.adapter.final_norm(self.backbone)
188
+ layer_features = torch.stack(
189
+ [
190
+ norm(intermediate[index][rows, local_positions])
191
+ for index in self.capture_layers
192
+ ],
193
+ dim=0,
194
+ )
195
+ layer_features = layer_features.float()
196
+ final = layer_features[-1]
197
+ deltas = layer_features[:-1] - final
198
+ candidate_hidden = final + (
199
+ self.layer_mixture_weights.float()[:, None, None, None] * deltas
200
+ ).sum(0)
201
+ if self.candidate_block is not None:
202
+ candidate_hidden = self.candidate_block(candidate_hidden, candidate_mask)
203
+ if isinstance(self.head, GeluScoringHead):
204
+ return self.head(candidate_hidden)
205
+ return self.head(candidate_hidden.float()).squeeze(-1)
206
+
207
+ def enable_lora(self, *, checkpointing=True, rank=8, alpha=16, dropout=0.0):
208
+ self.lora_rank = rank
209
+ self.lora_alpha = alpha
210
+ self.lora_dropout = dropout
211
+ self.adapter.adapt_language(
212
+ self.backbone,
213
+ training=checkpointing,
214
+ rank=rank,
215
+ alpha=alpha,
216
+ dropout=dropout,
217
+ )
218
+ layers = self.adapter.language_layers(self.backbone)
219
+ for index in self.activation_mix_layers:
220
+ layers[index].mlp.act_fn.mix.requires_grad_(True)
221
+ for handle in self._adapter_hooks:
222
+ handle.remove()
223
+ self._adapter_hooks.clear()
224
+ for index, module in self.layer_adapters.items():
225
+ layer = layers[int(index)]
226
+
227
+ def apply_adapter(_layer, _inputs, output, adapter_module=module):
228
+ if isinstance(output, tuple):
229
+ return (adapter_module(output[0]), *output[1:])
230
+ return adapter_module(output)
231
+
232
+ self._adapter_hooks.append(layer.register_forward_hook(apply_adapter))
233
+
234
+ def load_adapter(self, directory):
235
+ """Load the same verified unmerged weights for learning or deployment."""
236
+ from safetensors.torch import load_file
237
+
238
+ directory = Path(directory)
239
+ metadata = json.loads((directory / "dohnuts.json").read_text())
240
+ weights = directory / "adapter.safetensors"
241
+ if (
242
+ metadata.get("format_version") not in {1, 2, 3}
243
+ or metadata.get("adapter", "qwen3.5") != self.adapter.name
244
+ or metadata.get("base_revision") != model_revision(self.base_path)
245
+ or (metadata["image_pixels"], metadata["max_length"], metadata["lora_rank"])
246
+ != (IMAGE_PIXELS, MAX_LENGTH, self.lora_rank)
247
+ or metadata.get("lora_alpha", 16) != self.lora_alpha
248
+ or metadata.get("lora_dropout", 0.0) != self.lora_dropout
249
+ or normalize_architecture(metadata.get("architecture")) != self.architecture
250
+ or hashlib.sha256(weights.read_bytes()).hexdigest() != metadata["weights_sha256"]
251
+ ):
252
+ raise ValueError(
253
+ "Checkpoint differs from the pinned model, training recipe, or checksum"
254
+ )
255
+ state = load_file(str(weights))
256
+ parameters = {n: p for n, p in self.named_parameters() if p.requires_grad}
257
+ if state.keys() != parameters.keys() or any(
258
+ state[name].shape != parameter.shape for name, parameter in parameters.items()
259
+ ):
260
+ raise ValueError("Checkpoint trainable parameters differ")
261
+ with torch.no_grad():
262
+ for name, parameter in parameters.items():
263
+ parameter.copy_(state[name])
264
+ return metadata
265
+
266
+ def merge(self):
267
+ self.adapter.merge(self.backbone)
268
+ self.requires_grad_(False).eval()
269
+
270
+ def train(self, mode: bool = True):
271
+ super().train(mode)
272
+ self.adapter.freeze_vision(self.backbone)
273
+ return self
274
+
275
+
276
+ def marker_positions(input_ids: Tensor, marker_id: int, candidates: int) -> Tensor:
277
+ positions = []
278
+ for row in input_ids:
279
+ found = (row == marker_id).nonzero(as_tuple=True)[0]
280
+ if found.numel() != candidates:
281
+ raise ValueError(f"Expected {candidates} candidate markers, found {found.numel()}")
282
+ positions.append(found)
283
+ return torch.stack(positions)
src/jolt/predictor.py ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Candidate selection, truth estimates, and ordered scores over shared inputs."""
2
+
3
+ import json
4
+ import math
5
+ from collections.abc import Mapping
6
+ from pathlib import Path
7
+ from typing import Any
8
+
9
+ import torch
10
+ from huggingface_hub import snapshot_download
11
+ from PIL import Image
12
+
13
+ from jolt.adapters import Qwen35Adapter
14
+ from jolt.execution import plan_prefix
15
+ from jolt.model import DecisionModel, marker_positions
16
+ from jolt.recipe import IMAGE_PIXELS
17
+
18
+ QTYPES = {"choice": 0, "score": 1, "noul": 2}
19
+
20
+
21
+ def render(value):
22
+ return value if isinstance(value, str) else json.dumps(value, ensure_ascii=False)
23
+
24
+
25
+ def options_for(question):
26
+ kind = question.get("type")
27
+ criteria = question.get("criteria")
28
+ if kind == "noul":
29
+ criteria = criteria or {}
30
+ if not isinstance(criteria, Mapping):
31
+ raise ValueError("noul criteria must map false/true to descriptions")
32
+ labels = ["false", "true"]
33
+ options = [
34
+ "false: " + render(criteria.get("false", "no, the statement does not hold")),
35
+ "true: " + render(criteria.get("true", "yes, the statement holds")),
36
+ ]
37
+ elif kind == "choice":
38
+ if isinstance(criteria, list):
39
+ labels = [str(value) for value in criteria]
40
+ options = [render(value) for value in criteria]
41
+ elif isinstance(criteria, Mapping):
42
+ labels = list(criteria)
43
+ options = [
44
+ str(key) if value is None or value == "" else f"{key}: {render(value)}"
45
+ for key, value in criteria.items()
46
+ ]
47
+ else:
48
+ raise ValueError("choice requires a candidate list or mapping")
49
+ if len(set(labels)) != len(labels):
50
+ raise ValueError("Candidate labels must be unique")
51
+ elif kind == "score":
52
+ if not isinstance(criteria, list):
53
+ raise ValueError("score requires an ordered list of level descriptions")
54
+ labels = [str(i) for i in range(len(criteria))]
55
+ options = [f"level {i}: {render(value)}" for i, value in enumerate(criteria)]
56
+ else:
57
+ raise ValueError(f"Unsupported decision type: {kind}")
58
+ if not 2 <= len(options) <= 128:
59
+ raise ValueError("Each question requires 2–128 candidates")
60
+ return labels, options
61
+
62
+
63
+ def render_question(state_text, question, *, has_image=False, adapter=None, layout="inline"):
64
+ """One prompt template shared by training, evaluation, and serving."""
65
+ adapter = adapter or Qwen35Adapter()
66
+ marker = adapter.marker
67
+ labels, options = options_for(question)
68
+ if layout not in {"inline", "readout-list"}:
69
+ raise ValueError(f"Unsupported prompt layout: {layout}")
70
+ content = (
71
+ f"State: {state_text}\n{question['type']} question: "
72
+ f"{question.get('instructions', '')}\nOptions:\n"
73
+ )
74
+ if marker in content or any(marker in option for option in options):
75
+ raise ValueError("Input contains the reserved candidate marker")
76
+ if layout == "inline":
77
+ content += "".join(f"- {option}{marker}" for option in options)
78
+ else:
79
+ content += "".join(f"[{index}] {option}\n" for index, option in enumerate(options))
80
+ content += "Readout:\n"
81
+ content += "".join(f"[{index}]{marker}\n" for index in range(len(options)))
82
+ if has_image:
83
+ content = adapter.image_prefix + content
84
+ return content, labels
85
+
86
+
87
+ class Predictor:
88
+ metadata: dict[str, Any]
89
+
90
+ def __init__(self, model: DecisionModel, *, prompt_layout="inline"):
91
+ self.model = model
92
+ self.prompt_layout = prompt_layout
93
+ self.image_pixels = IMAGE_PIXELS
94
+ self.max_length = model.adapter.max_input_tokens
95
+ self.temperatures = [1.0, 1.0, 1.0]
96
+
97
+ @classmethod
98
+ def from_checkpoint(cls, directory, *, revision=None, base_model=None, adapter=None):
99
+ """Load a local export or Hub repository and merge its calibrated decision model."""
100
+ source = directory
101
+ directory = Path(source).expanduser()
102
+ if not directory.is_dir():
103
+ if isinstance(source, Path) or str(source).startswith(("/", ".", "~")):
104
+ raise FileNotFoundError(f"Checkpoint directory does not exist: {directory}")
105
+ directory = Path(
106
+ snapshot_download(
107
+ str(source),
108
+ revision=revision,
109
+ allow_patterns=["dohnuts.json", "adapter.safetensors", "LICENSE"],
110
+ )
111
+ )
112
+ config = json.loads((directory / "dohnuts.json").read_text())
113
+ if base_model is None:
114
+ # Resolve the exact public backbone revision recorded in the model card.
115
+ # Checkpoints must not depend on the exporting machine's local path.
116
+ base_model = snapshot_download(
117
+ config["base_model"], revision=config["base_revision"]
118
+ )
119
+ base_model = Path(base_model).expanduser()
120
+ model = DecisionModel(
121
+ base_model, adapter=adapter, architecture=config.get("architecture")
122
+ )
123
+ model.enable_lora(
124
+ checkpointing=False,
125
+ rank=config["lora_rank"],
126
+ alpha=config.get("lora_alpha", 16),
127
+ dropout=config.get("lora_dropout", 0.0),
128
+ )
129
+ config = model.load_adapter(directory)
130
+ model.merge()
131
+ predictor = cls(model, prompt_layout=config.get("prompt_layout", "inline"))
132
+ predictor.metadata = config
133
+ predictor.temperatures = [config["temperatures"][kind] for kind in QTYPES]
134
+ return predictor
135
+
136
+ def prepare(self, state, questions):
137
+ if not isinstance(questions, Mapping) or not questions:
138
+ raise ValueError("questions must be a nonempty mapping")
139
+ image = None
140
+ if isinstance(state, Mapping):
141
+ image = state.get("image")
142
+ if "images" in state:
143
+ raise ValueError("Pass one decoded PIL image via state['image']")
144
+ state_text = render({key: value for key, value in state.items() if key != "image"})
145
+ else:
146
+ state_text = render(state)
147
+ if image is not None and not isinstance(image, Image.Image):
148
+ raise ValueError("Decode the image as a PIL image before passing it in state['image']")
149
+ texts, metadata = [], []
150
+ for qid, question in questions.items():
151
+ content, labels = render_question(
152
+ state_text,
153
+ question,
154
+ has_image=image is not None,
155
+ adapter=self.model.adapter,
156
+ layout=self.prompt_layout,
157
+ )
158
+ texts.append(content)
159
+ metadata.append((qid, question["type"], labels))
160
+ if image is not None:
161
+ inputs = self.model.adapter.shared_image_inputs(self.model.processor, texts, image)
162
+ else:
163
+ inputs = self.model.adapter.batch_inputs(self.model.processor, texts, [])
164
+ if inputs["input_ids"].shape[1] > self.max_length:
165
+ raise ValueError(
166
+ "Input exceeds the token budget; no question or candidate was truncated"
167
+ )
168
+ maximum = max(len(labels) for _, _, labels in metadata)
169
+ positions = torch.zeros(len(texts), maximum, dtype=torch.long)
170
+ mask = torch.zeros_like(positions, dtype=torch.bool)
171
+ for row, (_, _, labels) in enumerate(metadata):
172
+ positions[row, : len(labels)] = marker_positions(
173
+ inputs["input_ids"][row : row + 1],
174
+ self.model.marker_id,
175
+ len(labels),
176
+ )[0]
177
+ mask[row, : len(labels)] = True
178
+ plan_prefix(inputs, positions)
179
+ return inputs, positions, mask, metadata
180
+
181
+ @torch.inference_mode()
182
+ def predict(self, state, questions):
183
+ self.model.eval()
184
+ inputs, positions, mask, metadata = self.prepare(state, questions)
185
+ token_count = int(inputs["attention_mask"].sum())
186
+ has_image = "pixel_values" in inputs
187
+ inputs = {
188
+ key: value.to("cuda") if isinstance(value, torch.Tensor) else value
189
+ for key, value in inputs.items()
190
+ }
191
+ positions = positions.to("cuda")
192
+ logits = self.model(
193
+ inputs, positions, candidate_mask=mask.to("cuda")
194
+ ).cpu().masked_fill(~mask, -torch.inf)
195
+ answers = {}
196
+ for row, (qid, kind, labels) in enumerate(metadata):
197
+ temperature = self.temperatures[QTYPES[kind]]
198
+ if not math.isfinite(temperature) or temperature <= 0:
199
+ raise ValueError("Calibration temperatures must be positive and finite")
200
+ probabilities = (logits[row, : len(labels)] / temperature).softmax(-1)
201
+ if not torch.isfinite(probabilities).all():
202
+ raise RuntimeError("Model produced a non-finite distribution")
203
+ values = probabilities.tolist()
204
+ entropy = -sum(p * math.log(max(p, 1e-12)) for p in values)
205
+ answer = {
206
+ "type": kind,
207
+ "confidence": max(0.0, min(1.0, 1 - entropy / math.log(len(labels)))),
208
+ }
209
+ if kind == "noul":
210
+ answer["noul"] = values[1]
211
+ answer["confidence"] = max(values)
212
+ else:
213
+ answer["probabilities"] = dict(zip(labels, values, strict=True))
214
+ if kind == "choice":
215
+ answer["choice"] = labels[int(probabilities.argmax())]
216
+ else:
217
+ answer["score"] = sum(i * p for i, p in enumerate(values))
218
+ answers[qid] = answer
219
+ return {
220
+ "model": getattr(self, "metadata", {}).get("model_id", "jolt"),
221
+ "answers": answers,
222
+ "usage": {"input_tokens": token_count, "images": int(has_image)},
223
+ }
src/jolt/recipe.py ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """The Dohnuts training and evaluation recipe.
2
+
3
+ Values are recorded in each run for reproducibility. They are product defaults,
4
+ not a configuration surface. Model-specific behavior belongs in an adapter.
5
+ """
6
+
7
+ from pathlib import Path
8
+
9
+ from jolt.rlcd import RLCDConfig
10
+
11
+ IMAGE_PIXELS = 512**2
12
+ MAX_LENGTH = 2048
13
+ TRAINING_STEPS = 3600
14
+ LR_DECAY_STEPS = 2400
15
+ BASE_MODEL = Path(".cache/models/Qwen3.5-0.8B")
16
+ DATA = Path("data/processed/v1")
17
+
18
+
19
+ def default_architecture():
20
+ return {
21
+ "readout": "last",
22
+ "candidate_attention": False,
23
+ "adapters": {"layers": [], "width": 64, "activation": "silu"},
24
+ "head": "linear",
25
+ "unfused_mlp_layers": [],
26
+ "backbone_activation": {"layers": [], "initial_mix": 0.0, "learning_rate": 1e-3},
27
+ }
28
+
29
+
30
+ def normalize_architecture(architecture=None):
31
+ resolved = default_architecture()
32
+ for key, value in (architecture or {}).items():
33
+ if isinstance(value, dict) and isinstance(resolved.get(key), dict):
34
+ resolved[key] = {**resolved[key], **value}
35
+ else:
36
+ resolved[key] = value
37
+ if resolved["readout"] not in {"last", "layer-mixture"}:
38
+ raise ValueError(f"Unsupported readout: {resolved['readout']}")
39
+ if resolved["head"] not in {"linear", "gelu-mlp"}:
40
+ raise ValueError(f"Unsupported scoring head: {resolved['head']}")
41
+ if not isinstance(resolved["candidate_attention"], bool):
42
+ raise ValueError("candidate_attention must be a boolean")
43
+ if resolved["adapters"]["activation"] not in {"silu", "gelu"}:
44
+ raise ValueError("Adapter activation must be silu or gelu")
45
+ if resolved["adapters"]["width"] < 1:
46
+ raise ValueError("Adapter width must be positive")
47
+ if not 0 <= resolved["backbone_activation"]["initial_mix"] <= 1:
48
+ raise ValueError("Backbone activation interpolation must be in [0, 1]")
49
+ return resolved
50
+
51
+
52
+ def training_recipe(
53
+ *,
54
+ model=BASE_MODEL,
55
+ data=DATA,
56
+ seed=42,
57
+ rlcd=None,
58
+ steps=TRAINING_STEPS,
59
+ schedule_steps=LR_DECAY_STEPS,
60
+ loss="rlcd",
61
+ precision="bf16",
62
+ lora_rank=8,
63
+ lora_alpha=16,
64
+ lora_dropout=0.0,
65
+ batch_size=8,
66
+ physical_batch_size=None,
67
+ accumulation=4,
68
+ backbone_lr=1e-4,
69
+ head_lr=5e-4,
70
+ train_cap=6000,
71
+ dev_cap=256,
72
+ workers=2,
73
+ eval_batch_size=16,
74
+ log_every=10,
75
+ eval_every=400,
76
+ save_every=100,
77
+ cpu_threads=8,
78
+ image_pixels=IMAGE_PIXELS,
79
+ max_length=MAX_LENGTH,
80
+ clip_grad_norm=1.0,
81
+ backend=None,
82
+ sampling_mode="replacement",
83
+ dataset_version="v1",
84
+ prompt_layout="inline",
85
+ architecture=None,
86
+ ):
87
+ if not isinstance(steps, int) or steps < 1:
88
+ raise ValueError("Training steps must be a positive integer")
89
+ if not isinstance(schedule_steps, int) or schedule_steps < 1:
90
+ raise ValueError("Schedule steps must be a positive integer")
91
+ if loss not in {"rlcd", "ce", "direct-composite", "pathwise-noisy"}:
92
+ raise ValueError(f"Unsupported loss: {loss}")
93
+ if sampling_mode not in {"replacement", "without-replacement"}:
94
+ raise ValueError(f"Unsupported sampling mode: {sampling_mode}")
95
+ if dataset_version not in {"v1", "v2", "p1"}:
96
+ raise ValueError(f"Unsupported dataset version: {dataset_version}")
97
+ if prompt_layout not in {"inline", "readout-list"}:
98
+ raise ValueError(f"Unsupported prompt layout: {prompt_layout}")
99
+ if precision not in {"bf16", "fp16"}:
100
+ raise ValueError(f"Unsupported training precision: {precision}")
101
+ if min(lora_rank, lora_alpha, batch_size, accumulation, dev_cap) < 1 or train_cap < 0:
102
+ raise ValueError("Rank, alpha, batches, and dev caps must be positive; train_cap may be zero")
103
+ if workers < 0 or min(eval_batch_size, log_every, eval_every, save_every, cpu_threads) < 1:
104
+ raise ValueError("Worker count must be nonnegative and other runtime settings positive")
105
+ if clip_grad_norm <= 0:
106
+ raise ValueError("Gradient clipping threshold must be positive")
107
+ if lora_dropout < 0 or lora_dropout >= 1:
108
+ raise ValueError("LoRA dropout must be in [0, 1)")
109
+ physical_batch_size = physical_batch_size or batch_size
110
+ if physical_batch_size < 1 or (batch_size * accumulation) % physical_batch_size:
111
+ raise ValueError("Physical batch must divide the effective optimizer batch")
112
+ if physical_batch_size >= batch_size and physical_batch_size % batch_size:
113
+ raise ValueError("A larger physical batch must contain whole logical groups")
114
+ if physical_batch_size < batch_size and batch_size % physical_batch_size:
115
+ raise ValueError("A smaller physical batch must divide a logical group")
116
+ policy = rlcd or RLCDConfig()
117
+ architecture = normalize_architecture(architecture)
118
+ backend = backend or {
119
+ "linear_patch": True,
120
+ "triton_convolution": True,
121
+ "experimental_rocm_sdpa": True,
122
+ "fused_norm_and_swiglu": True,
123
+ "shared_prefix": True,
124
+ "frozen_vision_cache_MiB": 128,
125
+ }
126
+ recipe = {
127
+ "model": str(model),
128
+ "data": str(data),
129
+ "seed": seed,
130
+ "lora_rank": lora_rank,
131
+ "lora_alpha": lora_alpha,
132
+ "lora_dropout": lora_dropout,
133
+ "batch_size": batch_size,
134
+ "physical_batch_size": physical_batch_size,
135
+ "accumulation": accumulation,
136
+ "steps": steps,
137
+ "schedule_steps": schedule_steps,
138
+ "loss": loss,
139
+ "precision": precision,
140
+ "backbone_lr": backbone_lr,
141
+ "head_lr": head_lr,
142
+ "train_cap": train_cap,
143
+ "dev_cap": dev_cap,
144
+ "image_pixels": image_pixels,
145
+ "max_length": max_length,
146
+ "cpu_threads": cpu_threads,
147
+ "workers": workers,
148
+ "eval_batch_size": eval_batch_size,
149
+ "log_every": log_every,
150
+ "eval_every": eval_every,
151
+ "save_every": save_every,
152
+ "clip_grad_norm": clip_grad_norm,
153
+ "backend": backend,
154
+ "sampling_mode": sampling_mode,
155
+ "dataset_version": dataset_version,
156
+ "prompt_layout": prompt_layout,
157
+ "architecture": architecture,
158
+ }
159
+ if policy != RLCDConfig():
160
+ recipe["rlcd"] = {"sigma": policy.sigma, "ce_weight": policy.ce_weight}
161
+ return recipe
src/jolt/rlcd.py ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Joint RLCD and cross-entropy loss aligned with pinned Laya references.
2
+
3
+ See docs/rlcd.md for upstream revisions, reduction semantics, and limitations.
4
+ """
5
+
6
+ import math
7
+ from dataclasses import dataclass, field
8
+
9
+ import torch
10
+ from torch import Tensor
11
+
12
+
13
+ @dataclass(frozen=True)
14
+ class RLCDConfig:
15
+ """The two RLCD controls; the scoring rule and estimator are fixed."""
16
+
17
+ samples: int = field(default=4, init=False)
18
+ sigma: float = 0.3
19
+ log_weight: float = field(default=1.0, init=False)
20
+ spherical_weight: float = field(default=0.75, init=False)
21
+ ordinal_weight: float = field(default=1.0, init=False)
22
+ ce_weight: float = 1.0
23
+ log_floor: float = field(default=-9.21, init=False)
24
+
25
+ def __post_init__(self):
26
+ if not math.isfinite(self.sigma) or self.sigma <= 0:
27
+ raise ValueError("sigma must be positive and finite")
28
+ if not math.isfinite(self.ce_weight) or self.ce_weight < 0:
29
+ raise ValueError("ce_weight must be nonnegative and finite")
30
+
31
+
32
+ def distribution_rewards(
33
+ actions: Tensor,
34
+ targets: Tensor,
35
+ mask: Tensor,
36
+ ordinal: Tensor,
37
+ config: RLCDConfig,
38
+ ) -> Tensor:
39
+ """Score [G,B,K] sampled logits; padded candidates have zero probability.
40
+
41
+ Counts use semantic ascending order. RPS excludes the final (always-one)
42
+ cumulative probability and is divided by K-1, using each row's actual K.
43
+ """
44
+ log_probs = actions.float().masked_fill(~mask, -torch.inf).log_softmax(-1)
45
+ probabilities = log_probs.exp()
46
+ if targets.ndim == 1:
47
+ targets = torch.nn.functional.one_hot(targets, actions.shape[-1]).float()
48
+ log_score = probabilities.clamp_min(1e-12).log().clamp_min(config.log_floor)
49
+ log_score = (log_score * targets).sum(-1)
50
+ target_probability = (probabilities * targets).sum(-1)
51
+ spherical = target_probability / probabilities.norm(dim=-1).clamp_min(1e-9)
52
+ reward = config.log_weight * log_score + config.spherical_weight * spherical
53
+ levels = torch.arange(actions.shape[-1], device=actions.device)
54
+ target_cdf = targets.cumsum(-1)
55
+ counts = mask.sum(-1)
56
+ cdf_mask = levels[None, :] < (counts - 1)[:, None]
57
+ rps = ((probabilities.cumsum(-1) - target_cdf).square() * cdf_mask).sum(-1)
58
+ rps = rps / (counts - 1).clamp_min(1)
59
+ return reward - config.ordinal_weight * rps * ordinal
60
+
61
+
62
+ def rlcd_loss(
63
+ logits: Tensor,
64
+ targets: Tensor,
65
+ *,
66
+ mask: Tensor | None = None,
67
+ ordinal: Tensor | None = None,
68
+ config: RLCDConfig | None = None,
69
+ ) -> tuple[Tensor, dict[str, Tensor]]:
70
+ """REINFORCE estimate; G perturbations never repeat the backbone forward.
71
+
72
+ Actions AND rewards are detached. Without detaching sampled actions, the
73
+ location parameter cancels in the Gaussian log density and its gradient
74
+ vanishes. Match Laya's per-question group-mean baseline, then normalize with
75
+ ONE sample standard deviation across G and B. This practical normalization,
76
+ reward clipping, and auxiliary CE do not guarantee calibrated probabilities.
77
+ """
78
+ if config is None:
79
+ config = RLCDConfig()
80
+ if logits.ndim != 2 or targets.shape not in (logits.shape[:1], logits.shape):
81
+ raise ValueError("Expected logits [B,K] and targets [B] or distributions [B,K]")
82
+ if mask is None:
83
+ mask = torch.ones_like(logits, dtype=torch.bool)
84
+ if ordinal is None:
85
+ ordinal = torch.zeros(logits.shape[0], dtype=torch.bool, device=logits.device)
86
+ mean = logits.float()
87
+ noise = torch.randn((config.samples, *mean.shape), device=mean.device) * config.sigma * mask
88
+ noise = (noise - noise.sum(-1, keepdim=True) / mask.sum(-1, keepdim=True)) * mask
89
+ actions = (mean.detach()[None] + noise).detach()
90
+ with torch.no_grad():
91
+ rewards = distribution_rewards(actions, targets, mask, ordinal, config)
92
+ advantages = rewards - rewards.mean(0, keepdim=True)
93
+ advantages = advantages / (advantages.std() + 1e-6)
94
+ # Gaussian normalizing constants are independent of trainable parameters.
95
+ log_density = -0.5 * ((actions - mean[None]) / config.sigma).square()
96
+ log_density = log_density.masked_fill(~mask, 0).sum(-1)
97
+ policy_loss = -(advantages * log_density).mean()
98
+ ce_loss = -mean.masked_fill(~mask, -torch.inf).log_softmax(-1)
99
+ if targets.ndim == 1:
100
+ ce_loss = ce_loss.gather(-1, targets[:, None]).mean()
101
+ else:
102
+ ce_loss = (ce_loss.masked_fill(~mask, 0) * targets).sum(-1).mean()
103
+ loss = policy_loss + config.ce_weight * ce_loss
104
+ return loss, {
105
+ "reward_mean": rewards.mean(),
106
+ "reward_std": rewards.std(unbiased=False),
107
+ "advantage_rms": advantages.square().mean().sqrt(),
108
+ "policy_loss": policy_loss.detach(),
109
+ "ce_loss": ce_loss.detach(),
110
+ }
111
+
112
+
113
+ def _direct_components(logits: Tensor, targets: Tensor, mask: Tensor, ordinal: Tensor):
114
+ """Stable differentiable CE, spherical score, and ordered RPS components."""
115
+ scores = logits.float().masked_fill(~mask, -torch.inf)
116
+ log_probabilities = scores.log_softmax(-1)
117
+ probabilities = log_probabilities.exp()
118
+ if targets.ndim == 1:
119
+ targets = torch.nn.functional.one_hot(targets, logits.shape[-1]).float()
120
+ target = targets.float().masked_fill(~mask, 0)
121
+ ce = -(target * log_probabilities.masked_fill(~mask, 0)).sum(-1)
122
+ spherical = (probabilities * target).sum(-1) / probabilities.norm(dim=-1).clamp_min(1e-9)
123
+ counts = mask.sum(-1)
124
+ levels = torch.arange(logits.shape[-1], device=logits.device)
125
+ cdf_mask = levels[None, :] < (counts - 1)[:, None]
126
+ rps = ((probabilities.cumsum(-1) - target.cumsum(-1)).square() * cdf_mask).sum(-1) / (
127
+ counts - 1
128
+ ).clamp_min(1)
129
+ return ce, spherical, rps * ordinal
130
+
131
+
132
+ def direct_loss(
133
+ logits: Tensor,
134
+ targets: Tensor,
135
+ *,
136
+ mask: Tensor | None = None,
137
+ ordinal: Tensor | None = None,
138
+ composite: bool,
139
+ ) -> tuple[Tensor, dict[str, Tensor]]:
140
+ """Soft-target CE, optionally with the plan's spherical and ordinal terms."""
141
+ if mask is None:
142
+ mask = torch.ones_like(logits, dtype=torch.bool)
143
+ if ordinal is None:
144
+ ordinal = torch.zeros(logits.shape[0], dtype=torch.bool, device=logits.device)
145
+ ce, spherical, rps = _direct_components(logits, targets, mask, ordinal)
146
+ ce_loss = ce.mean()
147
+ spherical_mean = spherical.mean()
148
+ rps_mean = rps.mean()
149
+ loss = ce_loss
150
+ if composite:
151
+ loss = loss + 0.75 * (1 - spherical_mean) + rps_mean
152
+ return loss, {
153
+ "ce_loss": ce_loss.detach(),
154
+ "spherical_score": spherical_mean.detach(),
155
+ "ordinal_rps": rps_mean.detach(),
156
+ }
157
+
158
+
159
+ def pathwise_noisy_loss(
160
+ logits: Tensor,
161
+ targets: Tensor,
162
+ *,
163
+ mask: Tensor | None = None,
164
+ ordinal: Tensor | None = None,
165
+ config: RLCDConfig | None = None,
166
+ ) -> tuple[Tensor, dict[str, Tensor]]:
167
+ """Minimize CE minus the differentiable mean reward of noisy logits."""
168
+ config = config or RLCDConfig()
169
+ if mask is None:
170
+ mask = torch.ones_like(logits, dtype=torch.bool)
171
+ if ordinal is None:
172
+ ordinal = torch.zeros(logits.shape[0], dtype=torch.bool, device=logits.device)
173
+ mean = logits.float()
174
+ ce, _, _ = _direct_components(mean, targets, mask, ordinal)
175
+ noise = torch.randn((config.samples, *mean.shape), device=mean.device) * config.sigma * mask
176
+ noise = (noise - noise.sum(-1, keepdim=True) / mask.sum(-1, keepdim=True)) * mask
177
+ rewards = distribution_rewards(mean[None] + noise, targets, mask, ordinal, config)
178
+ ce_loss = ce.mean()
179
+ reward = rewards.mean()
180
+ return ce_loss - reward, {"ce_loss": ce_loss.detach(), "noisy_reward": reward.detach()}
181
+
182
+
183
+ def decision_loss(
184
+ logits: Tensor,
185
+ targets: Tensor,
186
+ *,
187
+ loss: str,
188
+ mask: Tensor,
189
+ ordinal: Tensor,
190
+ config: RLCDConfig,
191
+ ) -> tuple[Tensor, dict[str, Tensor]]:
192
+ """Dispatch a versioned experiment objective; `rlcd` retains the release loss."""
193
+ if loss == "rlcd":
194
+ return rlcd_loss(logits, targets, mask=mask, ordinal=ordinal, config=config)
195
+ if loss == "ce":
196
+ return direct_loss(logits, targets, mask=mask, ordinal=ordinal, composite=False)
197
+ if loss == "direct-composite":
198
+ return direct_loss(logits, targets, mask=mask, ordinal=ordinal, composite=True)
199
+ if loss == "pathwise-noisy":
200
+ return pathwise_noisy_loss(logits, targets, mask=mask, ordinal=ordinal, config=config)
201
+ raise ValueError(f"Unsupported loss: {loss}")
text_bench.png ADDED

Git LFS Details

  • SHA256: 50feba67e4a8e3dedd61029adf8078fe9b207982260bfa4db96a95631d40c7e3
  • Pointer size: 131 Bytes
  • Size of remote file: 132 kB