|
{ |
|
"_name_or_path": "bert-base-uncased", |
|
"adapters": { |
|
"adapters": { |
|
"mathbridge_adapter": "9f7b0b2dce4e5763" |
|
}, |
|
"config_map": { |
|
"9f7b0b2dce4e5763": { |
|
"adapter_residual_before_ln": false, |
|
"cross_adapter": false, |
|
"dropout": 0.0, |
|
"factorized_phm_W": true, |
|
"factorized_phm_rule": false, |
|
"hypercomplex_nonlinearity": "glorot-uniform", |
|
"init_weights": "bert", |
|
"inv_adapter": null, |
|
"inv_adapter_reduction_factor": null, |
|
"is_parallel": false, |
|
"learn_phm": true, |
|
"leave_out": [], |
|
"ln_after": false, |
|
"ln_before": false, |
|
"mh_adapter": false, |
|
"non_linearity": "relu", |
|
"original_ln_after": true, |
|
"original_ln_before": false, |
|
"output_adapter": true, |
|
"phm_bias": true, |
|
"phm_c_init": "normal", |
|
"phm_dim": 4, |
|
"phm_init_range": 0.0001, |
|
"phm_layer": false, |
|
"phm_rank": 1, |
|
"reduction_factor": 16, |
|
"residual_before_ln": true, |
|
"scaling": 1.0, |
|
"shared_W_phm": false, |
|
"shared_phm_rule": true, |
|
"use_gating": false |
|
} |
|
}, |
|
"fusion_config_map": {}, |
|
"fusions": {} |
|
}, |
|
"architectures": [ |
|
"BertAdapterModel" |
|
], |
|
"attention_probs_dropout_prob": 0.1, |
|
"classifier_dropout": null, |
|
"gradient_checkpointing": false, |
|
"hidden_act": "gelu", |
|
"hidden_dropout_prob": 0.1, |
|
"hidden_size": 768, |
|
"id2label": { |
|
"0": "LABEL_0", |
|
"1": "LABEL_1", |
|
"2": "LABEL_2" |
|
}, |
|
"initializer_range": 0.02, |
|
"intermediate_size": 3072, |
|
"label2id": { |
|
"LABEL_0": 0, |
|
"LABEL_1": 1, |
|
"LABEL_2": 2 |
|
}, |
|
"layer_norm_eps": 1e-12, |
|
"max_position_embeddings": 512, |
|
"model_type": "bert", |
|
"num_attention_heads": 12, |
|
"num_hidden_layers": 12, |
|
"pad_token_id": 0, |
|
"position_embedding_type": "absolute", |
|
"prediction_heads": { |
|
"default": { |
|
"activation_function": "gelu", |
|
"bias": true, |
|
"embedding_size": 768, |
|
"head_type": "masked_lm", |
|
"label2id": null, |
|
"layer_norm": true, |
|
"layers": 2, |
|
"shift_labels": false, |
|
"vocab_size": 30522 |
|
}, |
|
"mathbridge_adapter": { |
|
"activation_function": "tanh", |
|
"dropout_prob": null, |
|
"head_type": "tagging", |
|
"label2id": { |
|
"LABEL_0": 0, |
|
"LABEL_1": 1, |
|
"LABEL_2": 2 |
|
}, |
|
"layers": 1, |
|
"num_labels": 3 |
|
} |
|
}, |
|
"torch_dtype": "float32", |
|
"transformers_version": "4.43.4", |
|
"type_vocab_size": 2, |
|
"use_cache": true, |
|
"vocab_size": 30522 |
|
} |
|
|