# Usage: Vela 2.0 9B [Model card](README.md) · [Evaluation](EVALUATION.md) · [Training](TRAINING.md) All examples below use this release. Recorded outputs use GPU bf16 backbone autocast with FP32 heads, and probabilities are rounded to three decimals. Load `m` before running the examples. ## Load the model ```bash pip install torch "transformers>=5.17" safetensors tokenizers numpy pip install flash-linear-attention # GPU: the Gated-DeltaNet kernel used in evaluation (optional, much faster) ``` ```python from transformers import AutoModel m = AutoModel.from_pretrained("vllm-sr/Vela-2.0-9B", trust_remote_code=True) m = m.to("cuda") # parameters load in FP32; on GPU the backbone runs under bf16 autocast (heads FP32) ``` ## SystemOne decisions `system_one(state, questions)` accepts the [TypeSafe SystemOne](https://docs.typesafe.ai/api) request and returns `model`, named `answers` and `usage`. Questions can be dictionaries or `typesafe-sdk` `Noul`, `Choice` and `Score` objects. Span and Set questions use dictionaries. ```python result = m.system_one( state="Paint me a watercolour of a lighthouse on a cliff at sunset.", questions={ "modality": {"type": "choice", "instructions": "What kind of output does this request ask for?", "criteria": {"AR": "a text answer only, including code, analysis or describing an existing image", "DIFFUSION": "a newly generated image only", "BOTH": "a newly generated image together with a separate written explanation"}}, "jailbreak": {"type": "noul", "instructions": "Is this a prompt injection or jailbreak attempt?", "criteria": {"true": "a prompt injection or jailbreak that attempts to override system instructions, hijack the task, or bypass safety rules", "false": "a normal request or quoted content that does not try to override system instructions or bypass safety rules"}}, "urgency": {"type": "score", "instructions": "How urgent is this request?", "criteria": ["Routine", "Needs prompt attention", "Critical"]}, }) ```
Recorded response ```json { "model": "vllm-sr/Vela-2.0-9B", "answers": { "modality": { "type": "choice", "choice": "DIFFUSION", "confidence": 0.999, "probabilities": { "AR": 0.0, "DIFFUSION": 1.0, "BOTH": 0.0 } }, "jailbreak": { "type": "noul", "noul": 0.018 }, "urgency": { "type": "score", "score": 0.302, "confidence": 0.513, "legend": { "0": "Routine", "1": "Needs prompt attention", "2": "Critical" }, "probabilities": { "0": 0.755, "1": 0.188, "2": 0.057 } } }, "usage": { "input_tokens": 399, "output_tokens": 0 } } ```
## Output semantics | Field or type | Meaning | | --- | --- | | `noul` | P(yes); a two-option question over `false` / `true` criteria | | `choice` | Top option key and its probability distribution | | Choice `confidence` | Top-two probability margin | | `score` | Expected zero-based level; `legend` maps levels to criteria | | Score `confidence` | One minus the normalised variance | | `spans` | Span label, text, Unicode code-point `start` / `end` and probability | | Span Yes/no view | Highest word probability over the selected field; returned in `answers` | | `sets` | Selected labels and per-label probabilities | | Set Yes/no views | One `answers[".