adriansanz
commited on
test444
Browse files- README.md +81 -0
- config.json +68 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: projecte-aina/roberta-base-ca-v2-cased-te
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
model-index:
|
10 |
+
- name: modelofinenew
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# modelofinenew
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [projecte-aina/roberta-base-ca-v2-cased-te](https://huggingface.co/projecte-aina/roberta-base-ca-v2-cased-te) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 2.2185
|
22 |
+
- Accuracy: 0.5126
|
23 |
+
- F1: 0.5338
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 5e-05
|
43 |
+
- train_batch_size: 20
|
44 |
+
- eval_batch_size: 2
|
45 |
+
- seed: 42
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_steps: 100
|
49 |
+
- num_epochs: 30
|
50 |
+
- mixed_precision_training: Native AMP
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
55 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|:------:|
|
56 |
+
| 1.9546 | 1.6129 | 50 | 2.5028 | 0.2101 | 0.2019 |
|
57 |
+
| 1.7901 | 3.2258 | 100 | 2.6787 | 0.1849 | 0.1805 |
|
58 |
+
| 1.6177 | 4.8387 | 150 | 2.3416 | 0.3445 | 0.3332 |
|
59 |
+
| 1.2977 | 6.4516 | 200 | 2.0729 | 0.4202 | 0.4060 |
|
60 |
+
| 0.9411 | 8.0645 | 250 | 1.9746 | 0.4706 | 0.4583 |
|
61 |
+
| 0.595 | 9.6774 | 300 | 1.8840 | 0.5126 | 0.5167 |
|
62 |
+
| 0.3374 | 11.2903 | 350 | 1.8955 | 0.4958 | 0.4977 |
|
63 |
+
| 0.1974 | 12.9032 | 400 | 1.9658 | 0.5378 | 0.5169 |
|
64 |
+
| 0.0981 | 14.5161 | 450 | 2.2185 | 0.5126 | 0.5338 |
|
65 |
+
| 0.05 | 16.1290 | 500 | 2.3554 | 0.5042 | 0.5096 |
|
66 |
+
| 0.0312 | 17.7419 | 550 | 2.4366 | 0.5294 | 0.5289 |
|
67 |
+
| 0.0235 | 19.3548 | 600 | 2.5235 | 0.5210 | 0.5181 |
|
68 |
+
| 0.0194 | 20.9677 | 650 | 2.5713 | 0.5294 | 0.5289 |
|
69 |
+
| 0.0166 | 22.5806 | 700 | 2.6188 | 0.5294 | 0.5289 |
|
70 |
+
| 0.0148 | 24.1935 | 750 | 2.6473 | 0.5294 | 0.5289 |
|
71 |
+
| 0.0136 | 25.8065 | 800 | 2.6742 | 0.5210 | 0.5218 |
|
72 |
+
| 0.013 | 27.4194 | 850 | 2.6920 | 0.5210 | 0.5218 |
|
73 |
+
| 0.0129 | 29.0323 | 900 | 2.6961 | 0.5210 | 0.5218 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.40.0
|
79 |
+
- Pytorch 2.1.0+cu121
|
80 |
+
- Datasets 2.19.0
|
81 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "projecte-aina/roberta-base-ca-v2-cased-te",
|
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 |
+
"finetuning_task": "mnli",
|
11 |
+
"gradient_checkpointing": false,
|
12 |
+
"hidden_act": "gelu",
|
13 |
+
"hidden_dropout_prob": 0.1,
|
14 |
+
"hidden_size": 768,
|
15 |
+
"id2label": {
|
16 |
+
"0": "Aigua",
|
17 |
+
"1": "Consum, comer\u00e7 i mercats",
|
18 |
+
"2": "Cultura",
|
19 |
+
"3": "Economia",
|
20 |
+
"4": "Educaci\u00f3",
|
21 |
+
"5": "Enllumenat p\u00fablic",
|
22 |
+
"6": "Esports",
|
23 |
+
"7": "Habitatge",
|
24 |
+
"8": "Horta",
|
25 |
+
"9": "Medi ambient i jardins",
|
26 |
+
"10": "Neteja de la via p\u00fablica",
|
27 |
+
"11": "Salut p\u00fablica",
|
28 |
+
"12": "Seguretat ciutadana i incivisme",
|
29 |
+
"13": "Serveis socials",
|
30 |
+
"14": "Tr\u00e0mits",
|
31 |
+
"15": "Urbanisme",
|
32 |
+
"16": "Via p\u00fablica i mobilitat"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"label2id": {
|
37 |
+
"Aigua": 0,
|
38 |
+
"Consum, comer\u00e7 i mercats": 1,
|
39 |
+
"Cultura": 2,
|
40 |
+
"Economia": 3,
|
41 |
+
"Educaci\u00f3": 4,
|
42 |
+
"Enllumenat p\u00fablic": 5,
|
43 |
+
"Esports": 6,
|
44 |
+
"Habitatge": 7,
|
45 |
+
"Horta": 8,
|
46 |
+
"Medi ambient i jardins": 9,
|
47 |
+
"Neteja de la via p\u00fablica": 10,
|
48 |
+
"Salut p\u00fablica": 11,
|
49 |
+
"Seguretat ciutadana i incivisme": 12,
|
50 |
+
"Serveis socials": 13,
|
51 |
+
"Tr\u00e0mits": 14,
|
52 |
+
"Urbanisme": 15,
|
53 |
+
"Via p\u00fablica i mobilitat": 16
|
54 |
+
},
|
55 |
+
"layer_norm_eps": 1e-05,
|
56 |
+
"max_position_embeddings": 514,
|
57 |
+
"model_type": "roberta",
|
58 |
+
"num_attention_heads": 12,
|
59 |
+
"num_hidden_layers": 12,
|
60 |
+
"pad_token_id": 1,
|
61 |
+
"position_embedding_type": "absolute",
|
62 |
+
"problem_type": "single_label_classification",
|
63 |
+
"torch_dtype": "float32",
|
64 |
+
"transformers_version": "4.40.0",
|
65 |
+
"type_vocab_size": 1,
|
66 |
+
"use_cache": true,
|
67 |
+
"vocab_size": 50262
|
68 |
+
}
|
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:e9144548ce1a4e025c2f0d08abf81b165296f0e99bc25d9e8131a4ba261a8f45
|
3 |
+
size 498649748
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "</s>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "<unk>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": true,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"4": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": true,
|
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 |
+
"mask_token": "<mask>",
|
51 |
+
"max_len": 512,
|
52 |
+
"max_length": 512,
|
53 |
+
"model_max_length": 512,
|
54 |
+
"pad_to_multiple_of": null,
|
55 |
+
"pad_token": "<pad>",
|
56 |
+
"pad_token_type_id": 0,
|
57 |
+
"padding_side": "right",
|
58 |
+
"sep_token": "</s>",
|
59 |
+
"stride": 0,
|
60 |
+
"tokenizer_class": "RobertaTokenizer",
|
61 |
+
"trim_offsets": true,
|
62 |
+
"truncation_side": "right",
|
63 |
+
"truncation_strategy": "longest_first",
|
64 |
+
"unk_token": "<unk>"
|
65 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6a54cbd8df69f708873c6c52004f3ddbd3d3e6ad799cec62345d370c994497ed
|
3 |
+
size 4920
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|