omerfguzel
commited on
Commit
•
6ff94ff
1
Parent(s):
16cc70b
End of training
Browse files- README.md +77 -0
- config.json +57 -0
- model.safetensors +3 -0
- runs/Feb21_10-52-44_9952b832d155/events.out.tfevents.1708512764.9952b832d155.303.0 +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +75 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: funnel-transformer/small
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- emotion
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: emotion_funnel-transformer
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: Text Classification
|
15 |
+
type: text-classification
|
16 |
+
dataset:
|
17 |
+
name: emotion
|
18 |
+
type: emotion
|
19 |
+
config: split
|
20 |
+
split: test
|
21 |
+
args: split
|
22 |
+
metrics:
|
23 |
+
- name: Accuracy
|
24 |
+
type: accuracy
|
25 |
+
value: 0.9175
|
26 |
+
---
|
27 |
+
|
28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
29 |
+
should probably proofread and complete it, then remove this comment. -->
|
30 |
+
|
31 |
+
# emotion_funnel-transformer
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [funnel-transformer/small](https://huggingface.co/funnel-transformer/small) on the emotion dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.2029
|
36 |
+
- Accuracy: 0.9175
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 2e-05
|
56 |
+
- train_batch_size: 64
|
57 |
+
- eval_batch_size: 64
|
58 |
+
- seed: 42
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- num_epochs: 3
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
67 |
+
| No log | 1.0 | 250 | 0.3498 | 0.881 |
|
68 |
+
| 0.6091 | 2.0 | 500 | 0.2288 | 0.908 |
|
69 |
+
| 0.6091 | 3.0 | 750 | 0.2029 | 0.9175 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.37.2
|
75 |
+
- Pytorch 2.1.0+cu121
|
76 |
+
- Datasets 2.17.1
|
77 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "funnel-transformer/small",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"architectures": [
|
5 |
+
"FunnelForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"attention_type": "relative_shift",
|
9 |
+
"block_repeats": [
|
10 |
+
1,
|
11 |
+
1,
|
12 |
+
1
|
13 |
+
],
|
14 |
+
"block_sizes": [
|
15 |
+
4,
|
16 |
+
4,
|
17 |
+
4
|
18 |
+
],
|
19 |
+
"d_head": 64,
|
20 |
+
"d_inner": 3072,
|
21 |
+
"d_model": 768,
|
22 |
+
"hidden_act": "gelu_new",
|
23 |
+
"hidden_dropout": 0.1,
|
24 |
+
"id2label": {
|
25 |
+
"0": "sadness",
|
26 |
+
"1": "joy",
|
27 |
+
"2": "love",
|
28 |
+
"3": "anger",
|
29 |
+
"4": "fear",
|
30 |
+
"5": "surprise"
|
31 |
+
},
|
32 |
+
"initializer_range": 0.1,
|
33 |
+
"initializer_std": null,
|
34 |
+
"label2id": {
|
35 |
+
"anger": 3,
|
36 |
+
"fear": 4,
|
37 |
+
"joy": 1,
|
38 |
+
"love": 2,
|
39 |
+
"sadness": 0,
|
40 |
+
"surprise": 5
|
41 |
+
},
|
42 |
+
"layer_norm_eps": 1e-09,
|
43 |
+
"max_position_embeddings": 512,
|
44 |
+
"model_type": "funnel",
|
45 |
+
"n_head": 12,
|
46 |
+
"num_decoder_layers": 2,
|
47 |
+
"pool_q_only": true,
|
48 |
+
"pooling_type": "mean",
|
49 |
+
"problem_type": "single_label_classification",
|
50 |
+
"rel_attn_type": "factorized",
|
51 |
+
"separate_cls": true,
|
52 |
+
"torch_dtype": "float32",
|
53 |
+
"transformers_version": "4.37.2",
|
54 |
+
"truncate_seq": true,
|
55 |
+
"type_vocab_size": 3,
|
56 |
+
"vocab_size": 30522
|
57 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7ea2120f833427035bbfc7655b93d8e172c3f964ee633808f6ec80e1b97d87f
|
3 |
+
size 464856680
|
runs/Feb21_10-52-44_9952b832d155/events.out.tfevents.1708512764.9952b832d155.303.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33061b866c185cbe5d9dd7068be392fd05b234a457a03049ae5f0b0d2c7b311c
|
3 |
+
size 6250
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<cls>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "<sep>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "<unk>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": false,
|
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,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<pad>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"96": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"97": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"100": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"101": {
|
36 |
+
"content": "<cls>",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"102": {
|
44 |
+
"content": "<sep>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
"103": {
|
52 |
+
"content": "<mask>",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": false,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": true
|
58 |
+
}
|
59 |
+
},
|
60 |
+
"bos_token": "<s>",
|
61 |
+
"clean_text": true,
|
62 |
+
"clean_up_tokenization_spaces": true,
|
63 |
+
"cls_token": "<cls>",
|
64 |
+
"do_lower_case": true,
|
65 |
+
"eos_token": "</s>",
|
66 |
+
"mask_token": "<mask>",
|
67 |
+
"model_max_length": 512,
|
68 |
+
"pad_token": "<pad>",
|
69 |
+
"sep_token": "<sep>",
|
70 |
+
"strip_accents": null,
|
71 |
+
"tokenize_chinese_chars": true,
|
72 |
+
"tokenizer_class": "FunnelTokenizer",
|
73 |
+
"unk_token": "<unk>",
|
74 |
+
"wordpieces_prefix": "##"
|
75 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08242cbe2f674ef00d015fa178551cb524662bbf9aedb0806206663092e9328b
|
3 |
+
size 4728
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|