JasperGrant commited on
Commit
f864713
1 Parent(s): 492c866

Upload TFBertForMaskedLM

Browse files
Files changed (3) hide show
  1. README.md +62 -0
  2. config.json +27 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/codebert-base-mlm
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: ASTBERT-cb-5k-methods
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
+ # ASTBERT-cb-5k-methods
14
+
15
+ This model is a fine-tuned version of [microsoft/codebert-base-mlm](https://huggingface.co/microsoft/codebert-base-mlm) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.0903
18
+ - Train Accuracy: 0.9806
19
+ - Epoch: 9
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - optimizer: {'name': 'Adam', 'learning_rate': 1e-04, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
39
+ - training_precision: float32
40
+
41
+ ### Training results
42
+
43
+ | Train Loss | Train Accuracy | Epoch |
44
+ |:----------:|:--------------:|:-----:|
45
+ | 1.2016 | 0.8863 | 0 |
46
+ | 0.5520 | 0.9294 | 1 |
47
+ | 0.4975 | 0.9315 | 2 |
48
+ | 0.4456 | 0.9353 | 3 |
49
+ | 0.3840 | 0.9391 | 4 |
50
+ | 0.3186 | 0.9443 | 5 |
51
+ | 0.2513 | 0.9517 | 6 |
52
+ | 0.1874 | 0.9614 | 7 |
53
+ | 0.1312 | 0.9718 | 8 |
54
+ | 0.0903 | 0.9806 | 9 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.31.0
60
+ - TensorFlow 2.10.0
61
+ - Datasets 2.18.0
62
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/codebert-base-mlm",
3
+ "architectures": [
4
+ "BertForMaskedLM"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "bert",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "transformers_version": "4.31.0",
24
+ "type_vocab_size": 1,
25
+ "use_cache": true,
26
+ "vocab_size": 50265
27
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15e6357dc3b3d496f2d8139aab45ca33923a53e47424702325e00d26da2db671
3
+ size 655073724