elselse commited on
Commit
187f270
·
verified ·
1 Parent(s): bddb7d4

CIRCL/cwe-parent-vulnerability-classification-microsoft-codebert-base

Browse files
Files changed (5) hide show
  1. README.md +100 -0
  2. config.json +52 -52
  3. emissions.csv +2 -0
  4. metrics.json +9 -0
  5. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: microsoft/codebert-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: cwe-parent-vulnerability-classification-microsoft-codebert-base
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # cwe-parent-vulnerability-classification-microsoft-codebert-base
17
+
18
+ This model is a fine-tuned version of [microsoft/codebert-base](https://huggingface.co/microsoft/codebert-base) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 2.6351
21
+ - Accuracy: 0.6517
22
+ - F1 Macro: 0.3129
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 1e-05
42
+ - train_batch_size: 32
43
+ - eval_batch_size: 32
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 40
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
53
+ | 3.2599 | 1.0 | 25 | 3.2873 | 0.0225 | 0.0037 |
54
+ | 3.1436 | 2.0 | 50 | 3.3011 | 0.0562 | 0.0216 |
55
+ | 3.1168 | 3.0 | 75 | 3.3439 | 0.0449 | 0.0113 |
56
+ | 3.0315 | 4.0 | 100 | 3.3314 | 0.1461 | 0.0645 |
57
+ | 3.0604 | 5.0 | 125 | 3.3334 | 0.0899 | 0.0581 |
58
+ | 2.9746 | 6.0 | 150 | 3.3430 | 0.1124 | 0.0546 |
59
+ | 2.9773 | 7.0 | 175 | 3.3535 | 0.4157 | 0.0990 |
60
+ | 2.8666 | 8.0 | 200 | 3.2720 | 0.4831 | 0.2052 |
61
+ | 2.8196 | 9.0 | 225 | 3.2289 | 0.4270 | 0.1442 |
62
+ | 2.6704 | 10.0 | 250 | 3.1301 | 0.2584 | 0.1440 |
63
+ | 2.6964 | 11.0 | 275 | 3.0508 | 0.2809 | 0.1197 |
64
+ | 2.5442 | 12.0 | 300 | 2.9618 | 0.3596 | 0.1644 |
65
+ | 2.4519 | 13.0 | 325 | 2.9271 | 0.3596 | 0.1637 |
66
+ | 2.4064 | 14.0 | 350 | 2.8342 | 0.3933 | 0.2154 |
67
+ | 2.2469 | 15.0 | 375 | 2.7950 | 0.3596 | 0.2097 |
68
+ | 2.1662 | 16.0 | 400 | 2.7928 | 0.3596 | 0.1926 |
69
+ | 2.126 | 17.0 | 425 | 2.6786 | 0.4157 | 0.2223 |
70
+ | 2.0579 | 18.0 | 450 | 2.7615 | 0.3820 | 0.1987 |
71
+ | 1.8908 | 19.0 | 475 | 2.6469 | 0.4157 | 0.2015 |
72
+ | 1.8119 | 20.0 | 500 | 2.7396 | 0.4157 | 0.2097 |
73
+ | 1.8234 | 21.0 | 525 | 2.7319 | 0.3933 | 0.2101 |
74
+ | 1.6483 | 22.0 | 550 | 2.7024 | 0.4607 | 0.2504 |
75
+ | 1.7195 | 23.0 | 575 | 2.6693 | 0.4944 | 0.2345 |
76
+ | 1.5326 | 24.0 | 600 | 2.6387 | 0.5169 | 0.2341 |
77
+ | 1.5649 | 25.0 | 625 | 2.6509 | 0.6180 | 0.2934 |
78
+ | 1.4294 | 26.0 | 650 | 2.7232 | 0.6292 | 0.3175 |
79
+ | 1.4872 | 27.0 | 675 | 2.6745 | 0.6404 | 0.3005 |
80
+ | 1.3451 | 28.0 | 700 | 2.6499 | 0.6517 | 0.3100 |
81
+ | 1.296 | 29.0 | 725 | 2.6788 | 0.6517 | 0.3290 |
82
+ | 1.2962 | 30.0 | 750 | 2.6351 | 0.6517 | 0.3129 |
83
+ | 1.2969 | 31.0 | 775 | 2.6432 | 0.6742 | 0.3226 |
84
+ | 1.1886 | 32.0 | 800 | 2.6496 | 0.6742 | 0.3226 |
85
+ | 1.1426 | 33.0 | 825 | 2.6603 | 0.6742 | 0.3230 |
86
+ | 1.1833 | 34.0 | 850 | 2.6660 | 0.6742 | 0.3253 |
87
+ | 1.14 | 35.0 | 875 | 2.6588 | 0.6854 | 0.3477 |
88
+ | 1.0947 | 36.0 | 900 | 2.6501 | 0.6854 | 0.3477 |
89
+ | 1.0714 | 37.0 | 925 | 2.6654 | 0.6854 | 0.3477 |
90
+ | 1.0678 | 38.0 | 950 | 2.6454 | 0.6854 | 0.3477 |
91
+ | 1.0535 | 39.0 | 975 | 2.6375 | 0.6854 | 0.3481 |
92
+ | 1.0273 | 40.0 | 1000 | 2.6422 | 0.6854 | 0.3481 |
93
+
94
+
95
+ ### Framework versions
96
+
97
+ - Transformers 4.55.4
98
+ - Pytorch 2.7.1+cu126
99
+ - Datasets 4.0.0
100
+ - Tokenizers 0.21.2
config.json CHANGED
@@ -10,62 +10,62 @@
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "LABEL_0",
14
- "1": "LABEL_1",
15
- "2": "LABEL_2",
16
- "3": "LABEL_3",
17
- "4": "LABEL_4",
18
- "5": "LABEL_5",
19
- "6": "LABEL_6",
20
- "7": "LABEL_7",
21
- "8": "LABEL_8",
22
- "9": "LABEL_9",
23
- "10": "LABEL_10",
24
- "11": "LABEL_11",
25
- "12": "LABEL_12",
26
- "13": "LABEL_13",
27
- "14": "LABEL_14",
28
- "15": "LABEL_15",
29
- "16": "LABEL_16",
30
- "17": "LABEL_17",
31
- "18": "LABEL_18",
32
- "19": "LABEL_19",
33
- "20": "LABEL_20",
34
- "21": "LABEL_21",
35
- "22": "LABEL_22",
36
- "23": "LABEL_23",
37
- "24": "LABEL_24",
38
- "25": "LABEL_25"
39
  },
40
  "initializer_range": 0.02,
41
  "intermediate_size": 3072,
42
  "label2id": {
43
- "LABEL_0": 0,
44
- "LABEL_1": 1,
45
- "LABEL_10": 10,
46
- "LABEL_11": 11,
47
- "LABEL_12": 12,
48
- "LABEL_13": 13,
49
- "LABEL_14": 14,
50
- "LABEL_15": 15,
51
- "LABEL_16": 16,
52
- "LABEL_17": 17,
53
- "LABEL_18": 18,
54
- "LABEL_19": 19,
55
- "LABEL_2": 2,
56
- "LABEL_20": 20,
57
- "LABEL_21": 21,
58
- "LABEL_22": 22,
59
- "LABEL_23": 23,
60
- "LABEL_24": 24,
61
- "LABEL_25": 25,
62
- "LABEL_3": 3,
63
- "LABEL_4": 4,
64
- "LABEL_5": 5,
65
- "LABEL_6": 6,
66
- "LABEL_7": 7,
67
- "LABEL_8": 8,
68
- "LABEL_9": 9
69
  },
70
  "layer_norm_eps": 1e-05,
71
  "max_position_embeddings": 514,
 
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
+ "0": "1025",
14
+ "1": "1071",
15
+ "2": "131",
16
+ "3": "138",
17
+ "4": "284",
18
+ "5": "285",
19
+ "6": "435",
20
+ "7": "436",
21
+ "8": "595",
22
+ "9": "657",
23
+ "10": "664",
24
+ "11": "682",
25
+ "12": "684",
26
+ "13": "691",
27
+ "14": "693",
28
+ "15": "697",
29
+ "16": "703",
30
+ "17": "706",
31
+ "18": "707",
32
+ "19": "710",
33
+ "20": "74",
34
+ "21": "754",
35
+ "22": "829",
36
+ "23": "862",
37
+ "24": "913",
38
+ "25": "94"
39
  },
40
  "initializer_range": 0.02,
41
  "intermediate_size": 3072,
42
  "label2id": {
43
+ "1025": 0,
44
+ "1071": 1,
45
+ "131": 2,
46
+ "138": 3,
47
+ "284": 4,
48
+ "285": 5,
49
+ "435": 6,
50
+ "436": 7,
51
+ "595": 8,
52
+ "657": 9,
53
+ "664": 10,
54
+ "682": 11,
55
+ "684": 12,
56
+ "691": 13,
57
+ "693": 14,
58
+ "697": 15,
59
+ "703": 16,
60
+ "706": 17,
61
+ "707": 18,
62
+ "710": 19,
63
+ "74": 20,
64
+ "754": 21,
65
+ "829": 22,
66
+ "862": 23,
67
+ "913": 24,
68
+ "94": 25
69
  },
70
  "layer_norm_eps": 1e-05,
71
  "max_position_embeddings": 514,
emissions.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ timestamp,project_name,run_id,experiment_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue
2
+ 2025-09-03T13:30:34,codecarbon,9d880529-ac6f-4dee-a770-4b5fe9c7c287,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,390.7287475480698,0.006325022847261015,1.618775912177507e-05,42.5,178.6612275683419,94.34468507766725,0.004608292719416204,0.04525022397793066,0.010229290483343567,0.060087807180690414,Luxembourg,LUX,luxembourg,,,Linux-6.8.0-71-generic-x86_64-with-glibc2.39,3.12.3,2.8.4,64,AMD EPYC 9124 16-Core Processor,2,2 x NVIDIA L40S,6.1294,49.6113,251.5858268737793,machine,N,1.0
metrics.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eval_loss": 2.6350972652435303,
3
+ "eval_accuracy": 0.651685393258427,
4
+ "eval_f1_macro": 0.3128829740025724,
5
+ "eval_runtime": 0.3092,
6
+ "eval_samples_per_second": 287.838,
7
+ "eval_steps_per_second": 9.702,
8
+ "epoch": 40.0
9
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e35b22d7fd2a484d2cbce83596b23fdcdaf9b4c2ebf5da2ccda70c075b4a2690
3
  size 498686648
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bd9825d8449380f4a11723f8b8d44d5fd8042f67a9818cd5311b4efef5933ea
3
  size 498686648