End of training
Browse files- README.md +89 -0
- config.json +77 -0
- model.safetensors +3 -0
- special_tokens_map.json +15 -0
- spiece.model +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: albert/albert-base-v2
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: b2a13bdfdbee03869078392ce31ca69a
|
| 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 |
+
# b2a13bdfdbee03869078392ce31ca69a
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [albert/albert-base-v2](https://huggingface.co/albert/albert-base-v2) on the contemmcm/cls_20newsgroups dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.7541
|
| 22 |
+
- Data Size: 1.0
|
| 23 |
+
- Epoch Runtime: 29.5942
|
| 24 |
+
- Accuracy: 0.8377
|
| 25 |
+
- F1 Macro: 0.8391
|
| 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: 5e-05
|
| 45 |
+
- train_batch_size: 8
|
| 46 |
+
- eval_batch_size: 8
|
| 47 |
+
- seed: 42
|
| 48 |
+
- distributed_type: multi-GPU
|
| 49 |
+
- num_devices: 4
|
| 50 |
+
- total_train_batch_size: 32
|
| 51 |
+
- total_eval_batch_size: 32
|
| 52 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 53 |
+
- lr_scheduler_type: constant
|
| 54 |
+
- num_epochs: 50
|
| 55 |
+
|
| 56 |
+
### Training results
|
| 57 |
+
|
| 58 |
+
| Training Loss | Epoch | Step | Validation Loss | Data Size | Epoch Runtime | Accuracy | F1 Macro |
|
| 59 |
+
|:-------------:|:-----:|:-----:|:---------------:|:---------:|:-------------:|:--------:|:--------:|
|
| 60 |
+
| No log | 0 | 0 | 3.0820 | 0 | 2.9678 | 0.0605 | 0.0151 |
|
| 61 |
+
| No log | 1 | 499 | 3.0567 | 0.0078 | 3.4622 | 0.0504 | 0.0048 |
|
| 62 |
+
| 0.031 | 2 | 998 | 3.0091 | 0.0156 | 3.3477 | 0.0391 | 0.0112 |
|
| 63 |
+
| 0.0543 | 3 | 1497 | 3.0022 | 0.0312 | 3.7892 | 0.0554 | 0.0097 |
|
| 64 |
+
| 0.1023 | 4 | 1996 | 3.0063 | 0.0625 | 4.8024 | 0.0423 | 0.0041 |
|
| 65 |
+
| 3.0041 | 5 | 2495 | 2.9995 | 0.125 | 6.3555 | 0.0517 | 0.0049 |
|
| 66 |
+
| 2.991 | 6 | 2994 | 3.0435 | 0.25 | 9.6819 | 0.0665 | 0.0181 |
|
| 67 |
+
| 1.949 | 7 | 3493 | 1.7583 | 0.5 | 16.3085 | 0.3546 | 0.2790 |
|
| 68 |
+
| 1.2499 | 8.0 | 3992 | 1.1927 | 1.0 | 29.7099 | 0.5761 | 0.5240 |
|
| 69 |
+
| 1.0707 | 9.0 | 4491 | 1.0339 | 1.0 | 29.6584 | 0.6615 | 0.6368 |
|
| 70 |
+
| 0.8532 | 10.0 | 4990 | 0.9110 | 1.0 | 29.5331 | 0.7132 | 0.6890 |
|
| 71 |
+
| 0.634 | 11.0 | 5489 | 0.8023 | 1.0 | 29.7321 | 0.7641 | 0.7594 |
|
| 72 |
+
| 0.5863 | 12.0 | 5988 | 0.7403 | 1.0 | 29.5549 | 0.8062 | 0.8034 |
|
| 73 |
+
| 0.5222 | 13.0 | 6487 | 0.6932 | 1.0 | 29.6895 | 0.8133 | 0.8116 |
|
| 74 |
+
| 0.4108 | 14.0 | 6986 | 0.7164 | 1.0 | 29.6142 | 0.8193 | 0.8177 |
|
| 75 |
+
| 0.4135 | 15.0 | 7485 | 0.7475 | 1.0 | 29.4822 | 0.8233 | 0.8194 |
|
| 76 |
+
| 0.3594 | 16.0 | 7984 | 0.7092 | 1.0 | 29.5987 | 0.8274 | 0.8259 |
|
| 77 |
+
| 0.3296 | 17.0 | 8483 | 0.6517 | 1.0 | 29.6032 | 0.8475 | 0.8450 |
|
| 78 |
+
| 0.2996 | 18.0 | 8982 | 0.6841 | 1.0 | 29.5800 | 0.8402 | 0.8352 |
|
| 79 |
+
| 0.2559 | 19.0 | 9481 | 0.6700 | 1.0 | 29.5649 | 0.8511 | 0.8499 |
|
| 80 |
+
| 0.25 | 20.0 | 9980 | 0.7420 | 1.0 | 29.6743 | 0.8395 | 0.8366 |
|
| 81 |
+
| 0.2695 | 21.0 | 10479 | 0.7541 | 1.0 | 29.5942 | 0.8377 | 0.8391 |
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
### Framework versions
|
| 85 |
+
|
| 86 |
+
- Transformers 4.57.0
|
| 87 |
+
- Pytorch 2.8.0+cu128
|
| 88 |
+
- Datasets 4.0.0
|
| 89 |
+
- Tokenizers 0.22.1
|
config.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"AlbertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0,
|
| 6 |
+
"bos_token_id": 2,
|
| 7 |
+
"classifier_dropout_prob": 0.1,
|
| 8 |
+
"down_scale_factor": 1,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"embedding_size": 128,
|
| 11 |
+
"eos_token_id": 3,
|
| 12 |
+
"gap_size": 0,
|
| 13 |
+
"hidden_act": "gelu_new",
|
| 14 |
+
"hidden_dropout_prob": 0,
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
+
"id2label": {
|
| 17 |
+
"0": "LABEL_0",
|
| 18 |
+
"1": "LABEL_1",
|
| 19 |
+
"2": "LABEL_2",
|
| 20 |
+
"3": "LABEL_3",
|
| 21 |
+
"4": "LABEL_4",
|
| 22 |
+
"5": "LABEL_5",
|
| 23 |
+
"6": "LABEL_6",
|
| 24 |
+
"7": "LABEL_7",
|
| 25 |
+
"8": "LABEL_8",
|
| 26 |
+
"9": "LABEL_9",
|
| 27 |
+
"10": "LABEL_10",
|
| 28 |
+
"11": "LABEL_11",
|
| 29 |
+
"12": "LABEL_12",
|
| 30 |
+
"13": "LABEL_13",
|
| 31 |
+
"14": "LABEL_14",
|
| 32 |
+
"15": "LABEL_15",
|
| 33 |
+
"16": "LABEL_16",
|
| 34 |
+
"17": "LABEL_17",
|
| 35 |
+
"18": "LABEL_18",
|
| 36 |
+
"19": "LABEL_19"
|
| 37 |
+
},
|
| 38 |
+
"initializer_range": 0.02,
|
| 39 |
+
"inner_group_num": 1,
|
| 40 |
+
"intermediate_size": 3072,
|
| 41 |
+
"label2id": {
|
| 42 |
+
"LABEL_0": 0,
|
| 43 |
+
"LABEL_1": 1,
|
| 44 |
+
"LABEL_10": 10,
|
| 45 |
+
"LABEL_11": 11,
|
| 46 |
+
"LABEL_12": 12,
|
| 47 |
+
"LABEL_13": 13,
|
| 48 |
+
"LABEL_14": 14,
|
| 49 |
+
"LABEL_15": 15,
|
| 50 |
+
"LABEL_16": 16,
|
| 51 |
+
"LABEL_17": 17,
|
| 52 |
+
"LABEL_18": 18,
|
| 53 |
+
"LABEL_19": 19,
|
| 54 |
+
"LABEL_2": 2,
|
| 55 |
+
"LABEL_3": 3,
|
| 56 |
+
"LABEL_4": 4,
|
| 57 |
+
"LABEL_5": 5,
|
| 58 |
+
"LABEL_6": 6,
|
| 59 |
+
"LABEL_7": 7,
|
| 60 |
+
"LABEL_8": 8,
|
| 61 |
+
"LABEL_9": 9
|
| 62 |
+
},
|
| 63 |
+
"layer_norm_eps": 1e-12,
|
| 64 |
+
"max_position_embeddings": 512,
|
| 65 |
+
"model_type": "albert",
|
| 66 |
+
"net_structure_type": 0,
|
| 67 |
+
"num_attention_heads": 12,
|
| 68 |
+
"num_hidden_groups": 1,
|
| 69 |
+
"num_hidden_layers": 12,
|
| 70 |
+
"num_memory_blocks": 0,
|
| 71 |
+
"pad_token_id": 0,
|
| 72 |
+
"position_embedding_type": "absolute",
|
| 73 |
+
"problem_type": "single_label_classification",
|
| 74 |
+
"transformers_version": "4.57.0",
|
| 75 |
+
"type_vocab_size": 2,
|
| 76 |
+
"vocab_size": 30000
|
| 77 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1bfa3923a72bca1e583ed60d337c7df07eae535a03b533fc1cf15b73ab00722
|
| 3 |
+
size 46799280
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "[CLS]",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"eos_token": "[SEP]",
|
| 5 |
+
"mask_token": {
|
| 6 |
+
"content": "[MASK]",
|
| 7 |
+
"lstrip": true,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "[SEP]",
|
| 14 |
+
"unk_token": "<unk>"
|
| 15 |
+
}
|
spiece.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fefb02b667a6c5c2fe27602d28e5fb3428f66ab89c7d6f388e7c8d44a02d0336
|
| 3 |
+
size 760289
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": true,
|
| 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_lower_case": true,
|
| 48 |
+
"eos_token": "[SEP]",
|
| 49 |
+
"extra_special_tokens": {},
|
| 50 |
+
"keep_accents": false,
|
| 51 |
+
"mask_token": "[MASK]",
|
| 52 |
+
"model_max_length": 512,
|
| 53 |
+
"pad_token": "<pad>",
|
| 54 |
+
"remove_space": true,
|
| 55 |
+
"sep_token": "[SEP]",
|
| 56 |
+
"tokenizer_class": "AlbertTokenizer",
|
| 57 |
+
"unk_token": "<unk>"
|
| 58 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c0f971738dfe87d3cf4c570aad057b6c34355888af5c709e9dd05e2af6689f0
|
| 3 |
+
size 5969
|