July24 commited on
Commit
367bdf8
·
verified ·
1 Parent(s): 5fd7451

Upload DebertaV2ForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +35 -17
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,25 +1,43 @@
1
  {
2
- "_name_or_path": "fmops/distilbert-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
  "initializer_range": 0.02,
 
 
 
 
 
 
12
  "max_position_embeddings": 512,
13
- "model_type": "distilbert",
14
- "n_heads": 12,
15
- "n_layers": 6,
 
 
16
  "pad_token_id": 0,
17
- "problem_type": "single_label_classification",
18
- "qa_dropout": 0.1,
19
- "seq_classif_dropout": 0.2,
20
- "sinusoidal_pos_embds": false,
21
- "tie_weights_": true,
 
 
 
 
 
 
22
  "torch_dtype": "float32",
23
- "transformers_version": "4.35.2",
24
- "vocab_size": 30522
 
25
  }
 
1
  {
2
+ "_name_or_path": "laiyer/deberta-v3-base-prompt-injection",
 
3
  "architectures": [
4
+ "DebertaV2ForSequenceClassification"
5
  ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "SAFE",
12
+ "1": "INJECTION"
13
+ },
14
  "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "label2id": {
17
+ "INJECTION": 1,
18
+ "SAFE": 0
19
+ },
20
+ "layer_norm_eps": 1e-07,
21
  "max_position_embeddings": 512,
22
+ "max_relative_positions": -1,
23
+ "model_type": "deberta-v2",
24
+ "norm_rel_ebd": "layer_norm",
25
+ "num_attention_heads": 12,
26
+ "num_hidden_layers": 12,
27
  "pad_token_id": 0,
28
+ "pooler_dropout": 0,
29
+ "pooler_hidden_act": "gelu",
30
+ "pooler_hidden_size": 768,
31
+ "pos_att_type": [
32
+ "p2c",
33
+ "c2p"
34
+ ],
35
+ "position_biased_input": false,
36
+ "position_buckets": 256,
37
+ "relative_attention": true,
38
+ "share_att_key": true,
39
  "torch_dtype": "float32",
40
+ "transformers_version": "4.38.2",
41
+ "type_vocab_size": 0,
42
+ "vocab_size": 128100
43
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2e4646e1f03c0ced285c67a52353b829ff6d76a1bf35ab5ee0beb19dd4447eef
3
- size 267832560
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4473925f9fa27b99793f61f3a7d4040abe9a5ee7055b88756c901517afdceed1
3
+ size 737719272