CIRCL/cwe-parent-vulnerability-classification-bert-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: bert-base-uncased
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: cwe-parent-vulnerability-classification-bert-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-bert-base-uncased
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 2.9385
|
| 22 |
+
- Accuracy: 0.4270
|
| 23 |
+
- F1 Macro: 0.2048
|
| 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.2751 | 1.0 | 25 | 3.3057 | 0.0112 | 0.0019 |
|
| 55 |
+
| 3.1518 | 2.0 | 50 | 3.1378 | 0.0449 | 0.0337 |
|
| 56 |
+
| 3.0997 | 3.0 | 75 | 3.2138 | 0.0674 | 0.0376 |
|
| 57 |
+
| 2.9858 | 4.0 | 100 | 3.1921 | 0.1348 | 0.0806 |
|
| 58 |
+
| 2.9764 | 5.0 | 125 | 3.1470 | 0.2584 | 0.1308 |
|
| 59 |
+
| 2.8564 | 6.0 | 150 | 3.2075 | 0.3708 | 0.1465 |
|
| 60 |
+
| 2.8474 | 7.0 | 175 | 3.1799 | 0.3596 | 0.1653 |
|
| 61 |
+
| 2.7354 | 8.0 | 200 | 3.1618 | 0.3483 | 0.1412 |
|
| 62 |
+
| 2.6452 | 9.0 | 225 | 3.1248 | 0.3258 | 0.1531 |
|
| 63 |
+
| 2.5802 | 10.0 | 250 | 3.1154 | 0.3371 | 0.1488 |
|
| 64 |
+
| 2.5078 | 11.0 | 275 | 3.1547 | 0.3820 | 0.1712 |
|
| 65 |
+
| 2.4203 | 12.0 | 300 | 3.1410 | 0.3483 | 0.1549 |
|
| 66 |
+
| 2.3624 | 13.0 | 325 | 3.1409 | 0.4045 | 0.1776 |
|
| 67 |
+
| 2.3642 | 14.0 | 350 | 3.0964 | 0.2809 | 0.1496 |
|
| 68 |
+
| 2.2259 | 15.0 | 375 | 3.0960 | 0.3708 | 0.1904 |
|
| 69 |
+
| 2.1874 | 16.0 | 400 | 3.0170 | 0.3146 | 0.1653 |
|
| 70 |
+
| 2.15 | 17.0 | 425 | 3.0944 | 0.3146 | 0.1452 |
|
| 71 |
+
| 2.1051 | 18.0 | 450 | 3.0225 | 0.3258 | 0.1807 |
|
| 72 |
+
| 1.988 | 19.0 | 475 | 3.0687 | 0.3820 | 0.1539 |
|
| 73 |
+
| 1.9716 | 20.0 | 500 | 3.0054 | 0.3820 | 0.1675 |
|
| 74 |
+
| 1.9034 | 21.0 | 525 | 2.9834 | 0.3820 | 0.1985 |
|
| 75 |
+
| 1.8538 | 22.0 | 550 | 3.0251 | 0.3933 | 0.1942 |
|
| 76 |
+
| 1.8294 | 23.0 | 575 | 3.0231 | 0.3708 | 0.1579 |
|
| 77 |
+
| 1.7436 | 24.0 | 600 | 2.9719 | 0.4045 | 0.1976 |
|
| 78 |
+
| 1.7088 | 25.0 | 625 | 2.9701 | 0.4157 | 0.2138 |
|
| 79 |
+
| 1.7028 | 26.0 | 650 | 2.9724 | 0.4607 | 0.2250 |
|
| 80 |
+
| 1.6962 | 27.0 | 675 | 2.9385 | 0.4270 | 0.2048 |
|
| 81 |
+
| 1.5973 | 28.0 | 700 | 2.9636 | 0.4494 | 0.1904 |
|
| 82 |
+
| 1.5754 | 29.0 | 725 | 2.9441 | 0.5393 | 0.2116 |
|
| 83 |
+
| 1.5279 | 30.0 | 750 | 2.9785 | 0.5506 | 0.2373 |
|
| 84 |
+
| 1.5802 | 31.0 | 775 | 2.9711 | 0.5618 | 0.2346 |
|
| 85 |
+
| 1.4479 | 32.0 | 800 | 2.9884 | 0.5730 | 0.2335 |
|
| 86 |
+
| 1.484 | 33.0 | 825 | 3.0117 | 0.5730 | 0.2550 |
|
| 87 |
+
| 1.4243 | 34.0 | 850 | 2.9759 | 0.5843 | 0.2408 |
|
| 88 |
+
| 1.4473 | 35.0 | 875 | 2.9626 | 0.5955 | 0.2692 |
|
| 89 |
+
| 1.3875 | 36.0 | 900 | 2.9673 | 0.5843 | 0.2342 |
|
| 90 |
+
| 1.4214 | 37.0 | 925 | 2.9887 | 0.5843 | 0.2564 |
|
| 91 |
+
| 1.373 | 38.0 | 950 | 2.9894 | 0.6067 | 0.2728 |
|
| 92 |
+
| 1.3472 | 39.0 | 975 | 2.9805 | 0.5730 | 0.2311 |
|
| 93 |
+
| 1.336 | 40.0 | 1000 | 2.9836 | 0.5843 | 0.2439 |
|
| 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
|
@@ -9,62 +9,62 @@
|
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
-
"3": "
|
| 16 |
-
"4": "
|
| 17 |
-
"5": "
|
| 18 |
-
"6": "
|
| 19 |
-
"7": "
|
| 20 |
-
"8": "
|
| 21 |
-
"9": "
|
| 22 |
-
"10": "
|
| 23 |
-
"11": "
|
| 24 |
-
"12": "
|
| 25 |
-
"13": "
|
| 26 |
-
"14": "
|
| 27 |
-
"15": "
|
| 28 |
-
"16": "
|
| 29 |
-
"17": "
|
| 30 |
-
"18": "
|
| 31 |
-
"19": "
|
| 32 |
-
"20": "
|
| 33 |
-
"21": "
|
| 34 |
-
"22": "
|
| 35 |
-
"23": "
|
| 36 |
-
"24": "
|
| 37 |
-
"25": "
|
| 38 |
},
|
| 39 |
"initializer_range": 0.02,
|
| 40 |
"intermediate_size": 3072,
|
| 41 |
"label2id": {
|
| 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 |
-
"
|
| 68 |
},
|
| 69 |
"layer_norm_eps": 1e-12,
|
| 70 |
"max_position_embeddings": 512,
|
|
|
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 768,
|
| 11 |
"id2label": {
|
| 12 |
+
"0": "1025",
|
| 13 |
+
"1": "1071",
|
| 14 |
+
"2": "131",
|
| 15 |
+
"3": "138",
|
| 16 |
+
"4": "284",
|
| 17 |
+
"5": "285",
|
| 18 |
+
"6": "435",
|
| 19 |
+
"7": "436",
|
| 20 |
+
"8": "595",
|
| 21 |
+
"9": "657",
|
| 22 |
+
"10": "664",
|
| 23 |
+
"11": "682",
|
| 24 |
+
"12": "684",
|
| 25 |
+
"13": "691",
|
| 26 |
+
"14": "693",
|
| 27 |
+
"15": "697",
|
| 28 |
+
"16": "703",
|
| 29 |
+
"17": "706",
|
| 30 |
+
"18": "707",
|
| 31 |
+
"19": "710",
|
| 32 |
+
"20": "74",
|
| 33 |
+
"21": "754",
|
| 34 |
+
"22": "829",
|
| 35 |
+
"23": "862",
|
| 36 |
+
"24": "913",
|
| 37 |
+
"25": "94"
|
| 38 |
},
|
| 39 |
"initializer_range": 0.02,
|
| 40 |
"intermediate_size": 3072,
|
| 41 |
"label2id": {
|
| 42 |
+
"1025": 0,
|
| 43 |
+
"1071": 1,
|
| 44 |
+
"131": 2,
|
| 45 |
+
"138": 3,
|
| 46 |
+
"284": 4,
|
| 47 |
+
"285": 5,
|
| 48 |
+
"435": 6,
|
| 49 |
+
"436": 7,
|
| 50 |
+
"595": 8,
|
| 51 |
+
"657": 9,
|
| 52 |
+
"664": 10,
|
| 53 |
+
"682": 11,
|
| 54 |
+
"684": 12,
|
| 55 |
+
"691": 13,
|
| 56 |
+
"693": 14,
|
| 57 |
+
"697": 15,
|
| 58 |
+
"703": 16,
|
| 59 |
+
"706": 17,
|
| 60 |
+
"707": 18,
|
| 61 |
+
"710": 19,
|
| 62 |
+
"74": 20,
|
| 63 |
+
"754": 21,
|
| 64 |
+
"829": 22,
|
| 65 |
+
"862": 23,
|
| 66 |
+
"913": 24,
|
| 67 |
+
"94": 25
|
| 68 |
},
|
| 69 |
"layer_norm_eps": 1e-12,
|
| 70 |
"max_position_embeddings": 512,
|
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:44:15,codecarbon,e223fd7a-695a-4203-b04b-c12e5b394872,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,371.78134503099136,0.006129368180714177,1.6486486647691367e-05,42.5,332.9863602842321,94.34468507766725,0.00438576165376548,0.044108631120195696,0.009734692286451092,0.058229085060412265,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.938542127609253,
|
| 3 |
+
"eval_accuracy": 0.42696629213483145,
|
| 4 |
+
"eval_f1_macro": 0.20475524132174594,
|
| 5 |
+
"eval_runtime": 0.3212,
|
| 6 |
+
"eval_samples_per_second": 277.068,
|
| 7 |
+
"eval_steps_per_second": 9.339,
|
| 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 438032472
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6aa637f3088b0cfc71f41349f6432706b528991a5aa1605fcc91412b2bc715cf
|
| 3 |
size 438032472
|