Skip to content

Introduction to Metria

Metria verifies changes to LLM inference systems. Compare a reference with a candidate, check what actually ran, measure behavioral change, and evaluate the result against your acceptance criteria.

It retains both runs and a report you can review locally or in CI. Execution evidence, comparison validity, and policy acceptance remain separate: missing captures or unexpected configuration differences cannot silently become a pass.

Getting started

Install Metria in a virtual environment with Python 3.10–3.14:

python -m pip install metria

The base package has no runtime dependencies. Native inference engines and models are installed separately for real verification. You can see the complete result format immediately with a synthetic example:

metria demo --case pass --output demo-pass

Open demo-pass/report.md to read the decision. The same bundle contains the canonical verification.json and both run records.

Start without a model or GPU

The demo is explicitly synthetic. It teaches the report format and failure states; it does not qualify a runtime, demonstrate model quality, or measure real inference performance.

Your first report → Installation and setup

What you can verify

Start with one declared change and a fixed workload. Each workflow states its runtime, hardware, and evidence requirements.

Inference changes

Compare CPU settings, runtime builds, controlled weight quantization, vLLM prefix caching, runtime upgrades, FP8 KV caches, or local serving measurements.

Choose a workflow →

Acceptance criteria

Keep token drift, task-check outcomes, reference repeatability, and compatible timing separate. Define your own policy.

Define a decision →

Repeatable checks

Run the same recipe in CI, interpret distinct exit codes, and retain the evidence even when a comparison fails.

Set up CI →

How verification works

  1. Declare the change. Pin the model, runtime, workload, and intended variation in a study recipe.
  2. Check the evidence. Verify observed identities and reject undeclared differences before treating the runs as comparable.
  3. Measure impact. Inspect token trajectories, configured task checks, repeatability, and compatible systems measurements.
  4. Evaluate your policy. Apply explicit criteria and retain the result with both run records.

VERIFIED means the comparison had sufficient evidence and its analysis completed. A policy PASS applies to your declared criteria on this workload. Neither is a universal model-quality or production-performance guarantee.

Read the verification contract and qualified and staged capability notes for the precise boundaries.

Work on Documentation
Run a real comparison Choose a workflow, installed workflow
Build with the CLI and Python API Recipe CLI, run records, pairwise analyses
Inspect behavior Fidelity tools, token trajectories
Understand retained evidence Artifact resolution, testing evidence
Contribute Core architecture, build these docs, contributing

Historical research and retained artifacts remain in the repository with their original scope and provenance.