Build the images, start the stack, run the KV-cache cliff benchmark and plot
the result. Run every command from the repository root, on a host that meets
the prerequisites. make help lists all targets,
and ENVIRONMENT.md documents every variable.
make build ROCM_ARCH=gfx950This builds aic-base (PyTorch and shared dependencies), then aic-vllm and
aic-lmcache, which inherit from it. Set ROCM_ARCH to your GPU architecture;
the build compiles kernels for exactly the architectures you list.
make up \
HF_TOKEN=hf_... \
NVME_DATA=/mnt/lmcache-nvme \
NFS_DATA=/mnt/lmcache-nfs \
VLLM_MODEL=Qwen/Qwen2.5-7B-InstructThis starts LMCache, vLLM and the monitoring stack, with DRAM as the first cache
tier and NVMe and NFS as the second. make up-batch runs it in the background;
make logs follows the logs, make endpoints prints the Grafana URL, and
make down stops everything.
AIC_STACK names the stack: the compose project, its private Docker bridge and
the prefix of every container name (<stack>-lmcache, ...). make generates it
the first time it runs in a checkout, aic- and eight hex digits kept in
.aic-stack, so stacks started from different checkouts or by different users
on one host never meet; inside a Slurm job it is aic-<job id>. make list-vars prints it, and make logs, make shell-vllm and make down find
the stack without being told. To choose the name yourself, pass it to every
command, e.g. make up AIC_STACK=aic-mine and later make down AIC_STACK=aic-mine; make up refuses a name another checkout's stack is
already using.
The default NVMe tier uses
AMD Infinity Storage (AIS),
peer-to-peer DMA between NVMe and the GPU through the
hipFile library. If
LMCache exits at startup with a hipFileBufRegister error, your host does not
support it; add AIC_L2_BACKEND=nixl_posix to use ordinary file I/O instead.
To use an AIS NVMe slab as the first tier instead:
make up-gds-l1 HF_TOKEN=hf_... GDS_SLAB_DATA=/mnt/lmcache-nvme VLLM_MODEL=Qwen/Qwen2.5-7B-InstructThe cliff benchmark compares a plain vLLM against vLLM with AIC as the number of
concurrent long-context requests grows. Each arm needs its own stack, so stop
one with make down before starting the next. The benchmark runs in the
aic-client container and finds the running vLLM by itself.
export HF_TOKEN=hf_... VLLM_MODEL=Qwen/Qwen2.5-7B-Instruct
# AIC: the tiered stack from step 2
make up-batch NVME_DATA=/mnt/lmcache-nvme NFS_DATA=/mnt/lmcache-nfs
make cliff BENCH_ARM=kvd_v2
make down
# Baseline: vLLM with no LMCache
make up-vllm-only
make cliff BENCH_ARM=vram_only
make down
# KVBench: starts its own server
make cliff-kvbench-local KVBENCH_MODEL=llama-3.1-8b
make kvbench-downResults land in logs/manual/results/, one CSV per run. BENCH_CONCUR sets the
concurrency levels to sweep. The same aic-client container runs the other
benchmarks: make bench-list lists them, and
benchmarks/README.md describes them.
make venv # once: creates .venv with the plotting dependencies
make plotCharts are written to logs/manual/plots/ (cliff-throughput.png,
cliff-latency-p50.png, cliff-latency-p95.png).
- SLURM_SPUR.md: full sweeps on a Slurm cluster.
- METRICS_TELEMETRY.md: Prometheus metrics and dashboards.
- EMULATE.md: run without a GPU using the CPU emulator.