SciGPT2-ft-TweetAreas-ES
Browse files- README.md +77 -0
- config.json +82 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +36 -0
- tokenizer.json +0 -0
- tokenizer_config.json +115 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: DeepESP/gpt2-spanish
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- precision
|
9 |
+
- recall
|
10 |
+
model-index:
|
11 |
+
- name: SciGPT2-ft-TweetAreas-ES
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
16 |
+
should probably proofread and complete it, then remove this comment. -->
|
17 |
+
|
18 |
+
# SciGPT2-ft-TweetAreas-ES
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [DeepESP/gpt2-spanish](https://huggingface.co/DeepESP/gpt2-spanish) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.2090
|
23 |
+
- Roc Auc: 0.7863
|
24 |
+
- Hamming Loss: 0.0548
|
25 |
+
- F1 Score: 0.6523
|
26 |
+
- Accuracy: 0.4083
|
27 |
+
- Precision: 0.8301
|
28 |
+
- Recall: 0.6023
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 2e-05
|
48 |
+
- train_batch_size: 4
|
49 |
+
- eval_batch_size: 4
|
50 |
+
- seed: 42
|
51 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
52 |
+
- lr_scheduler_type: linear
|
53 |
+
- lr_scheduler_warmup_steps: 500
|
54 |
+
- num_epochs: 10
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Roc Auc | Hamming Loss | F1 Score | Accuracy | Precision | Recall |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:-------:|:------------:|:--------:|:--------:|:---------:|:------:|
|
60 |
+
| 0.1499 | 1.0 | 747 | 0.1910 | 0.7062 | 0.0689 | 0.4861 | 0.3320 | 0.8506 | 0.4443 |
|
61 |
+
| 0.1593 | 2.0 | 1494 | 0.1707 | 0.7546 | 0.0636 | 0.5862 | 0.3494 | 0.7958 | 0.5444 |
|
62 |
+
| 0.1042 | 3.0 | 2241 | 0.1700 | 0.7718 | 0.0617 | 0.6133 | 0.3748 | 0.7891 | 0.5812 |
|
63 |
+
| 0.0455 | 4.0 | 2988 | 0.1786 | 0.7934 | 0.0585 | 0.6533 | 0.3855 | 0.7900 | 0.6232 |
|
64 |
+
| 0.0378 | 5.0 | 3735 | 0.1896 | 0.7903 | 0.0571 | 0.6564 | 0.3882 | 0.8020 | 0.6093 |
|
65 |
+
| 0.0199 | 6.0 | 4482 | 0.1948 | 0.7983 | 0.0566 | 0.6627 | 0.3949 | 0.7763 | 0.6304 |
|
66 |
+
| 0.0101 | 7.0 | 5229 | 0.2014 | 0.7888 | 0.0553 | 0.6625 | 0.3963 | 0.8127 | 0.6069 |
|
67 |
+
| 0.0087 | 8.0 | 5976 | 0.2059 | 0.7830 | 0.0563 | 0.6507 | 0.3922 | 0.8271 | 0.5969 |
|
68 |
+
| 0.0071 | 9.0 | 6723 | 0.2074 | 0.7888 | 0.0550 | 0.6587 | 0.4070 | 0.8304 | 0.6080 |
|
69 |
+
| 0.0047 | 10.0 | 7470 | 0.2090 | 0.7863 | 0.0548 | 0.6523 | 0.4083 | 0.8301 | 0.6023 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.43.2
|
75 |
+
- Pytorch 2.3.1+cu121
|
76 |
+
- Datasets 2.20.0
|
77 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "DeepESP/gpt2-spanish",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPT2ForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.1,
|
8 |
+
"bos_token_id": 50256,
|
9 |
+
"embd_pdrop": 0.1,
|
10 |
+
"eos_token_id": 50256,
|
11 |
+
"gradient_checkpointing": false,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4",
|
18 |
+
"5": "LABEL_5",
|
19 |
+
"6": "LABEL_6",
|
20 |
+
"7": "LABEL_7",
|
21 |
+
"8": "LABEL_8",
|
22 |
+
"9": "LABEL_9",
|
23 |
+
"10": "LABEL_10",
|
24 |
+
"11": "LABEL_11",
|
25 |
+
"12": "LABEL_12",
|
26 |
+
"13": "LABEL_13",
|
27 |
+
"14": "LABEL_14",
|
28 |
+
"15": "LABEL_15",
|
29 |
+
"16": "LABEL_16",
|
30 |
+
"17": "LABEL_17"
|
31 |
+
},
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"label2id": {
|
34 |
+
"LABEL_0": 0,
|
35 |
+
"LABEL_1": 1,
|
36 |
+
"LABEL_10": 10,
|
37 |
+
"LABEL_11": 11,
|
38 |
+
"LABEL_12": 12,
|
39 |
+
"LABEL_13": 13,
|
40 |
+
"LABEL_14": 14,
|
41 |
+
"LABEL_15": 15,
|
42 |
+
"LABEL_16": 16,
|
43 |
+
"LABEL_17": 17,
|
44 |
+
"LABEL_2": 2,
|
45 |
+
"LABEL_3": 3,
|
46 |
+
"LABEL_4": 4,
|
47 |
+
"LABEL_5": 5,
|
48 |
+
"LABEL_6": 6,
|
49 |
+
"LABEL_7": 7,
|
50 |
+
"LABEL_8": 8,
|
51 |
+
"LABEL_9": 9
|
52 |
+
},
|
53 |
+
"layer_norm_epsilon": 1e-05,
|
54 |
+
"model_type": "gpt2",
|
55 |
+
"n_ctx": 1024,
|
56 |
+
"n_embd": 768,
|
57 |
+
"n_head": 12,
|
58 |
+
"n_inner": null,
|
59 |
+
"n_layer": 12,
|
60 |
+
"n_positions": 1024,
|
61 |
+
"pad_token_id": 50256,
|
62 |
+
"problem_type": "multi_label_classification",
|
63 |
+
"reorder_and_upcast_attn": false,
|
64 |
+
"resid_pdrop": 0.1,
|
65 |
+
"scale_attn_by_inverse_layer_idx": false,
|
66 |
+
"scale_attn_weights": true,
|
67 |
+
"summary_activation": null,
|
68 |
+
"summary_first_dropout": 0.1,
|
69 |
+
"summary_proj_to_labels": true,
|
70 |
+
"summary_type": "cls_index",
|
71 |
+
"summary_use_proj": true,
|
72 |
+
"task_specific_params": {
|
73 |
+
"text-generation": {
|
74 |
+
"do_sample": true,
|
75 |
+
"max_length": 50
|
76 |
+
}
|
77 |
+
},
|
78 |
+
"torch_dtype": "float32",
|
79 |
+
"transformers_version": "4.43.2",
|
80 |
+
"use_cache": true,
|
81 |
+
"vocab_size": 50257
|
82 |
+
}
|
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:deab3157aa2259bd3ae237cb1ca1312d99084e51baf0dcbdb2de0c85ce0ec2a9
|
3 |
+
size 497829584
|
special_tokens_map.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|talk|>",
|
4 |
+
"<|ax1|>",
|
5 |
+
"<|ax2|>",
|
6 |
+
"<|ax3|>",
|
7 |
+
"<|ax4|>",
|
8 |
+
"<|ax5|>",
|
9 |
+
"<|ax6|>",
|
10 |
+
"<|ax7|>",
|
11 |
+
"<|ax8|>",
|
12 |
+
"<|ax9|>"
|
13 |
+
],
|
14 |
+
"bos_token": {
|
15 |
+
"content": "<|endoftext|>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": true,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
},
|
21 |
+
"eos_token": {
|
22 |
+
"content": "<|endoftext|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
},
|
28 |
+
"pad_token": "<|endoftext|>",
|
29 |
+
"unk_token": {
|
30 |
+
"content": "<|endoftext|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": true,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false
|
35 |
+
}
|
36 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<|talk|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<|ax1|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "<|ax2|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"3": {
|
30 |
+
"content": "<|ax3|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"4": {
|
38 |
+
"content": "<|ax4|>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"5": {
|
46 |
+
"content": "<|ax5|>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
},
|
53 |
+
"6": {
|
54 |
+
"content": "<|ax6|>",
|
55 |
+
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
+
"rstrip": false,
|
58 |
+
"single_word": false,
|
59 |
+
"special": true
|
60 |
+
},
|
61 |
+
"7": {
|
62 |
+
"content": "<|ax7|>",
|
63 |
+
"lstrip": false,
|
64 |
+
"normalized": false,
|
65 |
+
"rstrip": false,
|
66 |
+
"single_word": false,
|
67 |
+
"special": true
|
68 |
+
},
|
69 |
+
"8": {
|
70 |
+
"content": "<|ax8|>",
|
71 |
+
"lstrip": false,
|
72 |
+
"normalized": false,
|
73 |
+
"rstrip": false,
|
74 |
+
"single_word": false,
|
75 |
+
"special": true
|
76 |
+
},
|
77 |
+
"9": {
|
78 |
+
"content": "<|ax9|>",
|
79 |
+
"lstrip": false,
|
80 |
+
"normalized": false,
|
81 |
+
"rstrip": false,
|
82 |
+
"single_word": false,
|
83 |
+
"special": true
|
84 |
+
},
|
85 |
+
"50256": {
|
86 |
+
"content": "<|endoftext|>",
|
87 |
+
"lstrip": false,
|
88 |
+
"normalized": true,
|
89 |
+
"rstrip": false,
|
90 |
+
"single_word": false,
|
91 |
+
"special": true
|
92 |
+
}
|
93 |
+
},
|
94 |
+
"additional_special_tokens": [
|
95 |
+
"<|talk|>",
|
96 |
+
"<|ax1|>",
|
97 |
+
"<|ax2|>",
|
98 |
+
"<|ax3|>",
|
99 |
+
"<|ax4|>",
|
100 |
+
"<|ax5|>",
|
101 |
+
"<|ax6|>",
|
102 |
+
"<|ax7|>",
|
103 |
+
"<|ax8|>",
|
104 |
+
"<|ax9|>"
|
105 |
+
],
|
106 |
+
"bos_token": "<|endoftext|>",
|
107 |
+
"clean_up_tokenization_spaces": true,
|
108 |
+
"eos_token": "<|endoftext|>",
|
109 |
+
"errors": "replace",
|
110 |
+
"full_tokenizer_file": null,
|
111 |
+
"model_max_length": 1000000000000000019884624838656,
|
112 |
+
"pad_token": "<|endoftext|>",
|
113 |
+
"tokenizer_class": "GPT2Tokenizer",
|
114 |
+
"unk_token": "<|endoftext|>"
|
115 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5404cbd326ecf3b9a7fd7c4a3a051c3ffc85b339cc094d00eb8ab877a8661895
|
3 |
+
size 5176
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|