Skip to main content

InferYard CLI

English | 中文

inferyard is the command-line execution subproject of InferYard Studio. Studio provides the desktop interface and manages model services; it invokes inferyard to run frozen task sets against local models, record answer, latency, and resource evidence, and project the studio.json report displayed in Studio. Quality, latency, and memory are reported separately; when comparison preconditions are not met, the CLI explains why instead of producing a single composite score.

Install

Requires Python 3.15 (managed automatically by uv) and uv >= 0.13.6:

uv tool install --managed-python --python 3.15 inferyard
inferyard --versions
inferyard --help

To upgrade an existing installation:

uv tool upgrade inferyard

Quick command reference

Command Purpose
inferyard init --out DIR Export a starter workspace and task sets (default catalog task sets, or repeatable --bundle <name|path> for registered or local JSON task sets)
inferyard bundles list|verify List registered task sets in benchmarks/ or verify a local task set JSON file/directory
inferyard device-check --json Read-only hardware preflight and benchmark-backed starter recommendation (mlx-lm, vllm-metal, llama.cpp, NInfer, PolyStrata)
inferyard engine prepare-polystrata Automated local PolyStrata setup (supports --engine-only --prebuilt-source for pure engine runtime without models, or full setup)
inferyard engine prepare / engine prepare-venv / engine check Prepare a managed binary archive or Python venv engine (mlx-lm / vllm, writing .inferyard-managed-engine.json), or verify a local engine / installation.json read-only
inferyard engine detect / engine init-installation Detect local engine binaries/venvs and generate a validated installation.json
inferyard model acquire / model resolve / model acquire-polystrata Resolve or download pinned HF/ModelScope models (GGUF, .ninfer, directory models), or acquire a PolyStrata Strata Pack model using an installed engine (--output jsonl)
inferyard assets scan Read-only scan of local model and engine directories (including self-contained installation.json engines; optional --include-engine-meta)
inferyard serve prepare Generate a loopback serve-plan.json (serve_plan schema) to launch a local OpenAI-compatible model service without creating a benchmark task (--model, --installation | --engine | --runtime-receipt, --context-size, --port, --out, --json)
inferyard service discover Read-only discovery of running loopback inference services (/health, /v1/models)
inferyard join <CODE> Pair this machine with an InferYard Studio mTLS 1.3 Hub using a one-time 6-digit code via zero-IP LAN auto-discovery (with optional --hub, --ca-sha256, --code, --state-dir, --no-autostart, --source-hint)
inferyard agent run|install-autostart|uninstall-autostart Run the resident stdlib-ssl mTLS 1.3 remote node agent (control RPCs, cooperative cancel.json benchmark jobs, no-auto-restart service supervisor, on-demand loopback tunnels) or manage user-level autostart; the agent upgrades its own uv tool install on Studio request and re-execs in place
inferyard plan Preview (--dry-run) or freeze an experiment plan, including --preset context-speed for zh-context-speed
inferyard matrix run Run an unattended engine × model × context × flag-variant matrix on this machine from a matrix_plan JSON (--plan, --out): per-trial host preflight, optional smoke gate, service start/stop, verified studio.json, and matrix-summary.json; rerun with the same --out to resume
inferyard mcp Serve matrix tools (schema, matrix_validate, matrix_start, matrix_status) to a local agent over MCP stdio; matrix_start runs in the background and survives the client — see docs/matrix-run.md
inferyard probe / run / resume Probe a bound service, run a serial or planned benchmark, or resume unexecuted cases
inferyard verify / report / speed-results Verify sealed runs offline, build a combined studio.json report, or read verified context-speed batch results
inferyard compare / compare-engines Compare frozen trial evidence or multi-block engine comparison batches offline
inferyard --schema <kind> / --versions Export active JSON Schemas (schema_version = 3) or runtime/dependency versions

Start from the terminal

  1. Follow the installation guide (Chinese) to install inferyard, initialize the operations directory, and run the device preflight.
  2. Create a benchmark config for your platform (Chinese). Start the declared model service in another terminal, then bind its actual PID and local endpoint.
  3. Run zh-core and zh-svg-pelican separately, verify each raw run, and generate one combined report. If the zh-core run is already complete, add only the missing zh-svg-pelican run.
  4. Open studio.json in Studio. For handoff, copy the sealed runs along with the report (or produce a redacted evidence bundle with inferyard public package).

The desktop workflow starts on the Studio Tasks page. Studio can reuse an existing CLI, automatically upgrade it after Studio updates, and manage services it starts.

Read more

InferYard Studio · Studio guide · Installation (Chinese) · Task sets · Contributing · Changelog

Run CLI development commands from cli/ in this monorepo; root mise tasks already enter that directory. Licensed under MIT.

Metadata

Release files for inferyard 0.0.34

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

Source distribution (sdist)

Source distribution for inferyard 0.0.34
File Size Uploaded Provenance Actions
inferyard-0.0.34.tar.gz 835.5 kB With provenance Details for inferyard-0.0.34.tar.gz

Built distribution (wheel)

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

Total release size: 1.9 MB

Release files / inferyard-0.0.34.tar.gz

Download URL inferyard-0.0.34.tar.gz
Size 835.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16a44c84e3782fbde75c1d48b5162a9be2acec48d4863b8d981529307dd49057
BLAKE2b-256 checksum
How to use checksums
48c3854fa89dd76b7115d49b480d9748edd360e0d70e3f3b451d897754b639c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / inferyard-0.0.34-py3-none-any.whl

Download URL inferyard-0.0.34-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
501337d018d61509b9d9637f265431e300f9db9d6b0c9abc737c8e7cbe2b85d7
BLAKE2b-256 checksum
How to use checksums
c6b59be54f7d688522d6d0ac1788249d99303b20b12863caa4c2465f5f74bc24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for inferyard 0.0.34

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for inferyard-0.0.34.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.0.34 This release

2 release files Full provenance

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