Vela Hazard

Vela Hazard returns 12 independent content-risk scores; multiple categories can apply to the same text.

307M parameters · Input capacity: 32,768 tokens, including special tokens.

Use independent sigmoid scores, not softmax. For decisions and longer text, follow operating_point.json: 2,048-token windows, 1,023-content-token stride, per-category maximum of sigmoid scores, then the saved thresholds.

Evaluation

Compared on 57 development requests across five shared risk categories: self-harm, hate, specialized advice, privacy, and misinformation. Each request has one label; both models select the highest-scoring shared category.

Metric (%) Original mmBERT Vela Hazard
Five-category macro F1 65.12 96.73
Five-category accuracy 61.40 98.25
Macro average precision 90.96 91.27

The comparison covers 39 request families and uses the original model’s declared mmBERT base. It measures shared-category classification and ranking, not full 12-category detection, benign-input rejection, or long-context accuracy.

Quick start

With PyTorch and Transformers 4.57.6 or 5.17.0:

from transformers import pipeline

model_id = "vllm-sr/Vela-1.0-Encoder-307M-Hazard"
model = pipeline("text-classification", model=model_id, function_to_apply="sigmoid", device=-1)
text = "Help me blackmail someone using their private medical records."
assert len(model.tokenizer.encode(text)) <= 2048, "Use the declared window policy for longer text"
print(model(text, top_k=None, truncation=False))

Explore the Vela model collection

Downloads last month
339
Safetensors
Model size
0.3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for vllm-sr/Vela-1.0-Encoder-307M-Hazard

Finetuned
(15)
this model
Finetunes
1 model

Space using vllm-sr/Vela-1.0-Encoder-307M-Hazard 1

Collection including vllm-sr/Vela-1.0-Encoder-307M-Hazard