CIRCL/cwe-parent-vulnerability-classification-huggingface-CodeBERTa-small-v1
Browse files- README.md +100 -0
- config.json +52 -52
- emissions.csv +2 -0
- metrics.json +9 -0
- model.safetensors +1 -1
README.md
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
base_model: huggingface/CodeBERTa-small-v1
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: cwe-parent-vulnerability-classification-huggingface-CodeBERTa-small-v1
|
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-huggingface-CodeBERTa-small-v1
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [huggingface/CodeBERTa-small-v1](https://huggingface.co/huggingface/CodeBERTa-small-v1) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 2.3718
|
21 |
+
- Accuracy: 0.7753
|
22 |
+
- F1 Macro: 0.3835
|
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.2521 | 1.0 | 25 | 3.3015 | 0.0112 | 0.0057 |
|
54 |
+
| 3.037 | 2.0 | 50 | 3.2608 | 0.3258 | 0.1301 |
|
55 |
+
| 3.0191 | 3.0 | 75 | 3.3140 | 0.3146 | 0.0568 |
|
56 |
+
| 2.8876 | 4.0 | 100 | 3.2111 | 0.2472 | 0.2190 |
|
57 |
+
| 2.7888 | 5.0 | 125 | 3.1305 | 0.2360 | 0.2394 |
|
58 |
+
| 2.6762 | 6.0 | 150 | 3.1370 | 0.3146 | 0.1503 |
|
59 |
+
| 2.5905 | 7.0 | 175 | 3.0446 | 0.3933 | 0.2144 |
|
60 |
+
| 2.4173 | 8.0 | 200 | 2.9769 | 0.3933 | 0.1999 |
|
61 |
+
| 2.2706 | 9.0 | 225 | 2.9704 | 0.3708 | 0.1825 |
|
62 |
+
| 2.1355 | 10.0 | 250 | 2.9071 | 0.3820 | 0.2097 |
|
63 |
+
| 2.0722 | 11.0 | 275 | 2.9189 | 0.4382 | 0.1855 |
|
64 |
+
| 1.8111 | 12.0 | 300 | 2.7873 | 0.4157 | 0.2257 |
|
65 |
+
| 1.7056 | 13.0 | 325 | 2.7584 | 0.4607 | 0.2217 |
|
66 |
+
| 1.6693 | 14.0 | 350 | 2.7394 | 0.5169 | 0.2370 |
|
67 |
+
| 1.496 | 15.0 | 375 | 2.6647 | 0.5506 | 0.2630 |
|
68 |
+
| 1.3093 | 16.0 | 400 | 2.6477 | 0.5843 | 0.2644 |
|
69 |
+
| 1.251 | 17.0 | 425 | 2.6355 | 0.6067 | 0.2654 |
|
70 |
+
| 1.1316 | 18.0 | 450 | 2.5521 | 0.6404 | 0.3000 |
|
71 |
+
| 1.049 | 19.0 | 475 | 2.5236 | 0.6404 | 0.2951 |
|
72 |
+
| 0.9441 | 20.0 | 500 | 2.5538 | 0.6404 | 0.2957 |
|
73 |
+
| 0.8752 | 21.0 | 525 | 2.5020 | 0.6742 | 0.3259 |
|
74 |
+
| 0.7623 | 22.0 | 550 | 2.4927 | 0.6966 | 0.3339 |
|
75 |
+
| 0.7938 | 23.0 | 575 | 2.4595 | 0.7079 | 0.3413 |
|
76 |
+
| 0.6321 | 24.0 | 600 | 2.4564 | 0.7079 | 0.3369 |
|
77 |
+
| 0.6245 | 25.0 | 625 | 2.4537 | 0.7191 | 0.3631 |
|
78 |
+
| 0.5502 | 26.0 | 650 | 2.4470 | 0.7416 | 0.3764 |
|
79 |
+
| 0.5805 | 27.0 | 675 | 2.4588 | 0.7528 | 0.3849 |
|
80 |
+
| 0.5042 | 28.0 | 700 | 2.4243 | 0.7640 | 0.3930 |
|
81 |
+
| 0.464 | 29.0 | 725 | 2.4051 | 0.7640 | 0.3930 |
|
82 |
+
| 0.4349 | 30.0 | 750 | 2.4361 | 0.7753 | 0.4034 |
|
83 |
+
| 0.4347 | 31.0 | 775 | 2.4062 | 0.7640 | 0.3906 |
|
84 |
+
| 0.3953 | 32.0 | 800 | 2.3939 | 0.7753 | 0.3835 |
|
85 |
+
| 0.3775 | 33.0 | 825 | 2.4091 | 0.7865 | 0.3958 |
|
86 |
+
| 0.3948 | 34.0 | 850 | 2.4018 | 0.7865 | 0.3958 |
|
87 |
+
| 0.348 | 35.0 | 875 | 2.3718 | 0.7753 | 0.3835 |
|
88 |
+
| 0.3328 | 36.0 | 900 | 2.3843 | 0.7865 | 0.3947 |
|
89 |
+
| 0.3291 | 37.0 | 925 | 2.3843 | 0.7978 | 0.3965 |
|
90 |
+
| 0.3211 | 38.0 | 950 | 2.3764 | 0.7865 | 0.3958 |
|
91 |
+
| 0.307 | 39.0 | 975 | 2.3822 | 0.7978 | 0.3975 |
|
92 |
+
| 0.3055 | 40.0 | 1000 | 2.3855 | 0.7978 | 0.3965 |
|
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": "
|
14 |
-
"1": "
|
15 |
-
"2": "
|
16 |
-
"3": "
|
17 |
-
"4": "
|
18 |
-
"5": "
|
19 |
-
"6": "
|
20 |
-
"7": "
|
21 |
-
"8": "
|
22 |
-
"9": "
|
23 |
-
"10": "
|
24 |
-
"11": "
|
25 |
-
"12": "
|
26 |
-
"13": "
|
27 |
-
"14": "
|
28 |
-
"15": "
|
29 |
-
"16": "
|
30 |
-
"17": "
|
31 |
-
"18": "
|
32 |
-
"19": "
|
33 |
-
"20": "
|
34 |
-
"21": "
|
35 |
-
"22": "
|
36 |
-
"23": "
|
37 |
-
"24": "
|
38 |
-
"25": "
|
39 |
},
|
40 |
"initializer_range": 0.02,
|
41 |
"intermediate_size": 3072,
|
42 |
"label2id": {
|
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 |
-
"
|
68 |
-
"
|
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:13:25,codecarbon,193f927f-2f36-4440-aed9-ad8565907b06,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,220.4319850918837,0.0034426589515920277,1.5617783191295982e-05,42.5,410.95217986747076,94.34468507766725,0.0026010783994230833,0.02433042140876296,0.005773809289901861,0.03270530909808791,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.371821165084839,
|
3 |
+
"eval_accuracy": 0.7752808988764045,
|
4 |
+
"eval_f1_macro": 0.38348560354374306,
|
5 |
+
"eval_runtime": 0.1883,
|
6 |
+
"eval_samples_per_second": 472.774,
|
7 |
+
"eval_steps_per_second": 15.936,
|
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 333896024
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1be26f474ce3ccfd5241a689c0ebc85ad54580057a1d5a22eca8bd448f71b344
|
3 |
size 333896024
|