Text Classification
Transformers
ONNX
Safetensors
modernbert
semantic-router
vela
text-embeddings-inference
Instructions to use llm-semantic-router/Vela-1.0-Encoder-307M-Modality with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llm-semantic-router/Vela-1.0-Encoder-307M-Modality 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-Modality")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("llm-semantic-router/Vela-1.0-Encoder-307M-Modality") model = AutoModelForSequenceClassification.from_pretrained("llm-semantic-router/Vela-1.0-Encoder-307M-Modality", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Vela Modality
Vela Modality identifies whether a request needs text output (AR), image generation (DIFFUSION), or both (BOTH).
307M parameters · Input capacity: 32,768 tokens, including special tokens.
Evaluation
Macro F1 (×100) on the same development sets, compared with the original mmBERT32K Modality model. Higher is better.
| Evaluation | Original mmBERT | Vela |
|---|---|---|
| Short inputs · 929 | 38.40 | 81.10 |
| Controlled 4K context · 18 | 26.67 | 82.22 |
| Controlled 8K context · 18 | 26.67 | 82.22 |
| Controlled 16K context · 18 | 26.67 | 82.22 |
| Controlled 32K context · 18 | 26.67 | 82.22 |
Short inputs cover six languages. Long-context evaluation uses six English/Chinese examples placed at three positions and repeated across lengths. Both models process complete inputs in FP32. These development sets informed Vela selection; they are not an independent test set.
Quick start
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-Modality"
model = pipeline("text-classification", model=model_id, device=-1)
print(model("Create a watercolor image of a lighthouse at sunset.", top_k=None, truncation=False))
- Downloads last month
- 110
Model tree for llm-semantic-router/Vela-1.0-Encoder-307M-Modality
Base model
jhu-clsp/mmBERT-baseSpace using llm-semantic-router/Vela-1.0-Encoder-307M-Modality 1
Collection including llm-semantic-router/Vela-1.0-Encoder-307M-Modality
Collection
The model family for intelligent routing. • 11 items • Updated • 12