LEG-1.0-aegis2.0-base / config.json
asiful109's picture
Upload LEG model export
e18d152 verified
{
"architectures": [
"LEGForSafetyExplanation"
],
"attention_probs_dropout_prob": 0.1,
"auto_map": {
"AutoConfig": "configuration_leg.LEGConfig",
"AutoModel": "modeling_leg.LEGForSafetyExplanation"
},
"base_model_name": "microsoft/deberta-v3-base",
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"id2label": {
"0": "safe",
"1": "unsafe"
},
"inference_max_length": 512,
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"safe": 0,
"unsafe": 1
},
"layer_norm_eps": 1e-07,
"legacy": true,
"max_position_embeddings": 512,
"max_relative_positions": -1,
"model_type": "leg-1.0-guardrail",
"norm_rel_ebd": "layer_norm",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"pooler_dropout": 0,
"pooler_hidden_act": "gelu",
"pooler_hidden_size": 768,
"pos_att_type": [
"p2c",
"c2p"
],
"position_biased_input": false,
"position_buckets": 256,
"prompt_threshold": 0.5,
"relative_attention": true,
"share_att_key": true,
"torch_dtype": "float32",
"transformers_version": "4.51.0",
"type_vocab_size": 0,
"vocab_size": 128100,
"word_threshold": 0.5
}