Text Classification
Transformers
Safetensors
English
distilbert
prompt-injection
injection
security
llm-security
Inference Endpoints
vishalp23 commited on
Commit
32cb323
1 Parent(s): 22c5bd8

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +33 -33
config.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "_name_or_path": "acuvity/text-prompt_injection_detection-distilbert_base_uncased-prompt_injection_v2",
3
- "activation": "gelu",
4
- "architectures": [
5
- "DistilBertForSequenceClassification"
6
- ],
7
- "attention_dropout": 0.1,
8
- "dim": 768,
9
- "dropout": 0.1,
10
- "hidden_dim": 3072,
11
- "id2label": {
12
- "0": "safe",
13
- "1": "prompt_injection"
14
- },
15
- "initializer_range": 0.02,
16
- "label2id": {
17
- "prompt_injection": 1,
18
- "safe": 0
19
- },
20
- "max_position_embeddings": 512,
21
- "model_type": "distilbert",
22
- "n_heads": 12,
23
- "n_layers": 6,
24
- "pad_token_id": 0,
25
- "problem_type": "single_label_classification",
26
- "qa_dropout": 0.1,
27
- "seq_classif_dropout": 0.2,
28
- "sinusoidal_pos_embds": false,
29
- "tie_weights_": true,
30
- "torch_dtype": "float32",
31
- "transformers_version": "4.43.4",
32
- "vocab_size": 30522
33
- }
 
1
+ {
2
+ "_name_or_path": "acuvity/prompt-injection",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "safe",
13
+ "1": "prompt_injection"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "label2id": {
17
+ "prompt_injection": 1,
18
+ "safe": 0
19
+ },
20
+ "max_position_embeddings": 512,
21
+ "model_type": "distilbert",
22
+ "n_heads": 12,
23
+ "n_layers": 6,
24
+ "pad_token_id": 0,
25
+ "problem_type": "single_label_classification",
26
+ "qa_dropout": 0.1,
27
+ "seq_classif_dropout": 0.2,
28
+ "sinusoidal_pos_embds": false,
29
+ "tie_weights_": true,
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.43.4",
32
+ "vocab_size": 30522
33
+ }