FrinzTheCoder commited on
Commit
0df172a
·
verified ·
1 Parent(s): 1ba13a5

FrinzTheCoder/xlm-roberta-base-chn

Browse files
Files changed (6) hide show
  1. README.md +21 -17
  2. config.json +1 -8
  3. model.safetensors +2 -2
  4. tokenizer.json +2 -2
  5. tokenizer_config.json +2 -1
  6. training_args.bin +2 -2
README.md CHANGED
@@ -6,7 +6,8 @@ tags:
6
  - generated_from_trainer
7
  metrics:
8
  - accuracy
9
- - f1
 
10
  model-index:
11
  - name: xlm-roberta-base-chn
12
  results: []
@@ -19,9 +20,11 @@ should probably proofread and complete it, then remove this comment. -->
19
 
20
  This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the None dataset.
21
  It achieves the following results on the evaluation set:
22
- - Loss: 0.1445
23
- - Accuracy: 0.8250
24
- - F1: 0.7458
 
 
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: 16
45
  - eval_batch_size: 8
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
- | 0.1709 | 1.0 | 661 | 0.1446 | 0.8250 | 0.7458 |
56
- | 0.1558 | 2.0 | 1322 | 0.1452 | 0.8250 | 0.7458 |
57
- | 0.1499 | 3.0 | 1983 | 0.1444 | 0.8250 | 0.7458 |
58
- | 0.1449 | 4.0 | 2644 | 0.1445 | 0.8250 | 0.7458 |
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
 
6
  - generated_from_trainer
7
  metrics:
8
  - accuracy
9
+ - precision
10
+ - recall
11
  model-index:
12
  - name: xlm-roberta-base-chn
13
  results: []
 
20
 
21
  This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the None dataset.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.1099
24
+ - Accuracy: 0.8201
25
+ - F1 Binary: 0.5729
26
+ - Precision: 0.4830
27
+ - Recall: 0.7040
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: 32
48
  - eval_batch_size: 8
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: 39
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 | 397 | 0.1365 | 0.8182 | 0.4844 | 0.4713 | 0.4982 |
60
+ | 0.1411 | 2.0 | 794 | 0.1133 | 0.8210 | 0.5375 | 0.4825 | 0.6066 |
61
+ | 0.111 | 3.0 | 1191 | 0.1364 | 0.8655 | 0.5929 | 0.6158 | 0.5717 |
62
+ | 0.0802 | 4.0 | 1588 | 0.1099 | 0.8201 | 0.5729 | 0.4830 | 0.7040 |
63
 
64
 
65
  ### Framework versions
66
 
67
+ - Transformers 4.48.0
68
+ - Pytorch 2.5.1+cu124
69
+ - Datasets 3.1.0
70
+ - Tokenizers 0.21.0
config.json CHANGED
@@ -10,14 +10,8 @@
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
13
- "id2label": {
14
- "0": "LABEL_0"
15
- },
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
- "label2id": {
19
- "LABEL_0": 0
20
- },
21
  "layer_norm_eps": 1e-05,
22
  "max_position_embeddings": 514,
23
  "model_type": "xlm-roberta",
@@ -26,9 +20,8 @@
26
  "output_past": true,
27
  "pad_token_id": 1,
28
  "position_embedding_type": "absolute",
29
- "problem_type": "regression",
30
  "torch_dtype": "float32",
31
- "transformers_version": "4.44.2",
32
  "type_vocab_size": 1,
33
  "use_cache": true,
34
  "vocab_size": 250002
 
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
 
 
 
13
  "initializer_range": 0.02,
14
  "intermediate_size": 3072,
 
 
 
15
  "layer_norm_eps": 1e-05,
16
  "max_position_embeddings": 514,
17
  "model_type": "xlm-roberta",
 
20
  "output_past": true,
21
  "pad_token_id": 1,
22
  "position_embedding_type": "absolute",
 
23
  "torch_dtype": "float32",
24
+ "transformers_version": "4.48.0",
25
  "type_vocab_size": 1,
26
  "use_cache": true,
27
  "vocab_size": 250002
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8e65968c7c9157b987f0e1a4b4b773e5672b88ef92d196cfba524e089d76151
3
- size 1112201932
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc9f277e803b01c0d0dab88b7f59ea6a9ea5ff9178c5edc6694e2c5124b32037
3
+ size 1112205008
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ffb37461c391f096759f4a9bbbc329da0f36952f88bab061fcf84940c022e98
3
- size 17082999
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883b037111086fd4dfebbbc9b7cee11e1517b5e0c0514879478661440f137085
3
+ size 17082987
tokenizer_config.json CHANGED
@@ -42,9 +42,10 @@
42
  }
43
  },
44
  "bos_token": "<s>",
45
- "clean_up_tokenization_spaces": true,
46
  "cls_token": "<s>",
47
  "eos_token": "</s>",
 
48
  "mask_token": "<mask>",
49
  "model_max_length": 512,
50
  "pad_token": "<pad>",
 
42
  }
43
  },
44
  "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": false,
46
  "cls_token": "<s>",
47
  "eos_token": "</s>",
48
+ "extra_special_tokens": {},
49
  "mask_token": "<mask>",
50
  "model_max_length": 512,
51
  "pad_token": "<pad>",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dc2f9c9ba458614c4267ea62933168da214add402af4bac7c5a26481b6aa9fc1
3
- size 5240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:576d59166776a60fe738db3644c9ba456c3ed387945065b8dc49faf200d472d2
3
+ size 5368