bibr-paper-classifier / bibr_model.json
thesanogoeffect's picture
Replace the model with the self-distilled paper-type classifier (bibr 0.9.0)
600ef07 verified
Raw History Blame Contribute Delete
6.71 kB
{
"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"
}
}