Text Classification
Transformers
PyTorch
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use CIRCL/cwe-parent-vulnerability-classification-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CIRCL/cwe-parent-vulnerability-classification-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CIRCL/cwe-parent-vulnerability-classification-roberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CIRCL/cwe-parent-vulnerability-classification-roberta-base") model = AutoModelForSequenceClassification.from_pretrained("CIRCL/cwe-parent-vulnerability-classification-roberta-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +23 -23
- emissions.csv +1 -1
- metrics.json +6 -6
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -18,9 +18,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss:
|
| 22 |
-
- Accuracy: 0.
|
| 23 |
-
- F1 Macro: 0.
|
| 24 |
|
| 25 |
## Model description
|
| 26 |
|
|
@@ -51,26 +51,26 @@ The following hyperparameters were used during training:
|
|
| 51 |
|
| 52 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
|
| 53 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
|
| 54 |
-
|
|
| 55 |
-
|
|
| 56 |
-
|
|
| 57 |
-
|
|
| 58 |
-
|
|
| 59 |
-
|
|
| 60 |
-
|
|
| 61 |
-
|
|
| 62 |
-
|
|
| 63 |
-
|
|
| 64 |
-
|
|
| 65 |
-
|
|
| 66 |
-
|
|
| 67 |
-
|
|
| 68 |
-
|
|
| 69 |
-
|
|
| 70 |
-
|
|
| 71 |
-
|
|
| 72 |
-
|
|
| 73 |
-
|
|
| 74 |
|
| 75 |
|
| 76 |
### Framework versions
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 2.5988
|
| 22 |
+
- Accuracy: 0.3182
|
| 23 |
+
- F1 Macro: 0.1707
|
| 24 |
|
| 25 |
## Model description
|
| 26 |
|
|
|
|
| 51 |
|
| 52 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
|
| 53 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
|
| 54 |
+
| 3.2528 | 1.0 | 25 | 3.1958 | 0.0455 | 0.0197 |
|
| 55 |
+
| 3.2113 | 2.0 | 50 | 3.0752 | 0.2386 | 0.0357 |
|
| 56 |
+
| 3.1771 | 3.0 | 75 | 3.0165 | 0.0227 | 0.0081 |
|
| 57 |
+
| 3.0745 | 4.0 | 100 | 2.9425 | 0.2273 | 0.0405 |
|
| 58 |
+
| 2.9997 | 5.0 | 125 | 2.9253 | 0.0795 | 0.0297 |
|
| 59 |
+
| 2.9151 | 6.0 | 150 | 2.8506 | 0.0909 | 0.0431 |
|
| 60 |
+
| 2.9761 | 7.0 | 175 | 2.8454 | 0.0909 | 0.1235 |
|
| 61 |
+
| 2.8761 | 8.0 | 200 | 2.7837 | 0.1591 | 0.1007 |
|
| 62 |
+
| 2.7663 | 9.0 | 225 | 2.7488 | 0.1591 | 0.0946 |
|
| 63 |
+
| 2.7299 | 10.0 | 250 | 2.7796 | 0.1477 | 0.0999 |
|
| 64 |
+
| 2.6949 | 11.0 | 275 | 2.7037 | 0.1818 | 0.1088 |
|
| 65 |
+
| 2.5703 | 12.0 | 300 | 2.7002 | 0.2045 | 0.0777 |
|
| 66 |
+
| 2.5374 | 13.0 | 325 | 2.6686 | 0.2045 | 0.1308 |
|
| 67 |
+
| 2.5131 | 14.0 | 350 | 2.6344 | 0.2045 | 0.1121 |
|
| 68 |
+
| 2.4212 | 15.0 | 375 | 2.6382 | 0.2727 | 0.1393 |
|
| 69 |
+
| 2.3231 | 16.0 | 400 | 2.6272 | 0.2614 | 0.1486 |
|
| 70 |
+
| 2.308 | 17.0 | 425 | 2.6080 | 0.3068 | 0.1765 |
|
| 71 |
+
| 2.3126 | 18.0 | 450 | 2.5988 | 0.3182 | 0.1707 |
|
| 72 |
+
| 2.2665 | 19.0 | 475 | 2.6008 | 0.2841 | 0.1674 |
|
| 73 |
+
| 2.2381 | 20.0 | 500 | 2.6006 | 0.2841 | 0.1690 |
|
| 74 |
|
| 75 |
|
| 76 |
### Framework versions
|
emissions.csv
CHANGED
|
@@ -1,2 +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-08-
|
|
|
|
| 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-08-29T14:52:24,codecarbon,ec3b29cc-c4db-458c-8bda-7ba02525fe0d,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,182.0990159730427,0.003006492287000519,1.651020611470844e-05,42.5,212.78392015285954,94.34468507766725,0.0021485755119472743,0.021645753983250415,0.004767390073886594,0.028561719569084282,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
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
-
"eval_loss":
|
| 3 |
-
"eval_accuracy": 0.
|
| 4 |
-
"eval_f1_macro": 0.
|
| 5 |
-
"eval_runtime": 0.
|
| 6 |
-
"eval_samples_per_second":
|
| 7 |
-
"eval_steps_per_second": 9.
|
| 8 |
"epoch": 20.0
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"eval_loss": 2.5988330841064453,
|
| 3 |
+
"eval_accuracy": 0.3181818181818182,
|
| 4 |
+
"eval_f1_macro": 0.17071418836420613,
|
| 5 |
+
"eval_runtime": 0.3006,
|
| 6 |
+
"eval_samples_per_second": 292.793,
|
| 7 |
+
"eval_steps_per_second": 9.982,
|
| 8 |
"epoch": 20.0
|
| 9 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 498686648
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:219551675c68f263a2cbf819d2de9310a9a1997f6ea107c7579f56b4ab765c27
|
| 3 |
size 498686648
|