be2be2 commited on
Commit
b643ba3
·
verified ·
1 Parent(s): ca88433

be2be2/koelectra_emotion_v2

Browse files
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: monologg/koelectra-small-finetuned-sentiment
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ model-index:
10
+ - name: koelectra_emotion_v2
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
+ # koelectra_emotion_v2
18
+
19
+ This model is a fine-tuned version of [monologg/koelectra-small-finetuned-sentiment](https://huggingface.co/monologg/koelectra-small-finetuned-sentiment) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.9556
22
+ - Accuracy: 0.6876
23
+ - F1: 0.6854
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: 64
44
+ - eval_batch_size: 64
45
+ - seed: 42
46
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 10
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
53
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|
54
+ | 1.2179 | 1.0 | 1466 | 0.9643 | 0.6553 | 0.6470 |
55
+ | 0.9217 | 2.0 | 2932 | 0.8961 | 0.6749 | 0.6701 |
56
+ | 0.8429 | 3.0 | 4398 | 0.8783 | 0.6882 | 0.6808 |
57
+ | 0.7853 | 4.0 | 5864 | 0.8862 | 0.6876 | 0.6835 |
58
+ | 0.7381 | 5.0 | 7330 | 0.8941 | 0.6867 | 0.6812 |
59
+ | 0.6967 | 6.0 | 8796 | 0.9089 | 0.6884 | 0.6821 |
60
+ | 0.6581 | 7.0 | 10262 | 0.9189 | 0.6869 | 0.6839 |
61
+ | 0.6306 | 8.0 | 11728 | 0.9284 | 0.6876 | 0.6853 |
62
+ | 0.6059 | 9.0 | 13194 | 0.9519 | 0.6876 | 0.6840 |
63
+ | 0.5879 | 10.0 | 14660 | 0.9556 | 0.6876 | 0.6854 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.56.1
69
+ - Pytorch 2.8.0+cu126
70
+ - Datasets 4.0.0
71
+ - Tokenizers 0.22.0
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_num_labels": 2,
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "dtype": "float32",
9
+ "embedding_size": 128,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 256,
13
+ "id2label": {
14
+ "0": "\ubd88\uc548",
15
+ "1": "\ubd84\ub178",
16
+ "2": "\uc2ac\ud514",
17
+ "3": "\uc911\ub9bd",
18
+ "4": "\ud589\ubcf5",
19
+ "5": "\ud610\uc624",
20
+ "6": "\ub2f9\ud669"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 1024,
24
+ "label2id": {
25
+ "\ub2f9\ud669": 6,
26
+ "\ubd84\ub178": 1,
27
+ "\ubd88\uc548": 0,
28
+ "\uc2ac\ud514": 2,
29
+ "\uc911\ub9bd": 3,
30
+ "\ud589\ubcf5": 4,
31
+ "\ud610\uc624": 5
32
+ },
33
+ "layer_norm_eps": 1e-12,
34
+ "max_position_embeddings": 512,
35
+ "model_type": "electra",
36
+ "num_attention_heads": 4,
37
+ "num_hidden_layers": 12,
38
+ "output_past": true,
39
+ "pad_token_id": 0,
40
+ "position_embedding_type": "absolute",
41
+ "problem_type": "single_label_classification",
42
+ "summary_activation": "gelu",
43
+ "summary_last_dropout": 0.1,
44
+ "summary_type": "first",
45
+ "summary_use_proj": true,
46
+ "transformers_version": "4.56.1",
47
+ "type_vocab_size": 2,
48
+ "use_cache": true,
49
+ "vocab_size": 32200
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e5164b41b8f2af89b0f2ee88773282cb56e6ca122b33e4b057236b27414a70f
3
+ size 55085476
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
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
+ "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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_len": 512,
51
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "ElectraTokenizer",
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:424e078537cc0dbcfd1e23873d60d7124ff49445bb99193c652b1427c54a8f3f
3
+ size 5777
vocab.txt ADDED
The diff for this file is too large to render. See raw diff