Commit
•
c4d5b9f
1
Parent(s):
f46de46
Upload models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked with huggingface_hub
Browse files- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/classifier/config.json +25 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/classifier/pytorch_model.bin +3 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/added_tokens.json +112 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/config.json +30 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/merges.txt +0 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/pytorch_model.bin +3 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/special_tokens_map.json +15 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/tokenizer.json +0 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/tokenizer_config.json +65 -0
- models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/vocab.json +0 -0
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/classifier/config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/Volumes/ExtraSpace/baselines//models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/classifier",
|
3 |
+
"architectures": [
|
4 |
+
"BertForLineClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 3072,
|
13 |
+
"layer_norm_eps": 1e-12,
|
14 |
+
"max_position_embeddings": 1024,
|
15 |
+
"model_type": "bert",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 6,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"position_embedding_type": "absolute",
|
20 |
+
"torch_dtype": "float32",
|
21 |
+
"transformers_version": "4.20.1",
|
22 |
+
"type_vocab_size": 2,
|
23 |
+
"use_cache": true,
|
24 |
+
"vocab_size": 1
|
25 |
+
}
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/classifier/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f5a8b531537819b534a473398de425bdd5984a6b1b5dfab027f4ca042052897d
|
3 |
+
size 173318257
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/added_tokens.json
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"FUNC_0": 50365,
|
3 |
+
"FUNC_1": 50366,
|
4 |
+
"FUNC_2": 50367,
|
5 |
+
"FUNC_3": 50368,
|
6 |
+
"FUNC_4": 50369,
|
7 |
+
"FUNC_5": 50370,
|
8 |
+
"FUNC_6": 50371,
|
9 |
+
"FUNC_7": 50372,
|
10 |
+
"FUNC_8": 50373,
|
11 |
+
"FUNC_9": 50374,
|
12 |
+
"VAR_0": 50265,
|
13 |
+
"VAR_1": 50266,
|
14 |
+
"VAR_10": 50275,
|
15 |
+
"VAR_11": 50276,
|
16 |
+
"VAR_12": 50277,
|
17 |
+
"VAR_13": 50278,
|
18 |
+
"VAR_14": 50279,
|
19 |
+
"VAR_15": 50280,
|
20 |
+
"VAR_16": 50281,
|
21 |
+
"VAR_17": 50282,
|
22 |
+
"VAR_18": 50283,
|
23 |
+
"VAR_19": 50284,
|
24 |
+
"VAR_2": 50267,
|
25 |
+
"VAR_20": 50285,
|
26 |
+
"VAR_21": 50286,
|
27 |
+
"VAR_22": 50287,
|
28 |
+
"VAR_23": 50288,
|
29 |
+
"VAR_24": 50289,
|
30 |
+
"VAR_25": 50290,
|
31 |
+
"VAR_26": 50291,
|
32 |
+
"VAR_27": 50292,
|
33 |
+
"VAR_28": 50293,
|
34 |
+
"VAR_29": 50294,
|
35 |
+
"VAR_3": 50268,
|
36 |
+
"VAR_30": 50295,
|
37 |
+
"VAR_31": 50296,
|
38 |
+
"VAR_32": 50297,
|
39 |
+
"VAR_33": 50298,
|
40 |
+
"VAR_34": 50299,
|
41 |
+
"VAR_35": 50300,
|
42 |
+
"VAR_36": 50301,
|
43 |
+
"VAR_37": 50302,
|
44 |
+
"VAR_38": 50303,
|
45 |
+
"VAR_39": 50304,
|
46 |
+
"VAR_4": 50269,
|
47 |
+
"VAR_40": 50305,
|
48 |
+
"VAR_41": 50306,
|
49 |
+
"VAR_42": 50307,
|
50 |
+
"VAR_43": 50308,
|
51 |
+
"VAR_44": 50309,
|
52 |
+
"VAR_45": 50310,
|
53 |
+
"VAR_46": 50311,
|
54 |
+
"VAR_47": 50312,
|
55 |
+
"VAR_48": 50313,
|
56 |
+
"VAR_49": 50314,
|
57 |
+
"VAR_5": 50270,
|
58 |
+
"VAR_50": 50315,
|
59 |
+
"VAR_51": 50316,
|
60 |
+
"VAR_52": 50317,
|
61 |
+
"VAR_53": 50318,
|
62 |
+
"VAR_54": 50319,
|
63 |
+
"VAR_55": 50320,
|
64 |
+
"VAR_56": 50321,
|
65 |
+
"VAR_57": 50322,
|
66 |
+
"VAR_58": 50323,
|
67 |
+
"VAR_59": 50324,
|
68 |
+
"VAR_6": 50271,
|
69 |
+
"VAR_60": 50325,
|
70 |
+
"VAR_61": 50326,
|
71 |
+
"VAR_62": 50327,
|
72 |
+
"VAR_63": 50328,
|
73 |
+
"VAR_64": 50329,
|
74 |
+
"VAR_65": 50330,
|
75 |
+
"VAR_66": 50331,
|
76 |
+
"VAR_67": 50332,
|
77 |
+
"VAR_68": 50333,
|
78 |
+
"VAR_69": 50334,
|
79 |
+
"VAR_7": 50272,
|
80 |
+
"VAR_70": 50335,
|
81 |
+
"VAR_71": 50336,
|
82 |
+
"VAR_72": 50337,
|
83 |
+
"VAR_73": 50338,
|
84 |
+
"VAR_74": 50339,
|
85 |
+
"VAR_75": 50340,
|
86 |
+
"VAR_76": 50341,
|
87 |
+
"VAR_77": 50342,
|
88 |
+
"VAR_78": 50343,
|
89 |
+
"VAR_79": 50344,
|
90 |
+
"VAR_8": 50273,
|
91 |
+
"VAR_80": 50345,
|
92 |
+
"VAR_81": 50346,
|
93 |
+
"VAR_82": 50347,
|
94 |
+
"VAR_83": 50348,
|
95 |
+
"VAR_84": 50349,
|
96 |
+
"VAR_85": 50350,
|
97 |
+
"VAR_86": 50351,
|
98 |
+
"VAR_87": 50352,
|
99 |
+
"VAR_88": 50353,
|
100 |
+
"VAR_89": 50354,
|
101 |
+
"VAR_9": 50274,
|
102 |
+
"VAR_90": 50355,
|
103 |
+
"VAR_91": 50356,
|
104 |
+
"VAR_92": 50357,
|
105 |
+
"VAR_93": 50358,
|
106 |
+
"VAR_94": 50359,
|
107 |
+
"VAR_95": 50360,
|
108 |
+
"VAR_96": 50361,
|
109 |
+
"VAR_97": 50362,
|
110 |
+
"VAR_98": 50363,
|
111 |
+
"VAR_99": 50364
|
112 |
+
}
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/Volumes/ExtraSpace/baselines//models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaModel"
|
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": "roberta",
|
19 |
+
"num_attention_heads": 12,
|
20 |
+
"num_hidden_layers": 12,
|
21 |
+
"output_attentions": true,
|
22 |
+
"output_past": true,
|
23 |
+
"pad_token_id": 1,
|
24 |
+
"position_embedding_type": "absolute",
|
25 |
+
"torch_dtype": "float32",
|
26 |
+
"transformers_version": "4.20.1",
|
27 |
+
"type_vocab_size": 1,
|
28 |
+
"use_cache": true,
|
29 |
+
"vocab_size": 50375
|
30 |
+
}
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d55d6a962106306c62469f695d8483e900a553236e8174c7eba10c5edcc4bec8
|
3 |
+
size 498989937
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/tokenizer_config.json
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"bos_token": {
|
4 |
+
"__type": "AddedToken",
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false
|
10 |
+
},
|
11 |
+
"cls_token": {
|
12 |
+
"__type": "AddedToken",
|
13 |
+
"content": "<s>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false
|
18 |
+
},
|
19 |
+
"eos_token": {
|
20 |
+
"__type": "AddedToken",
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
"errors": "replace",
|
28 |
+
"mask_token": {
|
29 |
+
"__type": "AddedToken",
|
30 |
+
"content": "<mask>",
|
31 |
+
"lstrip": true,
|
32 |
+
"normalized": true,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false
|
35 |
+
},
|
36 |
+
"model_max_length": 512,
|
37 |
+
"name_or_path": "/Volumes/ExtraSpace/baselines//models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs",
|
38 |
+
"pad_token": {
|
39 |
+
"__type": "AddedToken",
|
40 |
+
"content": "<pad>",
|
41 |
+
"lstrip": false,
|
42 |
+
"normalized": true,
|
43 |
+
"rstrip": false,
|
44 |
+
"single_word": false
|
45 |
+
},
|
46 |
+
"sep_token": {
|
47 |
+
"__type": "AddedToken",
|
48 |
+
"content": "</s>",
|
49 |
+
"lstrip": false,
|
50 |
+
"normalized": true,
|
51 |
+
"rstrip": false,
|
52 |
+
"single_word": false
|
53 |
+
},
|
54 |
+
"special_tokens_map_file": "/root/.cache/torch/transformers/5a191080da4f00859b5d3d29529f57894583e00ab07b7c940d65c33db4b25d4d.16f949018cf247a2ea7465a74ca9a292212875e5fd72f969e0807011e7f192e4",
|
55 |
+
"tokenizer_class": "RobertaTokenizer",
|
56 |
+
"trim_offsets": true,
|
57 |
+
"unk_token": {
|
58 |
+
"__type": "AddedToken",
|
59 |
+
"content": "<unk>",
|
60 |
+
"lstrip": false,
|
61 |
+
"normalized": true,
|
62 |
+
"rstrip": false,
|
63 |
+
"single_word": false
|
64 |
+
}
|
65 |
+
}
|
models/codebert-base-finetuned-detect-insecure-code-Bert-L6-w-masked/embs/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|