#llm-inference #llm #json #protocols #inference

inferlab-protocol

Wire types for the Inferlab framework-integration protocol: strict, versioned one-shot JSON adapter operations

23 releases (12 breaking)

Uses new Rust 2024

new 0.13.1 Aug 24, 2026
0.12.1 Aug 22, 2026
0.7.1 Jul 31, 2026

#2508 in Encoding

50 downloads per month
Used in 3 crates

MIT license

88KB
2K SLoC

InferLab

InferLab logo

Declare once. Run anywhere. Keep the evidence.

CI status Latest GitHub release inferlab on crates.io MIT license

Website · Documentation · Releases · Specification

Reproducible LLM inference experiments. A committed workspace fixes the shareable baseline — stacks, named servers and cases, recipes, and eval/bench definitions. A git-ignored local bindings file supplies machine-private facts (model weights, machines, devices, ports, and placement). Managed serving, measurement, and image-build workflows write durable, file-first records you can inspect, compare, and reproduce.

  • Serve lifecycles — long-running framework servers, single-role or prefill/decode disaggregated across machines, with readiness, logs, and verified cleanup in the record.
  • Closed-loop recipes — serve + eval (lm-eval) + bench (AIPerf) suites in one command, with per-case metrics and raw artifacts preserved.
  • Runtime images — build and validate OCI images from the same workspace baseline, then launch recipes from them.
  • Profiling — attach managed Nsight Systems collection or engine-native traces to selected workloads.
  • Source identity — records carry the workspace revision and a source digest; a clean-workspace run is reproducible from a fresh checkout.
  • Operator journal — an append-only scratchpad on the same time axis as the records.
  • View-only TUI — one responsive workspace console for declared definitions, concurrent CLI work, records, referenced logs, and journal context.

InferLab view-only TUI showing an active recipe, a running server, a completed benchmark, and workspace evidence

Rendered by the real InferLab TUI with synthetic demo data; no local workspace or machine identifiers are shown.

Install

Download a release binary (x86_64 / aarch64 Linux):

curl -fsSL https://github.com/Infer-Lab/InferLab/releases/latest/download/install.sh | sh

Or install from the crates registry (Rust 1.89+):

cargo install inferlab

Or build from a checkout with cargo install --path crates/inferlab. The published library crates (inferlab-runtime, inferlab-profiler, inferlab-protocol, inferlab-proxy) exist to build the binary; their APIs are experimental and carry no stability promise yet.

Agent skill

InferLab ships an operator skill for Claude Code and Codex, embedded in the binary at the same version — no checkout or network access needed:

inferlab agent install --agent all

--from-checkout <DIR> overrides the source with a local checkout or unpacked release plugin tarball, for testing an unreleased change.

Quick start

In a workspace (see docs/rfc/ for the full contract, starting at RFC-0001):

pixi install --locked --all                 # realize every stack's selected Pixi environment
inferlab workspace show                     # validate and browse public definitions
inferlab stack status                       # confirm environments and run declared stack checks
inferlab toolchain install                  # measurement runtimes (only for lm-eval/Bench measurements)
inferlab tui                                # observe this workspace; never starts or changes work

inferlab recipe run my-recipe --dry-run     # validate placement, devices, commands, environment
inferlab recipe run my-recipe --case tp2    # closed loop: serve + eval/bench + cleanup
inferlab serve start my-server --case tp2   # or drive the pieces manually
inferlab bench random-8k1k --serve <ID>
inferlab serve stop <ID>

Non-dry-run serve start, recipe run, bench, and image build print JSON naming a record under .inferlab/records/<ID>/; --dry-run on those commands resolves and validates without launching or writing one.

Documentation

License

MIT — see LICENSE; inferlab license prints the full text.

Dependencies

~1–2MB
~43K SLoC