Text Classification
Transformers
Safetensors
xlm-roberta
toxicity
Inference Endpoints
dardem commited on
Commit
eed075b
1 Parent(s): 83eca9e

Upload 9 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "xlm-roberta-base",
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "xlm-roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "problem_type": "single_label_classification",
24
+ "torch_dtype": "float32",
25
+ "transformers_version": "4.35.2",
26
+ "type_vocab_size": 1,
27
+ "use_cache": true,
28
+ "vocab_size": 250002
29
+ }
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09391c236a21a70bd035f8ff316fa67b71333f3f50261f7213d4f5f45889d1a7
3
+ size 14244
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a5c54ee7c011c670893da853212409c5954873d7cf764d04d3afb04600039f7
3
+ size 1064
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6f76fe13d42f80dcee0cb86a1aeb5f14f8909bb8a8782f7a4a4ad76697ef164
3
+ size 17083021
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "XLMRobertaTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
trainer_state.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.2546990215778351,
3
+ "best_model_checkpoint": "xlm-roberta-base-all-finetuned-toxicity-classification/checkpoint-2532",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 7596,
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.2,
13
+ "learning_rate": 1.8683517640863615e-05,
14
+ "loss": 0.2799,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 0.39,
19
+ "learning_rate": 1.7367035281727228e-05,
20
+ "loss": 0.2876,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 0.59,
25
+ "learning_rate": 1.6050552922590838e-05,
26
+ "loss": 0.2671,
27
+ "step": 1500
28
+ },
29
+ {
30
+ "epoch": 0.79,
31
+ "learning_rate": 1.473407056345445e-05,
32
+ "loss": 0.2639,
33
+ "step": 2000
34
+ },
35
+ {
36
+ "epoch": 0.99,
37
+ "learning_rate": 1.3417588204318064e-05,
38
+ "loss": 0.2675,
39
+ "step": 2500
40
+ },
41
+ {
42
+ "epoch": 1.0,
43
+ "eval_loss": 0.2546990215778351,
44
+ "eval_runtime": 35.0277,
45
+ "eval_samples_per_second": 128.47,
46
+ "eval_steps_per_second": 8.051,
47
+ "step": 2532
48
+ },
49
+ {
50
+ "epoch": 1.18,
51
+ "learning_rate": 1.2101105845181676e-05,
52
+ "loss": 0.2072,
53
+ "step": 3000
54
+ },
55
+ {
56
+ "epoch": 1.38,
57
+ "learning_rate": 1.0784623486045287e-05,
58
+ "loss": 0.2035,
59
+ "step": 3500
60
+ },
61
+ {
62
+ "epoch": 1.58,
63
+ "learning_rate": 9.4681411269089e-06,
64
+ "loss": 0.1987,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 1.78,
69
+ "learning_rate": 8.151658767772512e-06,
70
+ "loss": 0.1938,
71
+ "step": 4500
72
+ },
73
+ {
74
+ "epoch": 1.97,
75
+ "learning_rate": 6.835176408636125e-06,
76
+ "loss": 0.189,
77
+ "step": 5000
78
+ },
79
+ {
80
+ "epoch": 2.0,
81
+ "eval_loss": 0.29669827222824097,
82
+ "eval_runtime": 35.0287,
83
+ "eval_samples_per_second": 128.466,
84
+ "eval_steps_per_second": 8.051,
85
+ "step": 5064
86
+ },
87
+ {
88
+ "epoch": 2.17,
89
+ "learning_rate": 5.518694049499738e-06,
90
+ "loss": 0.1412,
91
+ "step": 5500
92
+ },
93
+ {
94
+ "epoch": 2.37,
95
+ "learning_rate": 4.20221169036335e-06,
96
+ "loss": 0.1467,
97
+ "step": 6000
98
+ },
99
+ {
100
+ "epoch": 2.57,
101
+ "learning_rate": 2.885729331226962e-06,
102
+ "loss": 0.1397,
103
+ "step": 6500
104
+ },
105
+ {
106
+ "epoch": 2.76,
107
+ "learning_rate": 1.5692469720905742e-06,
108
+ "loss": 0.1476,
109
+ "step": 7000
110
+ },
111
+ {
112
+ "epoch": 2.96,
113
+ "learning_rate": 2.527646129541864e-07,
114
+ "loss": 0.1383,
115
+ "step": 7500
116
+ },
117
+ {
118
+ "epoch": 3.0,
119
+ "eval_loss": 0.4095066785812378,
120
+ "eval_runtime": 35.0202,
121
+ "eval_samples_per_second": 128.497,
122
+ "eval_steps_per_second": 8.053,
123
+ "step": 7596
124
+ }
125
+ ],
126
+ "logging_steps": 500,
127
+ "max_steps": 7596,
128
+ "num_train_epochs": 3,
129
+ "save_steps": 500,
130
+ "total_flos": 3.196799322624e+16,
131
+ "trial_name": null,
132
+ "trial_params": null
133
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e5669b8832cbf5841d48301e9864d3640c85cceb7efe18e9227169755b90d11
3
+ size 4664