omerfguzel
commited on
Commit
•
3c24fd8
1
Parent(s):
12cdeba
End of training
Browse files- README.md +77 -0
- config.json +60 -0
- model.safetensors +3 -0
- runs/Feb21_12-17-52_5880ced9be9a/events.out.tfevents.1708517874.5880ced9be9a.200.0 +3 -0
- special_tokens_map.json +19 -0
- spiece.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +93 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: xlnet/xlnet-base-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- emotion
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: emotion_xlnet
|
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.9145
|
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_xlnet
|
32 |
+
|
33 |
+
This model is a fine-tuned version of [xlnet/xlnet-base-cased](https://huggingface.co/xlnet/xlnet-base-cased) on the emotion dataset.
|
34 |
+
It achieves the following results on the evaluation set:
|
35 |
+
- Loss: 0.1996
|
36 |
+
- Accuracy: 0.9145
|
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.3686 | 0.8695 |
|
68 |
+
| 0.5792 | 2.0 | 500 | 0.2257 | 0.908 |
|
69 |
+
| 0.5792 | 3.0 | 750 | 0.1996 | 0.9145 |
|
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,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "xlnet/xlnet-base-cased",
|
3 |
+
"architectures": [
|
4 |
+
"XLNetForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attn_type": "bi",
|
7 |
+
"bi_data": false,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"clamp_len": -1,
|
10 |
+
"d_head": 64,
|
11 |
+
"d_inner": 3072,
|
12 |
+
"d_model": 768,
|
13 |
+
"dropout": 0.1,
|
14 |
+
"end_n_top": 5,
|
15 |
+
"eos_token_id": 2,
|
16 |
+
"ff_activation": "gelu",
|
17 |
+
"id2label": {
|
18 |
+
"0": "sadness",
|
19 |
+
"1": "joy",
|
20 |
+
"2": "love",
|
21 |
+
"3": "anger",
|
22 |
+
"4": "fear",
|
23 |
+
"5": "surprise"
|
24 |
+
},
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"label2id": {
|
27 |
+
"anger": 3,
|
28 |
+
"fear": 4,
|
29 |
+
"joy": 1,
|
30 |
+
"love": 2,
|
31 |
+
"sadness": 0,
|
32 |
+
"surprise": 5
|
33 |
+
},
|
34 |
+
"layer_norm_eps": 1e-12,
|
35 |
+
"mem_len": null,
|
36 |
+
"model_type": "xlnet",
|
37 |
+
"n_head": 12,
|
38 |
+
"n_layer": 12,
|
39 |
+
"pad_token_id": 5,
|
40 |
+
"problem_type": "single_label_classification",
|
41 |
+
"reuse_len": null,
|
42 |
+
"same_length": false,
|
43 |
+
"start_n_top": 5,
|
44 |
+
"summary_activation": "tanh",
|
45 |
+
"summary_last_dropout": 0.1,
|
46 |
+
"summary_type": "last",
|
47 |
+
"summary_use_proj": true,
|
48 |
+
"task_specific_params": {
|
49 |
+
"text-generation": {
|
50 |
+
"do_sample": true,
|
51 |
+
"max_length": 250
|
52 |
+
}
|
53 |
+
},
|
54 |
+
"torch_dtype": "float32",
|
55 |
+
"transformers_version": "4.37.2",
|
56 |
+
"untie_r": true,
|
57 |
+
"use_mems_eval": true,
|
58 |
+
"use_mems_train": false,
|
59 |
+
"vocab_size": 32000
|
60 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca33a6421657b7d7b32842bb37f179ace9ab45da7b8103220349092962e081b5
|
3 |
+
size 469276904
|
runs/Feb21_12-17-52_5880ced9be9a/events.out.tfevents.1708517874.5880ced9be9a.200.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9618e4a3eb59d4929e0a9aa525ddb7ba56fd5e8049616c7ae54443920e387fd8
|
3 |
+
size 6322
|
special_tokens_map.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<eop>",
|
4 |
+
"<eod>"
|
5 |
+
],
|
6 |
+
"bos_token": "<s>",
|
7 |
+
"cls_token": "<cls>",
|
8 |
+
"eos_token": "</s>",
|
9 |
+
"mask_token": {
|
10 |
+
"content": "<mask>",
|
11 |
+
"lstrip": true,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "<pad>",
|
17 |
+
"sep_token": "<sep>",
|
18 |
+
"unk_token": "<unk>"
|
19 |
+
}
|
spiece.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f8c1c0bc2854d1af911a8550288c1258af5ba50277f3a5c829b98eb86fc5646
|
3 |
+
size 798011
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "<cls>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"4": {
|
36 |
+
"content": "<sep>",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"5": {
|
44 |
+
"content": "<pad>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
"6": {
|
52 |
+
"content": "<mask>",
|
53 |
+
"lstrip": true,
|
54 |
+
"normalized": false,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": true
|
58 |
+
},
|
59 |
+
"7": {
|
60 |
+
"content": "<eod>",
|
61 |
+
"lstrip": false,
|
62 |
+
"normalized": false,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": false,
|
65 |
+
"special": true
|
66 |
+
},
|
67 |
+
"8": {
|
68 |
+
"content": "<eop>",
|
69 |
+
"lstrip": false,
|
70 |
+
"normalized": false,
|
71 |
+
"rstrip": false,
|
72 |
+
"single_word": false,
|
73 |
+
"special": true
|
74 |
+
}
|
75 |
+
},
|
76 |
+
"additional_special_tokens": [
|
77 |
+
"<eop>",
|
78 |
+
"<eod>"
|
79 |
+
],
|
80 |
+
"bos_token": "<s>",
|
81 |
+
"clean_up_tokenization_spaces": true,
|
82 |
+
"cls_token": "<cls>",
|
83 |
+
"do_lower_case": false,
|
84 |
+
"eos_token": "</s>",
|
85 |
+
"keep_accents": false,
|
86 |
+
"mask_token": "<mask>",
|
87 |
+
"model_max_length": 1000000000000000019884624838656,
|
88 |
+
"pad_token": "<pad>",
|
89 |
+
"remove_space": true,
|
90 |
+
"sep_token": "<sep>",
|
91 |
+
"tokenizer_class": "XLNetTokenizer",
|
92 |
+
"unk_token": "<unk>"
|
93 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42238bfd857edf40107491c443dbcc22366fa4016a9cc4c0547952004e46e28e
|
3 |
+
size 4728
|