Skip to main content

Self-contained CLI to measure an LLM against the Raidex Responsible-AI index

Project description

Raidex

An open Responsible AI index for frontier models.raidex.ai

Raidex evaluates frontier LLMs across open RAI benchmarks — safety, fairness, factuality, security, machine ethics, robustness, and privacy — and publishes a composite RAI Score on a submit-driven leaderboard. Every benchmark is open-source and runnable; the project shows the capability-vs-RAI reporting gap side by side.

Measure your own model: the raidex CLI

pip install raidex gives you the same measurement core the leaderboard runs, as a self-contained CLI. Score your own fine-tuned or self-hosted model against the Raidex index in your own environment — no account, no queue, no upload, no dependency on Raidex servers — and get board-comparable per-dimension + composite RAI scores.

pip install raidex

raidex eval --model openai/gpt-5.2 --tier A                                      # any litellm model
raidex eval --model http://localhost:8000/v1 --served-name my-model --tier A+B  # a local OpenAI-compatible endpoint
raidex eval --model ... --benchmarks bbq,strongreject                           # a subset
raidex eval --model ... --judge anthropic/claude-opus-4-8                        # configure the LLM judge
raidex eval --model ... --dry-run                                               # cost estimate only
raidex fetch-data                                                               # pre-cache data for offline / air-gapped use
raidex eval --model ... --offline --output results.json                         # run with zero network

It prints per-dimension + composite RAI Score + coverage (N/9) and writes a self-describing JSON — model spec, pinned dataset versions, judge, sampling, timestamp — that never leaves your machine. Benchmarks with no judge configured are skipped with honestly reduced coverage, not a failure. Scores are identical in scale to the leaderboard (same core, same benchmarks, same normalization).

Repository layout

  • raidex/ — the pip-installable raidex CLI (raidex/cli.py) over the pure raidex.core eval-and-score library. The core is the shared foundation; the backend service and the CLI are two thin frontends over it, which is why a local score matches the board.
  • space/ — the HuggingFace Space (Gradio app): leaderboard, the capability-vs-RAI gap visual, model cards, and the submit form. Deployed to the Space above.
  • backend/ — the eval runner / service: polls the request queue, calls raidex.core, and writes results to the dataset.

The two datasets (raidex-results, raidex-requests) are generated data and live on the HF Hub, not in this repo.

Benchmarks (8 constituents)

Tier Benchmark Dimension Pipeline
A BBQ Fairness & Bias lm-eval (generative)
A WMDP Security lm-eval (generative)
A SimpleQA Factuality litellm + judge
A StrongREJECT Security (refusal) strong_reject rubric
A ETHICS Machine Ethics lm-eval (generative)
A XSTest Safety (over-refusal) litellm + judge
B AdvGLUE Robustness litellm (exact-match)
B ConfAIde Privacy litellm (correlation)

The RAI Score is the mean of normalized constituent scores (0–100); coverage is reported as N/8. See space/METHODOLOGY.md for the index design, generative-task creation, judging, sampling, and normalization.

Running the backend

cd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# litellm reads provider keys from env vars (OPENAI_API_KEY, ANTHROPIC_API_KEY, ...);
# an OpenAI/Anthropic key is required for the judges.
python runner.py --dry-run --model openai/gpt-5.2 --tier A+B    # cost estimate
python runner.py --model anthropic/claude-opus-4-8 --tier A+B   # full run + upload
python runner.py --poll                                         # drain the request queue

Reproducing the published board. The leaderboard was produced by running the full 17-model roster at Tier A+B. backend/rerun.py runs the rate-limited batch with per-provider throttling and resume; the five always-greedy OpenAI/Anthropic models run via runner.py. See backend/README.md for the roster and provider routing, the exact keys, the reasoning-locked / WMDP-recovery / sampling / neutral-judge settings, the 2026-06-18 capability snapshot, and the generative-vs-loglikelihood calibration. Numbers reproduce within the stated error bars (composite 95% half-width ~±2 points), not bit-for-bit.

Running the Space locally

cd space
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
RAIDEX_DATA_SOURCE=hf python app.py     # reads the live results dataset

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raidex-0.1.0.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

raidex-0.1.0-py3-none-any.whl (55.3 kB view details)

Uploaded Python 3

File details

Details for the file raidex-0.1.0.tar.gz.

File metadata

  • Download URL: raidex-0.1.0.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for raidex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e019180703485535d9093ac31ac9b05c8c2d0d42c4335678df90e2b54ce92fba
MD5 84b69f9c66dd395bdc6eef02a667e383
BLAKE2b-256 59dffc59fb9494ed10e3a9d8aa68028871826edce687250c96c89a8db0f466a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for raidex-0.1.0.tar.gz:

Publisher: publish-pypi.yml on cloudronin/raidex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file raidex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: raidex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 55.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for raidex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81ced699348be6f25cf908c5070e7a14355c93c76dcabfb6a352d5e2b0b6af6d
MD5 8e1493b1bbea2564c9009f8ce5f0b5e3
BLAKE2b-256 8bf52bf94dba50c90e087bafa5dd6b5ebb2b7bce37c1fe4cac571bb23203f5d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for raidex-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on cloudronin/raidex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page