Kuwon commited on
Commit
3cffd92
·
1 Parent(s): 87ddd20

solikang/koelectra-small-v3-nsmc

Browse files
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: monologg/koelectra-small-v3-discriminator
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - generator
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ - precision
11
+ - recall
12
+ model-index:
13
+ - name: chkpt
14
+ results:
15
+ - task:
16
+ name: Text Classification
17
+ type: text-classification
18
+ dataset:
19
+ name: generator
20
+ type: generator
21
+ config: default
22
+ split: train
23
+ args: default
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 0.8869565217391304
28
+ - name: F1
29
+ type: f1
30
+ value: 0.8338208775796434
31
+ - name: Precision
32
+ type: precision
33
+ value: 0.7866918714555766
34
+ - name: Recall
35
+ type: recall
36
+ value: 0.8869565217391304
37
+ ---
38
+
39
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
40
+ should probably proofread and complete it, then remove this comment. -->
41
+
42
+ # chkpt
43
+
44
+ This model is a fine-tuned version of [monologg/koelectra-small-v3-discriminator](https://huggingface.co/monologg/koelectra-small-v3-discriminator) on the generator dataset.
45
+ It achieves the following results on the evaluation set:
46
+ - Loss: 1.2041
47
+ - Accuracy: 0.8870
48
+ - F1: 0.8338
49
+ - Precision: 0.7867
50
+ - Recall: 0.8870
51
+
52
+ ## Model description
53
+
54
+ More information needed
55
+
56
+ ## Intended uses & limitations
57
+
58
+ More information needed
59
+
60
+ ## Training and evaluation data
61
+
62
+ More information needed
63
+
64
+ ## Training procedure
65
+
66
+ ### Training hyperparameters
67
+
68
+ The following hyperparameters were used during training:
69
+ - learning_rate: 5e-05
70
+ - train_batch_size: 32
71
+ - eval_batch_size: 128
72
+ - seed: 42
73
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
74
+ - lr_scheduler_type: linear
75
+ - num_epochs: 1
76
+
77
+ ### Training results
78
+
79
+ | Training Loss | Epoch | Step | Accuracy | F1 | Validation Loss | Precision | Recall |
80
+ |:-------------:|:-----:|:----:|:--------:|:------:|:---------------:|:---------:|:------:|
81
+ | No log | 1.0 | 12 | 0.8280 | 0.7500 | 1.4560 | 0.6855 | 0.8280 |
82
+ | No log | 2.0 | 24 | 0.9140 | 0.8729 | 1.2494 | 0.8354 | 0.9140 |
83
+ | No log | 1.0 | 29 | 0.9304 | 0.8969 | 1.1763 | 0.8657 | 0.9304 |
84
+
85
+
86
+ ### Framework versions
87
+
88
+ - Transformers 4.35.2
89
+ - Pytorch 2.1.1
90
+ - Datasets 2.15.0
91
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "monologg/koelectra-small-v3-discriminator",
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 128,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 256,
12
+ "id2label": {
13
+ "0": "BUY",
14
+ "1": "HOLD",
15
+ "2": "NOT RATED",
16
+ "3": "OUTPERFORM",
17
+ "4": "TRADING BUY"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 1024,
21
+ "label2id": {
22
+ "BUY": "0",
23
+ "HOLD": "1",
24
+ "NOT RATED": "2",
25
+ "OUTPERFORM": "3",
26
+ "TRADING BUY": "4"
27
+ },
28
+ "layer_norm_eps": 1e-12,
29
+ "max_position_embeddings": 512,
30
+ "model_type": "electra",
31
+ "num_attention_heads": 4,
32
+ "num_hidden_layers": 12,
33
+ "pad_token_id": 0,
34
+ "position_embedding_type": "absolute",
35
+ "problem_type": "single_label_classification",
36
+ "summary_activation": "gelu",
37
+ "summary_last_dropout": 0.1,
38
+ "summary_type": "first",
39
+ "summary_use_proj": true,
40
+ "torch_dtype": "float32",
41
+ "transformers_version": "4.35.2",
42
+ "type_vocab_size": 2,
43
+ "use_cache": true,
44
+ "vocab_size": 35000
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13a026b23db07bdf6fa579d09593b199415e48e7c51e1e005f83205ec8a859a0
3
+ size 56517020
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_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "ElectraTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afa0799d8b2f0c0eeffb023c4e2774b55bffd027264cec69b6800947e94bb362
3
+ size 4472
vocab.txt ADDED
The diff for this file is too large to render. See raw diff