Necent commited on
Commit
83d35d5
·
verified ·
1 Parent(s): b51b17f

Upload 11 files

Browse files
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased",
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": "regular",
13
+ "1": "jailbreak"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "label2id": {
17
+ "jailbreak": 1,
18
+ "regular": 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.39.3",
32
+ "vocab_size": 30522
33
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb9c31faf90d9f0b42739215b91a3bb4c414f9c981ab4a92a1e262f6520dac77
3
+ size 267832560
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cbc280c1007e22a2ea6ab1abef19206aea56a312e05b16eaf1c69e5e56fcfae
3
+ size 535724410
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef181b1d22a3d57b47bb145d8ec3f0874fdd231ef3145962b3bbaa970d9fb308
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3242efd960d6c458abfdb30bcafa6284f59b19372510b7b4e8af284bb71c4e71
3
+ size 1064
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "DistilBertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
trainer_state.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.014169026166200638,
3
+ "best_model_checkpoint": "retrained_model/checkpoint-4092",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 4092,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.37,
13
+ "grad_norm": 9.543731689453125,
14
+ "learning_rate": 1.755620723362659e-05,
15
+ "loss": 0.2119,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.73,
20
+ "grad_norm": 0.3035629391670227,
21
+ "learning_rate": 1.5112414467253179e-05,
22
+ "loss": 0.0823,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_f1": 0.9882224048205971,
28
+ "eval_loss": 0.028914300724864006,
29
+ "eval_runtime": 88.6891,
30
+ "eval_samples_per_second": 61.507,
31
+ "eval_steps_per_second": 3.845,
32
+ "step": 1364
33
+ },
34
+ {
35
+ "epoch": 1.1,
36
+ "grad_norm": 0.03364085033535957,
37
+ "learning_rate": 1.2668621700879767e-05,
38
+ "loss": 0.0443,
39
+ "step": 1500
40
+ },
41
+ {
42
+ "epoch": 1.47,
43
+ "grad_norm": 0.012753481045365334,
44
+ "learning_rate": 1.0224828934506354e-05,
45
+ "loss": 0.0273,
46
+ "step": 2000
47
+ },
48
+ {
49
+ "epoch": 1.83,
50
+ "grad_norm": 0.009346585720777512,
51
+ "learning_rate": 7.781036168132942e-06,
52
+ "loss": 0.0203,
53
+ "step": 2500
54
+ },
55
+ {
56
+ "epoch": 2.0,
57
+ "eval_f1": 0.9915416098226467,
58
+ "eval_loss": 0.01713947393000126,
59
+ "eval_runtime": 89.0176,
60
+ "eval_samples_per_second": 61.28,
61
+ "eval_steps_per_second": 3.831,
62
+ "step": 2728
63
+ },
64
+ {
65
+ "epoch": 2.2,
66
+ "grad_norm": 0.002515732077881694,
67
+ "learning_rate": 5.337243401759531e-06,
68
+ "loss": 0.0106,
69
+ "step": 3000
70
+ },
71
+ {
72
+ "epoch": 2.57,
73
+ "grad_norm": 0.11586715281009674,
74
+ "learning_rate": 2.8934506353861196e-06,
75
+ "loss": 0.0124,
76
+ "step": 3500
77
+ },
78
+ {
79
+ "epoch": 2.93,
80
+ "grad_norm": 0.0089911799877882,
81
+ "learning_rate": 4.496578690127078e-07,
82
+ "loss": 0.0097,
83
+ "step": 4000
84
+ },
85
+ {
86
+ "epoch": 3.0,
87
+ "eval_f1": 0.9923497267759562,
88
+ "eval_loss": 0.014169026166200638,
89
+ "eval_runtime": 88.7641,
90
+ "eval_samples_per_second": 61.455,
91
+ "eval_steps_per_second": 3.842,
92
+ "step": 4092
93
+ }
94
+ ],
95
+ "logging_steps": 500,
96
+ "max_steps": 4092,
97
+ "num_input_tokens_seen": 0,
98
+ "num_train_epochs": 3,
99
+ "save_steps": 500,
100
+ "total_flos": 8140134066229824.0,
101
+ "train_batch_size": 16,
102
+ "trial_name": null,
103
+ "trial_params": null
104
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34a6ff26d08439fcabbe495c91bed51960721703be76efc7cd1d2474a67d29cb
3
+ size 4920
vocab.txt ADDED
The diff for this file is too large to render. See raw diff