caelum0x a59767507f fix: otsone-base ONNX export broken Split opset downgrade, run first real training
ModernBERT-base's GeGLU-gated MLP lowers to an ONNX Split node using the
opset-18-only `num_outputs` attribute; torch's dynamo exporter's opset-17
downgrade pass can't rewrite it, so onnxruntime rejected the exported graph
as invalid during temperature calibration. otsone-mini (plain-GELU MiniLM)
never hits this Split pattern, so the bug was invisible until otsone-base
was actually trained for the first time. Fix: export at opset 18 directly.

Ran the fixed pipeline end to end (otsone distill --backbone otsone-base):
a full 14-epoch run stalled twice under ~500-900 load average from other
concurrent agents on this shared Mac (one killed after 23min/0 epochs, one
suspended by the OS post-training at 35min before export), so this records
a labeled reduced 3-epoch run that completed clean in <6min once load eased.
Real held-out gold-set result: 12/14 cases, 14/18 checks, accuracy=0.7778,
ece=0.1596 - slightly behind otsone-mini-run1-nogold's 14-epoch 0.8333/0.1255,
honestly attributable to the 4.7x-shorter training budget on a 6.6x-larger
backbone, not the architecture. Full writeup + model_card/rl_agent_config
(no weights) in otsone/docs/results/otsone-base-reduced-3ep/.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-11 04:09:33 +03:00

93 lines
2.2 KiB
JSON

{
"transformers_version": "5.22.2",
"architectures": [
"ModernBertForMaskedLM"
],
"output_hidden_states": false,
"return_dict": true,
"dtype": "float32",
"chunk_size_feed_forward": 0,
"is_encoder_decoder": false,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"problem_type": null,
"vocab_size": 50368,
"hidden_size": 768,
"intermediate_size": 1152,
"num_hidden_layers": 22,
"num_attention_heads": 12,
"hidden_activation": "gelu",
"max_position_embeddings": 8192,
"initializer_range": 0.02,
"initializer_cutoff_factor": 2.0,
"norm_eps": 1e-05,
"norm_bias": false,
"pad_token_id": 50283,
"eos_token_id": 50282,
"bos_token_id": 50281,
"cls_token_id": 50281,
"sep_token_id": 50282,
"attention_bias": false,
"attention_dropout": 0.0,
"layer_types": [
"full_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"full_attention"
],
"rope_parameters": {
"sliding_attention": {
"rope_type": "default",
"rope_theta": 10000.0
},
"full_attention": {
"rope_type": "default",
"rope_theta": 160000.0
}
},
"local_attention": 128,
"embedding_dropout": 0.0,
"mlp_bias": false,
"mlp_dropout": 0.0,
"decoder_bias": true,
"classifier_pooling": "mean",
"classifier_dropout": 0.0,
"classifier_bias": false,
"classifier_activation": "gelu",
"deterministic_flash_attn": false,
"sparse_prediction": false,
"sparse_pred_ignore_index": -100,
"tie_word_embeddings": true,
"_name_or_path": "answerdotai/ModernBERT-base",
"global_attn_every_n_layers": 3,
"gradient_checkpointing": false,
"layer_norm_eps": 1e-05,
"model_type": "modernbert",
"position_embedding_type": "absolute",
"output_attentions": false
}