djsull/sent_classification
Browse files- README.md +73 -0
- config.json +65 -0
- model.safetensors +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +60 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: klue/roberta-base
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
model-index:
|
| 9 |
+
- name: aha_sentence_classification
|
| 10 |
+
results: []
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 14 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 15 |
+
|
| 16 |
+
# aha_sentence_classification
|
| 17 |
+
|
| 18 |
+
This model is a fine-tuned version of [klue/roberta-base](https://huggingface.co/klue/roberta-base) on an unknown dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.7354
|
| 21 |
+
- Accuracy: 0.7316
|
| 22 |
+
- F1 Micro: 0.7316
|
| 23 |
+
- F1 Macro: 0.4222
|
| 24 |
+
- Precision Macro: 0.4524
|
| 25 |
+
- Recall Macro: 0.4113
|
| 26 |
+
|
| 27 |
+
## Model description
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Intended uses & limitations
|
| 32 |
+
|
| 33 |
+
More information needed
|
| 34 |
+
|
| 35 |
+
## Training and evaluation data
|
| 36 |
+
|
| 37 |
+
More information needed
|
| 38 |
+
|
| 39 |
+
## Training procedure
|
| 40 |
+
|
| 41 |
+
### Training hyperparameters
|
| 42 |
+
|
| 43 |
+
The following hyperparameters were used during training:
|
| 44 |
+
- learning_rate: 2e-05
|
| 45 |
+
- train_batch_size: 64
|
| 46 |
+
- eval_batch_size: 64
|
| 47 |
+
- seed: 42
|
| 48 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 49 |
+
- lr_scheduler_type: cosine
|
| 50 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 51 |
+
- num_epochs: 25
|
| 52 |
+
|
| 53 |
+
### Training results
|
| 54 |
+
|
| 55 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Micro | F1 Macro | Precision Macro | Recall Macro |
|
| 56 |
+
|:-------------:|:------:|:-----:|:---------------:|:--------:|:--------:|:--------:|:---------------:|:------------:|
|
| 57 |
+
| 1.1113 | 0.5949 | 1000 | 0.9240 | 0.7121 | 0.7121 | 0.3417 | 0.3851 | 0.3598 |
|
| 58 |
+
| 0.8622 | 1.1898 | 2000 | 0.8069 | 0.7146 | 0.7146 | 0.3950 | 0.4231 | 0.3979 |
|
| 59 |
+
| 0.7967 | 1.7847 | 3000 | 0.7669 | 0.7212 | 0.7212 | 0.4115 | 0.4250 | 0.4221 |
|
| 60 |
+
| 0.6931 | 2.3795 | 4000 | 0.7529 | 0.7219 | 0.7219 | 0.4319 | 0.4444 | 0.4246 |
|
| 61 |
+
| 0.7087 | 2.9744 | 5000 | 0.7354 | 0.7316 | 0.7316 | 0.4222 | 0.4524 | 0.4113 |
|
| 62 |
+
| 0.5718 | 3.5693 | 6000 | 0.7762 | 0.7184 | 0.7184 | 0.4239 | 0.4342 | 0.4215 |
|
| 63 |
+
| 0.4475 | 4.1642 | 7000 | 0.8555 | 0.708 | 0.708 | 0.3976 | 0.4119 | 0.3899 |
|
| 64 |
+
| 0.4542 | 4.7591 | 8000 | 0.8205 | 0.7224 | 0.7224 | 0.4015 | 0.4148 | 0.3925 |
|
| 65 |
+
| 0.3716 | 5.3540 | 9000 | 0.9603 | 0.7039 | 0.7039 | 0.3931 | 0.4080 | 0.3939 |
|
| 66 |
+
| 0.3644 | 5.9488 | 10000 | 0.9151 | 0.7099 | 0.7099 | 0.3965 | 0.4078 | 0.3922 |
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
### Framework versions
|
| 70 |
+
|
| 71 |
+
- Transformers 4.56.1
|
| 72 |
+
- Pytorch 2.7.0+cu126
|
| 73 |
+
- Tokenizers 0.22.0
|
config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"RobertaForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"bos_token_id": 0,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"gradient_checkpointing": false,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"id2label": {
|
| 15 |
+
"0": "\ud575\uc2ec\uc9c8\ubb38",
|
| 16 |
+
"1": "\uc11c\ube0c\uc9c8\ubb38",
|
| 17 |
+
"2": "\ubc30\uacbd/\uc0c1\ud669",
|
| 18 |
+
"3": "\uc2dc\ub3c4/\ud574\ubcf8\uac83",
|
| 19 |
+
"4": "\uc624\ub958/\uc99d\uc0c1",
|
| 20 |
+
"5": "\ud575\uc2ec\ub2f5\ubcc0/\uacb0\ub860",
|
| 21 |
+
"6": "\uc778\uc6a9/\ucc38\uc870",
|
| 22 |
+
"7": "\uadfc\uac70/\uc124\uba85",
|
| 23 |
+
"8": "\uc808\ucc28/\ubc29\ubc95",
|
| 24 |
+
"9": "\uc8fc\uc758/\ud55c\uacc4",
|
| 25 |
+
"10": "\ub300\uc548/\ube44\uad50",
|
| 26 |
+
"11": "\ucd94\uac00\uc815\ubcf4\uc694\uccad",
|
| 27 |
+
"12": "\uc778\uc0ac/\uac10\uc0ac/\uc751\uc6d0",
|
| 28 |
+
"13": "\ucd94\ucc9c/\ubcf4\uc0c1\uc720\ub3c4",
|
| 29 |
+
"14": "\uc608\uc2dc\ub370\uc774\ud130/\uc99d\ube59",
|
| 30 |
+
"15": "\uc758\ubbf8/\ud574\ub2f9\uc0ac\ud56d\uc5c6\uc74c"
|
| 31 |
+
},
|
| 32 |
+
"initializer_range": 0.02,
|
| 33 |
+
"intermediate_size": 3072,
|
| 34 |
+
"label2id": {
|
| 35 |
+
"\uadfc\uac70/\uc124\uba85": 7,
|
| 36 |
+
"\ub300\uc548/\ube44\uad50": 10,
|
| 37 |
+
"\ubc30\uacbd/\uc0c1\ud669": 2,
|
| 38 |
+
"\uc11c\ube0c\uc9c8\ubb38": 1,
|
| 39 |
+
"\uc2dc\ub3c4/\ud574\ubcf8\uac83": 3,
|
| 40 |
+
"\uc608\uc2dc\ub370\uc774\ud130/\uc99d\ube59": 14,
|
| 41 |
+
"\uc624\ub958/\uc99d\uc0c1": 4,
|
| 42 |
+
"\uc758\ubbf8/\ud574\ub2f9\uc0ac\ud56d\uc5c6\uc74c": 15,
|
| 43 |
+
"\uc778\uc0ac/\uac10\uc0ac/\uc751\uc6d0": 12,
|
| 44 |
+
"\uc778\uc6a9/\ucc38\uc870": 6,
|
| 45 |
+
"\uc808\ucc28/\ubc29\ubc95": 8,
|
| 46 |
+
"\uc8fc\uc758/\ud55c\uacc4": 9,
|
| 47 |
+
"\ucd94\uac00\uc815\ubcf4\uc694\uccad": 11,
|
| 48 |
+
"\ucd94\ucc9c/\ubcf4\uc0c1\uc720\ub3c4": 13,
|
| 49 |
+
"\ud575\uc2ec\ub2f5\ubcc0/\uacb0\ub860": 5,
|
| 50 |
+
"\ud575\uc2ec\uc9c8\ubb38": 0
|
| 51 |
+
},
|
| 52 |
+
"layer_norm_eps": 1e-05,
|
| 53 |
+
"max_position_embeddings": 514,
|
| 54 |
+
"model_type": "roberta",
|
| 55 |
+
"num_attention_heads": 12,
|
| 56 |
+
"num_hidden_layers": 12,
|
| 57 |
+
"pad_token_id": 1,
|
| 58 |
+
"position_embedding_type": "absolute",
|
| 59 |
+
"problem_type": "single_label_classification",
|
| 60 |
+
"tokenizer_class": "BertTokenizer",
|
| 61 |
+
"transformers_version": "4.56.1",
|
| 62 |
+
"type_vocab_size": 1,
|
| 63 |
+
"use_cache": false,
|
| 64 |
+
"vocab_size": 32000
|
| 65 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a242d056612e4624f4de4d31513c4d0a8c4a879c3d73e0fb0dfa2e18b17db85c
|
| 3 |
+
size 442545808
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 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": "[SEP]",
|
| 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,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[CLS]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "[PAD]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "[SEP]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "[UNK]",
|
| 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 |
+
"bos_token": "[CLS]",
|
| 45 |
+
"clean_up_tokenization_spaces": false,
|
| 46 |
+
"cls_token": "[CLS]",
|
| 47 |
+
"do_basic_tokenize": true,
|
| 48 |
+
"do_lower_case": false,
|
| 49 |
+
"eos_token": "[SEP]",
|
| 50 |
+
"extra_special_tokens": {},
|
| 51 |
+
"mask_token": "[MASK]",
|
| 52 |
+
"model_max_length": 512,
|
| 53 |
+
"never_split": null,
|
| 54 |
+
"pad_token": "[PAD]",
|
| 55 |
+
"sep_token": "[SEP]",
|
| 56 |
+
"strip_accents": null,
|
| 57 |
+
"tokenize_chinese_chars": true,
|
| 58 |
+
"tokenizer_class": "BertTokenizer",
|
| 59 |
+
"unk_token": "[UNK]"
|
| 60 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89a1c4e17ad5d25dbf2f8b28524d6251bdac9277288d757f1766e38116fae9a5
|
| 3 |
+
size 5905
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|