tkbarb10 commited on
Commit
ddb1970
·
verified ·
1 Parent(s): 16a30e2

BERTweet with correct label mapping

Browse files
Files changed (4) hide show
  1. README.md +8 -8
  2. config.json +10 -10
  3. model.safetensors +1 -1
  4. training_args.bin +1 -1
README.md CHANGED
@@ -18,10 +18,10 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  This model is a fine-tuned version of [vinai/bertweet-large](https://huggingface.co/vinai/bertweet-large) on an unknown dataset.
20
  It achieves the following results on the evaluation set:
21
- - Loss: 0.5604
22
- - Accuracy: 0.7896
23
- - F1 Macro: 0.7852
24
- - F1 Weighted: 0.7897
25
 
26
  ## Model description
27
 
@@ -46,7 +46,7 @@ The following hyperparameters were used during training:
46
  - seed: 42
47
  - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
  - lr_scheduler_type: linear
49
- - lr_scheduler_warmup_steps: 200
50
  - num_epochs: 2
51
  - mixed_precision_training: Native AMP
52
 
@@ -54,13 +54,13 @@ The following hyperparameters were used during training:
54
 
55
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Weighted |
56
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:-----------:|
57
- | 0.5941 | 1.0 | 1540 | 0.5823 | 0.7679 | 0.7565 | 0.7693 |
58
- | 0.3924 | 2.0 | 3080 | 0.5604 | 0.7896 | 0.7852 | 0.7897 |
59
 
60
 
61
  ### Framework versions
62
 
63
  - Transformers 5.0.0
64
- - Pytorch 2.9.0+cu128
65
  - Datasets 4.0.0
66
  - Tokenizers 0.22.2
 
18
 
19
  This model is a fine-tuned version of [vinai/bertweet-large](https://huggingface.co/vinai/bertweet-large) on an unknown dataset.
20
  It achieves the following results on the evaluation set:
21
+ - Loss: 0.5607
22
+ - Accuracy: 0.7885
23
+ - F1 Macro: 0.7817
24
+ - F1 Weighted: 0.7885
25
 
26
  ## Model description
27
 
 
46
  - seed: 42
47
  - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
  - lr_scheduler_type: linear
49
+ - lr_scheduler_warmup_steps: 300
50
  - num_epochs: 2
51
  - mixed_precision_training: Native AMP
52
 
 
54
 
55
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Weighted |
56
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:-----------:|
57
+ | 0.5943 | 1.0 | 1540 | 0.5735 | 0.7708 | 0.7592 | 0.7708 |
58
+ | 0.3951 | 2.0 | 3080 | 0.5607 | 0.7885 | 0.7817 | 0.7885 |
59
 
60
 
61
  ### Framework versions
62
 
63
  - Transformers 5.0.0
64
+ - Pytorch 2.10.0+cu128
65
  - Datasets 4.0.0
66
  - Tokenizers 0.22.2
config.json CHANGED
@@ -13,21 +13,21 @@
13
  "hidden_dropout_prob": 0.1,
14
  "hidden_size": 1024,
15
  "id2label": {
16
- "0": "Argumentative",
17
- "1": "Expressive",
18
- "2": "Informational",
19
- "3": "Neutral",
20
- "4": "Opinion"
21
  },
22
  "initializer_range": 0.02,
23
  "intermediate_size": 4096,
24
  "is_decoder": false,
25
  "label2id": {
26
- "Argumentative": 0,
27
- "Expressive": 1,
28
- "Informational": 2,
29
- "Neutral": 3,
30
- "Opinion": 4
31
  },
32
  "layer_norm_eps": 1e-05,
33
  "max_position_embeddings": 514,
 
13
  "hidden_dropout_prob": 0.1,
14
  "hidden_size": 1024,
15
  "id2label": {
16
+ "0": "Neutral",
17
+ "1": "Opinion",
18
+ "2": "Argumentative",
19
+ "3": "Expressive",
20
+ "4": "Informational"
21
  },
22
  "initializer_range": 0.02,
23
  "intermediate_size": 4096,
24
  "is_decoder": false,
25
  "label2id": {
26
+ "Argumentative": 2,
27
+ "Expressive": 3,
28
+ "Informational": 4,
29
+ "Neutral": 0,
30
+ "Opinion": 1
31
  },
32
  "layer_norm_eps": 1e-05,
33
  "max_position_embeddings": 514,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e61b290db9c7a7e4a0cafc84a7cab969640e735d72941d45e96027545de258e4
3
  size 1421507660
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39ab1084b0f9a628d6656528e490667561772d8ca0a389e5923e6a745357e1bf
3
  size 1421507660
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:130f9fca7fe299b916db1ae1f0b91ec700c604536848511b6305c6081c69837d
3
  size 5265
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f03248de6d4f0df254777fc607cccfd915f4a794a519828ee4735e4eaaa7958
3
  size 5265