rwang5688 commited on
Commit
be43d43
1 Parent(s): a02fef3

Training in progress epoch 0

Browse files
README.md CHANGED
@@ -1,38 +1,23 @@
1
  ---
2
  license: apache-2.0
3
  tags:
4
- - generated_from_trainer
5
- datasets:
6
- - glue
7
- metrics:
8
- - accuracy
9
  model-index:
10
- - name: distilbert-base-uncased-finetuned-sst2
11
- results:
12
- - task:
13
- name: Text Classification
14
- type: text-classification
15
- dataset:
16
- name: glue
17
- type: glue
18
- config: sst2
19
- split: validation
20
- args: sst2
21
- metrics:
22
- - name: Accuracy
23
- type: accuracy
24
- value: 0.9128440366972477
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
- # distilbert-base-uncased-finetuned-sst2
31
 
32
- This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the glue dataset.
33
  It achieves the following results on the evaluation set:
34
- - Loss: 0.3177
35
- - Accuracy: 0.9128
 
 
36
 
37
  ## Model description
38
 
@@ -51,28 +36,19 @@ More information needed
51
  ### Training hyperparameters
52
 
53
  The following hyperparameters were used during training:
54
- - learning_rate: 2e-05
55
- - train_batch_size: 16
56
- - eval_batch_size: 16
57
- - seed: 42
58
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
59
- - lr_scheduler_type: linear
60
- - num_epochs: 5
61
 
62
  ### Training results
63
 
64
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
65
- |:-------------:|:-----:|:-----:|:---------------:|:--------:|
66
- | 0.1848 | 1.0 | 4210 | 0.2955 | 0.9083 |
67
- | 0.1271 | 2.0 | 8420 | 0.3177 | 0.9128 |
68
- | 0.0958 | 3.0 | 12630 | 0.3847 | 0.9014 |
69
- | 0.0582 | 4.0 | 16840 | 0.4434 | 0.9106 |
70
- | 0.038 | 5.0 | 21050 | 0.5351 | 0.9002 |
71
 
72
 
73
  ### Framework versions
74
 
75
- - Transformers 4.27.3
76
- - Pytorch 2.0.0+cu117
77
- - Datasets 2.10.1
78
  - Tokenizers 0.13.2
 
1
  ---
2
  license: apache-2.0
3
  tags:
4
+ - generated_from_keras_callback
 
 
 
 
5
  model-index:
6
+ - name: rwang5688/distilbert-base-uncased-finetuned-sst2
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
+ # rwang5688/distilbert-base-uncased-finetuned-sst2
14
 
15
+ This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.2128
18
+ - Validation Loss: 0.3199
19
+ - Train Accuracy: 0.8784
20
+ - Epoch: 0
21
 
22
  ## Model description
23
 
 
36
  ### Training hyperparameters
37
 
38
  The following hyperparameters were used during training:
39
+ - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 12627, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
40
+ - training_precision: float32
 
 
 
 
 
41
 
42
  ### Training results
43
 
44
+ | Train Loss | Validation Loss | Train Accuracy | Epoch |
45
+ |:----------:|:---------------:|:--------------:|:-----:|
46
+ | 0.2128 | 0.3199 | 0.8784 | 0 |
 
 
 
 
47
 
48
 
49
  ### Framework versions
50
 
51
+ - Transformers 4.27.4
52
+ - TensorFlow 2.12.0
53
+ - Datasets 2.11.0
54
  - Tokenizers 0.13.2
config.json CHANGED
@@ -8,18 +8,24 @@
8
  "dim": 768,
9
  "dropout": 0.1,
10
  "hidden_dim": 3072,
 
 
 
 
11
  "initializer_range": 0.02,
 
 
 
 
12
  "max_position_embeddings": 512,
13
  "model_type": "distilbert",
14
  "n_heads": 12,
15
  "n_layers": 6,
16
  "pad_token_id": 0,
17
- "problem_type": "single_label_classification",
18
  "qa_dropout": 0.1,
19
  "seq_classif_dropout": 0.2,
20
  "sinusoidal_pos_embds": false,
21
  "tie_weights_": true,
22
- "torch_dtype": "float32",
23
- "transformers_version": "4.27.3",
24
  "vocab_size": 30522
25
  }
 
8
  "dim": 768,
9
  "dropout": 0.1,
10
  "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "Invalid",
13
+ "1": "Valid"
14
+ },
15
  "initializer_range": 0.02,
16
+ "label2id": {
17
+ "Invalid": 0,
18
+ "Valid": 1
19
+ },
20
  "max_position_embeddings": 512,
21
  "model_type": "distilbert",
22
  "n_heads": 12,
23
  "n_layers": 6,
24
  "pad_token_id": 0,
 
25
  "qa_dropout": 0.1,
26
  "seq_classif_dropout": 0.2,
27
  "sinusoidal_pos_embds": false,
28
  "tie_weights_": true,
29
+ "transformers_version": "4.27.4",
 
30
  "vocab_size": 30522
31
  }
logs/train/events.out.tfevents.1681108353.ip-172-26-15-174.6245.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6244771409cbed3cffdc44939da1e6bb6984d903644670a8352aff7b53b9d84
3
+ size 1788177
logs/train/events.out.tfevents.1681165251.ip-172-26-15-174.3201.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a177cd133b3dbeaf6a4bf3d2777774ab1cc5e2aaed05bbc931b28c5ba53d431
3
+ size 1788388
logs/validation/events.out.tfevents.1681167150.ip-172-26-15-174.3201.1.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13336e3090213772cbb5ad5c3d02c61ef57a933c1d4afd2e2799bcee4acee123
3
+ size 232
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e683f796cdbc81f7ad276d244190c4d31e71953a40cbccaf710154aa5f267572
3
  size 267951808
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75c1a1960921efb8a6a254e506fecacb8053ce821f318634de62d523a8d5be30
3
  size 267951808