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 and Python 3.12+.

pip install ruling            # or: uv tool install ruling; add [vision] to ask about images
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. To work on ruling itself, clone the repository and uv sync; see Development. 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.1

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.1
File Size Uploaded Provenance Actions
ruling-0.2.1.tar.gz 90.4 kB Without provenance Details for ruling-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 198.1 kB

Release files / ruling-0.2.1.tar.gz

Download URL ruling-0.2.1.tar.gz
Size 90.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0929641fdfeb214deba95887aacd4d8a6ace68842f5e277c5a2563cd0b4a90d8
BLAKE2b-256 checksum
How to use checksums
e055781bcf04813953df199f1f349ccebeb9206874a2f05c7ffc56a58658e7f6
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.1-py3-none-any.whl

Download URL ruling-0.2.1-py3-none-any.whl
Size 107.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
547af08cdafab46e8c51c805c67a72ad0fc0dd9b52f84e533bc3a8d11e0e39db
BLAKE2b-256 checksum
How to use checksums
a4b2677d5de1491843d2ddcca96055febb484e565b02254f6234ea2350b4c5e2
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.1

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