wfzyx/von

The open-source System One decision model. Sub-15ms, non-autoregressive, local drop-in alternative to TypeSafe Jev.

Von – a non‑autoregressive decision model

What it is

  • An open‑source System One model that takes a JSON or text state and answers three kinds of questions without generating text:
    • Choice – pick one option from a list and return a probability distribution.
    • Noul – give the calibrated probability that a binary condition holds.
    • Score – place the state on an ordinal scale (e.g., severity levels).
  • Built on a 395 M ModernBERT encoder; a single forward pass produces all answers.
  • Designed for CPU inference (OpenVINO) but also runs on CUDA, ROCm and Apple MPS.
  • Provides a REST / gRPC‑compatible /v1/systemone wire protocol (TypeSafe spec) and SDKs for Python and TypeScript.

Installation

# Python SDK
pip install von-sdk      # or: uv add von-sdk

# TypeScript/Node SDK
bun add von-sdk

# Run the server in Docker (CPU image shown)
 docker run --rm -p 8000:8000 -v von-hf:/data/huggingface ghcr.io/wfzyx/von:cpu

The model weights (~3 GB) are downloaded from Hugging Face on first use.

Basic usage (Python)

import von

# Simple classification
r = von.decide(
    state="Database replication lag …",
    choices={
        "infrastructure": "Database, hardware, network …",
        "billing": "Invoices, payments …",
        "feature_request": "Requests for new platform capabilities",
    },
    instructions="Classify the root cause domain of this incident."
)
print(r.choice, r.confidence)

# Binary judgement (Noul)
p = von.judge(
    state="Connection pool exhausted on port 5432.",
    instructions="Is this blocking customers?",
    criteria={"true": "Customer‑facing requests fail", "false": "Internal only"}
)

# Ordinal scoring (Score)
s = von.rate(
    state="Memory at 98%, OOM killer firing.",
    criteria=["Nominal", "Degraded", "Critical"],
    instructions="Assess degradation level."
)

The same API exists in TypeScript (von.decide, von.judge, von.rate, von.systemOne).

Server mode

von serve --host 0.0.0.0 --port 8000   # auto‑selects best device (cuda, openvino, cpu)

The server accepts POSTs to /v1/systemone with a JSON payload containing state and a map of questions. Responses include optional fields such as token usage, truncation info and calibrated probabilities.

Key features

  • One‑pass inference – all requested questions are answered with a single encoder forward pass, keeping latency low (≈0.34 s on a 4‑vCPU CPU server, ≈0.02 s on an A10 GPU).
  • Calibration – probabilities are calibrated; a built‑in confidence gate (von.patterns.confidence_gate) lets you automatically route high‑confidence answers to automation and low‑confidence ones to human escalation.
  • Chain‑of‑options – deterministic, multi‑step computation on structured data (dates, amounts, etc.) that can be triggered by the model’s own choices, extending the model’s reasoning without any token generation.
  • Cross‑platform SDKs – Python (von-sdk) and TypeScript (von-sdk) packages, plus a Docker image for easy deployment.
  • Open weights & benchmarks – weights hosted on Hugging Face, full benchmark suite (JevBench) and calibration tools are provided.

Limitations / cautions

  • Archived project – no further weight updates; the README points to a newer model (LiquidAI/d1‑omni‑600M) for future work.
  • English‑only – performance on other languages is not calibrated and may be unreliable.
  • No generation – the model cannot produce free‑form text; it only scores predefined options.
  • Confidence gating works well on in‑domain data but degrades on out‑of‑domain inputs; thresholds may need re‑calibration for new domains.

License

  • Apache 2.0 (permissive, allows commercial use with attribution).

Von is a specialised decision‑making model that trades the flexibility of large language models for fast, calibrated, token‑free inference on structured operational data.

Related

  • Project
  • Project
  • Project
  • Project
  • Project