dadashzadeh
commited on
Commit
•
0062172
1
Parent(s):
15f45b9
End of training
Browse files- .gitattributes +1 -0
- README.md +16 -13
- config.json +14 -28
- pytorch_model.bin +2 -2
- sentencepiece.bpe.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +6 -57
- training_args.bin +2 -2
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model:
|
4 |
tags:
|
5 |
- generated_from_trainer
|
|
|
|
|
6 |
model-index:
|
7 |
- name: test-trainer
|
8 |
results: []
|
@@ -13,9 +15,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
13 |
|
14 |
# test-trainer
|
15 |
|
16 |
-
This model is a fine-tuned version of [
|
17 |
It achieves the following results on the evaluation set:
|
18 |
-
- Loss: 0.
|
|
|
19 |
|
20 |
## Model description
|
21 |
|
@@ -34,21 +37,21 @@ More information needed
|
|
34 |
### Training hyperparameters
|
35 |
|
36 |
The following hyperparameters were used during training:
|
37 |
-
- learning_rate:
|
38 |
-
- train_batch_size:
|
39 |
-
- eval_batch_size:
|
40 |
- seed: 42
|
41 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
- lr_scheduler_type: linear
|
43 |
-
- num_epochs: 3
|
44 |
|
45 |
### Training results
|
46 |
|
47 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
-
|
49 |
-
| 0.
|
50 |
-
| 0.
|
51 |
-
| 0.
|
52 |
|
53 |
|
54 |
### Framework versions
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
base_model: xlm-roberta-base
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
model-index:
|
9 |
- name: test-trainer
|
10 |
results: []
|
|
|
15 |
|
16 |
# test-trainer
|
17 |
|
18 |
+
This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the None dataset.
|
19 |
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.2337
|
21 |
+
- Accuracy: 0.9169
|
22 |
|
23 |
## Model description
|
24 |
|
|
|
37 |
### Training hyperparameters
|
38 |
|
39 |
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 2e-05
|
41 |
+
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 16
|
43 |
- seed: 42
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 3
|
47 |
|
48 |
### Training results
|
49 |
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
51 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
52 |
+
| 0.3629 | 1.0 | 14391 | 0.3249 | 0.8866 |
|
53 |
+
| 0.313 | 2.0 | 28782 | 0.2640 | 0.9067 |
|
54 |
+
| 0.2723 | 3.0 | 43173 | 0.2337 | 0.9169 |
|
55 |
|
56 |
|
57 |
### Framework versions
|
config.json
CHANGED
@@ -1,49 +1,35 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
"attention_probs_dropout_prob": 0.1,
|
7 |
"bos_token_id": 0,
|
8 |
"classifier_dropout": null,
|
9 |
"eos_token_id": 2,
|
10 |
-
"gradient_checkpointing": false,
|
11 |
"hidden_act": "gelu",
|
12 |
"hidden_dropout_prob": 0.1,
|
13 |
"hidden_size": 768,
|
14 |
"id2label": {
|
15 |
-
"0": "
|
16 |
-
"1": "
|
17 |
-
"2": "
|
18 |
-
"3": "
|
19 |
-
"4": "\u0641\u0631\u0647\u0646\u06af",
|
20 |
-
"5": "\u0642\u0627\u0646\u0648\u0646",
|
21 |
-
"6": "\u0647\u0646\u0631",
|
22 |
-
"7": "\u0633\u06cc\u0627\u0633\u06cc",
|
23 |
-
"8": "\u062f\u0627\u0631\u0648",
|
24 |
-
"9": "\u0627\u0642\u062a\u0635\u0627\u062f",
|
25 |
-
"10": "\u0641\u0631\u0647\u0646\u06af\u06cc"
|
26 |
},
|
27 |
"initializer_range": 0.02,
|
28 |
"intermediate_size": 3072,
|
29 |
"label2id": {
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"\u0633\u06cc\u0627\u0633\u06cc": 7,
|
35 |
-
"\u0639\u0644\u0645": 3,
|
36 |
-
"\u0641\u0631\u0647\u0646\u06af": 4,
|
37 |
-
"\u0641\u0631\u0647\u0646\u06af\u06cc": 10,
|
38 |
-
"\u0642\u0627\u0646\u0648\u0646": 5,
|
39 |
-
"\u0647\u0646\u0631": 6,
|
40 |
-
"\u06af\u0641\u062a\u06af\u0648": 2
|
41 |
},
|
42 |
-
"layer_norm_eps": 1e-
|
43 |
"max_position_embeddings": 514,
|
44 |
-
"model_type": "roberta",
|
45 |
"num_attention_heads": 12,
|
46 |
"num_hidden_layers": 12,
|
|
|
47 |
"pad_token_id": 1,
|
48 |
"position_embedding_type": "absolute",
|
49 |
"problem_type": "single_label_classification",
|
@@ -51,5 +37,5 @@
|
|
51 |
"transformers_version": "4.34.1",
|
52 |
"type_vocab_size": 1,
|
53 |
"use_cache": true,
|
54 |
-
"vocab_size":
|
55 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "xlm-roberta-base",
|
3 |
"architectures": [
|
4 |
+
"XLMRobertaForSequenceClassification"
|
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": "Informational",
|
15 |
+
"1": "Navigational",
|
16 |
+
"2": "Commercial",
|
17 |
+
"3": "Transactional"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
},
|
19 |
"initializer_range": 0.02,
|
20 |
"intermediate_size": 3072,
|
21 |
"label2id": {
|
22 |
+
"Commercial": 2,
|
23 |
+
"Informational": 0,
|
24 |
+
"Navigational": 1,
|
25 |
+
"Transactional": 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
},
|
27 |
+
"layer_norm_eps": 1e-05,
|
28 |
"max_position_embeddings": 514,
|
29 |
+
"model_type": "xlm-roberta",
|
30 |
"num_attention_heads": 12,
|
31 |
"num_hidden_layers": 12,
|
32 |
+
"output_past": true,
|
33 |
"pad_token_id": 1,
|
34 |
"position_embedding_type": "absolute",
|
35 |
"problem_type": "single_label_classification",
|
|
|
37 |
"transformers_version": "4.34.1",
|
38 |
"type_vocab_size": 1,
|
39 |
"use_cache": true,
|
40 |
+
"vocab_size": 250002
|
41 |
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8b4f373c53a41c7694f6a430177a6652ccb17a25394f2930e3b2ce7ac020a9a7
|
3 |
+
size 1112256302
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
3 |
+
size 5069051
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
{
|
2 |
-
"add_prefix_space": false,
|
3 |
"added_tokens_decoder": {
|
4 |
"0": {
|
5 |
"content": "<s>",
|
6 |
"lstrip": false,
|
7 |
-
"normalized":
|
8 |
"rstrip": false,
|
9 |
"single_word": false,
|
10 |
"special": true
|
@@ -12,7 +11,7 @@
|
|
12 |
"1": {
|
13 |
"content": "<pad>",
|
14 |
"lstrip": false,
|
15 |
-
"normalized":
|
16 |
"rstrip": false,
|
17 |
"single_word": false,
|
18 |
"special": true
|
@@ -20,7 +19,7 @@
|
|
20 |
"2": {
|
21 |
"content": "</s>",
|
22 |
"lstrip": false,
|
23 |
-
"normalized":
|
24 |
"rstrip": false,
|
25 |
"single_word": false,
|
26 |
"special": true
|
@@ -28,78 +27,28 @@
|
|
28 |
"3": {
|
29 |
"content": "<unk>",
|
30 |
"lstrip": false,
|
31 |
-
"normalized":
|
32 |
"rstrip": false,
|
33 |
"single_word": false,
|
34 |
"special": true
|
35 |
},
|
36 |
-
"
|
37 |
"content": "<mask>",
|
38 |
"lstrip": true,
|
39 |
"normalized": false,
|
40 |
"rstrip": false,
|
41 |
"single_word": false,
|
42 |
"special": true
|
43 |
-
},
|
44 |
-
"5": {
|
45 |
-
"content": "<|endoftext|>",
|
46 |
-
"lstrip": false,
|
47 |
-
"normalized": true,
|
48 |
-
"rstrip": false,
|
49 |
-
"single_word": false,
|
50 |
-
"special": true
|
51 |
-
},
|
52 |
-
"6": {
|
53 |
-
"content": "<|startoftext|>",
|
54 |
-
"lstrip": false,
|
55 |
-
"normalized": true,
|
56 |
-
"rstrip": false,
|
57 |
-
"single_word": false,
|
58 |
-
"special": true
|
59 |
-
},
|
60 |
-
"7": {
|
61 |
-
"content": "<nl>",
|
62 |
-
"lstrip": false,
|
63 |
-
"normalized": true,
|
64 |
-
"rstrip": false,
|
65 |
-
"single_word": false,
|
66 |
-
"special": true
|
67 |
-
},
|
68 |
-
"8": {
|
69 |
-
"content": "<hs>",
|
70 |
-
"lstrip": false,
|
71 |
-
"normalized": true,
|
72 |
-
"rstrip": false,
|
73 |
-
"single_word": false,
|
74 |
-
"special": true
|
75 |
-
},
|
76 |
-
"9": {
|
77 |
-
"content": "<sep>",
|
78 |
-
"lstrip": false,
|
79 |
-
"normalized": true,
|
80 |
-
"rstrip": false,
|
81 |
-
"single_word": false,
|
82 |
-
"special": true
|
83 |
-
},
|
84 |
-
"10": {
|
85 |
-
"content": "<cls>",
|
86 |
-
"lstrip": false,
|
87 |
-
"normalized": true,
|
88 |
-
"rstrip": false,
|
89 |
-
"single_word": false,
|
90 |
-
"special": true
|
91 |
}
|
92 |
},
|
93 |
"bos_token": "<s>",
|
94 |
"clean_up_tokenization_spaces": true,
|
95 |
"cls_token": "<s>",
|
96 |
"eos_token": "</s>",
|
97 |
-
"errors": "replace",
|
98 |
"mask_token": "<mask>",
|
99 |
"model_max_length": 512,
|
100 |
"pad_token": "<pad>",
|
101 |
"sep_token": "</s>",
|
102 |
-
"tokenizer_class": "
|
103 |
-
"trim_offsets": true,
|
104 |
"unk_token": "<unk>"
|
105 |
}
|
|
|
1 |
{
|
|
|
2 |
"added_tokens_decoder": {
|
3 |
"0": {
|
4 |
"content": "<s>",
|
5 |
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
"rstrip": false,
|
8 |
"single_word": false,
|
9 |
"special": true
|
|
|
11 |
"1": {
|
12 |
"content": "<pad>",
|
13 |
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
"rstrip": false,
|
16 |
"single_word": false,
|
17 |
"special": true
|
|
|
19 |
"2": {
|
20 |
"content": "</s>",
|
21 |
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
"special": true
|
|
|
27 |
"3": {
|
28 |
"content": "<unk>",
|
29 |
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
+
"250001": {
|
36 |
"content": "<mask>",
|
37 |
"lstrip": true,
|
38 |
"normalized": false,
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>",
|
51 |
"sep_token": "</s>",
|
52 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
|
|
53 |
"unk_token": "<unk>"
|
54 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:02193c4ffd326bad233479da4b3d24acd0c32fa98a5519f6ddcc815963520083
|
3 |
+
size 4472
|