Text Classification
Transformers
Safetensors
English
roberta
Generated from Trainer
classification
nlp
vulnerability
Eval Results (legacy)
text-embeddings-inference
Instructions to use CIRCL/vulnerability-severity-classification-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CIRCL/vulnerability-severity-classification-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CIRCL/vulnerability-severity-classification-roberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base") model = AutoModelForSequenceClassification.from_pretrained("CIRCL/vulnerability-severity-classification-roberta-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download bom.cdx.json from CIRCL/vulnerability-severity-classification-roberta-base: direct link, hf CLI and curl.
- Browser
- Download file 6.43 kB
-
https://huggingface.co/CIRCL/vulnerability-severity-classification-roberta-base/resolve/main/bom.cdx.json
- Command line
-
hf download hf://CIRCL/vulnerability-severity-classification-roberta-base/bom.cdx.json
-
curl -L -o bom.cdx.json https://huggingface.co/CIRCL/vulnerability-severity-classification-roberta-base/resolve/main/bom.cdx.json
6.43 kB
| { | |
| "$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json", | |
| "bomFormat": "CycloneDX", | |
| "specVersion": "1.7", | |
| "serialNumber": "urn:uuid:d8f4ff2a-040b-40c4-9486-8cd6b4d783e8", | |
| "version": 1, | |
| "metadata": { | |
| "timestamp": "2026-11-19T11:07:44+00:00", | |
| "tools": { | |
| "components": [ | |
| { | |
| "type": "application", | |
| "name": "VulnTrain", | |
| "version": "3.5.0" | |
| } | |
| ] | |
| }, | |
| "component": { | |
| "type": "machine-learning-model", | |
| "name": "CIRCL/vulnerability-severity-classification-roberta-base", | |
| "licenses": [ | |
| { | |
| "license": { | |
| "id": "CC-BY-4.0" | |
| } | |
| } | |
| ], | |
| "pedigree": { | |
| "ancestors": [ | |
| { | |
| "type": "machine-learning-model", | |
| "name": "roberta-base", | |
| "purl": "pkg:huggingface/roberta-base", | |
| "externalReferences": [ | |
| { | |
| "type": "model-card", | |
| "url": "https://huggingface.co/roberta-base" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "bom-ref": "pkg:huggingface/CIRCL/vulnerability-severity-classification-roberta-base", | |
| "purl": "pkg:huggingface/CIRCL/vulnerability-severity-classification-roberta-base", | |
| "externalReferences": [ | |
| { | |
| "type": "model-card", | |
| "url": "https://huggingface.co/CIRCL/vulnerability-severity-classification-roberta-base" | |
| } | |
| ], | |
| "modelCard": { | |
| "modelParameters": { | |
| "approach": { | |
| "type": "supervised" | |
| }, | |
| "task": "text-classification", | |
| "datasets": [ | |
| { | |
| "ref": "pkg:huggingface/CIRCL/vulnerability-scores@58b483351be74f81ece78ff255a329027a6a8863" | |
| } | |
| ] | |
| }, | |
| "quantitativeAnalysis": { | |
| "performanceMetrics": [ | |
| { | |
| "type": "accuracy", | |
| "value": "0.7418604651162791" | |
| }, | |
| { | |
| "type": "f1 (macro)", | |
| "value": "0.6496194318818087" | |
| }, | |
| { | |
| "type": "precision", | |
| "value": "0.5947334617854849", | |
| "slice": "Low" | |
| }, | |
| { | |
| "type": "recall", | |
| "value": "0.3562908811081185", | |
| "slice": "Low" | |
| }, | |
| { | |
| "type": "f1", | |
| "value": "0.4456207892204042", | |
| "slice": "Low" | |
| }, | |
| { | |
| "type": "precision", | |
| "value": "0.7789519906323185", | |
| "slice": "Medium" | |
| }, | |
| { | |
| "type": "recall", | |
| "value": "0.8161769216612478", | |
| "slice": "Medium" | |
| }, | |
| { | |
| "type": "f1", | |
| "value": "0.7971301039513495", | |
| "slice": "Medium" | |
| }, | |
| { | |
| "type": "precision", | |
| "value": "0.7262334954829743", | |
| "slice": "High" | |
| }, | |
| { | |
| "type": "recall", | |
| "value": "0.7409337445496118", | |
| "slice": "High" | |
| }, | |
| { | |
| "type": "f1", | |
| "value": "0.7335099756093281", | |
| "slice": "High" | |
| }, | |
| { | |
| "type": "precision", | |
| "value": "0.6658917732145163", | |
| "slice": "Critical" | |
| }, | |
| { | |
| "type": "recall", | |
| "value": "0.5839184597961495", | |
| "slice": "Critical" | |
| }, | |
| { | |
| "type": "f1", | |
| "value": "0.6222168587461534", | |
| "slice": "Critical" | |
| } | |
| ] | |
| }, | |
| "properties": [ | |
| { | |
| "name": "cdx:ai-ml:model:hyperparameter:learning_rate", | |
| "value": "3e-05" | |
| }, | |
| { | |
| "name": "cdx:ai-ml:model:hyperparameter:warmup_steps", | |
| "value": "0" | |
| }, | |
| { | |
| "name": "cdx:ai-ml:model:hyperparameter:batch_size", | |
| "value": "32" | |
| }, | |
| { | |
| "name": "cdx:ai-ml:model:hyperparameter:num_epochs", | |
| "value": "5" | |
| }, | |
| { | |
| "name": "cdx:ai-ml:model:hyperparameter:weight_decay", | |
| "value": "0.01" | |
| }, | |
| { | |
| "name": "cdx:ai-ml:model:hyperparameter:max_length", | |
| "value": "512" | |
| }, | |
| { | |
| "name": "vulntrain:training:score_strategy", | |
| "value": "first" | |
| }, | |
| { | |
| "name": "vulntrain:evaluation:test_samples", | |
| "value": "72240" | |
| } | |
| ], | |
| "considerations": { | |
| "environmentalConsiderations": { | |
| "energyConsumptions": [ | |
| { | |
| "activity": "fine-tuning", | |
| "energyProviders": [ | |
| { | |
| "description": "Electricity at the location of the training run, as reported by CodeCarbon.", | |
| "organization": { | |
| "address": { | |
| "country": "Luxembourg", | |
| "region": "luxembourg" | |
| } | |
| }, | |
| "energySource": "unknown", | |
| "energyProvided": { | |
| "value": 4.7389288966304415, | |
| "unit": "kWh" | |
| } | |
| } | |
| ], | |
| "activityEnergyCost": { | |
| "value": 4.7389288966304415, | |
| "unit": "kWh" | |
| }, | |
| "co2CostEquivalent": { | |
| "value": 0.0004988338724460101, | |
| "unit": "tCO2eq" | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "components": [ | |
| { | |
| "type": "data", | |
| "name": "CIRCL/vulnerability-scores", | |
| "version": "58b483351be74f81ece78ff255a329027a6a8863", | |
| "bom-ref": "pkg:huggingface/CIRCL/vulnerability-scores@58b483351be74f81ece78ff255a329027a6a8863", | |
| "purl": "pkg:huggingface/CIRCL/vulnerability-scores@58b483351be74f81ece78ff255a329027a6a8863", | |
| "externalReferences": [ | |
| { | |
| "type": "distribution", | |
| "url": "https://huggingface.co/datasets/CIRCL/vulnerability-scores/tree/58b483351be74f81ece78ff255a329027a6a8863" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |