JasperGrant commited on
Commit
7a01202
1 Parent(s): 0c79cf7

Upload TFBertForMaskedLM

Browse files
Files changed (3) hide show
  1. README.md +62 -0
  2. config.json +28 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/graphcodebert-base
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: ASTBERT-gb-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-gb-5k-methods
14
+
15
+ This model is a fine-tuned version of [microsoft/graphcodebert-base](https://huggingface.co/microsoft/graphcodebert-base) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.0907
18
+ - Train Accuracy: 0.9805
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.1843 | 0.8888 | 0 |
46
+ | 0.5507 | 0.9295 | 1 |
47
+ | 0.4962 | 0.9317 | 2 |
48
+ | 0.4450 | 0.9353 | 3 |
49
+ | 0.3849 | 0.9391 | 4 |
50
+ | 0.3208 | 0.9441 | 5 |
51
+ | 0.2545 | 0.9514 | 6 |
52
+ | 0.1904 | 0.9610 | 7 |
53
+ | 0.1351 | 0.9712 | 8 |
54
+ | 0.0907 | 0.9805 | 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,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/graphcodebert-base",
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
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "layer_norm_eps": 1e-05,
17
+ "max_position_embeddings": 514,
18
+ "model_type": "bert",
19
+ "num_attention_heads": 12,
20
+ "num_hidden_layers": 12,
21
+ "output_past": true,
22
+ "pad_token_id": 1,
23
+ "position_embedding_type": "absolute",
24
+ "transformers_version": "4.31.0",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 50265
28
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a1f3017acddf1db3f2ad10d3ba784d4a381fbe1edc99e813f343d9c6f3df7c4
3
+ size 655073724