Skip to main content

vera-s1

Python package and Jev-compatible HTTP server for the vera System One decision models: vera-spark (~630M, compact), vera-core (~2B), vera-core-2 (~2B), vera-medium-omni (~4.5B, text and images), vera-large (~26B, GPU only) and vera-large-2o (~26B, text and images, GPU only).

Give a vera model a state (text or JSON) and typed questions; it returns typed answers with calibrated probabilities in one forward pass. It never generates text.

pip install vera-s1            # add [fast] for flash-linear-attention (faster vera-core on GPU)
import vera

agent = vera.load("scar-ai/vera-spark")       # or "scar-ai/vera-core", "scar-ai/vera-core-2", "scar-ai/vera-large", ...
result = agent.predict(
    "Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan.",
    {"department": {"type": "choice", "instructions": "Which department should handle this?",
                    "criteria": {"billing": "invoices, payments, refunds", "technical": "bugs, outages",
                                 "other": "everything else"}},
     "churn_risk": {"type": "noul", "instructions": "Does the user threaten to cancel or leave?"}})
print(result["answers"])

Question types: choice (2 to 255 options), score (2 to 10 ordered levels) and noul (yes/no probability).

Images (vera-medium-omni, vera-large-2o)

omni = vera.load("scar-ai/vera-medium-omni")          # or "scar-ai/vera-large-2o"
result = omni.predict("Return request from a customer.",
                      {"damaged": {"type": "noul", "instructions": "Is the product visibly damaged?"}},
                      images=["photo.jpg"])          # PIL images, paths, URLs, data URIs or base64

Images are read after the state's text (tagged Image:, or Image 1:, Image 2:, ...), resized to at most 1.6 MP, up to 16 per request, and encoded once for all the request's questions. Over HTTP, add "images": [...] (base64 data URIs; URLs only with vera-serve --allow-image-urls; server-side paths are never read). Text-only models refuse images.

HTTP server

vera-serve --model scar-ai/vera-core --port 8200
curl -s localhost:8200/v1/systemone -H 'Content-Type: application/json' -d '{
  "state": "I was charged twice. Please fix this ASAP.",
  "questions": {"billing": {"type": "noul", "instructions": "Is this ticket about billing?"}}}'

Same request and response shape as Jev's POST /v1/systemone. Binds 127.0.0.1 by default and has no authentication: put it behind your own gateway before exposing it.

By default a request is fitted to the model's trained budget: long option descriptions and questions are shortened and an oversized state keeps its head and tail. --no-caps (or VERA_NO_CAPS=1, or vera.load(..., no_caps=True)) reads every request whole instead. vera-core-2, vera-medium-omni, vera-large and vera-large-2o always read requests whole.

vLLM engine

vera-core, vera-core-2, vera-medium-omni, vera-large and vera-large-2o can run their backbone on vLLM (GPU, vLLM 0.29 or newer), behind the same HTTP API:

pip install "vera-s1[vllm]"
vera-serve --model scar-ai/vera-core-2 --engine vllm --port 8200
vera-serve --model scar-ai/vera-large --engine vllm --tensor-parallel-size 2 --port 8200   # or 1 on a 96 GB+ GPU
vera-serve --model scar-ai/vera-medium-omni --engine vllm --port 8200                      # vLLM runs the vision tower too
vera-serve --model scar-ai/vera-large-2o --engine vllm --port 8200                         # 26B + vision, 96 GB+ GPU or TP 2

or in Python: vera.load("scar-ai/vera-core-2", engine="vllm"). vLLM starts its engine in a new process that re-imports your script (always on ROCm), so put that call under if __name__ == "__main__":. vLLM runs the fine-tuned backbone and returns its hidden states; the decision head runs on top, so answers match the default engine up to bf16 differences. The backbone is exported to a plain Qwen3.5 checkpoint on first use and cached in ~/.cache/vera/vllm. A request longer than --max-model-len (default 32,768 tokens, 8,192 for vera-core) is refused, never cut. --gpu-memory-utilization defaults to 0.5, or 0.9 for vera-large and vera-large-2o (~51 GB of bf16 weights). Plain vllm serve does not work on these repos: vera scores options and never generates text. vera-spark has no vLLM path.

Requires Python 3.10+ and transformers 5+. A GPU (CUDA or ROCm) is recommended; Apple MPS is not supported (CPU is used on Macs).

Metadata

Release files for vera-s1 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vera-s1 0.1.8
File Size Uploaded Provenance Actions
vera_s1-0.1.8.tar.gz 45.0 kB Without provenance Details for vera_s1-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vera-s1 0.1.8
File Interpreter ABI Platform Actions
vera_s1-0.1.8-py3-none-any.whl Python 3 none any Details for vera_s1-0.1.8-py3-none-any.whl

Total release size: 92.7 kB

Release files / vera_s1-0.1.8.tar.gz

Download URL vera_s1-0.1.8.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
840fae1d1b185d955ac2d8322327d840ece64bcdb83756a3abb638b898386b2d
BLAKE2b-256 checksum
How to use checksums
1aadcad444f6c0eaca8d3ab9f44b703fe739d072837a7fe8166847f5973fd586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / vera_s1-0.1.8-py3-none-any.whl

Download URL vera_s1-0.1.8-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cd612eb04ab37d9f3d4e770e6e41a1ff63ad3ea93ec72d46116cc1c87f57ef3
BLAKE2b-256 checksum
How to use checksums
11b02ec4285746d2f5256ac8d5cedadf71114d185f1d009b778114b4aaba1f33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for vera-s1 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page