KhaledAB2023 commited on
Commit
f0fd0c3
·
1 Parent(s): ec9633c

End of training

Browse files
Files changed (3) hide show
  1. README.md +15 -37
  2. config.json +0 -10
  3. tf_model.h5 +3 -0
README.md CHANGED
@@ -1,38 +1,22 @@
1
  ---
2
  license: apache-2.0
3
  tags:
4
- - generated_from_trainer
5
- datasets:
6
- - glue
7
- metrics:
8
- - matthews_correlation
9
  model-index:
10
  - name: bert-fine-tuned-cola
11
- results:
12
- - task:
13
- name: Text Classification
14
- type: text-classification
15
- dataset:
16
- name: glue
17
- type: glue
18
- config: cola
19
- split: validation
20
- args: cola
21
- metrics:
22
- - name: Matthews Correlation
23
- type: matthews_correlation
24
- value: 0.5812018675459495
25
  ---
26
 
27
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
28
- should probably proofread and complete it, then remove this comment. -->
29
 
30
  # bert-fine-tuned-cola
31
 
32
- This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the glue dataset.
33
  It achieves the following results on the evaluation set:
34
- - Loss: 0.7990
35
- - Matthews Correlation: 0.5812
 
36
 
37
  ## Model description
38
 
@@ -51,26 +35,20 @@ More information needed
51
  ### Training hyperparameters
52
 
53
  The following hyperparameters were used during training:
54
- - learning_rate: 2e-05
55
- - train_batch_size: 8
56
- - eval_batch_size: 8
57
- - seed: 42
58
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
59
- - lr_scheduler_type: linear
60
- - num_epochs: 3
61
 
62
  ### Training results
63
 
64
- | Training Loss | Epoch | Step | Validation Loss | Matthews Correlation |
65
- |:-------------:|:-----:|:----:|:---------------:|:--------------------:|
66
- | 0.4818 | 1.0 | 1069 | 0.5447 | 0.5127 |
67
- | 0.3375 | 2.0 | 2138 | 0.6218 | 0.5767 |
68
- | 0.194 | 3.0 | 3207 | 0.7990 | 0.5812 |
69
 
70
 
71
  ### Framework versions
72
 
73
  - Transformers 4.27.2
74
- - Pytorch 1.13.1+cu116
75
  - Datasets 2.10.1
76
  - Tokenizers 0.13.2
 
1
  ---
2
  license: apache-2.0
3
  tags:
4
+ - generated_from_keras_callback
 
 
 
 
5
  model-index:
6
  - name: bert-fine-tuned-cola
7
+ results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  ---
9
 
10
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
11
+ probably proofread and complete it, then remove this comment. -->
12
 
13
  # bert-fine-tuned-cola
14
 
15
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.2898
18
+ - Validation Loss: 0.4519
19
+ - Epoch: 1
20
 
21
  ## Model description
22
 
 
35
  ### Training hyperparameters
36
 
37
  The following hyperparameters were used during training:
38
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': 2e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False, 'weight_decay_rate': 0.01}
39
+ - training_precision: float32
 
 
 
 
 
40
 
41
  ### Training results
42
 
43
+ | Train Loss | Validation Loss | Epoch |
44
+ |:----------:|:---------------:|:-----:|
45
+ | 0.4925 | 0.4193 | 0 |
46
+ | 0.2898 | 0.4519 | 1 |
 
47
 
48
 
49
  ### Framework versions
50
 
51
  - Transformers 4.27.2
52
+ - TensorFlow 2.11.0
53
  - Datasets 2.10.1
54
  - Tokenizers 0.13.2
config.json CHANGED
@@ -9,16 +9,8 @@
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
- "id2label": {
13
- "0": "unacceptable",
14
- "1": "acceptable"
15
- },
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
- "label2id": {
19
- "acceptable": "1",
20
- "unacceptable": "0"
21
- },
22
  "layer_norm_eps": 1e-12,
23
  "max_position_embeddings": 512,
24
  "model_type": "bert",
@@ -26,8 +18,6 @@
26
  "num_hidden_layers": 12,
27
  "pad_token_id": 0,
28
  "position_embedding_type": "absolute",
29
- "problem_type": "single_label_classification",
30
- "torch_dtype": "float32",
31
  "transformers_version": "4.27.2",
32
  "type_vocab_size": 2,
33
  "use_cache": true,
 
9
  "hidden_act": "gelu",
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
 
 
 
 
12
  "initializer_range": 0.02,
13
  "intermediate_size": 3072,
 
 
 
 
14
  "layer_norm_eps": 1e-12,
15
  "max_position_embeddings": 512,
16
  "model_type": "bert",
 
18
  "num_hidden_layers": 12,
19
  "pad_token_id": 0,
20
  "position_embedding_type": "absolute",
 
 
21
  "transformers_version": "4.27.2",
22
  "type_vocab_size": 2,
23
  "use_cache": true,
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89ab85eb3f56727e86a6e692be1453f695e51fb72806318528fec1b4abe092ee
3
+ size 433535256