redscroll commited on
Commit
a37a0f6
1 Parent(s): 1bc292e

redscroll/roberta-finetuned-domains

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - f1
8
+ - accuracy
9
+ model-index:
10
+ - name: roberta-finetuned-domains
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
+ # roberta-finetuned-domains
18
+
19
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.5388
22
+ - F1: 0.2879
23
+ - Roc Auc: 0.5757
24
+ - Accuracy: 0.2533
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 2e-05
44
+ - train_batch_size: 12
45
+ - eval_batch_size: 12
46
+ - seed: 42
47
+ - gradient_accumulation_steps: 64
48
+ - total_train_batch_size: 768
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 6
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy |
56
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|
57
+ | 0.3789 | 0.97 | 31 | 0.4545 | 0.0004 | 0.4997 | 0.0002 |
58
+ | 0.2729 | 1.97 | 63 | 0.4684 | 0.2193 | 0.5479 | 0.1668 |
59
+ | 0.1905 | 2.98 | 95 | 0.5180 | 0.2491 | 0.5566 | 0.2100 |
60
+ | 0.1568 | 3.98 | 127 | 0.5263 | 0.2633 | 0.5636 | 0.2236 |
61
+ | 0.1398 | 4.98 | 159 | 0.5298 | 0.2862 | 0.5751 | 0.2492 |
62
+ | 0.131 | 5.83 | 186 | 0.5388 | 0.2879 | 0.5757 | 0.2533 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.33.1
68
+ - Pytorch 2.0.1+cu117
69
+ - Datasets 2.14.5
70
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "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": "Power & Decision-Making",
15
+ "1": "Knowledge & Beliefs",
16
+ "2": "Human Dignity",
17
+ "3": "Roles & Responsibilities",
18
+ "4": "Law & Policy",
19
+ "5": "Access to Resources"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "Access to Resources": 5,
25
+ "Human Dignity": 2,
26
+ "Knowledge & Beliefs": 1,
27
+ "Law & Policy": 4,
28
+ "Power & Decision-Making": 0,
29
+ "Roles & Responsibilities": 3
30
+ },
31
+ "layer_norm_eps": 1e-05,
32
+ "max_position_embeddings": 514,
33
+ "model_type": "roberta",
34
+ "num_attention_heads": 12,
35
+ "num_hidden_layers": 12,
36
+ "pad_token_id": 1,
37
+ "position_embedding_type": "absolute",
38
+ "problem_type": "multi_label_classification",
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.33.1",
41
+ "type_vocab_size": 1,
42
+ "use_cache": true,
43
+ "vocab_size": 50265
44
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d37e8d20e54f5e9c149dde396837c7fd65c2b5b815a305f47cce20e9ae53e3d4
3
+ size 498669937
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 512,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "tokenizer_class": "RobertaTokenizer",
13
+ "trim_offsets": true,
14
+ "unk_token": "<unk>"
15
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8330332122decb9563e4de28cdac1ee57637a699283bbc96dd4d4d530fb52a63
3
+ size 4091
vocab.json ADDED
The diff for this file is too large to render. See raw diff