codingtree commited on
Commit
f60fd86
·
verified ·
1 Parent(s): 0e28380

Upload TFBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +60 -0
  2. config.json +28 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: cc-by-sa-4.0
4
+ base_model: klue/bert-base
5
+ tags:
6
+ - generated_from_keras_callback
7
+ model-index:
8
+ - name: bert-base-nsmc
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
13
+ probably proofread and complete it, then remove this comment. -->
14
+
15
+ # bert-base-nsmc
16
+
17
+ This model is a fine-tuned version of [klue/bert-base](https://huggingface.co/klue/bert-base) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Train Loss: 0.0298
20
+ - Train Accuracy: 1.0
21
+ - Validation Loss: 0.2335
22
+ - Validation Accuracy: 1.0
23
+ - Epoch: 4
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'module': 'transformers.optimization_tf', 'class_name': 'WarmUp', 'config': {'initial_learning_rate': 5e-05, 'decay_schedule_fn': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-05, 'decay_steps': 4.5, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'warmup_steps': 0.5, 'power': 1.0, 'name': None}, 'registered_name': 'WarmUp'}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.1}
43
+ - training_precision: float32
44
+
45
+ ### Training results
46
+
47
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
48
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
49
+ | 0.5729 | 1.0 | 0.5564 | 1.0 | 0 |
50
+ | 0.4097 | 1.0 | 0.3896 | 1.0 | 1 |
51
+ | 0.1165 | 1.0 | 0.2967 | 1.0 | 2 |
52
+ | 0.0442 | 1.0 | 0.2517 | 1.0 | 3 |
53
+ | 0.0298 | 1.0 | 0.2335 | 1.0 | 4 |
54
+
55
+
56
+ ### Framework versions
57
+
58
+ - Transformers 4.48.3
59
+ - TensorFlow 2.18.0
60
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "klue/bert-base",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "\ubd80\uc815",
13
+ "1": "\uae0d\uc815"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "layer_norm_eps": 1e-12,
18
+ "max_position_embeddings": 512,
19
+ "model_type": "bert",
20
+ "num_attention_heads": 12,
21
+ "num_hidden_layers": 12,
22
+ "pad_token_id": 0,
23
+ "position_embedding_type": "absolute",
24
+ "transformers_version": "4.48.3",
25
+ "type_vocab_size": 2,
26
+ "use_cache": true,
27
+ "vocab_size": 32000
28
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a71261a5f42d96ce9db8e2404fb05d59dcb8cf81df97f66816186ec633e3635
3
+ size 442763544