IParraMartin
commited on
Commit
•
1c50cfa
1
Parent(s):
8a1b532
IParraMartin/XLM-EusBERTa-topic-classification
Browse files- README.md +110 -0
- config.json +56 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Dec27_20-11-14_b2521899950f/events.out.tfevents.1703707874.b2521899950f.3997.0 +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +59 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
base_model: ClassCat/roberta-small-basque
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- basque_glue
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
- f1
|
11 |
+
- precision
|
12 |
+
- recall
|
13 |
+
model-index:
|
14 |
+
- name: XLM-EusBERTa-topic-classification
|
15 |
+
results:
|
16 |
+
- task:
|
17 |
+
name: Text Classification
|
18 |
+
type: text-classification
|
19 |
+
dataset:
|
20 |
+
name: basque_glue
|
21 |
+
type: basque_glue
|
22 |
+
config: bhtc
|
23 |
+
split: validation
|
24 |
+
args: bhtc
|
25 |
+
metrics:
|
26 |
+
- name: Accuracy
|
27 |
+
type: accuracy
|
28 |
+
value: 0.6494345718901454
|
29 |
+
- name: F1
|
30 |
+
type: f1
|
31 |
+
value: 0.6432667195761544
|
32 |
+
- name: Precision
|
33 |
+
type: precision
|
34 |
+
value: 0.6447174737999963
|
35 |
+
- name: Recall
|
36 |
+
type: recall
|
37 |
+
value: 0.6494345718901454
|
38 |
+
---
|
39 |
+
|
40 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
41 |
+
should probably proofread and complete it, then remove this comment. -->
|
42 |
+
|
43 |
+
# XLM-EusBERTa-topic-classification
|
44 |
+
|
45 |
+
This model is a fine-tuned version of [ClassCat/roberta-small-basque](https://huggingface.co/ClassCat/roberta-small-basque) on the basque_glue dataset.
|
46 |
+
It achieves the following results on the evaluation set:
|
47 |
+
- Loss: 4.2158
|
48 |
+
- Accuracy: 0.6494
|
49 |
+
- F1: 0.6433
|
50 |
+
- Precision: 0.6447
|
51 |
+
- Recall: 0.6494
|
52 |
+
|
53 |
+
## Model description
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Intended uses & limitations
|
58 |
+
|
59 |
+
More information needed
|
60 |
+
|
61 |
+
## Training and evaluation data
|
62 |
+
|
63 |
+
More information needed
|
64 |
+
|
65 |
+
## Training procedure
|
66 |
+
|
67 |
+
### Training hyperparameters
|
68 |
+
|
69 |
+
The following hyperparameters were used during training:
|
70 |
+
- learning_rate: 0.0001
|
71 |
+
- train_batch_size: 8
|
72 |
+
- eval_batch_size: 8
|
73 |
+
- seed: 42
|
74 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
75 |
+
- lr_scheduler_type: cosine
|
76 |
+
- lr_scheduler_warmup_ratio: 0.1
|
77 |
+
- num_epochs: 20
|
78 |
+
|
79 |
+
### Training results
|
80 |
+
|
81 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
82 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
83 |
+
| 1.2439 | 1.0 | 1074 | 1.1310 | 0.6581 | 0.6316 | 0.6139 | 0.6581 |
|
84 |
+
| 0.9539 | 2.0 | 2148 | 1.3019 | 0.6117 | 0.6034 | 0.6465 | 0.6117 |
|
85 |
+
| 0.579 | 3.0 | 3222 | 1.5533 | 0.6645 | 0.6524 | 0.6661 | 0.6645 |
|
86 |
+
| 0.3766 | 4.0 | 4296 | 2.3287 | 0.6381 | 0.6283 | 0.6590 | 0.6381 |
|
87 |
+
| 0.2641 | 5.0 | 5370 | 2.2805 | 0.6597 | 0.6515 | 0.6707 | 0.6597 |
|
88 |
+
| 0.1707 | 6.0 | 6444 | 2.6621 | 0.6397 | 0.6399 | 0.6581 | 0.6397 |
|
89 |
+
| 0.1537 | 7.0 | 7518 | 2.9116 | 0.6408 | 0.6336 | 0.6452 | 0.6408 |
|
90 |
+
| 0.0867 | 8.0 | 8592 | 3.1775 | 0.6344 | 0.6337 | 0.6531 | 0.6344 |
|
91 |
+
| 0.0779 | 9.0 | 9666 | 3.2514 | 0.6543 | 0.6471 | 0.6593 | 0.6543 |
|
92 |
+
| 0.0587 | 10.0 | 10740 | 3.3244 | 0.6457 | 0.6424 | 0.6488 | 0.6457 |
|
93 |
+
| 0.0322 | 11.0 | 11814 | 3.8090 | 0.6214 | 0.6244 | 0.6488 | 0.6214 |
|
94 |
+
| 0.0139 | 12.0 | 12888 | 3.8642 | 0.6247 | 0.6176 | 0.6424 | 0.6247 |
|
95 |
+
| 0.0256 | 13.0 | 13962 | 3.8734 | 0.6419 | 0.6327 | 0.6398 | 0.6419 |
|
96 |
+
| 0.0046 | 14.0 | 15036 | 4.0934 | 0.6365 | 0.6330 | 0.6463 | 0.6365 |
|
97 |
+
| 0.0036 | 15.0 | 16110 | 4.0890 | 0.6484 | 0.6416 | 0.6469 | 0.6484 |
|
98 |
+
| 0.0023 | 16.0 | 17184 | 4.0978 | 0.6505 | 0.6440 | 0.6470 | 0.6505 |
|
99 |
+
| 0.0008 | 17.0 | 18258 | 4.1709 | 0.6478 | 0.6418 | 0.6449 | 0.6478 |
|
100 |
+
| 0.0014 | 18.0 | 19332 | 4.1715 | 0.6505 | 0.6446 | 0.6458 | 0.6505 |
|
101 |
+
| 0.0007 | 19.0 | 20406 | 4.2158 | 0.6489 | 0.6427 | 0.6443 | 0.6489 |
|
102 |
+
| 0.0039 | 20.0 | 21480 | 4.2158 | 0.6494 | 0.6433 | 0.6447 | 0.6494 |
|
103 |
+
|
104 |
+
|
105 |
+
### Framework versions
|
106 |
+
|
107 |
+
- Transformers 4.35.2
|
108 |
+
- Pytorch 2.1.0+cu121
|
109 |
+
- Datasets 2.16.0
|
110 |
+
- Tokenizers 0.15.0
|
config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ClassCat/roberta-small-basque",
|
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": 512,
|
13 |
+
"id2label": {
|
14 |
+
"0": "LABEL_0",
|
15 |
+
"1": "LABEL_1",
|
16 |
+
"2": "LABEL_2",
|
17 |
+
"3": "LABEL_3",
|
18 |
+
"4": "LABEL_4",
|
19 |
+
"5": "LABEL_5",
|
20 |
+
"6": "LABEL_6",
|
21 |
+
"7": "LABEL_7",
|
22 |
+
"8": "LABEL_8",
|
23 |
+
"9": "LABEL_9",
|
24 |
+
"10": "LABEL_10",
|
25 |
+
"11": "LABEL_11"
|
26 |
+
},
|
27 |
+
"initializer_range": 0.02,
|
28 |
+
"intermediate_size": 2048,
|
29 |
+
"label2id": {
|
30 |
+
"LABEL_0": 0,
|
31 |
+
"LABEL_1": 1,
|
32 |
+
"LABEL_10": 10,
|
33 |
+
"LABEL_11": 11,
|
34 |
+
"LABEL_2": 2,
|
35 |
+
"LABEL_3": 3,
|
36 |
+
"LABEL_4": 4,
|
37 |
+
"LABEL_5": 5,
|
38 |
+
"LABEL_6": 6,
|
39 |
+
"LABEL_7": 7,
|
40 |
+
"LABEL_8": 8,
|
41 |
+
"LABEL_9": 9
|
42 |
+
},
|
43 |
+
"layer_norm_eps": 1e-05,
|
44 |
+
"max_position_embeddings": 514,
|
45 |
+
"model_type": "roberta",
|
46 |
+
"num_attention_heads": 8,
|
47 |
+
"num_hidden_layers": 8,
|
48 |
+
"pad_token_id": 1,
|
49 |
+
"position_embedding_type": "absolute",
|
50 |
+
"problem_type": "single_label_classification",
|
51 |
+
"torch_dtype": "float32",
|
52 |
+
"transformers_version": "4.35.2",
|
53 |
+
"type_vocab_size": 1,
|
54 |
+
"use_cache": true,
|
55 |
+
"vocab_size": 50000
|
56 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e1c90c88cc00fee77ece92d1435225091f6ec43ca36d2d666fd3319e8a132d79
|
3 |
+
size 205426744
|
runs/Dec27_20-11-14_b2521899950f/events.out.tfevents.1703707874.b2521899950f.3997.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e3db4a266524fa4cfd169e52f347adc4ee04430ef20c0cd486e5bab34b1cf18
|
3 |
+
size 21276
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<pad>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<unk>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "<mask>",
|
22 |
+
"lstrip": true,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<s>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"4": {
|
37 |
+
"content": "</s>",
|
38 |
+
"lstrip": false,
|
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 |
+
"keep_accents": true,
|
51 |
+
"mask_token": "<mask>",
|
52 |
+
"max_len": 50,
|
53 |
+
"model_max_length": 50,
|
54 |
+
"pad_token": "<pad>",
|
55 |
+
"sep_token": "</s>",
|
56 |
+
"tokenizer_class": "RobertaTokenizer",
|
57 |
+
"trim_offsets": true,
|
58 |
+
"unk_token": "<unk>"
|
59 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8f6a3ad7f1673b3014bb19a19bca01499d2adf5ebc56de02f7ccd35a930f17c
|
3 |
+
size 4600
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|