aegis-ml-classifier / config.json
billybitcoin's picture
Upload INT8 ONNX classifier + tokenizer
a438dad verified
Raw
History Blame Contribute Delete
2.94 kB
{
"return_dict": true,
"output_hidden_states": false,
"torchscript": false,
"dtype": "float32",
"pruned_heads": {},
"tie_word_embeddings": true,
"chunk_size_feed_forward": 0,
"is_encoder_decoder": false,
"is_decoder": false,
"cross_attention_hidden_size": null,
"add_cross_attention": false,
"tie_encoder_decoder": false,
"architectures": null,
"finetuning_task": null,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"task_specific_params": null,
"problem_type": null,
"tokenizer_class": null,
"prefix": null,
"bos_token_id": null,
"pad_token_id": 0,
"eos_token_id": null,
"sep_token_id": null,
"decoder_start_token_id": null,
"max_length": 20,
"min_length": 0,
"do_sample": false,
"early_stopping": false,
"num_beams": 1,
"temperature": 1.0,
"top_k": 50,
"top_p": 1.0,
"typical_p": 1.0,
"repetition_penalty": 1.0,
"length_penalty": 1.0,
"no_repeat_ngram_size": 0,
"encoder_no_repeat_ngram_size": 0,
"bad_words_ids": null,
"num_return_sequences": 1,
"output_scores": false,
"return_dict_in_generate": false,
"forced_bos_token_id": null,
"forced_eos_token_id": null,
"remove_invalid_values": false,
"exponential_decay_length_penalty": null,
"suppress_tokens": null,
"begin_suppress_tokens": null,
"num_beam_groups": 1,
"diversity_penalty": 0.0,
"_name_or_path": "microsoft/deberta-v3-base",
"transformers_version": "4.57.6",
"model_type": "aegis_mt",
"position_buckets": 256,
"norm_rel_ebd": "layer_norm",
"share_att_key": true,
"tf_legacy_loss": false,
"use_bfloat16": false,
"hidden_size": 768,
"num_hidden_layers": 12,
"num_attention_heads": 12,
"intermediate_size": 3072,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"attention_probs_dropout_prob": 0.1,
"max_position_embeddings": 512,
"type_vocab_size": 0,
"initializer_range": 0.02,
"relative_attention": true,
"max_relative_positions": -1,
"position_biased_input": false,
"pos_att_type": [
"p2c",
"c2p"
],
"vocab_size": 128100,
"layer_norm_eps": 1e-07,
"pooler_hidden_size": 768,
"pooler_dropout": 0,
"pooler_hidden_act": "gelu",
"legacy": true,
"output_attentions": false,
"aegis_base_model": "microsoft/deberta-v3-base",
"aegis_n_threat_classes": 7,
"aegis_threat2id": {
"prompt_injection": 0,
"jailbreak": 1,
"data_exfiltration": 2,
"canary_leak": 3,
"pii_leak": 4,
"harmful_content": 5,
"none": 6
},
"aegis_id2threat": {
"0": "prompt_injection",
"1": "jailbreak",
"2": "data_exfiltration",
"3": "canary_leak",
"4": "pii_leak",
"5": "harmful_content",
"6": "none"
},
"aegis_binary_id2label": {
"0": "BENIGN",
"1": "MALICIOUS"
},
"aegis_binary_label2id": {
"BENIGN": 0,
"MALICIOUS": 1
},
"temperature_scaling": 0.6472993261860409,
"dropout": 0.1
}