Hemg commited on
Commit
d515acc
·
verified ·
1 Parent(s): e9c07ef

Training in progress, epoch 1

Browse files
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: FacebookAI/roberta-base
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: LLMGUARD-roberta-11
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # LLMGUARD-roberta-11
18
+
19
+ This model is a fine-tuned version of [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.7933
22
+ - Accuracy: 0.7696
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 2e-06
42
+ - train_batch_size: 16
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - lr_scheduler_warmup_ratio: 0.1
48
+ - num_epochs: 32
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
54
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
55
+ | 2.2522 | 1.0 | 1564 | 1.9637 | 0.3163 |
56
+ | 1.0671 | 2.0 | 3128 | 0.8108 | 0.7662 |
57
+ | 0.7146 | 3.0 | 4692 | 0.6397 | 0.7953 |
58
+ | 0.6354 | 4.0 | 6256 | 0.5867 | 0.8027 |
59
+ | 0.5794 | 5.0 | 7820 | 0.5669 | 0.8107 |
60
+ | 0.5303 | 6.0 | 9384 | 0.5505 | 0.8105 |
61
+ | 0.504 | 7.0 | 10948 | 0.5560 | 0.8081 |
62
+ | 0.4664 | 8.0 | 12512 | 0.5553 | 0.8071 |
63
+ | 0.4559 | 9.0 | 14076 | 0.5613 | 0.8073 |
64
+ | 0.4393 | 10.0 | 15640 | 0.5734 | 0.8044 |
65
+ | 0.4292 | 11.0 | 17204 | 0.5735 | 0.7995 |
66
+ | 0.4065 | 12.0 | 18768 | 0.5987 | 0.8007 |
67
+ | 0.3905 | 13.0 | 20332 | 0.6292 | 0.7951 |
68
+ | 0.3828 | 14.0 | 21896 | 0.6233 | 0.7927 |
69
+ | 0.3658 | 15.0 | 23460 | 0.6490 | 0.7887 |
70
+ | 0.3663 | 16.0 | 25024 | 0.6571 | 0.7913 |
71
+ | 0.3551 | 17.0 | 26588 | 0.6533 | 0.7852 |
72
+ | 0.3439 | 18.0 | 28152 | 0.6814 | 0.7833 |
73
+ | 0.3316 | 19.0 | 29716 | 0.6764 | 0.7817 |
74
+ | 0.3297 | 20.0 | 31280 | 0.6896 | 0.7798 |
75
+ | 0.318 | 21.0 | 32844 | 0.6947 | 0.7775 |
76
+ | 0.323 | 22.0 | 34408 | 0.7231 | 0.7767 |
77
+ | 0.304 | 23.0 | 35972 | 0.7333 | 0.7707 |
78
+ | 0.3145 | 24.0 | 37536 | 0.7491 | 0.7742 |
79
+ | 0.2975 | 25.0 | 39100 | 0.7502 | 0.7708 |
80
+ | 0.2812 | 26.0 | 40664 | 0.7632 | 0.7719 |
81
+ | 0.2825 | 27.0 | 42228 | 0.7734 | 0.7664 |
82
+ | 0.2828 | 28.0 | 43792 | 0.7767 | 0.7697 |
83
+ | 0.2872 | 29.0 | 45356 | 0.7865 | 0.7683 |
84
+ | 0.2759 | 30.0 | 46920 | 0.7849 | 0.7700 |
85
+ | 0.2758 | 31.0 | 48484 | 0.7915 | 0.7692 |
86
+ | 0.2797 | 32.0 | 50048 | 0.7933 | 0.7696 |
87
+
88
+
89
+ ### Framework versions
90
+
91
+ - Transformers 4.48.0.dev0
92
+ - Pytorch 2.5.1+cu124
93
+ - Datasets 3.2.0
94
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "FacebookAI/roberta-base",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
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
+ "id2label": {
14
+ "0": "Cybercrime",
15
+ "1": "Drugs",
16
+ "2": "Hate",
17
+ "3": "Human Crime",
18
+ "4": "Politics",
19
+ "5": "Pornography",
20
+ "6": "Sarcasm",
21
+ "7": "Suicide",
22
+ "8": "Weapons",
23
+ "9": "Gambling",
24
+ "10": "Advice"
25
+ },
26
+ "initializer_range": 0.02,
27
+ "intermediate_size": 3072,
28
+ "label2id": {
29
+ "Advice": 10,
30
+ "Cybercrime": 0,
31
+ "Drugs": 1,
32
+ "Gambling": 9,
33
+ "Hate": 2,
34
+ "Human Crime": 3,
35
+ "Politics": 4,
36
+ "Pornography": 5,
37
+ "Sarcasm": 6,
38
+ "Suicide": 7,
39
+ "Weapons": 8
40
+ },
41
+ "layer_norm_eps": 1e-05,
42
+ "max_position_embeddings": 514,
43
+ "model_type": "roberta",
44
+ "num_attention_heads": 12,
45
+ "num_hidden_layers": 12,
46
+ "pad_token_id": 1,
47
+ "position_embedding_type": "absolute",
48
+ "problem_type": "single_label_classification",
49
+ "torch_dtype": "float32",
50
+ "transformers_version": "4.48.0.dev0",
51
+ "type_vocab_size": 1,
52
+ "use_cache": true,
53
+ "vocab_size": 50265
54
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4d24113ff1eba50740caa401db68a57db2b70899b3d1f8eeb1b64209c8386a8
3
+ size 498640508
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "<mask>",
52
+ "model_max_length": 512,
53
+ "pad_token": "<pad>",
54
+ "sep_token": "</s>",
55
+ "tokenizer_class": "RobertaTokenizer",
56
+ "trim_offsets": true,
57
+ "unk_token": "<unk>"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88e5803902782f182be2636d2ac8d72bb74001d09ace02cb98f78407f9f94019
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff