ardi555/bert_base_uncased_reuters21578_reducedto15
Browse files- README.md +74 -0
- config.json +61 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: bert-base-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
model-index:
|
13 |
+
- name: results
|
14 |
+
results: []
|
15 |
+
---
|
16 |
+
|
17 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
18 |
+
should probably proofread and complete it, then remove this comment. -->
|
19 |
+
|
20 |
+
# results
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the None dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.0488
|
25 |
+
- Accuracy: 0.8207
|
26 |
+
- Precision: 0.9268
|
27 |
+
- Recall: 0.8840
|
28 |
+
- F1: 0.9030
|
29 |
+
|
30 |
+
## Model description
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Intended uses & limitations
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training and evaluation data
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training procedure
|
43 |
+
|
44 |
+
### Training hyperparameters
|
45 |
+
|
46 |
+
The following hyperparameters were used during training:
|
47 |
+
- learning_rate: 2e-05
|
48 |
+
- train_batch_size: 16
|
49 |
+
- eval_batch_size: 16
|
50 |
+
- seed: 42
|
51 |
+
- gradient_accumulation_steps: 2
|
52 |
+
- total_train_batch_size: 32
|
53 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
54 |
+
- lr_scheduler_type: linear
|
55 |
+
- num_epochs: 20
|
56 |
+
- mixed_precision_training: Native AMP
|
57 |
+
|
58 |
+
### Training results
|
59 |
+
|
60 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
61 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
62 |
+
| 0.0242 | 0.9971 | 173 | 0.0552 | 0.8452 | 0.8964 | 0.8905 | 0.8883 |
|
63 |
+
| 0.0298 | 2.0 | 347 | 0.0488 | 0.8207 | 0.9268 | 0.8840 | 0.9030 |
|
64 |
+
| 0.0236 | 2.9971 | 520 | 0.0484 | 0.8214 | 0.9338 | 0.8680 | 0.8971 |
|
65 |
+
| 0.0298 | 4.0 | 694 | 0.0498 | 0.8251 | 0.9357 | 0.8719 | 0.9004 |
|
66 |
+
| 0.0232 | 4.9971 | 867 | 0.0477 | 0.8281 | 0.9381 | 0.8732 | 0.9020 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- Transformers 4.44.2
|
72 |
+
- Pytorch 2.4.1+cu121
|
73 |
+
- Datasets 3.0.0
|
74 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "LABEL_0",
|
14 |
+
"1": "LABEL_1",
|
15 |
+
"2": "LABEL_2",
|
16 |
+
"3": "LABEL_3",
|
17 |
+
"4": "LABEL_4",
|
18 |
+
"5": "LABEL_5",
|
19 |
+
"6": "LABEL_6",
|
20 |
+
"7": "LABEL_7",
|
21 |
+
"8": "LABEL_8",
|
22 |
+
"9": "LABEL_9",
|
23 |
+
"10": "LABEL_10",
|
24 |
+
"11": "LABEL_11",
|
25 |
+
"12": "LABEL_12",
|
26 |
+
"13": "LABEL_13",
|
27 |
+
"14": "LABEL_14"
|
28 |
+
},
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 3072,
|
31 |
+
"label2id": {
|
32 |
+
"LABEL_0": 0,
|
33 |
+
"LABEL_1": 1,
|
34 |
+
"LABEL_10": 10,
|
35 |
+
"LABEL_11": 11,
|
36 |
+
"LABEL_12": 12,
|
37 |
+
"LABEL_13": 13,
|
38 |
+
"LABEL_14": 14,
|
39 |
+
"LABEL_2": 2,
|
40 |
+
"LABEL_3": 3,
|
41 |
+
"LABEL_4": 4,
|
42 |
+
"LABEL_5": 5,
|
43 |
+
"LABEL_6": 6,
|
44 |
+
"LABEL_7": 7,
|
45 |
+
"LABEL_8": 8,
|
46 |
+
"LABEL_9": 9
|
47 |
+
},
|
48 |
+
"layer_norm_eps": 1e-12,
|
49 |
+
"max_position_embeddings": 512,
|
50 |
+
"model_type": "bert",
|
51 |
+
"num_attention_heads": 12,
|
52 |
+
"num_hidden_layers": 12,
|
53 |
+
"pad_token_id": 0,
|
54 |
+
"position_embedding_type": "absolute",
|
55 |
+
"problem_type": "multi_label_classification",
|
56 |
+
"torch_dtype": "float32",
|
57 |
+
"transformers_version": "4.44.2",
|
58 |
+
"type_vocab_size": 2,
|
59 |
+
"use_cache": true,
|
60 |
+
"vocab_size": 30522
|
61 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da7f1c504b6baca1d9bb5c82fca37c3d0f5a57294e88d4d5e671b181760b8f69
|
3 |
+
size 437998636
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:126cf388f6150be18ac52355d256875bbee479e58c94e87bfe1aa6905c4aa85a
|
3 |
+
size 5112
|