hwirang commited on
Commit
c047603
·
verified ·
1 Parent(s): ece6e74

bongbongbong/news-classifier

Browse files
Files changed (6) hide show
  1. README.md +76 -0
  2. config.json +52 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +15 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ language:
4
+ - ko
5
+ license: apache-2.0
6
+ base_model: monologg/koelectra-base-v3-discriminator
7
+ tags:
8
+ - text-classification
9
+ - KoELECTRA
10
+ - Korean-NLP
11
+ - topic-classification
12
+ - news-classification
13
+ - generated_from_trainer
14
+ metrics:
15
+ - accuracy
16
+ - precision
17
+ - recall
18
+ - f1
19
+ model-index:
20
+ - name: ynat-model
21
+ results: []
22
+ ---
23
+
24
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
25
+ should probably proofread and complete it, then remove this comment. -->
26
+
27
+ # ynat-model
28
+
29
+ This model is a fine-tuned version of [monologg/koelectra-base-v3-discriminator](https://huggingface.co/monologg/koelectra-base-v3-discriminator) on the klue-ynat dataset.
30
+ It achieves the following results on the evaluation set:
31
+ - Loss: 0.4069
32
+ - Accuracy: 0.8629
33
+ - Precision: 0.8508
34
+ - Recall: 0.8771
35
+ - F1: 0.8632
36
+
37
+ ## Model description
38
+
39
+ More information needed
40
+
41
+ ## Intended uses & limitations
42
+
43
+ More information needed
44
+
45
+ ## Training and evaluation data
46
+
47
+ More information needed
48
+
49
+ ## Training procedure
50
+
51
+ ### Training hyperparameters
52
+
53
+ The following hyperparameters were used during training:
54
+ - learning_rate: 5e-05
55
+ - train_batch_size: 64
56
+ - eval_batch_size: 64
57
+ - seed: 42
58
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
59
+ - lr_scheduler_type: linear
60
+ - num_epochs: 3
61
+
62
+ ### Training results
63
+
64
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
65
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
66
+ | 0.4032 | 1.0 | 714 | 0.4710 | 0.8320 | 0.8100 | 0.8718 | 0.8367 |
67
+ | 0.2901 | 2.0 | 1428 | 0.3964 | 0.8584 | 0.8525 | 0.8683 | 0.8589 |
68
+ | 0.2206 | 3.0 | 2142 | 0.4069 | 0.8629 | 0.8508 | 0.8771 | 0.8632 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 5.0.0
74
+ - Pytorch 2.10.0+cu128
75
+ - Datasets 4.0.0
76
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "ElectraForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "embedding_size": 768,
11
+ "eos_token_id": null,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "IT\uacfc\ud559",
17
+ "1": "\uacbd\uc81c",
18
+ "2": "\uc0ac\ud68c",
19
+ "3": "\uc0dd\ud65c\ubb38\ud654",
20
+ "4": "\uc138\uacc4",
21
+ "5": "\uc2a4\ud3ec\uce20",
22
+ "6": "\uc815\uce58"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "is_decoder": false,
27
+ "label2id": {
28
+ "IT\uacfc\ud559": 0,
29
+ "\uacbd\uc81c": 1,
30
+ "\uc0ac\ud68c": 2,
31
+ "\uc0dd\ud65c\ubb38\ud654": 3,
32
+ "\uc138\uacc4": 4,
33
+ "\uc2a4\ud3ec\uce20": 5,
34
+ "\uc815\uce58": 6
35
+ },
36
+ "layer_norm_eps": 1e-12,
37
+ "max_position_embeddings": 512,
38
+ "model_type": "electra",
39
+ "num_attention_heads": 12,
40
+ "num_hidden_layers": 12,
41
+ "pad_token_id": 0,
42
+ "problem_type": "single_label_classification",
43
+ "summary_activation": "gelu",
44
+ "summary_last_dropout": 0.1,
45
+ "summary_type": "first",
46
+ "summary_use_proj": true,
47
+ "tie_word_embeddings": true,
48
+ "transformers_version": "5.0.0",
49
+ "type_vocab_size": 2,
50
+ "use_cache": false,
51
+ "vocab_size": 35000
52
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:545136d58a30a1b2a29aa5a1eaac4aca7006059d009a89444661aeffc25991c3
3
+ size 451731028
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "do_lower_case": false,
6
+ "is_local": false,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa2dc7a9636bf4f011f579bd6e5aa6aa3636d2b376e49b1a001ce39c3a5cc021
3
+ size 5201