Skip to main content

argus-iris

VRAM-aware GPU lease broker for the Argus suite: priorities, schedules, keepalive and idle-kill across GPU nodes

Status: rollout step 3 (leases and admission). Agents report per-process VRAM, idle time and host RAM; the broker composes them with ComfyUI, Ollama and Argus service readings into residents and a per-node ledger, and serves the lease API that argus-cortex's BrokerCoordinator calls. With admission: observe (the default) it grants every lease at once and records whether it would have fit; with admission: enforce it queues what does not fit, spills to the next node, and evicts idle residents to make room. A residency policy (IRIS_POLICY, see deploy/policy.example.yaml) adds idle-kill, keepalive pins and restarts per resident (step 4); each rule only reports what it would do until it says enforce: true, so residents are handed over one at a time. See DESIGN.md.

Run

For the compose files, copy deploy/.env.example to deploy/.env and fill in the host's section. The broker needs RAG_CHAT_API_KEY to read agent-composer's residents on dragon.

docker compose up -d              # broker + this host's agent (morpheus)
docker compose up -d iris-agent   # agent only (dragon, jarrah)
docker compose build              # ghcr.io/smk762/argus-iris:${IRIS_TAG} from this checkout (set IRIS_TAG=local)

compose.yaml includes deploy/broker.compose.yaml and deploy/agent.compose.yaml with deploy/.env; each also runs on its own with -f.

On each GPU host (see deploy/agent.compose.yaml):

IRIS_AGENT_NODE=morpheus IRIS_AGENT_TOKEN=... IRIS_AGENT_CONTAINERS=voluptas_comfyui argus-iris agent   # :9110

The agent needs pid: host, cgroup: host, NVML, the Docker socket and /sys/fs/cgroup read-only. Container actions are disabled unless IRIS_AGENT_TOKEN is set, and apply only to containers in IRIS_AGENT_CONTAINERS.

The broker, on morpheus (see deploy/iris.example.yaml):

argus-iris serve --config iris.yaml   # :8120 — /nodes, /residents, /leases, /tenants, /events, /metrics, /health

Callers take leases with ARGUS_GPU_COORDINATOR=broker and ARGUS_GPU_BROKER_URL=http://<broker>:8120 (argus-cortex 0.7+). A service target goes to the configured services that serve it, in config order (ollama-dragon before ollama-jarrah), preferring a node where the model is already loaded and skipping services that are down; the grant carries that node and its base_url. When ARGUS_GPU_BROKER_TOKEN is set on the broker, the lease routes require it as a bearer token; unset, they are open. GET /leases lists what is queued or granted (?all=true adds the last ten minutes' finished leases).

One manual action exists: bring a service back up. If its health check fails, the node's agent starts its container (it must be on that agent's IRIS_AGENT_CONTAINERS), and iris waits for it to answer:

curl -X POST -H "Authorization: Bearer $ARGUS_GPU_BROKER_TOKEN" http://morpheus:8120/services/comfyui/warm

It needs ARGUS_GPU_BROKER_TOKEN (callers) and IRIS_AGENT_TOKEN (matching the agents') set on the broker.

The other manual action frees a resident's VRAM through its adapter: Ollama gets keep_alive: 0 for that model, ComfyUI POST /free, an argus-http service its evict_path (GPU to CPU, kept warm) or else its unload_path. A busy resident is refused with 409; iris then waits until the agent sees the memory come back (evict_confirm_s, 30 s) and reports what the resident still holds (a CUDA context, say, which only a restart frees):

curl -X POST -H "Authorization: Bearer $ARGUS_GPU_BROKER_TOKEN" \
  "http://morpheus:8120/residents/dragon/xtts/evict?mode=auto"   # mode: auto | evict | unload

The broker also serves a dashboard at http://<broker>:8120/ui/ (/ redirects there): VRAM per node split into residents, unattributed, held-back and admissible memory, plus residents with idle times, services with a warm button, residents with an evict button, and the node's leases (marked "over" where admission would have refused them). It updates live from /events. To warm from the page, enter ARGUS_GPU_BROKER_TOKEN under "Broker token". It is kept in that tab's session storage only.

Part of the Argus suite.

Install

uv pip install 'argus-iris[server]'   # broker
uv pip install 'argus-iris[agent]'    # node agent

Develop

make install   # venv + editable install with the "dev" extras
make test
make lint

CI / Release

  • CI runs via the shared argus-ci reusable workflow.
  • Release publishes to PyPI (OIDC trusted publishing) and GHCR on v* tags.
  • Versioning is derived from git tags via hatch-vcs — tag vX.Y.Z to cut a release.

This repo was scaffolded from argus-pkg-template. Run copier update to pull template changes (CI, release, tooling).

Metadata

Release files for argus-iris 0.1.0

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

Source distribution (sdist)

Source distribution for argus-iris 0.1.0
File Size Uploaded Provenance Actions
argus_iris-0.1.0.tar.gz 114.9 kB With provenance Details for argus_iris-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argus-iris 0.1.0
File Interpreter ABI Platform Actions
argus_iris-0.1.0-py3-none-any.whl Python 3 none any Details for argus_iris-0.1.0-py3-none-any.whl

Total release size: 196.4 kB

Release files / argus_iris-0.1.0.tar.gz

Download URL argus_iris-0.1.0.tar.gz
Size 114.9 kB
Tags Source
SHA-256 checksum
How to use checksums
13b4515c0ac68a54826d46fc889276b5e84b209f06a4599d7d663925a65c07ed
BLAKE2b-256 checksum
How to use checksums
d133e2a28783a26aac21f033096c701cc3a995d94e3a5ec9b65d97be72a54248
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 20, 2026.

Transparency log

Release files / argus_iris-0.1.0-py3-none-any.whl

Download URL argus_iris-0.1.0-py3-none-any.whl
Size 81.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de007b59f373dff8b6b03b7cc6c029445a5d494146ee011392efb76de85e8fb2
BLAKE2b-256 checksum
How to use checksums
3b411529fd10f3377b0e2d22ea5f69f9e64ef1fe6ec106de1ae52ab66b1730b8
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 20, 2026.

Transparency log

Security for argus-iris 0.1.0

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 argus_iris-0.1.0.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 20, 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.1.0 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