FrinzTheCoder commited on
Commit
5e6eaf8
·
verified ·
1 Parent(s): 262bbec

FrinzTheCoder/bert-base-multilingual-cased-ron

Browse files
Files changed (6) hide show
  1. README.md +21 -17
  2. config.json +2 -9
  3. model.safetensors +2 -2
  4. tokenizer.json +1 -3
  5. tokenizer_config.json +2 -1
  6. training_args.bin +2 -2
README.md CHANGED
@@ -1,12 +1,13 @@
1
  ---
2
  library_name: transformers
3
  license: apache-2.0
4
- base_model: bert-base-multilingual-cased
5
  tags:
6
  - generated_from_trainer
7
  metrics:
8
  - accuracy
9
- - f1
 
10
  model-index:
11
  - name: bert-base-multilingual-cased-ron
12
  results: []
@@ -17,11 +18,13 @@ should probably proofread and complete it, then remove this comment. -->
17
 
18
  # bert-base-multilingual-cased-ron
19
 
20
- This model is a fine-tuned version of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased) on the None dataset.
21
  It achieves the following results on the evaluation set:
22
- - Loss: 0.2138
23
- - Accuracy: 0.6918
24
- - F1: 0.5657
 
 
25
 
26
  ## Model description
27
 
@@ -40,27 +43,28 @@ More information needed
40
  ### Training hyperparameters
41
 
42
  The following hyperparameters were used during training:
43
- - learning_rate: 0.0003
44
  - train_batch_size: 64
45
  - eval_batch_size: 16
46
  - seed: 42
47
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
  - lr_scheduler_type: linear
 
49
  - num_epochs: 4
50
 
51
  ### Training results
52
 
53
- | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
54
- |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
55
- | No log | 1.0 | 156 | 0.2185 | 0.6918 | 0.5657 |
56
- | No log | 2.0 | 312 | 0.2133 | 0.6918 | 0.5657 |
57
- | No log | 3.0 | 468 | 0.2304 | 0.6918 | 0.5657 |
58
- | 0.2213 | 4.0 | 624 | 0.2138 | 0.6918 | 0.5657 |
59
 
60
 
61
  ### Framework versions
62
 
63
- - Transformers 4.44.2
64
- - Pytorch 2.4.1+cu121
65
  - Datasets 3.2.0
66
- - Tokenizers 0.19.1
 
1
  ---
2
  library_name: transformers
3
  license: apache-2.0
4
+ base_model: google-bert/bert-base-multilingual-cased
5
  tags:
6
  - generated_from_trainer
7
  metrics:
8
  - accuracy
9
+ - precision
10
+ - recall
11
  model-index:
12
  - name: bert-base-multilingual-cased-ron
13
  results: []
 
18
 
19
  # bert-base-multilingual-cased-ron
20
 
21
+ This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.0552
24
+ - Accuracy: 0.8696
25
+ - F1 Binary: 0.8054
26
+ - Precision: 0.7226
27
+ - Recall: 0.9096
28
 
29
  ## Model description
30
 
 
43
  ### Training hyperparameters
44
 
45
  The following hyperparameters were used during training:
46
+ - learning_rate: 3e-05
47
  - train_batch_size: 64
48
  - eval_batch_size: 16
49
  - seed: 42
50
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
  - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_steps: 37
53
  - num_epochs: 4
54
 
55
  ### Training results
56
 
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Binary | Precision | Recall |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:---------:|:------:|
59
+ | No log | 1.0 | 187 | 0.0957 | 0.7502 | 0.6166 | 0.5662 | 0.6768 |
60
+ | No log | 2.0 | 374 | 0.0623 | 0.7787 | 0.7014 | 0.5849 | 0.8757 |
61
+ | 0.0661 | 3.0 | 561 | 0.0603 | 0.8414 | 0.7736 | 0.6711 | 0.9130 |
62
+ | 0.0661 | 4.0 | 748 | 0.0552 | 0.8696 | 0.8054 | 0.7226 | 0.9096 |
63
 
64
 
65
  ### Framework versions
66
 
67
+ - Transformers 4.47.0
68
+ - Pytorch 2.5.1+cu121
69
  - Datasets 3.2.0
70
+ - Tokenizers 0.21.0
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "bert-base-multilingual-cased",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
@@ -9,14 +9,8 @@
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
- "id2label": {
13
- "0": "LABEL_0"
14
- },
15
  "initializer_range": 0.02,
16
  "intermediate_size": 3072,
17
- "label2id": {
18
- "LABEL_0": 0
19
- },
20
  "layer_norm_eps": 1e-12,
21
  "max_position_embeddings": 512,
22
  "model_type": "bert",
@@ -29,9 +23,8 @@
29
  "pooler_size_per_head": 128,
30
  "pooler_type": "first_token_transform",
31
  "position_embedding_type": "absolute",
32
- "problem_type": "regression",
33
  "torch_dtype": "float32",
34
- "transformers_version": "4.44.2",
35
  "type_vocab_size": 2,
36
  "use_cache": true,
37
  "vocab_size": 119547
 
1
  {
2
+ "_name_or_path": "google-bert/bert-base-multilingual-cased",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
 
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
 
 
 
12
  "initializer_range": 0.02,
13
  "intermediate_size": 3072,
 
 
 
14
  "layer_norm_eps": 1e-12,
15
  "max_position_embeddings": 512,
16
  "model_type": "bert",
 
23
  "pooler_size_per_head": 128,
24
  "pooler_type": "first_token_transform",
25
  "position_embedding_type": "absolute",
 
26
  "torch_dtype": "float32",
27
+ "transformers_version": "4.47.0",
28
  "type_vocab_size": 2,
29
  "use_cache": true,
30
  "vocab_size": 119547
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d105bdaf0d1031aade79f3e91e86c2e791cea41ba2964637a8939573e8deb8ed
3
- size 711440380
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79646eeb71d6a079e6b2219e9c37b392cde24bacbd29f4c7ecb33478a5df5b96
3
+ size 711443456
tokenizer.json CHANGED
@@ -7,9 +7,7 @@
7
  "stride": 0
8
  },
9
  "padding": {
10
- "strategy": {
11
- "Fixed": 512
12
- },
13
  "direction": "Right",
14
  "pad_to_multiple_of": null,
15
  "pad_id": 0,
 
7
  "stride": 0
8
  },
9
  "padding": {
10
+ "strategy": "BatchLongest",
 
 
11
  "direction": "Right",
12
  "pad_to_multiple_of": null,
13
  "pad_id": 0,
tokenizer_config.json CHANGED
@@ -41,9 +41,10 @@
41
  "special": true
42
  }
43
  },
44
- "clean_up_tokenization_spaces": true,
45
  "cls_token": "[CLS]",
46
  "do_lower_case": false,
 
47
  "mask_token": "[MASK]",
48
  "model_max_length": 512,
49
  "pad_token": "[PAD]",
 
41
  "special": true
42
  }
43
  },
44
+ "clean_up_tokenization_spaces": false,
45
  "cls_token": "[CLS]",
46
  "do_lower_case": false,
47
+ "extra_special_tokens": {},
48
  "mask_token": "[MASK]",
49
  "model_max_length": 512,
50
  "pad_token": "[PAD]",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cffc661e237a55fcafe910801d1639ae652384863edd3cb1c1aaca17f11987e4
3
- size 5240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fab365643f580ceed38444d1fa61f962035eb1523efaaa49ee6d2ade3e4adb0
3
+ size 5368