Skip to main content

ruling: typed decisions, no text

ruling: typed decisions, not generated text, from open models

Documentation: ruling docs


ruling turns any open chat model into a decision engine like TypeSafe's Jev. You send a state (text, JSON or images) and typed questions; you get back a probability for every option you declared. Nothing is generated, so there is nothing to parse and the model cannot invent an answer you did not list. It runs on your own machine, serves TypeSafe's API so their client works against it unchanged, and learns from the outcomes of the decisions it serves.

On the 256 public judgments that carry Jev's own answers, a 19 GB open model with no training gets 231 right to Jev's 238, not a significant difference (exact McNemar, p = 0.21); the results also say where Jev is ahead. Not affiliated with TypeSafe AI.

Documentation: docs/

Please go to the ruling docs. The usual starting points: Getting started, Choosing models, Fine-tuning and the Reference for every setting and API route.

Installation

You need an Apple Silicon Mac, Python 3.12+, and uv.

git clone https://github.com/bradAGI/ruling && cd ruling
uv sync                       # add --extra vision to ask about images
uv run ruling serve           # downloads a 2.3 GB model on first start, then serves http://127.0.0.1:8010

Open http://127.0.0.1:8010/ for the playground. On NVIDIA, see vLLM. Before relying on an answer, read the limits.

Reading more

  • Results and the full measurements, with the command behind every number.
  • How it works: one prefix, many suffixes, and reading logits instead of sampling.
  • Background: what Jev is, the other open recreations, and the papers behind the calibration.

License

MIT. ruling is an independent project with no connection to TypeSafe AI; "Jev" and "System One" are their names, used here to say what this reproduces. The authored144 and perturbations108 datasets and the WANLI row selection are converted from TheoLeeCJ/openjev under MIT, with their copyright notice in THIRD_PARTY.md. WANLI is CC-BY-4.0 and SST-5 keeps its own terms; neither is committed here. Model weights keep their own licenses.

Metadata

Release files for ruling 0.2.0

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

Source distribution (sdist)

Source distribution for ruling 0.2.0
File Size Uploaded Provenance Actions
ruling-0.2.0.tar.gz 90.3 kB Without provenance Details for ruling-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ruling 0.2.0
File Interpreter ABI Platform Actions
ruling-0.2.0-py3-none-any.whl Python 3 none any Details for ruling-0.2.0-py3-none-any.whl

Total release size: 198.0 kB

Release files / ruling-0.2.0.tar.gz

Download URL ruling-0.2.0.tar.gz
Size 90.3 kB
Tags Source
SHA-256 checksum
How to use checksums
25d912c6acb840eb6324ed74eeb29ae693cb34eddbcd94a01a732f592ac6f94a
BLAKE2b-256 checksum
How to use checksums
4678142d463afcbcfad48b27e25741a8987922f4a1105077557ebcc1ce93323e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ruling-0.2.0-py3-none-any.whl

Download URL ruling-0.2.0-py3-none-any.whl
Size 107.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74a87d4cadeeaf26609469c3eb4a9db1bd025c07a39aa56a87a6426765024b29
BLAKE2b-256 checksum
How to use checksums
70e1adf9432a2cce9ec102e3b9f057ce3c650259d78b59d489410b3f3156b4e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ruling 0.2.0

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