Run this model with HF Jobs

Run Valen-Team/Valen-Decision-1.5-2B-ONNX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Valen-Team/Valen-Decision-1.5-2B-ONNX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Valen-Team/Valen-Decision-1.5-2B-ONNX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Valen-Team/Valen-Decision-1.5-2B-ONNX. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Valen logo

Valen-Decision-1.5-2B-ONNX

Valen-Decision-1.5-2B-ONNX helps you classify customer messages, check whether images meet your requirements, and identify actions in videos. Try Valen-Decision-1.5 instantly through our free API and web demo or the playground Space (0.8B, 2B and 4B), with no installation, model download, or GPU required. We also release the training code, so you can fine-tune Valen-Decision on your own data. The training data of Valen-Decision-1.5 is not public.

ONNX files and usage

This repository holds the ONNX Runtime export of Valen-Decision-1.5-2B: backbone, embedding, vision, decision and grounding graphs under onnx/, listed with their SHA256 in valen_onnx.json. Load it with the Valen Python SDK or JavaScript SDK; inference runs on ONNX Runtime without PyTorch or Transformers. The SDK downloads only the variant you select and reuses the cache on later runs.

Variants

Variant Use Precision Download
fp32 CPU default FP32 throughout 8.97 GB
q8-mlp Smaller CPU download 8-bit weight-only MLP layers; FP32 attention, embedding, vision and heads 6.36 GB
cuda-fp16 NVIDIA GPU through CUDAExecutionProvider FP16 backbone and embedding; FP32 vision and heads 5.20 GB

Download sizes add up the files each variant lists in valen_onnx.json, including the vision graph.

Python

python -m pip install "valen-sdk[onnx]==0.5.1"
from valen_sdk import Valen

with Valen.local("Valen-Team/Valen-Decision-1.5-2B-ONNX", variant="fp32") as client:
    result = client.decisions(input="Please send my order to my new address.", questions=[
        {"name": "change_address", "type": "predicate",
         "instructions": "Is the customer requesting a delivery address change?"},
    ])
    print(result.by_name("change_address").probability)

Use variant="q8-mlp" for the smaller CPU download.

For an NVIDIA GPU, install the CUDA extra in a separate environment and select cuda-fp16:

python -m pip install "valen-sdk[cuda]==0.5.1"
with Valen.local(
    "Valen-Team/Valen-Decision-1.5-2B-ONNX", variant="cuda-fp16",
    providers=[("CUDAExecutionProvider", {"use_tf32": "0"}), "CPUExecutionProvider"],
) as client:
    ...

JavaScript / Node.js

npm install @valen-team/sdk@0.4.0
npm install @huggingface/tokenizers@0.2.0 @huggingface/jinja@0.5.10 @huggingface/transformers@4.3.1 onnxruntime-node@1.30.0
import { Valen } from '@valen-team/sdk';

const client = await Valen.local('Valen-Team/Valen-Decision-1.5-2B-ONNX', { variant: 'fp32' });
try {
  const result = await client.decisions({
    input: 'Please send my order to my new address.',
    questions: [{ name: 'change_address', type: 'predicate',
      instructions: 'Is the customer requesting a delivery address change?' }],
  });
  console.log(result.answers[0].probability);
} finally {
  await client.close();
}

Bbox questions

A bbox question locates what its instructions describe in an image and returns bbox [x1, y1, x2, y2], point [x, y] and confidence, normalized to 0–1. The grounding graph answers it in the same request as predicate, choice and score questions: {"name": "mug", "type": "bbox", "instructions": "The blue mug.", "image": 0}. See bbox questions for a full example and measured output.

Comparison with the native model

Each variant was compared with native Valen-Decision-1.5-2B run in FP32 on CPU, from validation.json:

Variant Device Requests Result
fp32 CPU 13 Cookbook recipes (text, image, video frames), 215 numbers Decision agreement 100.00%; probability MAE 2.8e-05, max 0.00057
q8-mlp CPU 13 Cookbook recipes (text, image, video frames), 215 numbers Decision agreement 100.00%; probability MAE 0.00086, max 0.012
cuda-fp16 NVIDIA H200, CUDA Text, image and bbox requests, 44 numbers Decision agreement 100.00%; probability MAE 0.00018, max 0.001; box max 0.00022

The ONNX guide covers all sizes, variants, caching, offline use and options.

Complete application tutorials

Complete workflows are maintained in the official Cookbook: API basics, local inference basics, ticket routing, product-image screening and video tagging. Pages import executable source and include actual outputs, uncertainty policies, media provenance and licensing notes.

Valen-Decision-1.5 adds block-bidirectional attention and a bbox grounding head: one forward pass returns probabilities for predicate, choice and score questions and a box for each bbox question.

Which version should I choose?

For a first try, use the web experience or free HTTP API, which serves Valen-Decision-1.5 0.8B, 2B and 4B without downloading weights.

Valen-Decision-1.5 comes in five sizes: 0.8B, 2B, 4B, 9B and 27B. Larger sizes score higher on Decision Index (see Evaluation) and need more memory and compute. Each size is published in three formats: native weights for Transformers and fine-tuning (Valen-Decision-1.5-2B), ONNX (Valen-Decision-1.5-2B-ONNX) and GGUF for the Valen llama.cpp runtime 0.2.0 (Valen-Decision-1.5-2B-GGUF). The native weights store the backbone in BF16 and the decision and grounding heads in FP32.

Examples

Image and video decision demonstration of Valen-Decision-1.5 from the Valen repository: boxes, probabilities, choices and scores from one forward pass. Click the preview to watch the full demonstration.

Valen-Decision-1.5 demo: boxes, probabilities, choices and scores from one forward pass

Quick start

Valen supports two decision API formats: SystemOne, used by Jev, and Decisions, used by OpenAI. Both work with the same Valen model.

Start with Decisions if you are new to Valen. If your application already uses the Jev/SystemOne format, use SystemOne. The examples below include everything you need to get started.

See the Valen Transformers documentation for complete request formats, image/video inputs, and inference parameters.

Install and load

The Python example below runs locally on an NVIDIA GPU. If you prefer to skip local setup, try the free web demo or API.

python -m pip install torch torchvision transformers pillow av
import torch
from transformers import AutoModel

model = AutoModel.from_pretrained(
    "Valen-Team/Valen-Decision-1.5-2B", trust_remote_code=True,
    dtype="auto", attn_implementation="sdpa",
).to("cuda").eval()
torch.set_float32_matmul_precision("highest")
torch.backends.cudnn.allow_tf32 = False

Minimal protocol calls

After installation/loading above, verify the path with one predicate. Complete multi-question workflows and image/video tutorials are maintained in Cookbook.

result = model.predict({"input": "A cat is on the sofa.", "questions": [
    {"name": "cat", "type": "predicate", "instructions": "A cat is present."},
]})
print(result["answers"][0]["probability"])
legacy = model.predict({"state": "A cat is on the sofa.", "questions": {
    "cat": {"type": "noul", "instructions": "A cat is present."},
}})
print(legacy["answers"]["cat"]["noul"])

Cookbook Β· API

Try it free: the API

Try the interactive demo or call the free API directly. No API key is required. The free API serves Valen-Decision-1.5 under the model IDs valen-0.8b, valen-2b and valen-4b.

curl https://api.valen-team.workers.dev/v1/decisions \
  -H 'Content-Type: application/json' \
  -H 'Origin: https://valen-team.github.io' \
  -d '{
    "model": "valen-2b",
    "input": "Please send my order to my new address.",
    "questions": [{"name": "change_address", "type": "predicate",
                   "instructions": "Is the customer requesting a delivery address change?"}]
  }'

Example response (captured from the free API; timing may vary):

{
  "answers": [
    {
      "type": "predicate",
      "name": "change_address",
      "probability": 0.9964113241834551
    }
  ],
  "model": "Valen-Decision-1.5-2B",
  "model_id": "valen-2b",
  "revision": "local",
  "usage": {
    "input_tokens": 79,
    "output_tokens": 0
  },
  "internal_usage": {
    "compute_tokens": 79
  },
  "timing": {
    "total_ms": 41.4,
    "image_ms": 0.0,
    "compile_ms": 4.88,
    "forward_ms": 35.53,
    "queue_ms": 0.0
  },
  "images": []
}

The predicate result is in answers[0].probability. See the API reference for image inputs, both protocols, and available model IDs.

SGLang / vLLM deployment

Install the corresponding Valen plugin in a compatible official engine environment. Use Linux, Python 3.11+, and an NVIDIA GPU; the SGLang example uses FA3 on H100/H200-class GPUs. The two alternatives below expose /v1/systemone and /v1/decisions for text and image requests.

SGLang

python -m pip install "git+https://github.com/Valen-Team/Valen.git#subdirectory=serving/sglang"
valen-sglang --model-path Valen-Team/Valen-Decision-1.5-2B \
  --served-model-name valen --host 127.0.0.1 --port 30000 \
  --attention-backend fa3 --dtype bfloat16

vLLM

python -m pip install "git+https://github.com/Valen-Team/Valen.git#subdirectory=serving/vllm"
valen-vllm --model-path Valen-Team/Valen-Decision-1.5-2B \
  --served-model-name valen --host 127.0.0.1 --port 8000

Once the chosen server is ready, send a local request. Use port 8000 for vLLM or 30000 for SGLang:

curl http://127.0.0.1:8000/v1/decisions \
  -H 'Content-Type: application/json' \
  -d '{"model":"valen","input":"Please send my order to my new address.",
       "questions":[{"name":"change_address","type":"predicate",
                     "instructions":"Is the customer requesting a delivery address change?"}]}'

For Docker images, offline deployment kits, and complete setup instructions, see the SGLang guide and vLLM guide.

Fine-tuning

Use the complete native main revision for LoRA or full SFT, retaining the trained Mixer. Start with complete Valen-Decision-1.5-0.8B and LoRA for a small domain run; ONNX/GGUF are inference formats. Methods, data, resume and export are maintained in the website training guide; the complete executable split/train/compare recipe lives in Cookbook. A short smoke does not establish domain improvement.

Evaluation

Valen-Decision-1.5-27B compared with other decision models on Decision Index and JevalKit benchmarks

Jev Decision Index

Decision Index 0.4.1 public Text and Vision tracks, evaluated with JevalKit. These are normalized index scores (0–100), not accuracy percentages. Best scores are bold.

Model Public Text ↑ Public Vision ↑
Valen-Decision-1.5-0.8B 54.71 58.84
Valen-Decision-1.5-2B 61.89 70.54
Valen-Decision-1.5-4B 69.01 77.85
Valen-Decision-1.5-9B 70.61 79.93
Valen-Decision-1.5-27B 74.66 82.91

Per-size metrics, official scorer outputs and run manifests: Valen-Decision-Index-Results.

JevalKit

JevalKit benchmarks. Values are accuracy (%), higher is better.

Benchmark Valen-Decision-1.5-2B
JevBench 80.95
Typed Decisions 73.05
VisualDecisionBench β€” Image 83.53
VisualDecisionBench β€” Video 82.56
DecisionBench 81.90
Procedural Typed Decisions 92.20
JevAlt-Bench 91.44
zh-decision-bench 91.22

License

Apache-2.0. See LICENSE.

Citation

If you use Valen-Decision in your work, please cite this repository:

@misc{valen,
  author       = {{Valen Team}},
  title        = {Valen-Decision},
  howpublished = {GitHub - Valen-Team/Valen: A multimodal System One decision model for text, images and video.},
  note         = {GitHub repository},
  year         = {2026},
  url          = {https://github.com/Valen-Team/Valen}
}

User concepts, methods and references are maintained only on the website: Documentation Β· Probabilities.

Downloads last month
189
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Valen-Team/Valen-Decision-1.5-2B-ONNX

Finetuned
Qwen/Qwen3.5-2B
Quantized
(387)
this model

Collection including Valen-Team/Valen-Decision-1.5-2B-ONNX