JasperGrant commited on
Commit
2d1a483
1 Parent(s): 2602f62

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-multipath
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-multipath
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.2343
18
+ - Train Accuracy: 0.9539
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
+ | 0.9079 | 0.8991 | 0 |
46
+ | 0.5494 | 0.9291 | 1 |
47
+ | 0.5046 | 0.9297 | 2 |
48
+ | 0.4773 | 0.9309 | 3 |
49
+ | 0.4474 | 0.9329 | 4 |
50
+ | 0.4100 | 0.9352 | 5 |
51
+ | 0.3676 | 0.9384 | 6 |
52
+ | 0.3226 | 0.9430 | 7 |
53
+ | 0.2766 | 0.9482 | 8 |
54
+ | 0.2343 | 0.9539 | 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:984c51eb3e11d81b5f62756527cdd7ce177d40442889846107cb18c18e519036
3
+ size 655073724