Downloads · 30 days
10
14% of all-time downloads
eromang/cyberscale-contextual-v1
cyberscale-contextual-v1 is a text classification model from eromang. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
NIS2 context-aware vulnerability severity classifier. Takes a CVE description, deployment sector, cross-border status, and CVSS score — produces a contextual severity (Critical/High/Medium/Low) that accounts for regul…
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
71
Public
Parameters
150M
1.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors598 MB · 99%
From the Hugging Face model README
NIS2 context-aware vulnerability severity classifier. Takes a CVE description, deployment sector, cross-border status, and CVSS score — produces a contextual severity (Critical/High/Medium/Low) that accounts for regulatory sector impact.
Assess contextual severity of vulnerabilities in specific deployment contexts. A Critical CVSS vulnerability in a non-regulated small business may be Medium contextually, while a Medium CVSS vulnerability in cross-border healthcare infrastructure may be High.
Input format: <description> [SEP] sector: <sector_id> cross_border: <true|false> score: <cvss_score>
| Metric | Value |
|---|---|
| Accuracy | 0.8171 |
| Macro F1 | 0.8148 |
| All 19 sectors | > 71% |
| Metric | Value |
|---|---|
| Accuracy | 88.0% |
| Delta vs Variant F (80.7%) | +7.3pp |
| NIS2 sectors | > 94% |
| Non-NIS2 | 65.3% |
banking, chemicals, digital_infrastructure, digital_providers, drinking_water, energy, financial_market, food, health, ict_service_management, manufacturing, non_nis2, postal, public_administration, research, space, transport, waste_management, waste_water
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model = AutoModelForSequenceClassification.from_pretrained("eromang/cyberscale-contextual-v1", num_labels=4)
tokenizer = AutoTokenizer.from_pretrained("eromang/cyberscale-contextual-v1")
text = "SQL injection in login form [SEP] sector: health cross_border: true score: 7.5"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=192)
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1)
label = ["Low", "Medium", "High", "Critical"][probs.argmax().item()]
print(f"Contextual severity: {label}")
Part of the CyberScale project — multi-phase cyber severity assessment MCP server.