File size: 6,710 Bytes
600ef07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
{
 "manifest_version": 1,
 "role": "paper_classifier",
 "name": "paper-classifier-papertype-selfdistill",
 "version": "sha256-63fa8d0f45c8",
 "task": "sequence_classification",
 "runtime": {
  "engine": "onnxruntime",
  "requires": [
   "onnxruntime",
   "tokenizers",
   "numpy"
  ],
  "opset": 17,
  "executes_code_on_load": false
 },
 "files": [
  {
   "path": "onnx/bibr_onnx.json",
   "bytes": 2198,
   "sha256": "3a99003f337514ffbabb163f41808121283a23af301e5966773a076dfb8bd8bf",
   "kind": "legacy_manifest"
  },
  {
   "path": "onnx/model.onnx",
   "bytes": 90470082,
   "sha256": "63fa8d0f45c836054efced5453f90f3f762dc3a1763297ea2dd4363b42c9e3ea",
   "kind": "model"
  },
  {
   "path": "onnx/tokenizer.json",
   "bytes": 711649,
   "sha256": "851ca67100d372ca3ae031a6abd168f53489eebfd7d89523f35c5c9b4d372c3c",
   "kind": "tokenizer"
  }
 ],
 "encoder": null,
 "labels": {
  "l1": [
   "Agricultural and Veterinary Sciences",
   "Engineering and Technology",
   "Humanities and the Arts",
   "Medical and Health Sciences",
   "Natural Sciences",
   "Social Sciences"
  ],
  "l2": [
   "Agriculture, Forestry, and Fisheries",
   "Animal and Dairy Science",
   "Arts (arts, history of arts, performing arts, music)",
   "Basic Medicine",
   "Biological Sciences",
   "Chemical Engineering",
   "Chemical Sciences",
   "Civil Engineering",
   "Clinical Medicine",
   "Computer and Information Sciences",
   "Earth and Related Environmental Sciences",
   "Economics and Business",
   "Education",
   "Electrical Engineering, Electronic Engineering, Information Engineering",
   "Environmental Engineering",
   "Health Sciences",
   "History and Archaeology",
   "Languages and Literature",
   "Law",
   "Materials Engineering",
   "Mathematics",
   "Mechanical Engineering",
   "Media and Communications",
   "Medical Biotechnology",
   "Medical Engineering",
   "Philosophy, Ethics and Religion",
   "Physical Sciences",
   "Political Science",
   "Psychology and Cognitive Sciences",
   "Social and Economic Geography",
   "Sociology",
   "Veterinary Science"
  ],
  "paper_type": [
   "case-study",
   "commentary",
   "empirical",
   "erratum",
   "meta-analysis",
   "retraction",
   "review"
  ]
 },
 "input": {
  "layout": "templated_text",
  "add_special_tokens": true,
  "truncation": "right",
  "max_length": 256,
  "special_tokens": {
   "pad_token": "[PAD]",
   "pad_token_id": 0
  },
  "tokenizer_file": "onnx/tokenizer.json",
  "window": null,
  "stride": null,
  "template": null,
  "normalization": null,
  "pair": null,
  "features": null,
  "model_inputs": [
   {
    "name": "input_ids",
    "dtype": "int64",
    "shape": [
     "batch",
     "sequence"
    ]
   },
   {
    "name": "attention_mask",
    "dtype": "int64",
    "shape": [
     "batch",
     "sequence"
    ]
   }
  ],
  "model_outputs": [
   {
    "name": "l1_logits",
    "dtype": "float32",
    "shape": [
     "batch",
     6
    ]
   },
   {
    "name": "l2_logits",
    "dtype": "float32",
    "shape": [
     "batch",
     32
    ]
   },
   {
    "name": "paper_type_logits",
    "dtype": "float32",
    "shape": [
     "batch",
     7
    ]
   }
  ]
 },
 "decode": {
  "method": "softmax_argmax",
  "crf": null,
  "thresholds": {},
  "when_nothing_found": "always_one_class",
  "calibration": {
   "temperature": 1.0,
   "file": null
  }
 },
 "quantization": {
  "weights": "fp32",
  "note": null
 },
 "provenance": {
  "ledger_key": "paper-classifier-papertype-selfdistill",
  "run_record_sha256": "52d8d8e3477b16bfe6d3045ebdd44f365aa01e4bcfeca0239977a63485e7e2e8",
  "platform_commit": "a4cca55c2b0b42f7b767c94b4500eb4c56ae2f21",
  "registry_build": "2026-11-11T06:54:12Z#b7ec1d94d091",
  "split_id": "corpus-split-v1@c6fc246571f4"
 },
 "licence": "apache-2.0",
 "compat": {
  "bibr_min_version": null,
  "export_schema": null
 },
 "self_test": {
  "tolerance": {
   "probability_abs": 0.01,
   "logit_abs": 0.05,
   "reason": "onnxruntime builds, CPUs and BLAS kernels give slightly different float results; the largest difference measured between onnxruntime 1.27.0 and 1.31.0 on the eight bundles normalised so far was 8e-05 (stored values are rounded to 5 places), so these limits are about two orders of magnitude looser than the drift seen, and far tighter than any change of a decision; tags and label lists are compared exactly"
  },
  "cases": [
   {
    "name": "title and abstract",
    "input": {
     "text": "Notes on invented estuaries [SEP] We describe tidal patterns in a set of imaginary estuaries and compare two survey designs."
    },
    "expect": {
     "labels": {
      "l1": "Natural Sciences",
      "l2": "Earth and Related Environmental Sciences",
      "paper_type": "empirical"
     },
     "probs": {
      "l1": [
       0.01386,
       0.09021,
       0.01227,
       0.00441,
       0.85054,
       0.02871
      ],
      "l2": [
       0.00748,
       0.00043,
       0.00053,
       0.00088,
       0.03237,
       0.00111,
       0.00702,
       0.0212,
       0.00067,
       0.01011,
       0.76446,
       0.01046,
       0.0012,
       0.00124,
       0.09086,
       0.00154,
       0.00496,
       0.00096,
       0.00088,
       0.00065,
       0.00328,
       0.01338,
       0.00103,
       0.00136,
       0.00059,
       0.00112,
       0.00329,
       0.00128,
       0.00077,
       0.00787,
       0.00658,
       0.00045
      ],
      "paper_type": [
       0.02064,
       0.1299,
       0.75682,
       0.00646,
       0.01806,
       0.01827,
       0.04985
      ]
     }
    }
   },
   {
    "name": "title only",
    "input": {
     "text": "A ledger of imaginary tides"
    },
    "expect": {
     "labels": {
      "l1": "Natural Sciences",
      "l2": "Physical Sciences",
      "paper_type": "commentary"
     },
     "probs": {
      "l1": [
       0.01376,
       0.02228,
       0.19771,
       0.01557,
       0.66894,
       0.08174
      ],
      "l2": [
       0.0171,
       0.00615,
       0.02143,
       0.0119,
       0.03396,
       0.00412,
       0.01193,
       0.00826,
       0.00542,
       0.03389,
       0.11367,
       0.05314,
       0.0052,
       0.00779,
       0.01263,
       0.00726,
       0.18483,
       0.01539,
       0.00426,
       0.00461,
       0.02975,
       0.01302,
       0.01779,
       0.00504,
       0.00335,
       0.08512,
       0.19753,
       0.01219,
       0.02489,
       0.01238,
       0.0302,
       0.00583
      ],
      "paper_type": [
       0.0047,
       0.91297,
       0.05629,
       0.00914,
       0.00222,
       0.00455,
       0.01014
      ]
     }
    }
   }
  ]
 },
 "spec": {
  "heads": [
   "l1",
   "l2",
   "paper_type"
  ],
  "temperature_head": "paper_type"
 }
}