Adi's training complete!
Browse files- README.md +80 -0
- config.json +41 -0
- model.safetensors +3 -0
- runs/Nov06_00-34-52_1393d9cd8552/events.out.tfevents.1762389295.1393d9cd8552.907.0 +3 -0
- runs/Nov06_00-36-57_1393d9cd8552/events.out.tfevents.1762389418.1393d9cd8552.907.1 +3 -0
- runs/Nov06_00-36-57_1393d9cd8552/events.out.tfevents.1762389451.1393d9cd8552.907.2 +3 -0
- runs/Nov06_00-40-24_1393d9cd8552/events.out.tfevents.1762389627.1393d9cd8552.907.3 +3 -0
- runs/Nov06_00-40-24_1393d9cd8552/events.out.tfevents.1762389839.1393d9cd8552.907.4 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: huawei-noah/TinyBERT_General_4L_312D
|
| 4 |
+
tags:
|
| 5 |
+
- news-classifier
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: news_item_classifier
|
| 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 |
+
# news_item_classifier
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [huawei-noah/TinyBERT_General_4L_312D](https://huggingface.co/huawei-noah/TinyBERT_General_4L_312D) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 1.3865
|
| 22 |
+
- Accuracy: 0.271
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 0.056
|
| 42 |
+
- train_batch_size: 128
|
| 43 |
+
- eval_batch_size: 128
|
| 44 |
+
- seed: 42
|
| 45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 20
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 53 |
+
| 4.2291 | 1.0 | 32 | 3.5369 | 0.249 |
|
| 54 |
+
| 2.2138 | 2.0 | 64 | 2.1160 | 0.262 |
|
| 55 |
+
| 2.3143 | 3.0 | 96 | 1.8886 | 0.262 |
|
| 56 |
+
| 2.6088 | 4.0 | 128 | 2.4046 | 0.262 |
|
| 57 |
+
| 2.8324 | 5.0 | 160 | 2.9637 | 0.249 |
|
| 58 |
+
| 1.6379 | 6.0 | 192 | 1.8444 | 0.271 |
|
| 59 |
+
| 1.8639 | 7.0 | 224 | 1.9289 | 0.218 |
|
| 60 |
+
| 1.8878 | 8.0 | 256 | 1.8120 | 0.271 |
|
| 61 |
+
| 1.8503 | 9.0 | 288 | 1.7120 | 0.262 |
|
| 62 |
+
| 2.3268 | 10.0 | 320 | 1.7966 | 0.271 |
|
| 63 |
+
| 1.5671 | 11.0 | 352 | 1.3987 | 0.271 |
|
| 64 |
+
| 1.6683 | 12.0 | 384 | 1.5892 | 0.218 |
|
| 65 |
+
| 1.4877 | 13.0 | 416 | 1.4932 | 0.262 |
|
| 66 |
+
| 1.8511 | 14.0 | 448 | 1.7354 | 0.218 |
|
| 67 |
+
| 1.5663 | 15.0 | 480 | 1.5564 | 0.262 |
|
| 68 |
+
| 1.5913 | 16.0 | 512 | 1.3891 | 0.271 |
|
| 69 |
+
| 1.5751 | 17.0 | 544 | 1.6062 | 0.271 |
|
| 70 |
+
| 1.5021 | 18.0 | 576 | 1.4647 | 0.249 |
|
| 71 |
+
| 1.3676 | 19.0 | 608 | 1.4898 | 0.262 |
|
| 72 |
+
| 1.4029 | 20.0 | 640 | 1.3865 | 0.271 |
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
### Framework versions
|
| 76 |
+
|
| 77 |
+
- Transformers 4.57.1
|
| 78 |
+
- Pytorch 2.8.0+cu126
|
| 79 |
+
- Datasets 4.0.0
|
| 80 |
+
- Tokenizers 0.22.1
|
config.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertForSequenceClassification"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"cell": {},
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"emb_size": 312,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 312,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "LABEL_0",
|
| 15 |
+
"1": "LABEL_1",
|
| 16 |
+
"2": "LABEL_2",
|
| 17 |
+
"3": "LABEL_3"
|
| 18 |
+
},
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"intermediate_size": 1200,
|
| 21 |
+
"label2id": {
|
| 22 |
+
"LABEL_0": 0,
|
| 23 |
+
"LABEL_1": 1,
|
| 24 |
+
"LABEL_2": 2,
|
| 25 |
+
"LABEL_3": 3
|
| 26 |
+
},
|
| 27 |
+
"layer_norm_eps": 1e-12,
|
| 28 |
+
"max_position_embeddings": 512,
|
| 29 |
+
"model_type": "bert",
|
| 30 |
+
"num_attention_heads": 12,
|
| 31 |
+
"num_hidden_layers": 4,
|
| 32 |
+
"pad_token_id": 0,
|
| 33 |
+
"position_embedding_type": "absolute",
|
| 34 |
+
"pre_trained": "",
|
| 35 |
+
"problem_type": "single_label_classification",
|
| 36 |
+
"structure": [],
|
| 37 |
+
"transformers_version": "4.57.1",
|
| 38 |
+
"type_vocab_size": 2,
|
| 39 |
+
"use_cache": true,
|
| 40 |
+
"vocab_size": 30522
|
| 41 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae9082dd20ea223563e7860c357e5d122a108b6ddc875b25cdc07102edc1ade0
|
| 3 |
+
size 57414312
|
runs/Nov06_00-34-52_1393d9cd8552/events.out.tfevents.1762389295.1393d9cd8552.907.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:29d2abf7cfd3e4d434558572999f10f85ac0534d8f2265d99602acca903d78cc
|
| 3 |
+
size 45749
|
runs/Nov06_00-36-57_1393d9cd8552/events.out.tfevents.1762389418.1393d9cd8552.907.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4fe4123c3cb1b7e4675642aedee319595c8b80f85b534001af63c819d5cc632c
|
| 3 |
+
size 45860
|
runs/Nov06_00-36-57_1393d9cd8552/events.out.tfevents.1762389451.1393d9cd8552.907.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:319b5f6c90074b53fe4ce4d9ff6e094c49ec0d8e7e9caffdbb31e9441b33cd36
|
| 3 |
+
size 411
|
runs/Nov06_00-40-24_1393d9cd8552/events.out.tfevents.1762389627.1393d9cd8552.907.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fa6706e8caf7e7534a6ce748403f5c4588fff39669ee5bcb3b2f3ecc3fdd15e
|
| 3 |
+
size 79404
|
runs/Nov06_00-40-24_1393d9cd8552/events.out.tfevents.1762389839.1393d9cd8552.907.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55ca659b3cb318eb07eef443e69faa7d7de50377e28e8f3f5169dce232c921e3
|
| 3 |
+
size 411
|
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,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 |
+
"100": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"101": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"102": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"103": {
|
| 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": true,
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 51 |
+
"never_split": null,
|
| 52 |
+
"pad_token": "[PAD]",
|
| 53 |
+
"sep_token": "[SEP]",
|
| 54 |
+
"strip_accents": null,
|
| 55 |
+
"tokenize_chinese_chars": true,
|
| 56 |
+
"tokenizer_class": "BertTokenizer",
|
| 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:3c9ba6c101e519aa606087e46c9e614e52562ca02addaa8176d649cf6a8de078
|
| 3 |
+
size 5905
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|