tanaymitra01 commited on
Commit
c61043c
·
verified ·
1 Parent(s): 8b78850

Upload SmartBugs-Wild fine-tuned Graph CodeBERT checkpoint

Browse files
Files changed (3) hide show
  1. config.json +59 -0
  2. label_map.json +44 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "safe",
17
+ "1": "reentrancy",
18
+ "2": "access_control",
19
+ "3": "tx_origin_auth",
20
+ "4": "integer_overflow",
21
+ "5": "unsafe_delegatecall",
22
+ "6": "weak_randomness",
23
+ "7": "unbounded_loop",
24
+ "8": "redundant_storage",
25
+ "9": "gas_optimization",
26
+ "10": "best_practice",
27
+ "11": "other"
28
+ },
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 3072,
31
+ "is_decoder": false,
32
+ "label2id": {
33
+ "access_control": 2,
34
+ "best_practice": 10,
35
+ "gas_optimization": 9,
36
+ "integer_overflow": 4,
37
+ "other": 11,
38
+ "redundant_storage": 8,
39
+ "reentrancy": 1,
40
+ "safe": 0,
41
+ "tx_origin_auth": 3,
42
+ "unbounded_loop": 7,
43
+ "unsafe_delegatecall": 5,
44
+ "weak_randomness": 6
45
+ },
46
+ "layer_norm_eps": 1e-05,
47
+ "max_position_embeddings": 514,
48
+ "model_type": "roberta",
49
+ "num_attention_heads": 12,
50
+ "num_hidden_layers": 12,
51
+ "output_past": true,
52
+ "pad_token_id": 1,
53
+ "problem_type": "single_label_classification",
54
+ "tie_word_embeddings": true,
55
+ "transformers_version": "5.16.1",
56
+ "type_vocab_size": 1,
57
+ "use_cache": true,
58
+ "vocab_size": 50265
59
+ }
label_map.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels": [
3
+ "safe",
4
+ "reentrancy",
5
+ "access_control",
6
+ "tx_origin_auth",
7
+ "integer_overflow",
8
+ "unsafe_delegatecall",
9
+ "weak_randomness",
10
+ "unbounded_loop",
11
+ "redundant_storage",
12
+ "gas_optimization",
13
+ "best_practice",
14
+ "other"
15
+ ],
16
+ "id2label": {
17
+ "0": "safe",
18
+ "1": "reentrancy",
19
+ "2": "access_control",
20
+ "3": "tx_origin_auth",
21
+ "4": "integer_overflow",
22
+ "5": "unsafe_delegatecall",
23
+ "6": "weak_randomness",
24
+ "7": "unbounded_loop",
25
+ "8": "redundant_storage",
26
+ "9": "gas_optimization",
27
+ "10": "best_practice",
28
+ "11": "other"
29
+ },
30
+ "label2id": [
31
+ "safe",
32
+ "reentrancy",
33
+ "access_control",
34
+ "tx_origin_auth",
35
+ "integer_overflow",
36
+ "unsafe_delegatecall",
37
+ "weak_randomness",
38
+ "unbounded_loop",
39
+ "redundant_storage",
40
+ "gas_optimization",
41
+ "best_practice",
42
+ "other"
43
+ ]
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abade38beac60146616d8e09142b18d2ff8123909446f217a3e52141ded3d814
3
+ size 498643584