End of training
Browse files- README.md +84 -0
- config.json +37 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: google-bert/bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: hf-bert-finetuning
|
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 |
+
# hf-bert-finetuning
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 2.2672
|
21 |
+
- Accuracy: 0.805
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 5e-05
|
41 |
+
- train_batch_size: 8
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 100
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
51 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
52 |
+
| 0.392 | 4.0 | 500 | 1.1767 | 0.805 |
|
53 |
+
| 0.0421 | 8.0 | 1000 | 1.3555 | 0.814 |
|
54 |
+
| 0.0266 | 12.0 | 1500 | 1.7734 | 0.806 |
|
55 |
+
| 0.0066 | 16.0 | 2000 | 1.6149 | 0.818 |
|
56 |
+
| 0.0264 | 20.0 | 2500 | 1.4583 | 0.823 |
|
57 |
+
| 0.0284 | 24.0 | 3000 | 1.8117 | 0.794 |
|
58 |
+
| 0.0019 | 28.0 | 3500 | 1.8569 | 0.804 |
|
59 |
+
| 0.0336 | 32.0 | 4000 | 1.8200 | 0.801 |
|
60 |
+
| 0.0221 | 36.0 | 4500 | 1.8082 | 0.806 |
|
61 |
+
| 0.0195 | 40.0 | 5000 | 1.8102 | 0.81 |
|
62 |
+
| 0.007 | 44.0 | 5500 | 1.9712 | 0.82 |
|
63 |
+
| 0.0028 | 48.0 | 6000 | 1.8803 | 0.818 |
|
64 |
+
| 0.0017 | 52.0 | 6500 | 1.9739 | 0.82 |
|
65 |
+
| 0.0 | 56.0 | 7000 | 2.0171 | 0.821 |
|
66 |
+
| 0.019 | 60.0 | 7500 | 1.9017 | 0.805 |
|
67 |
+
| 0.0 | 64.0 | 8000 | 2.0914 | 0.801 |
|
68 |
+
| 0.0 | 68.0 | 8500 | 2.1453 | 0.799 |
|
69 |
+
| 0.0061 | 72.0 | 9000 | 2.2067 | 0.786 |
|
70 |
+
| 0.0009 | 76.0 | 9500 | 2.1612 | 0.799 |
|
71 |
+
| 0.0026 | 80.0 | 10000 | 2.1481 | 0.807 |
|
72 |
+
| 0.0 | 84.0 | 10500 | 2.1813 | 0.807 |
|
73 |
+
| 0.0 | 88.0 | 11000 | 2.2069 | 0.807 |
|
74 |
+
| 0.0 | 92.0 | 11500 | 2.2285 | 0.807 |
|
75 |
+
| 0.0 | 96.0 | 12000 | 2.2422 | 0.807 |
|
76 |
+
| 0.0004 | 100.0 | 12500 | 2.2672 | 0.805 |
|
77 |
+
|
78 |
+
|
79 |
+
### Framework versions
|
80 |
+
|
81 |
+
- Transformers 4.40.1
|
82 |
+
- Pytorch 2.3.0
|
83 |
+
- Datasets 2.19.0
|
84 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/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 |
+
},
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 3072,
|
19 |
+
"label2id": {
|
20 |
+
"LABEL_0": 0,
|
21 |
+
"LABEL_1": 1,
|
22 |
+
"LABEL_2": 2
|
23 |
+
},
|
24 |
+
"layer_norm_eps": 1e-12,
|
25 |
+
"max_position_embeddings": 512,
|
26 |
+
"model_type": "bert",
|
27 |
+
"num_attention_heads": 12,
|
28 |
+
"num_hidden_layers": 12,
|
29 |
+
"pad_token_id": 0,
|
30 |
+
"position_embedding_type": "absolute",
|
31 |
+
"problem_type": "single_label_classification",
|
32 |
+
"torch_dtype": "float32",
|
33 |
+
"transformers_version": "4.40.1",
|
34 |
+
"type_vocab_size": 2,
|
35 |
+
"use_cache": true,
|
36 |
+
"vocab_size": 30522
|
37 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1b01f8294b77318a76a899400f75921263adc6e4b89beab4094151c5a971c61
|
3 |
+
size 437961724
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d23208cc4cd027b442a5869422d229a82a6710b83256377a9a70f97087ccf60
|
3 |
+
size 4984
|