Censer.7 / config.json
KucLab's picture
Censer.7: two-phase trained multi-label classifier, calibrated categories, 4k ctx + chunked-max, multilingual; standard LlamaForSequenceClassification
103988e verified
Raw History Blame Contribute Delete
1.92 kB
{
"architectures": [
"LlamaForSequenceClassification"
],
"model_type": "llama",
"num_labels": 12,
"id2label": {
"0": "safe",
"1": "unsafe",
"2": "violence",
"3": "weapons_explosives",
"4": "drugs",
"5": "hate_harassment",
"6": "sexual_abuse",
"7": "self_harm",
"8": "cybercrime_fraud",
"9": "jailbreak_injection",
"10": "illegal_marketplace",
"11": "other_unsafe"
},
"label2id": {
"safe": 0,
"unsafe": 1,
"violence": 2,
"weapons_explosives": 3,
"drugs": 4,
"hate_harassment": 5,
"sexual_abuse": 6,
"self_harm": 7,
"cybercrime_fraud": 8,
"jailbreak_injection": 9,
"illegal_marketplace": 10,
"other_unsafe": 11
},
"problem_type": "multi_label_classification",
"vocab_size": 2048,
"hidden_size": 128,
"intermediate_size": 384,
"num_hidden_layers": 3,
"num_attention_heads": 4,
"num_key_value_heads": 4,
"head_dim": 32,
"max_position_embeddings": 4096,
"rms_norm_eps": 1e-05,
"rope_parameters": {
"rope_type": "linear",
"factor": 8.0,
"rope_theta": 10000.0,
"original_max_position_embeddings": 512
},
"rope_scaling": {
"rope_type": "linear",
"factor": 8.0
},
"attention_bias": false,
"mlp_bias": false,
"tie_word_embeddings": true,
"pad_token_id": 0,
"bos_token_id": 1,
"eos_token_id": 3,
"name": "Censer.7",
"max_chars": 4000,
"answer_ids": [
19,
20,
68,
69,
70,
71,
72,
73,
74,
75,
76,
77
],
"special_tokens": [
"[PAD]",
"[BOS]",
"[USER]",
"[ASSISTANT]"
],
"threshold": 0.5,
"cat_thresholds": {
"violence": 0.5,
"weapons_explosives": 0.5,
"drugs": 0.5,
"hate_harassment": 0.2,
"sexual_abuse": 0.5,
"self_harm": 0.5,
"cybercrime_fraud": 0.5,
"jailbreak_injection": 0.5,
"illegal_marketplace": 0.5,
"other_unsafe": 0.5
}
}