reevan commited on
Commit
b1ce790
·
verified ·
1 Parent(s): 787f48a

reevan/roberta_rom

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- license: apache-2.0
3
- base_model: bert-base-uncased
4
  tags:
5
  - generated_from_trainer
6
  metrics:
@@ -18,13 +18,13 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  # model
20
 
21
- This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: 0.7059
24
- - Precision: 0.7644
25
- - Recall: 0.7468
26
- - F1: 0.7509
27
- - Accuracy: 0.7471
28
 
29
  ## Model description
30
 
@@ -55,16 +55,16 @@ The following hyperparameters were used during training:
55
 
56
  | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
57
  |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
58
- | No log | 1.0 | 238 | 0.9040 | 0.5971 | 0.5675 | 0.5718 | 0.5670 |
59
- | No log | 2.0 | 476 | 0.7639 | 0.6792 | 0.6517 | 0.6549 | 0.6513 |
60
- | 0.8758 | 3.0 | 714 | 0.6876 | 0.7305 | 0.7120 | 0.7162 | 0.7126 |
61
- | 0.8758 | 4.0 | 952 | 0.6862 | 0.7599 | 0.7507 | 0.7532 | 0.7510 |
62
- | 0.4678 | 5.0 | 1190 | 0.7059 | 0.7644 | 0.7468 | 0.7509 | 0.7471 |
63
 
64
 
65
  ### Framework versions
66
 
67
- - Transformers 4.38.2
68
  - Pytorch 2.2.1+cu121
69
  - Datasets 2.19.0
70
- - Tokenizers 0.15.2
 
1
  ---
2
+ license: mit
3
+ base_model: FacebookAI/roberta-base
4
  tags:
5
  - generated_from_trainer
6
  metrics:
 
18
 
19
  # model
20
 
21
+ This model is a fine-tuned version of [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) on an unknown dataset.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.6917
24
+ - Precision: 0.7168
25
+ - Recall: 0.7053
26
+ - F1: 0.7088
27
+ - Accuracy: 0.726
28
 
29
  ## Model description
30
 
 
55
 
56
  | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
57
  |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
58
+ | 0.9791 | 1.0 | 1489 | 0.8084 | 0.6198 | 0.6089 | 0.6093 | 0.6385 |
59
+ | 0.8129 | 2.0 | 2978 | 0.7380 | 0.6635 | 0.6500 | 0.6531 | 0.6735 |
60
+ | 0.6937 | 3.0 | 4467 | 0.7328 | 0.6826 | 0.6716 | 0.6745 | 0.691 |
61
+ | 0.6002 | 4.0 | 5956 | 0.6901 | 0.7110 | 0.6951 | 0.6973 | 0.7205 |
62
+ | 0.5362 | 5.0 | 7445 | 0.6917 | 0.7168 | 0.7053 | 0.7088 | 0.726 |
63
 
64
 
65
  ### Framework versions
66
 
67
+ - Transformers 4.40.0
68
  - Pytorch 2.2.1+cu121
69
  - Datasets 2.19.0
70
+ - Tokenizers 0.19.1
config.json CHANGED
@@ -1,11 +1,12 @@
1
  {
2
- "_name_or_path": "bert-base-uncased",
3
  "architectures": [
4
- "BertForSequenceClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
 
7
  "classifier_dropout": null,
8
- "gradient_checkpointing": false,
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
@@ -21,17 +22,17 @@
21
  "Neutral": 2,
22
  "Positive": 1
23
  },
24
- "layer_norm_eps": 1e-12,
25
- "max_position_embeddings": 512,
26
- "model_type": "bert",
27
  "num_attention_heads": 12,
28
  "num_hidden_layers": 12,
29
- "pad_token_id": 0,
30
  "position_embedding_type": "absolute",
31
  "problem_type": "single_label_classification",
32
  "torch_dtype": "float32",
33
- "transformers_version": "4.38.2",
34
- "type_vocab_size": 2,
35
  "use_cache": true,
36
- "vocab_size": 30522
37
  }
 
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,
 
22
  "Neutral": 2,
23
  "Positive": 1
24
  },
25
+ "layer_norm_eps": 1e-05,
26
+ "max_position_embeddings": 514,
27
+ "model_type": "roberta",
28
  "num_attention_heads": 12,
29
  "num_hidden_layers": 12,
30
+ "pad_token_id": 1,
31
  "position_embedding_type": "absolute",
32
  "problem_type": "single_label_classification",
33
  "torch_dtype": "float32",
34
+ "transformers_version": "4.40.0",
35
+ "type_vocab_size": 1,
36
  "use_cache": true,
37
+ "vocab_size": 50265
38
  }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8819237d080e3d579869decf7fc3728b8ecb673d3b5c7066ebb0612dc6c6e9eb
3
- size 437961724
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b297ca6257d8293120303e5db9f107f590fbf16009373f1bddb3437f9573a11d
3
+ size 498615900
runs/Apr23_07-26-18_74091af1fdb5/events.out.tfevents.1713857181.74091af1fdb5.150.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39b82c53d417fcdfe302ccf92eb83e815120121a003aec2af224df9b04c9a616
3
+ size 10477
special_tokens_map.json CHANGED
@@ -1,7 +1,15 @@
1
  {
2
- "cls_token": "[CLS]",
3
- "mask_token": "[MASK]",
4
- "pad_token": "[PAD]",
5
- "sep_token": "[SEP]",
6
- "unk_token": "[UNK]"
 
 
 
 
 
 
 
 
7
  }
 
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 CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,55 +1,57 @@
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": "BertTokenizer",
54
- "unk_token": "[UNK]"
55
  }
 
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": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
  "model_max_length": 512,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
 
57
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b8b01a2373714dfdee7b3ca03a642f36acdec62f3b0b2995732a8c57e54860dd
3
- size 4856
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05c9f34d2e758e42177de593150ac6a6ad2b34ecadcc9a3212d42805b637784b
3
+ size 4984
vocab.json ADDED
The diff for this file is too large to render. See raw diff