CIRCL/cwe-parent-vulnerability-classification-distilbert-base-uncased
Browse files- README.md +101 -0
- config.json +52 -52
- emissions.csv +2 -0
- metrics.json +9 -0
- model.safetensors +1 -1
README.md
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: distilbert-base-uncased
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: cwe-parent-vulnerability-classification-distilbert-base-uncased
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# cwe-parent-vulnerability-classification-distilbert-base-uncased
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 2.3946
|
22 |
+
- Accuracy: 0.7416
|
23 |
+
- F1 Macro: 0.4136
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 1e-05
|
43 |
+
- train_batch_size: 32
|
44 |
+
- eval_batch_size: 32
|
45 |
+
- seed: 42
|
46 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- num_epochs: 40
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
|
54 |
+
| 3.2586 | 1.0 | 25 | 3.2817 | 0.0225 | 0.0037 |
|
55 |
+
| 3.1726 | 2.0 | 50 | 3.2811 | 0.0225 | 0.0037 |
|
56 |
+
| 3.1195 | 3.0 | 75 | 3.2705 | 0.0225 | 0.0037 |
|
57 |
+
| 3.0213 | 4.0 | 100 | 3.2327 | 0.0449 | 0.0325 |
|
58 |
+
| 3.0235 | 5.0 | 125 | 3.2046 | 0.2247 | 0.0830 |
|
59 |
+
| 2.931 | 6.0 | 150 | 3.2138 | 0.2697 | 0.0725 |
|
60 |
+
| 2.9104 | 7.0 | 175 | 3.1642 | 0.4382 | 0.1117 |
|
61 |
+
| 2.779 | 8.0 | 200 | 3.1058 | 0.4831 | 0.1095 |
|
62 |
+
| 2.7528 | 9.0 | 225 | 3.0725 | 0.5169 | 0.1238 |
|
63 |
+
| 2.6453 | 10.0 | 250 | 3.0537 | 0.5730 | 0.2290 |
|
64 |
+
| 2.6262 | 11.0 | 275 | 3.0154 | 0.5618 | 0.2103 |
|
65 |
+
| 2.4852 | 12.0 | 300 | 2.9611 | 0.5955 | 0.3516 |
|
66 |
+
| 2.3778 | 13.0 | 325 | 2.9121 | 0.5955 | 0.3256 |
|
67 |
+
| 2.3381 | 14.0 | 350 | 2.8414 | 0.6067 | 0.3057 |
|
68 |
+
| 2.2415 | 15.0 | 375 | 2.8161 | 0.6180 | 0.3610 |
|
69 |
+
| 2.0991 | 16.0 | 400 | 2.7636 | 0.6180 | 0.3520 |
|
70 |
+
| 2.0469 | 17.0 | 425 | 2.7049 | 0.6180 | 0.3175 |
|
71 |
+
| 1.9623 | 18.0 | 450 | 2.7100 | 0.6404 | 0.3767 |
|
72 |
+
| 1.921 | 19.0 | 475 | 2.6304 | 0.6404 | 0.3320 |
|
73 |
+
| 1.8045 | 20.0 | 500 | 2.6552 | 0.6404 | 0.3130 |
|
74 |
+
| 1.7417 | 21.0 | 525 | 2.5960 | 0.6517 | 0.3082 |
|
75 |
+
| 1.7004 | 22.0 | 550 | 2.5777 | 0.6404 | 0.3183 |
|
76 |
+
| 1.6295 | 23.0 | 575 | 2.5849 | 0.6742 | 0.3602 |
|
77 |
+
| 1.5823 | 24.0 | 600 | 2.5379 | 0.6742 | 0.345 |
|
78 |
+
| 1.4711 | 25.0 | 625 | 2.5262 | 0.6742 | 0.3512 |
|
79 |
+
| 1.4868 | 26.0 | 650 | 2.4962 | 0.7079 | 0.3970 |
|
80 |
+
| 1.4563 | 27.0 | 675 | 2.4695 | 0.6854 | 0.3438 |
|
81 |
+
| 1.3601 | 28.0 | 700 | 2.4549 | 0.6854 | 0.3438 |
|
82 |
+
| 1.2847 | 29.0 | 725 | 2.4691 | 0.7079 | 0.3688 |
|
83 |
+
| 1.2883 | 30.0 | 750 | 2.4587 | 0.7079 | 0.3966 |
|
84 |
+
| 1.316 | 31.0 | 775 | 2.4454 | 0.7191 | 0.3623 |
|
85 |
+
| 1.1845 | 32.0 | 800 | 2.4432 | 0.7416 | 0.4111 |
|
86 |
+
| 1.24 | 33.0 | 825 | 2.4280 | 0.7079 | 0.3980 |
|
87 |
+
| 1.1163 | 34.0 | 850 | 2.4179 | 0.7416 | 0.3871 |
|
88 |
+
| 1.1728 | 35.0 | 875 | 2.4326 | 0.7528 | 0.4201 |
|
89 |
+
| 1.1013 | 36.0 | 900 | 2.4116 | 0.7416 | 0.4136 |
|
90 |
+
| 1.1612 | 37.0 | 925 | 2.3985 | 0.7416 | 0.4136 |
|
91 |
+
| 1.1472 | 38.0 | 950 | 2.3956 | 0.7416 | 0.4136 |
|
92 |
+
| 1.069 | 39.0 | 975 | 2.3946 | 0.7416 | 0.4136 |
|
93 |
+
| 1.0865 | 40.0 | 1000 | 2.3983 | 0.7528 | 0.4201 |
|
94 |
+
|
95 |
+
|
96 |
+
### Framework versions
|
97 |
+
|
98 |
+
- Transformers 4.55.4
|
99 |
+
- Pytorch 2.7.1+cu126
|
100 |
+
- Datasets 4.0.0
|
101 |
+
- Tokenizers 0.21.2
|
config.json
CHANGED
@@ -8,61 +8,61 @@
|
|
8 |
"dropout": 0.1,
|
9 |
"hidden_dim": 3072,
|
10 |
"id2label": {
|
11 |
-
"0": "
|
12 |
-
"1": "
|
13 |
-
"2": "
|
14 |
-
"3": "
|
15 |
-
"4": "
|
16 |
-
"5": "
|
17 |
-
"6": "
|
18 |
-
"7": "
|
19 |
-
"8": "
|
20 |
-
"9": "
|
21 |
-
"10": "
|
22 |
-
"11": "
|
23 |
-
"12": "
|
24 |
-
"13": "
|
25 |
-
"14": "
|
26 |
-
"15": "
|
27 |
-
"16": "
|
28 |
-
"17": "
|
29 |
-
"18": "
|
30 |
-
"19": "
|
31 |
-
"20": "
|
32 |
-
"21": "
|
33 |
-
"22": "
|
34 |
-
"23": "
|
35 |
-
"24": "
|
36 |
-
"25": "
|
37 |
},
|
38 |
"initializer_range": 0.02,
|
39 |
"label2id": {
|
40 |
-
"
|
41 |
-
"
|
42 |
-
"
|
43 |
-
"
|
44 |
-
"
|
45 |
-
"
|
46 |
-
"
|
47 |
-
"
|
48 |
-
"
|
49 |
-
"
|
50 |
-
"
|
51 |
-
"
|
52 |
-
"
|
53 |
-
"
|
54 |
-
"
|
55 |
-
"
|
56 |
-
"
|
57 |
-
"
|
58 |
-
"
|
59 |
-
"
|
60 |
-
"
|
61 |
-
"
|
62 |
-
"
|
63 |
-
"
|
64 |
-
"
|
65 |
-
"
|
66 |
},
|
67 |
"max_position_embeddings": 512,
|
68 |
"model_type": "distilbert",
|
|
|
8 |
"dropout": 0.1,
|
9 |
"hidden_dim": 3072,
|
10 |
"id2label": {
|
11 |
+
"0": "1025",
|
12 |
+
"1": "1071",
|
13 |
+
"2": "131",
|
14 |
+
"3": "138",
|
15 |
+
"4": "284",
|
16 |
+
"5": "285",
|
17 |
+
"6": "435",
|
18 |
+
"7": "436",
|
19 |
+
"8": "595",
|
20 |
+
"9": "657",
|
21 |
+
"10": "664",
|
22 |
+
"11": "682",
|
23 |
+
"12": "684",
|
24 |
+
"13": "691",
|
25 |
+
"14": "693",
|
26 |
+
"15": "697",
|
27 |
+
"16": "703",
|
28 |
+
"17": "706",
|
29 |
+
"18": "707",
|
30 |
+
"19": "710",
|
31 |
+
"20": "74",
|
32 |
+
"21": "754",
|
33 |
+
"22": "829",
|
34 |
+
"23": "862",
|
35 |
+
"24": "913",
|
36 |
+
"25": "94"
|
37 |
},
|
38 |
"initializer_range": 0.02,
|
39 |
"label2id": {
|
40 |
+
"1025": 0,
|
41 |
+
"1071": 1,
|
42 |
+
"131": 2,
|
43 |
+
"138": 3,
|
44 |
+
"284": 4,
|
45 |
+
"285": 5,
|
46 |
+
"435": 6,
|
47 |
+
"436": 7,
|
48 |
+
"595": 8,
|
49 |
+
"657": 9,
|
50 |
+
"664": 10,
|
51 |
+
"682": 11,
|
52 |
+
"684": 12,
|
53 |
+
"691": 13,
|
54 |
+
"693": 14,
|
55 |
+
"697": 15,
|
56 |
+
"703": 16,
|
57 |
+
"706": 17,
|
58 |
+
"707": 18,
|
59 |
+
"710": 19,
|
60 |
+
"74": 20,
|
61 |
+
"754": 21,
|
62 |
+
"829": 22,
|
63 |
+
"862": 23,
|
64 |
+
"913": 24,
|
65 |
+
"94": 25
|
66 |
},
|
67 |
"max_position_embeddings": 512,
|
68 |
"model_type": "distilbert",
|
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:35:59,codecarbon,1b1c2d45-b5b5-4479-95ad-9b3f70180786,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,195.7275512360502,0.0031719271440446553,1.6205828581686317e-05,42.5,162.96108566089268,94.34468507766725,0.0023084282687747164,0.0227022656617919,0.0051226591378872085,0.030133353068453824,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.394566059112549,
|
3 |
+
"eval_accuracy": 0.7415730337078652,
|
4 |
+
"eval_f1_macro": 0.41364775575301893,
|
5 |
+
"eval_runtime": 0.203,
|
6 |
+
"eval_samples_per_second": 438.53,
|
7 |
+
"eval_steps_per_second": 14.782,
|
8 |
+
"epoch": 40.0
|
9 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 267906392
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27c89ea34dd5681d529a6f8e9488970812f5806d8cabdb581a6e625e6368a015
|
3 |
size 267906392
|