Skip to content
ROCmPublic

About

ROCm AMD Infinity Context - A distributed, shared, low-latency KV Cache solution for AI Inference..

Topics

Resources

Contributing

Security policy

Stars

19 stars

Watchers

1 watching

Forks

Repository files navigation

ROCm AMD Infinity Context

MIT Platform ROCm PyTorch AITER vLLM LMCache NIXL HSA-Snoop Rocjitsu Qemu-Vfu Rocjitsu Guest Spelling Lint Export Tarball Nightly Dist Build Nightly Smoke + Tiny Test Nightly Accuracy Test Nightly Cliff Nightly Wheels Check PRs + Patches vLLM Emul Test vLLM Emul Perf Metrics Reference Cliff Perf Dashboard vLLM Emul Dashboard

Caution

This release is an early-access software technology preview. Running production workloads is not recommended.

ROCm(tm) AMD Infinity Context (AIC) is a disaggregated KV-cache inference stack for large language models on AMD GPUs. It combines an LLM serving framework (vLLM) with a KV-cache block manager (LMCache) to offload KV tensors across a tiered memory hierarchy: GPU VRAM, CPU DRAM, local NVMe and RDMA-based filesystems.

It focuses on enabling a low-latency, shared level of KV cache that can be accessed by O(1000) GPUs, so long contexts can be served at scale without recomputation.

This repository builds these components into one stack and tests them together under workloads that reflect real-world use.

Stack Overview

Component Source Ref
Base OS rocm/dev-ubuntu-26.04:10.2.0-full Ubuntu 26.04, ROCm 10.2, Python 3.14
PyTorch ROCm/pytorch (source build) 2.15 (abecaa8)
Triton ROCm/triton (source build) release/internal/3.8.x (669b31ac, vLLM v0.34.0 validated)
vLLM github.com/vllm-project/vllm (source build) v0.34.0 + 3 AMD patches
AITER ROCm/aiter (source build) v0.1.29.post1
FlashAttention Dao-AILab/flash-attention (source build) 0e60e394
LMCache LMCache/LMCache (upstream) v0.5.8 + 6 AMD patches
NIXL ai-dynamo/nixl (upstream) v1.5.2 + nixl-rocm-ais-mt.patch
HSA Snoop sbates130272/hsa-snoop (source build) aba6a306

aic-vllm runs OpenTelemetry 1.40.0, below the 1.45.1 that vLLM v0.34.0 declares: LMCache v0.5.8 caps it there, and the vLLM process loads the LMCache client. The image build checks that vLLM's tracing exporters still import; pip check in the image reports the conflict.

The vLLM --kv-transfer-config must carry "lmcache.mp.use_vmm_api": false (the Makefile JSON does). Without it LMCache v0.5.8 asks vLLM for fd-exported KV memory, which vLLM v0.34.0 refuses on ROCm at startup.

Pip Nightly Wheels

See docs/PIP_WHEELS.md for installation instructions and compatibility notes. Wheels for CDNA GPUs are rebuilt nightly whenever main has changed and published to the nightly release.

Prerequisites

  • A ROCm host. Set ROCM_ARCH to your GPU architecture (gfx950 for MI350X, MI355X and MI350P), or a ;-separated list for a multi-arch image.
  • Docker with BuildKit and the docker compose v2 plugin (2.24 or later); make ensure-compose installs the plugin if it is missing.
  • A Hugging Face token with access to the model you want to serve.
  • Writable directories for the NVMe and NFS cache tiers (NVME_DATA, NFS_DATA).
  • Python 3.10+ for the plotting tools.

Quick Start

make build ROCM_ARCH=gfx950
make up HF_TOKEN=hf_... NVME_DATA=/mnt/nvme VLLM_MODEL=Qwen/Qwen2.5-7B-Instruct

docs/QUICK_START.md covers the full flow: build, serve, benchmark and plot. For Slurm clusters see docs/SLURM_SPUR.md.

Metrics & Observability

See docs/METRICS_TELEMETRY.md for the full Prometheus scrape config, exporter details, NIXL telemetry, hsa-snoop, and NFS caveats.

Environment Variables

docs/ENVIRONMENT.md is the reference for the variables: each default, the file that owns it, and what it does. The tables there are generated from code (make env-docs); make list-vars prints the values a make run would use on this host.

Contributing

See CONTRIBUTING.md and AGENTS.md for test commands and conventions, and docs/ARCHITECTURE.md for how the containers fit together.

License

MIT

About

ROCm AMD Infinity Context - A distributed, shared, low-latency KV Cache solution for AI Inference..

Topics

Resources

Contributing

Security policy

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages