Initial model push after training
Browse files- README.md +90 -0
- config.json +49 -0
- model.safetensors +3 -0
- runs/Dec18_07-51-46_8c41b66f7827/events.out.tfevents.1734508320.8c41b66f7827.23.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: google-bert/bert-large-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
- precision
|
10 |
+
- recall
|
11 |
+
- f1
|
12 |
+
model-index:
|
13 |
+
- name: math_question_grade_detection_Bert_databalanced_v2
|
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 |
+
# math_question_grade_detection_Bert_databalanced_v2
|
21 |
+
|
22 |
+
This model is a fine-tuned version of [google-bert/bert-large-uncased](https://huggingface.co/google-bert/bert-large-uncased) on an unknown dataset.
|
23 |
+
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.5945
|
25 |
+
- Accuracy: 0.8127
|
26 |
+
- Precision: 0.8116
|
27 |
+
- Recall: 0.8127
|
28 |
+
- F1: 0.8110
|
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: 8
|
50 |
+
- seed: 42
|
51 |
+
- gradient_accumulation_steps: 2
|
52 |
+
- total_train_batch_size: 32
|
53 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
54 |
+
- lr_scheduler_type: linear
|
55 |
+
- lr_scheduler_warmup_steps: 200
|
56 |
+
- training_steps: 1000
|
57 |
+
- mixed_precision_training: Native AMP
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|
62 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
|
63 |
+
| No log | 0.2817 | 50 | 2.1406 | 0.1698 | 0.1183 | 0.1698 | 0.1327 |
|
64 |
+
| No log | 0.5634 | 100 | 1.8833 | 0.3540 | 0.3387 | 0.3540 | 0.2911 |
|
65 |
+
| No log | 0.8451 | 150 | 1.5465 | 0.4365 | 0.4580 | 0.4365 | 0.4060 |
|
66 |
+
| No log | 1.1268 | 200 | 1.2969 | 0.4937 | 0.4950 | 0.4937 | 0.4471 |
|
67 |
+
| No log | 1.4085 | 250 | 1.0146 | 0.6143 | 0.6253 | 0.6143 | 0.5906 |
|
68 |
+
| No log | 1.6901 | 300 | 0.8713 | 0.6778 | 0.6771 | 0.6778 | 0.6476 |
|
69 |
+
| No log | 1.9718 | 350 | 0.7740 | 0.7016 | 0.7000 | 0.7016 | 0.6896 |
|
70 |
+
| No log | 2.2535 | 400 | 0.7760 | 0.6968 | 0.7068 | 0.6968 | 0.6872 |
|
71 |
+
| No log | 2.5352 | 450 | 0.6579 | 0.7619 | 0.7726 | 0.7619 | 0.7590 |
|
72 |
+
| 1.2792 | 2.8169 | 500 | 0.6872 | 0.7429 | 0.7571 | 0.7429 | 0.7418 |
|
73 |
+
| 1.2792 | 3.0986 | 550 | 0.6073 | 0.7698 | 0.7783 | 0.7698 | 0.7700 |
|
74 |
+
| 1.2792 | 3.3803 | 600 | 0.6297 | 0.7714 | 0.7840 | 0.7714 | 0.7718 |
|
75 |
+
| 1.2792 | 3.6620 | 650 | 0.6160 | 0.7762 | 0.7764 | 0.7762 | 0.7731 |
|
76 |
+
| 1.2792 | 3.9437 | 700 | 0.5895 | 0.8111 | 0.8147 | 0.8111 | 0.8110 |
|
77 |
+
| 1.2792 | 4.2254 | 750 | 0.5717 | 0.8111 | 0.8087 | 0.8111 | 0.8089 |
|
78 |
+
| 1.2792 | 4.5070 | 800 | 0.5767 | 0.8095 | 0.8126 | 0.8095 | 0.8083 |
|
79 |
+
| 1.2792 | 4.7887 | 850 | 0.5898 | 0.8016 | 0.8029 | 0.8016 | 0.7995 |
|
80 |
+
| 1.2792 | 5.0704 | 900 | 0.5908 | 0.8127 | 0.8143 | 0.8127 | 0.8115 |
|
81 |
+
| 1.2792 | 5.3521 | 950 | 0.5972 | 0.8111 | 0.8136 | 0.8111 | 0.8102 |
|
82 |
+
| 0.304 | 5.6338 | 1000 | 0.5945 | 0.8127 | 0.8116 | 0.8127 | 0.8110 |
|
83 |
+
|
84 |
+
|
85 |
+
### Framework versions
|
86 |
+
|
87 |
+
- Transformers 4.46.3
|
88 |
+
- Pytorch 2.4.0
|
89 |
+
- Datasets 3.1.0
|
90 |
+
- Tokenizers 0.20.3
|
config.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google-bert/bert-large-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": 1024,
|
12 |
+
"id2label": {
|
13 |
+
"0": 0,
|
14 |
+
"1": 1,
|
15 |
+
"2": 2,
|
16 |
+
"3": 3,
|
17 |
+
"4": 4,
|
18 |
+
"5": 5,
|
19 |
+
"6": 6,
|
20 |
+
"7": 7,
|
21 |
+
"8": 8
|
22 |
+
},
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 4096,
|
25 |
+
"label2id": {
|
26 |
+
"0": 0,
|
27 |
+
"1": 1,
|
28 |
+
"2": 2,
|
29 |
+
"3": 3,
|
30 |
+
"4": 4,
|
31 |
+
"5": 5,
|
32 |
+
"6": 6,
|
33 |
+
"7": 7,
|
34 |
+
"8": 8
|
35 |
+
},
|
36 |
+
"layer_norm_eps": 1e-12,
|
37 |
+
"max_position_embeddings": 512,
|
38 |
+
"model_type": "bert",
|
39 |
+
"num_attention_heads": 16,
|
40 |
+
"num_hidden_layers": 24,
|
41 |
+
"pad_token_id": 0,
|
42 |
+
"position_embedding_type": "absolute",
|
43 |
+
"problem_type": "single_label_classification",
|
44 |
+
"torch_dtype": "float32",
|
45 |
+
"transformers_version": "4.46.3",
|
46 |
+
"type_vocab_size": 2,
|
47 |
+
"use_cache": true,
|
48 |
+
"vocab_size": 30522
|
49 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:85d82042da575590d83afc3fec48d7b9b2ddd662c2b99a60915a7f76fea0520b
|
3 |
+
size 1340651460
|
runs/Dec18_07-51-46_8c41b66f7827/events.out.tfevents.1734508320.8c41b66f7827.23.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b5f7a125342c9eadf94cb5ad1cb0bf7778d939cc9d755458019f3324b890f314
|
3 |
+
size 15617
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b2eef01db4676c6ba4c93e52916002bfac1885b353dd8df1c4c5f2d27e69ec46
|
3 |
+
size 5368
|