Upload folder using huggingface_hub
Browse files- config.json +43 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- optimizer.pt +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +64 -0
- trainer_state.json +107 -0
- training_args.bin +3 -0
- vocab.json +0 -0
config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/codebert-base",
|
3 |
+
"architectures": [
|
4 |
+
"CodeBERTHSUMForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"count": 4,
|
10 |
+
"eos_token_id": 2,
|
11 |
+
"finetuning_task": "text-classification",
|
12 |
+
"hidden_act": "gelu",
|
13 |
+
"hidden_dropout_prob": 0.1,
|
14 |
+
"hidden_size": 768,
|
15 |
+
"id2label": {
|
16 |
+
"0": "0",
|
17 |
+
"1": "1"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"0": 0,
|
23 |
+
"1": 1
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-05,
|
26 |
+
"max_position_embeddings": 514,
|
27 |
+
"max_query_length": 128,
|
28 |
+
"max_seq_length": -68,
|
29 |
+
"mix_type": "HSUM",
|
30 |
+
"model_type": "roberta",
|
31 |
+
"num_attention_heads": 12,
|
32 |
+
"num_hidden_layers": 12,
|
33 |
+
"output_past": true,
|
34 |
+
"pad_token_id": 1,
|
35 |
+
"position_embedding_type": "absolute",
|
36 |
+
"problem_type": "single_label_classification",
|
37 |
+
"sc_comment": false,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.35.2",
|
40 |
+
"type_vocab_size": 1,
|
41 |
+
"use_cache": true,
|
42 |
+
"vocab_size": 50265
|
43 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a34f98112e532201ee5d44baf25db0d5f682f4c21e155eda91a5243f25c882c1
|
3 |
+
size 612026240
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a304b1a49755b0733ead29cd3ac8b427e2b3cd750d3803d3247f20e7941ae2f4
|
3 |
+
size 1224210309
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51a1f04f0c4251f78963522b5e9d1cd8c0fa756cce5bbdff7db3bf68898a58f9
|
3 |
+
size 14511
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2d0ddce317420304e0452fb4975742c804af0156b5519a2acdb8b056f7765a9
|
3 |
+
size 627
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "<mask>",
|
25 |
+
"lstrip": true,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "</s>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "<unk>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": false,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"max_length": 64,
|
52 |
+
"model_max_length": 512,
|
53 |
+
"pad_to_multiple_of": null,
|
54 |
+
"pad_token": "<pad>",
|
55 |
+
"pad_token_type_id": 0,
|
56 |
+
"padding_side": "right",
|
57 |
+
"sep_token": "</s>",
|
58 |
+
"stride": 0,
|
59 |
+
"tokenizer_class": "RobertaTokenizer",
|
60 |
+
"trim_offsets": true,
|
61 |
+
"truncation_side": "right",
|
62 |
+
"truncation_strategy": "longest_first",
|
63 |
+
"unk_token": "<unk>"
|
64 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.8450704225352113,
|
3 |
+
"best_model_checkpoint": "/cm/archive/namlh35/code-comment-classification/results/selection_wo_valid/Verification/codebert-postpretrained-HSUM-4layers-datav2-class-comment/java_deprecation/checkpoint-250",
|
4 |
+
"epoch": 3.0303030303030303,
|
5 |
+
"eval_steps": 50,
|
6 |
+
"global_step": 400,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.38,
|
13 |
+
"eval_f1": 0.0,
|
14 |
+
"eval_loss": 0.056170761585235596,
|
15 |
+
"eval_precision": 0.0,
|
16 |
+
"eval_recall": 0.0,
|
17 |
+
"eval_runtime": 15.1951,
|
18 |
+
"eval_samples_per_second": 139.058,
|
19 |
+
"eval_steps_per_second": 8.753,
|
20 |
+
"step": 50
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.76,
|
24 |
+
"eval_f1": 0.8059701492537312,
|
25 |
+
"eval_loss": 0.029947876930236816,
|
26 |
+
"eval_precision": 0.9,
|
27 |
+
"eval_recall": 0.7297297297297297,
|
28 |
+
"eval_runtime": 8.6149,
|
29 |
+
"eval_samples_per_second": 245.272,
|
30 |
+
"eval_steps_per_second": 15.438,
|
31 |
+
"step": 100
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 1.14,
|
35 |
+
"eval_f1": 0.8169014084507041,
|
36 |
+
"eval_loss": 0.03486325964331627,
|
37 |
+
"eval_precision": 0.8529411764705882,
|
38 |
+
"eval_recall": 0.7837837837837838,
|
39 |
+
"eval_runtime": 8.6487,
|
40 |
+
"eval_samples_per_second": 244.315,
|
41 |
+
"eval_steps_per_second": 15.378,
|
42 |
+
"step": 150
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"epoch": 1.52,
|
46 |
+
"eval_f1": 0.8169014084507041,
|
47 |
+
"eval_loss": 0.030027925968170166,
|
48 |
+
"eval_precision": 0.8529411764705882,
|
49 |
+
"eval_recall": 0.7837837837837838,
|
50 |
+
"eval_runtime": 8.7028,
|
51 |
+
"eval_samples_per_second": 242.796,
|
52 |
+
"eval_steps_per_second": 15.282,
|
53 |
+
"step": 200
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 1.89,
|
57 |
+
"eval_f1": 0.8450704225352113,
|
58 |
+
"eval_loss": 0.025771863758563995,
|
59 |
+
"eval_precision": 0.8823529411764706,
|
60 |
+
"eval_recall": 0.8108108108108109,
|
61 |
+
"eval_runtime": 8.4673,
|
62 |
+
"eval_samples_per_second": 249.547,
|
63 |
+
"eval_steps_per_second": 15.707,
|
64 |
+
"step": 250
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 2.27,
|
68 |
+
"eval_f1": 0.823529411764706,
|
69 |
+
"eval_loss": 0.03130728378891945,
|
70 |
+
"eval_precision": 0.9032258064516129,
|
71 |
+
"eval_recall": 0.7567567567567568,
|
72 |
+
"eval_runtime": 9.0162,
|
73 |
+
"eval_samples_per_second": 234.356,
|
74 |
+
"eval_steps_per_second": 14.751,
|
75 |
+
"step": 300
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 2.65,
|
79 |
+
"eval_f1": 0.8219178082191781,
|
80 |
+
"eval_loss": 0.028314711526036263,
|
81 |
+
"eval_precision": 0.8333333333333334,
|
82 |
+
"eval_recall": 0.8108108108108109,
|
83 |
+
"eval_runtime": 9.6845,
|
84 |
+
"eval_samples_per_second": 218.183,
|
85 |
+
"eval_steps_per_second": 13.733,
|
86 |
+
"step": 350
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 3.03,
|
90 |
+
"eval_f1": 0.8219178082191781,
|
91 |
+
"eval_loss": 0.030898844823241234,
|
92 |
+
"eval_precision": 0.8333333333333334,
|
93 |
+
"eval_recall": 0.8108108108108109,
|
94 |
+
"eval_runtime": 8.964,
|
95 |
+
"eval_samples_per_second": 235.72,
|
96 |
+
"eval_steps_per_second": 14.837,
|
97 |
+
"step": 400
|
98 |
+
}
|
99 |
+
],
|
100 |
+
"logging_steps": 500,
|
101 |
+
"max_steps": 1320,
|
102 |
+
"num_train_epochs": 10,
|
103 |
+
"save_steps": 50,
|
104 |
+
"total_flos": 1119873879427584.0,
|
105 |
+
"trial_name": null,
|
106 |
+
"trial_params": null
|
107 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a3cc83794fd06e45c57b267b5d26d0d9232358cd428a8e432c7f2b362435056
|
3 |
+
size 4539
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|