Autopilot for local AI: evidence-driven planning, controlled setup, and measured verification.
pip install llmrig==0.9.1 Copy PIP instructions
Give LLMRig a model and a machine. It plans the evidenced local execution path, changes nothing without permission, applies the approved setup, verifies reality, and records what happened.
LLMRig sits above local inference runtimes. oMLX, Ollama, MLX-LM, and llama.cpp are execution paths; LLMRig decides what the current evidence supports for this model on this machine.
Explore the public v0.9 launch assets on Hugging Face:
The Space is intentionally a static explainer: it does not inspect a visitor's machine or pretend cloud execution can infer local compatibility. Run LLMRig locally for real discovery, planning, execution, and verification.
unknown != false compatible != local local != executable executable != measurable measurable != measured measured != recommended measured performance != model quality discovery metadata != installation trust The v0.9 Autopilot flow 1. Plan — read only llmrig plan mlx-community/Qwen3.5-27B-4bit A plan can include:
plan performs no artifact download, runtime start, model load, or inference.
LLMRig Autopilot Plan ===================== Plan: plan-... Machine: Apple M4 Max · 48 GiB Model: mlx-community/Qwen3.5-27B-4bit Runtime Format Quant Local Executable ------------ -------------- ------------ ------------ ------------ omlx MLX 4-bit not_available not_executable mlx-lm MLX 4-bit not_available not_executable Setup path: omlx · MLX Planned actions 1. Acquire the selected artifact [changes local state] 2. Load/register it with the runtime [changes local state] 3. Verify with the deterministic workload [verification] No action has been taken. If multiple setup paths remain valid, LLMRig stays inconclusive rather than inventing a winner.
llmrig apply mlx-community/Qwen3.5-27B-4bit \ --plan-id plan-... LLMRig recomputes the plan immediately before apply. If current evidence no longer produces the approved plan ID, apply fails closed with plan drift detected.
Mutating actions require either interactive approval or an explicit non-interactive approval flag:
llmrig apply MODEL --plan-id plan-... --yes Exact Hugging Face acquisition is pinned to the repository revision returned by the Hub. Generic discovery metadata never becomes installation trust.
Approved Hugging Face acquisition uses the bundled huggingface_hub dependency and pins downloads to the exact repository revision resolved by the Hub.
Apply includes measured verification when the selected runtime is executable. You can also re-observe and re-verify a prior receipt:
llmrig verify llmrig verify receipt-... verify does not trust an old success record. It recomputes current evidence, requires the exact runtime/artifact candidate to remain uniquely evidenced, refuses any mutation, and then runs the deterministic measurement workload.
Unavailable metrics remain unknown. LLMRig never synthesizes missing throughput from incomparable timing data.
llmrig run MODEL run is the product shortcut for plan → explicit approval → apply → verify. It does not bypass the approval boundary. For automation, intent must still be explicit:
llmrig run MODEL --yes Action receipts Every applied workflow produces a privacy-safe receipt containing:
plan ID receipt ID model / artifact / runtime identity actions attempted status and public evidence verification measurements public endpoint when applicable timestamps Private filesystem locators, API keys, session cookies, and secrets are not serialized into receipts.
Successful measured verification is persisted locally as graph-shaped evidence across:
machine × model × artifact × quantization × runtime × context × measurement Prediction and measurement are separate facts. Calibration deltas are computed only when the same metric exists on both sides.
prediction: generation_tps = unknown measurement: generation_tps = 31.2 calibration: generation_tps_delta = unknown No anonymous/community upload occurs by default in v0.9.
llmrig runtimes llmrig runtimes --json The adapter registry currently covers:
Runtime probing remains read-only. Mutation support is adapter-specific and unsupported actions remain explicit blockers rather than being silently emulated.
llmrig solve MODEL llmrig solve MODEL --json llmrig solve MODEL --context 32768 solve constructs orthogonal evidence dimensions for each candidate:
discovery compatibility runtime availability local availability execution measurement capability measurement recommendation A candidate can therefore be compatible but not local, local but not executable, executable but not measured, or measured without being recommendable.
LLMRig does not scan arbitrary directories for native model files. Supply a locator explicitly when you want a native local artifact considered:
llmrig solve MODEL --local-artifact llama.cpp=/path/to/model.gguf llmrig solve MODEL --local-artifact mlx-lm=/path/to/model-directory The private locator stays at the execution seam and is excluded from public solve output.
Exact owner/repository identifiers are resolved through read-only Hub metadata. LLMRig may read the repository's small config.json when needed for structured format, quantization, or context evidence; it does not download weights during resolution.
LLMRig can associate an API-visible oMLX model with an exact Hugging Face repository only when provenance is defensible: exact runtime source metadata, or an exact completed-download record whose mapping is unique and unambiguous.
Authenticated local endpoints are supported through:
export OMLX_API_KEY="..." llmrig runtimes The API key, admin-session cookie, filesystem model path, and private execution locator are never serialized into public results.
Existing measured-analysis commands remain available:
Performance measurement does not establish model quality. Results inside the configured 5% race threshold remain inconclusive.
import llmrig result = llmrig.solve("mlx-community/Qwen3.5-27B-4bit") print(result.plan.recommendation_status) Stable entry point:
llmrig.solve( model, *, context=None, local_artifacts=(), verify=False, ) -> llmrig.SolveResult The SDK prints nothing and never exits the process. SolveResult and SolveCandidate are deliberate public contracts; _llmrig remains private implementation.
pipx install llmrig llmrig --version Upgrade:
pipx upgrade llmrig Or use a virtual environment:
python3 -m venv .venv source .venv/bin/activate python -m pip install llmrig Windows PowerShell:
python -m venv .venv .venv\Scripts\Activate.ps1 python -m pip install llmrig LLMRig supports Python 3.9+ on macOS, Linux, and Windows. Hugging Face Hub support is included for exact, revision-pinned artifact acquisition.
LLMRig ┌───────────┐ │ RigGraph │ └─────┬─────┘ │ ┌──────────┴──────────┐ │ Autopilot Engine │ └──────────┬──────────┘ │ ┌──────────┬───────┼───────┬──────────┐ ↓ ↓ ↓ ↓ ↓ oMLX Ollama MLX-LM llama.cpp future The north star is Detect → Decide → Configure → Run → Verify, with explicit intent at every mutation boundary.
local-ai llm hardware-compatibility benchmarking ollama omlx llama-cpp mlx-lm
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.




