Infer Stack
Run local language models on demand, using Docker, but with simple wrappers.
Infer-stack manages model configurations, GPU placement, and the lifetime of inference servers. Acquire a model when you need it, use a consistent API URL, and release it when you're done. Use it from the command line, a terminal UI, or an automated evaluation pipeline.
- Discover model configurations for your hardware, or import and tune known configurations yourself.
- Serve vLLM, Ollama, and compatible custom engines behind a shared LiteLLM gateway, optionally with Open WebUI.
- Lease endpoints for a standing service or a single command; reuse compatible deployments and reclaim idle ones.
- Compare inference performance across contexts, configurations, and machines with a live benchmark report and a portable results ledger.
Quickstart
1. Install and configure
Start with a Linux workstation, Python 3.10+, Docker and the Docker Compose plugin. For NVIDIA GPU inference, install a working NVIDIA driver and NVIDIA Container Toolkit first. The no-GPU simulator below does not require the NVIDIA software or hardware.
In a Python virtual environment:
pip install 'infer-stack[tui]'
The tui extra is optional. From a source checkout, use pip install -e '.[tui]'
instead. Initialize the Compose backend and select a data directory with room
for model weights and caches:
umask 077
infer-stack config init --backend compose
Security: The default Open WebUI has no login screen, and Compose publishes
its ports on the host. Use a trusted, firewalled machine; do not expose it to
untrusted networks. For API-only use, run infer-stack config set ui false
before acquisition. Keep config/data directories private and generated
environment files secret (do not commit lease.env). See known limitations.
2. Discover and acquire a model
infer-stack catalog suggest --apply
infer-stack catalog endpoint list
Suggestions are additive, hardware-aware starting configurations, not guarantees that every model will fit. Choose an endpoint from the list. For a small chat smoke test on a compatible GPU, use:
ENDPOINT=smollm2-135m
infer-stack acquire "$ENDPOINT" --env-file lease.env
infer-stack test "$ENDPOINT"
Review and confirm deployment changes when prompted. The first acquisition can
pull or build an image and download weights. It waits for a real generation,
not just a running container; allow a longer --timeout for large models.
No GPU? Substitute these commands for step 2 to exercise the same workflow:
infer-stack catalog suggest --simulator --apply
ENDPOINT=mock-smol
infer-stack acquire "$ENDPOINT" --env-file lease.env
infer-stack test "$ENDPOINT"
The simulator generates mock text; it is not a real model or a performance benchmark.
3. Use the endpoint
- Browser: open http://127.0.0.1:13000 if Open WebUI is enabled.
- API: use the endpoint name as the model ID and the default LiteLLM base
URL
http://127.0.0.1:14042/v1. Load the credentials from your trusted locallease.envfile (it exportsOPENAI_BASE_URLandOPENAI_API_KEY). - Terminal UI: run
infer-stack tuito browse/import models, monitor GPUs, edit endpoints, acquire/release leases, and view logs.
For example, send a chat request through the OpenAI-compatible API (with the
normal LiteLLM gateway enabled and curl installed):
(
source lease.env
curl -fsS "$OPENAI_BASE_URL/chat/completions" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H 'Content-Type: application/json' \
-d "{\"model\":\"$INFER_STACK_MODELS\",\"messages\":[{\"role\":\"user\",\"content\":\"Say hello.\"}],\"max_tokens\":64}"
)
4. Release it
infer-stack leases
infer-stack release --env-file lease.env
This releases only the lease recorded in lease.env. Suggested endpoints stop when
their last lease ends; model weights and caches remain on disk. The gateway and
UI remain available for the next model. Remove the local lease.env when you
no longer need its credentials. For a full stack shutdown, see operations.
Everyday workflows
| I want to… | Command |
|---|---|
| See available endpoint names | infer-stack catalog endpoint list |
| Discover or edit known configurations | infer-stack tui → Browse models |
| Import a known profile | infer-stack catalog import NAME |
| Run a job with an automatic lease | infer-stack run --endpoint NAME -- COMMAND |
| See running deployments | infer-stack leases / infer-stack ps |
| Follow only model engine logs | infer-stack logs --engine -f |
| Benchmark several endpoints serially | infer-stack benchmark run NAME1 NAME2 |
| Compare historical measurements | infer-stack benchmark report |
| Find configuration and cache directories | infer-stack paths |
| Explore all CLI commands | infer-stack help tree |
In the TUI, Suggest recommends configurations for the detected hardware; Browse models shows the full registered suggestion pool, including optional and experimental configurations with hardware-fit warnings. Import & edit is the path for trying a model on different hardware. Importing does not override placement checks. See model discovery and profiles.
Choose a backend
Compose is the simplest way to serve models on one machine. For a Kubernetes cluster, KubeAI uses the same catalog/lease interface with cluster scheduling and vLLM; Ollama and custom launcher commands/mounts are Compose-only. See the backend comparison and cluster setup.
Documentation
The documentation index organizes all the guides by task. For common next steps: custom endpoints, operations and troubleshooting, Compose configuration, benchmarking, and KubeAI and remote control.
Infer-stack is a Linux-oriented, planning-stage project. See known limitations for operational and security boundaries. For contributors, see AGENTS.md and dev/README.md.
Metadata
Release files for infer-stack 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| infer_stack-0.7.3.tar.gz | 783.3 kB | With provenance | Details for infer_stack-0.7.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| infer_stack-0.7.3-py3-none-any.whl | Python 3 | none | any | Details for infer_stack-0.7.3-py3-none-any.whl |
Total release size: 1.4 MB
Release files / infer_stack-0.7.3.tar.gz
| Download URL | infer_stack-0.7.3.tar.gz |
|---|---|
| Size | 783.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e97ef12d9099f6435675519d735d1b56b09336b3e06452093692de86ae17b51
|
|
BLAKE2b-256 checksum How to use checksums |
6fd0d0ef8952d262cf18c2d887f46feba290d0f8695497f67edde0bfb79be78e
|
| 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 Nov 26, 2026.
Transparency logRelease files / infer_stack-0.7.3-py3-none-any.whl
| Download URL | infer_stack-0.7.3-py3-none-any.whl |
|---|---|
| Size | 573.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08ff089bf56d9fc205a9ab3dc1f19de8a768064714ef5b2e9c6fb9383230a510
|
|
BLAKE2b-256 checksum How to use checksums |
132ee7f38223d2425e2634e8aa87e48a166386fd0ab693a028a1f251e82f66d0
|
| 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 Nov 26, 2026.
Transparency logSecurity for infer-stack 0.7.3
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.
Attestation for infer_stack-0.7.3.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 Nov 26, 2026.
Transparency logA 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.