End of training
Browse files- README.md +16 -38
- emissions.csv +1 -1
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -9,51 +9,29 @@ metrics:
|
|
| 9 |
model-index:
|
| 10 |
- name: vulnerability-severity-classification-roberta-base
|
| 11 |
results: []
|
| 12 |
-
datasets:
|
| 13 |
-
- CIRCL/vulnerability-scores
|
| 14 |
---
|
| 15 |
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# vulnerability-severity-classification-roberta-base
|
| 18 |
|
| 19 |
-
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on
|
| 20 |
-
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
-
- Loss: 0.
|
| 23 |
-
- Accuracy: 0.
|
| 24 |
|
| 25 |
## Model description
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
## How to get started with the model
|
| 31 |
-
|
| 32 |
-
```python
|
| 33 |
-
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 34 |
-
import torch
|
| 35 |
-
|
| 36 |
-
labels = ["low", "medium", "high", "critical"]
|
| 37 |
-
|
| 38 |
-
model_name = "CIRCL/vulnerability-severity-classification-roberta-base"
|
| 39 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 40 |
-
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 41 |
-
model.eval()
|
| 42 |
|
| 43 |
-
|
| 44 |
-
inputs = tokenizer(test_description, return_tensors="pt", truncation=True, padding=True)
|
| 45 |
|
| 46 |
-
|
| 47 |
-
with torch.no_grad():
|
| 48 |
-
outputs = model(**inputs)
|
| 49 |
-
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
|
| 50 |
|
|
|
|
| 51 |
|
| 52 |
-
|
| 53 |
-
print("Predictions:", predictions)
|
| 54 |
-
predicted_class = torch.argmax(predictions, dim=-1).item()
|
| 55 |
-
print("Predicted severity:", labels[predicted_class])
|
| 56 |
-
```
|
| 57 |
|
| 58 |
## Training procedure
|
| 59 |
|
|
@@ -72,11 +50,11 @@ The following hyperparameters were used during training:
|
|
| 72 |
|
| 73 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 74 |
|:-------------:|:-----:|:------:|:---------------:|:--------:|
|
| 75 |
-
| 0.
|
| 76 |
-
| 0.
|
| 77 |
-
| 0.
|
| 78 |
-
| 0.
|
| 79 |
-
| 0.
|
| 80 |
|
| 81 |
|
| 82 |
### Framework versions
|
|
@@ -84,4 +62,4 @@ The following hyperparameters were used during training:
|
|
| 84 |
- Transformers 4.49.0
|
| 85 |
- Pytorch 2.6.0+cu124
|
| 86 |
- Datasets 3.3.2
|
| 87 |
-
- Tokenizers 0.21.0
|
|
|
|
| 9 |
model-index:
|
| 10 |
- name: vulnerability-severity-classification-roberta-base
|
| 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 |
# vulnerability-severity-classification-roberta-base
|
| 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: 0.5055
|
| 22 |
+
- Accuracy: 0.8279
|
| 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 |
|
|
|
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 52 |
|:-------------:|:-----:|:------:|:---------------:|:--------:|
|
| 53 |
+
| 0.6309 | 1.0 | 25825 | 0.6348 | 0.7432 |
|
| 54 |
+
| 0.5293 | 2.0 | 51650 | 0.5614 | 0.7708 |
|
| 55 |
+
| 0.5551 | 3.0 | 77475 | 0.5202 | 0.7954 |
|
| 56 |
+
| 0.4509 | 4.0 | 103300 | 0.5038 | 0.8168 |
|
| 57 |
+
| 0.2226 | 5.0 | 129125 | 0.5055 | 0.8279 |
|
| 58 |
|
| 59 |
|
| 60 |
### Framework versions
|
|
|
|
| 62 |
- Transformers 4.49.0
|
| 63 |
- Pytorch 2.6.0+cu124
|
| 64 |
- Datasets 3.3.2
|
| 65 |
+
- Tokenizers 0.21.0
|
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-03-
|
|
|
|
| 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-03-13T12:22:26,codecarbon,bd683362-ba46-4aa3-ac20-26f10f217d73,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,22453.898297887295,0.3941647645265368,1.7554402326816636e-05,42.5,180.95528060003272,94.34470081329346,0.2648649747194387,2.8917746178622963,0.5879312872766858,3.744570879858419,Luxembourg,LUX,luxembourg,,,Linux-6.8.0-48-generic-x86_64-with-glibc2.39,3.12.3,2.8.3,64,AMD EPYC 9124 16-Core Processor,2,2 x NVIDIA L40S,6.1294,49.6113,251.58586883544922,machine,N,1.0
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 498618976
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a55c4e1960815f42e04965b354f6e82ea561e2260b20956d5f64ae078c9d7708
|
| 3 |
size 498618976
|