Text Classification
Transformers
ONNX
Safetensors
modernbert
semantic-router
vela
text-embeddings-inference
Instructions to use vllm-sr/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 vllm-sr/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="vllm-sr/Vela-1.0-Encoder-307M-Modality")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("vllm-sr/Vela-1.0-Encoder-307M-Modality") model = AutoModelForSequenceClassification.from_pretrained("vllm-sr/Vela-1.0-Encoder-307M-Modality", device_map="auto") - Notebooks
- Google Colab
- Kaggle
docs: document Vela Modality training sources and evaluation exposure
#1
by darknight054 - opened
README.md
CHANGED
|
@@ -4,6 +4,16 @@ license: apache-2.0
|
|
| 4 |
pipeline_tag: text-classification
|
| 5 |
base_model: vllm-sr/Vela-1.0-Encoder-307M
|
| 6 |
base_model_relation: finetune
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
language:
|
| 8 |
- en
|
| 9 |
- zh
|
|
@@ -33,20 +43,40 @@ Vela Modality identifies whether a request needs text output (`AR`), image gener
|
|
| 33 |
|
| 34 |
**307M parameters · Input capacity: 32,768 tokens, including special tokens.**
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
## Evaluation
|
| 37 |
|
| 38 |
Macro F1 (×100) on the same development sets, compared with [the original mmBERT32K Modality model](https://huggingface.co/vllm-sr/mmbert32k-modality-router-merged). Higher is better.
|
| 39 |
|
| 40 |
-
| Evaluation | Original mmBERT | Vela |
|
| 41 |
-
|---|---:|---:|
|
| 42 |
-
| Short inputs · 929 | 38.40 | **81.10** |
|
| 43 |
-
| Controlled 4K context · 18 | 26.67 | **82.22** |
|
| 44 |
-
| Controlled 8K context · 18 | 26.67 | **82.22** |
|
| 45 |
-
| Controlled 16K context · 18 | 26.67 | **82.22** |
|
| 46 |
-
| Controlled 32K context · 18 | 26.67 | **82.22** |
|
| 47 |
|
| 48 |
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.
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
## Quick start
|
| 51 |
|
| 52 |
With PyTorch and Transformers 4.57.6 or 5.17.0:
|
|
|
|
| 4 |
pipeline_tag: text-classification
|
| 5 |
base_model: vllm-sr/Vela-1.0-Encoder-307M
|
| 6 |
base_model_relation: finetune
|
| 7 |
+
datasets:
|
| 8 |
+
- poloclub/diffusiondb
|
| 9 |
+
- CohereLabs/Global-MMLU
|
| 10 |
+
- CohereLabs/aya_dataset
|
| 11 |
+
# Recipe pins from the builder; no per-release training record is published.
|
| 12 |
+
dataset_revisions:
|
| 13 |
+
poloclub/diffusiondb: fb620fbe49fa4420e0734bd9c0df11f51176b61f
|
| 14 |
+
CohereLabs/Global-MMLU: 0e619dbeb34206cd48705a1a0ea7fb21cae09993
|
| 15 |
+
CohereLabs/aya_dataset: f9ea04583f02a8f86404ff6c58bf75fe637df8a2
|
| 16 |
+
dataset_provenance: recipe-derived-unconfirmed
|
| 17 |
language:
|
| 18 |
- en
|
| 19 |
- zh
|
|
|
|
| 43 |
|
| 44 |
**307M parameters · Input capacity: 32,768 tokens, including special tokens.**
|
| 45 |
|
| 46 |
+
## Training sources and provenance
|
| 47 |
+
|
| 48 |
+
The public [artifact registry](https://github.com/vllm-project/semantic-router/blob/d0de9308b0096fa606899d092ee8f2080438ca12/src/training/model_artifacts.json) associates Vela Modality with the shared `sequence_repair/train.py` trainer. The sources below are reconstructed from the [Modality data builder](https://github.com/vllm-project/semantic-router/blob/d0de9308b0096fa606899d092ee8f2080438ca12/src/training/model_classifier/modality_routing_classifier/prepare_vela_data.py), the [Modality recipe notes](https://github.com/vllm-project/semantic-router/blob/d0de9308b0096fa606899d092ee8f2080438ca12/src/training/model_classifier/modality_routing_classifier/VELA_REPAIR.md), and the [pinned source inventory](https://github.com/vllm-project/semantic-router/blob/d0de9308b0096fa606899d092ee8f2080438ca12/src/training/model_classifier/sequence_repair/data/source-files.json).
|
| 49 |
+
|
| 50 |
+
**Provenance status:** these are recipe-derived sources and revisions, pending maintainer confirmation for the released checkpoint. There is no published per-release training record establishing the exact retained rows. The custom `dataset_revisions` metadata records recipe pins; `dataset_provenance` records this qualification.
|
| 51 |
+
|
| 52 |
+
| Recipe training source | Pinned revision | Source licence | Recipe input and use | Rows used by released checkpoint |
|
| 53 |
+
|---|---|---|---|---|
|
| 54 |
+
| [poloclub/diffusiondb](https://huggingface.co/datasets/poloclub/diffusiondb/tree/fb620fbe49fa4420e0734bd9c0df11f51176b61f) | `fb620fbe49fa4420e0734bd9c0df11f51176b61f` | CC0-1.0 | Gallery caption metadata only, no images, wrapped in original output instructions written in six languages for `AR`, `DIFFUSION` and `BOTH`; captions keep their source wording and are not claimed to be translated. Contributor groups and template families are split before sampling | Not recorded publicly; confirmation needed |
|
| 55 |
+
| [CohereLabs/Global-MMLU](https://huggingface.co/datasets/CohereLabs/Global-MMLU/tree/0e619dbeb34206cd48705a1a0ea7fb21cae09993) | `0e619dbeb34206cd48705a1a0ea7fb21cae09993` | Apache-2.0 | Academic questions from the Domain corpus, used as ordinary `AR` (text-answer) examples | Not recorded publicly; confirmation needed |
|
| 56 |
+
| [CohereLabs/aya_dataset](https://huggingface.co/datasets/CohereLabs/aya_dataset/tree/f9ea04583f02a8f86404ff6c58bf75fe637df8a2) | `f9ea04583f02a8f86404ff6c58bf75fe637df8a2` | Apache-2.0 | Human-authored requests with assistant-reviewed task labels, used as ordinary `AR` examples | Not recorded publicly; confirmation needed |
|
| 57 |
+
|
| 58 |
+
The optional [output-contract extension](https://github.com/vllm-project/semantic-router/blob/d0de9308b0096fa606899d092ee8f2080438ca12/src/training/model_classifier/modality_routing_classifier/extend_contracts.py) appends train-only variants from a supplied template registry. Whether this release used it, and the registry's contents, need confirmation. Because the Global-MMLU rows come from the Domain corpus, the [Domain card's](https://huggingface.co/vllm-sr/Vela-1.0-Encoder-307M-Domain) historical-exposure screening also applies to them.
|
| 59 |
+
|
| 60 |
+
The [context recipe](https://github.com/vllm-project/semantic-router/blob/d0de9308b0096fa606899d092ee8f2080438ca12/src/training/model_classifier/sequence_repair/README.md#measure-long-context) constructs paired length/position variants around frozen source requests using authored backgrounds. Whether those training variants were used for this release, and their counts and background provenance, also need checkpoint-specific confirmation.
|
| 61 |
+
|
| 62 |
## Evaluation
|
| 63 |
|
| 64 |
Macro F1 (×100) on the same development sets, compared with [the original mmBERT32K Modality model](https://huggingface.co/vllm-sr/mmbert32k-modality-router-merged). Higher is better.
|
| 65 |
|
| 66 |
+
| Evaluation | Original mmBERT | Vela | Training-source exposure |
|
| 67 |
+
|---|---:|---:|---|
|
| 68 |
+
| Short inputs · 929 | 38.40 | **81.10** | Unconfirmed for both models |
|
| 69 |
+
| Controlled 4K context · 18 | 26.67 | **82.22** | Unconfirmed for both models |
|
| 70 |
+
| Controlled 8K context · 18 | 26.67 | **82.22** | Unconfirmed for both models |
|
| 71 |
+
| Controlled 16K context · 18 | 26.67 | **82.22** | Unconfirmed for both models |
|
| 72 |
+
| Controlled 32K context · 18 | 26.67 | **82.22** | Unconfirmed for both models |
|
| 73 |
|
| 74 |
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.
|
| 75 |
|
| 76 |
+
The exposure column concerns whether either model trained on the same source as an evaluation set. The published card does not identify the source composition of these development rows, so the column does not assert source independence or exact training-row overlap. Their use for Vela checkpoint selection is a separate, known form of exposure, as stated above.
|
| 77 |
+
|
| 78 |
+
The [original mmBERT Modality card](https://huggingface.co/vllm-sr/mmbert32k-modality-router-merged/blob/d1876038582fe13cd05c825a56ebee80337adb39/README.md#training-data) lists ten public training datasets, including `databricks/databricks-dolly-15k`. None is identified as a source of these development rows.
|
| 79 |
+
|
| 80 |
## Quick start
|
| 81 |
|
| 82 |
With PyTorch and Transformers 4.57.6 or 5.17.0:
|