nohuggingpls
commited on
Commit
•
a0e9531
1
Parent(s):
7a2c435
initial commit
Browse files- config.json +168 -0
- merges.txt +0 -0
- optimizer.pt +3 -0
- pytorch_model.bin +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -0
- trainer_state.json +36 -0
- training_args.bin +3 -0
- vocab.json +0 -0
config.json
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"EncoderDecoderModel"
|
4 |
+
],
|
5 |
+
"decoder": {
|
6 |
+
"_name_or_path": "gpt2",
|
7 |
+
"activation_function": "gelu_new",
|
8 |
+
"add_cross_attention": true,
|
9 |
+
"architectures": [
|
10 |
+
"GPT2LMHeadModel"
|
11 |
+
],
|
12 |
+
"attn_pdrop": 0.1,
|
13 |
+
"bad_words_ids": null,
|
14 |
+
"bos_token_id": 50256,
|
15 |
+
"chunk_size_feed_forward": 0,
|
16 |
+
"decoder_start_token_id": null,
|
17 |
+
"diversity_penalty": 0.0,
|
18 |
+
"do_sample": false,
|
19 |
+
"early_stopping": false,
|
20 |
+
"embd_pdrop": 0.1,
|
21 |
+
"encoder_no_repeat_ngram_size": 0,
|
22 |
+
"eos_token_id": 50256,
|
23 |
+
"finetuning_task": null,
|
24 |
+
"gradient_checkpointing": false,
|
25 |
+
"id2label": {
|
26 |
+
"0": "LABEL_0",
|
27 |
+
"1": "LABEL_1"
|
28 |
+
},
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"is_decoder": true,
|
31 |
+
"is_encoder_decoder": false,
|
32 |
+
"label2id": {
|
33 |
+
"LABEL_0": 0,
|
34 |
+
"LABEL_1": 1
|
35 |
+
},
|
36 |
+
"layer_norm_epsilon": 1e-05,
|
37 |
+
"length_penalty": 1.0,
|
38 |
+
"max_length": 20,
|
39 |
+
"min_length": 0,
|
40 |
+
"model_type": "gpt2",
|
41 |
+
"n_ctx": 1024,
|
42 |
+
"n_embd": 768,
|
43 |
+
"n_head": 12,
|
44 |
+
"n_inner": null,
|
45 |
+
"n_layer": 12,
|
46 |
+
"n_positions": 1024,
|
47 |
+
"no_repeat_ngram_size": 0,
|
48 |
+
"num_beam_groups": 1,
|
49 |
+
"num_beams": 1,
|
50 |
+
"num_return_sequences": 1,
|
51 |
+
"output_attentions": false,
|
52 |
+
"output_hidden_states": false,
|
53 |
+
"output_scores": false,
|
54 |
+
"pad_token_id": null,
|
55 |
+
"prefix": null,
|
56 |
+
"pruned_heads": {},
|
57 |
+
"repetition_penalty": 1.0,
|
58 |
+
"resid_pdrop": 0.1,
|
59 |
+
"return_dict": true,
|
60 |
+
"return_dict_in_generate": false,
|
61 |
+
"sep_token_id": null,
|
62 |
+
"summary_activation": null,
|
63 |
+
"summary_first_dropout": 0.1,
|
64 |
+
"summary_proj_to_labels": true,
|
65 |
+
"summary_type": "cls_index",
|
66 |
+
"summary_use_proj": true,
|
67 |
+
"task_specific_params": {
|
68 |
+
"text-generation": {
|
69 |
+
"do_sample": true,
|
70 |
+
"max_length": 50
|
71 |
+
}
|
72 |
+
},
|
73 |
+
"temperature": 1.0,
|
74 |
+
"tie_encoder_decoder": false,
|
75 |
+
"tie_word_embeddings": true,
|
76 |
+
"tokenizer_class": null,
|
77 |
+
"top_k": 50,
|
78 |
+
"top_p": 1.0,
|
79 |
+
"torchscript": false,
|
80 |
+
"transformers_version": "4.3.3",
|
81 |
+
"use_bfloat16": false,
|
82 |
+
"use_cache": true,
|
83 |
+
"vocab_size": 50257,
|
84 |
+
"xla_device": null
|
85 |
+
},
|
86 |
+
"decoder_start_token_id": 0,
|
87 |
+
"encoder": {
|
88 |
+
"_name_or_path": "microsoft/graphcodebert-base",
|
89 |
+
"add_cross_attention": false,
|
90 |
+
"architectures": [
|
91 |
+
"RobertaForMaskedLM"
|
92 |
+
],
|
93 |
+
"attention_probs_dropout_prob": 0.1,
|
94 |
+
"bad_words_ids": null,
|
95 |
+
"bos_token_id": 0,
|
96 |
+
"chunk_size_feed_forward": 0,
|
97 |
+
"decoder_start_token_id": null,
|
98 |
+
"diversity_penalty": 0.0,
|
99 |
+
"do_sample": false,
|
100 |
+
"early_stopping": false,
|
101 |
+
"encoder_no_repeat_ngram_size": 0,
|
102 |
+
"eos_token_id": 2,
|
103 |
+
"finetuning_task": null,
|
104 |
+
"gradient_checkpointing": false,
|
105 |
+
"hidden_act": "gelu",
|
106 |
+
"hidden_dropout_prob": 0.1,
|
107 |
+
"hidden_size": 768,
|
108 |
+
"id2label": {
|
109 |
+
"0": "LABEL_0",
|
110 |
+
"1": "LABEL_1"
|
111 |
+
},
|
112 |
+
"initializer_range": 0.02,
|
113 |
+
"intermediate_size": 3072,
|
114 |
+
"is_decoder": false,
|
115 |
+
"is_encoder_decoder": false,
|
116 |
+
"label2id": {
|
117 |
+
"LABEL_0": 0,
|
118 |
+
"LABEL_1": 1
|
119 |
+
},
|
120 |
+
"layer_norm_eps": 1e-05,
|
121 |
+
"length_penalty": 1.0,
|
122 |
+
"max_length": 20,
|
123 |
+
"max_position_embeddings": 514,
|
124 |
+
"min_length": 0,
|
125 |
+
"model_type": "roberta",
|
126 |
+
"no_repeat_ngram_size": 0,
|
127 |
+
"num_attention_heads": 12,
|
128 |
+
"num_beam_groups": 1,
|
129 |
+
"num_beams": 1,
|
130 |
+
"num_hidden_layers": 12,
|
131 |
+
"num_return_sequences": 1,
|
132 |
+
"output_attentions": false,
|
133 |
+
"output_hidden_states": false,
|
134 |
+
"output_past": true,
|
135 |
+
"output_scores": false,
|
136 |
+
"pad_token_id": 1,
|
137 |
+
"position_embedding_type": "absolute",
|
138 |
+
"prefix": null,
|
139 |
+
"pruned_heads": {},
|
140 |
+
"repetition_penalty": 1.0,
|
141 |
+
"return_dict": true,
|
142 |
+
"return_dict_in_generate": false,
|
143 |
+
"sep_token_id": null,
|
144 |
+
"task_specific_params": null,
|
145 |
+
"temperature": 1.0,
|
146 |
+
"tie_encoder_decoder": false,
|
147 |
+
"tie_word_embeddings": true,
|
148 |
+
"tokenizer_class": null,
|
149 |
+
"top_k": 50,
|
150 |
+
"top_p": 1.0,
|
151 |
+
"torchscript": false,
|
152 |
+
"transformers_version": "4.3.3",
|
153 |
+
"type_vocab_size": 1,
|
154 |
+
"use_bfloat16": false,
|
155 |
+
"use_cache": true,
|
156 |
+
"vocab_size": 50265,
|
157 |
+
"xla_device": null
|
158 |
+
},
|
159 |
+
"eos_token_id": 2,
|
160 |
+
"is_encoder_decoder": true,
|
161 |
+
"max_length": 128,
|
162 |
+
"min_length": 5,
|
163 |
+
"model_type": "encoder-decoder",
|
164 |
+
"no_repeat_ngram_size": 3,
|
165 |
+
"num_beams": 4,
|
166 |
+
"pad_token_id": 1,
|
167 |
+
"vocab_size": 50257
|
168 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:547a39ca8c12ece2755783c7424ee1708c330789319d56e428bb48d0267357c6
|
3 |
+
size 2215153082
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b09add67ce42c4902271eeea25391f6e6fa0a04a3c714d3b26bc267383bc49e6
|
3 |
+
size 1135175482
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a817ffdaa601060d225d203259e04f504a0ba137452c5d92689c67445726d3e
|
3 |
+
size 1064
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}}
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "errors": "replace", "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "model_max_length": 512, "special_tokens_map_file": "/home/ip1102/.cache/huggingface/transformers/487c9a154b15188eb68625c719ac71e12840a7b0968805e842dcb5de1531fd39.cb2244924ab24d706b02fd7fcedaea4531566537687a539ebb94db511fd122a0", "name_or_path": "microsoft/graphcodebert-base"}
|
trainer_state.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.440922190201729,
|
5 |
+
"global_step": 500,
|
6 |
+
"is_hyper_param_search": false,
|
7 |
+
"is_local_process_zero": true,
|
8 |
+
"is_world_process_zero": true,
|
9 |
+
"log_history": [
|
10 |
+
{
|
11 |
+
"epoch": 1.44,
|
12 |
+
"learning_rate": 1.3976945244956775e-05,
|
13 |
+
"loss": 5.6847,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 1.44,
|
18 |
+
"eval_bleu1_score": 0.1655,
|
19 |
+
"eval_bleu2_score": 0.128,
|
20 |
+
"eval_bleu3_score": 0.1077,
|
21 |
+
"eval_bleu4_score": 0.0992,
|
22 |
+
"eval_loss": 5.288726329803467,
|
23 |
+
"eval_rouge2_fmeasure": 0.082,
|
24 |
+
"eval_rouge2_precision": 0.0851,
|
25 |
+
"eval_rouge2_recall": 0.0812,
|
26 |
+
"eval_runtime": 18.2887,
|
27 |
+
"eval_samples_per_second": 14.052,
|
28 |
+
"step": 500
|
29 |
+
}
|
30 |
+
],
|
31 |
+
"max_steps": 694,
|
32 |
+
"num_train_epochs": 2,
|
33 |
+
"total_flos": 1243649361208320,
|
34 |
+
"trial_name": null,
|
35 |
+
"trial_params": null
|
36 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2429f1157a2e371aae844119b79e618fa46794caddaed2919248a3e797fed332
|
3 |
+
size 2680
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|