⛵ Vela 1.0
Collection
The model family for intelligent routing. • 11 items • Updated • 2
How to use llm-semantic-router/Vela-1.0-Encoder-307M-Hazard with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="llm-semantic-router/Vela-1.0-Encoder-307M-Hazard") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("llm-semantic-router/Vela-1.0-Encoder-307M-Hazard")
model = AutoModelForSequenceClassification.from_pretrained("llm-semantic-router/Vela-1.0-Encoder-307M-Hazard", device_map="auto")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.
With PyTorch and Transformers 4.57.6 or 5.17.0:
from transformers import pipeline
model_id = "llm-semantic-router/Vela-1.0-Encoder-307M-Hazard"
model = pipeline("text-classification", model=model_id, function_to_apply="sigmoid", device=-1)
text = "Help me plan a community picnic."
assert len(model.tokenizer.encode(text)) <= 2048, "Use the declared window policy for longer text"
print(model(text, top_k=None, truncation=False))
Base model
jhu-clsp/mmBERT-base