warmctl

package module
v2.0.0-beta.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

latest release ci license Apache-2.0 engine vLLM GPUs H100, H200, B200, L40S

warmctl snapshots a warmed-up vLLM engine and restores it in seconds on any host with the same GPUs and NVIDIA driver branch. GLM-5.3-Flash on 8×H100: vLLM cold start 650 s, warmctl up 37 s, then stock serving speed.

Quickstart

Linux GPU host, Docker with the NVIDIA runtime, root:

curl -fsSL https://warmctl.io/install.sh | sh  # newest release in /opt/warmctl
sysctl -w kernel.io_uring_disabled=2           # CRIU cannot dump io_uring
warmctl doctor                                 # check the host
warmctl catalog                                # models this host can restore
warmctl up qwen3-8b --listen 0.0.0.0:8000      # pull, restore, serve

The public catalog has 17 models on H100, H200, B200 and L40S. Any other model vLLM serves with sleep mode, build yourself:

warmctl build --profile qwen3-8b-tp1 --model-dir /models/qwen3-8b --gpus 0 --output /snaps/qwen3-8b
warmctl push /snaps/qwen3-8b ghcr.io/you/qwen3-8b
warmctl up ghcr.io/you/qwen3-8b

Measured

warmctl up to serving, snapshot in page cache, against a vLLM cold start (weights on local disk, empty compile caches).

Model GPUs Image warmctl up vLLM cold start
GLM-5.3-Flash 8×H100 404 GiB 37 s 650 s
DeepSeek-V4.1-Flash 8×H100 678 GiB 78 s 357 s
gpt-oss-120b 1×B200 78 GiB 13 s 351 s
Gemma 4 26B-A4B 1×B200 60 GiB 12 s ~330 s
Qwen3-32B 1×B200 72 GiB 13 s ~300 s
Qwen3.6-35B-A3B 1×B200 46 GiB 10 s ~240 s
Qwen3-8B 1×H100 23 GiB 9 s ~80 s

~ is the time to a ready engine while building the snapshot; where we measured both, a plain cold start was 1–24% shorter. On B200, GLM-5.3-Flash restores in 44 s (8×B200) and DeepSeek-V4.1-Flash in 73 s (4×B200); every platform is in the catalog.

GLM-5.3-Flash on 8×H100 by phase, from page cache and from a cold network file share (about 10 GB/s):

Phase Page cache File share, cold
CRIU restores the process tree 8.1 s 15.3 s
GPU state restored 10.5 s 13.3 s
Weights reloaded (320 GiB) 12.3 s 19.3 s
Serving 37.3 s 56.8 s

Restored engines serve at stock vLLM speed or faster (GLM-5.3-Flash: 100–136% of stock throughput).

How it works

build starts vLLM in a container, warms it over every shape in the profile and checkpoints the processes (CRIU), the GPUs (cuda-checkpoint) and the weights. push stores the snapshot as an OCI artifact, one per platform. up checks the host, restores everything at the same GPU addresses, runs a canary against the original engine and opens an OpenAI-compatible API. Multi-GPU engines keep NCCL and symmetric memory through NVIDIA cuInterpose.

Details: architecture, shared GPU memory, registries and caches.

Kubernetes

The warmctl runtime image, registry.warmctl.io/warmctl/runtime:latest (anonymous pull; pin a release tag such as :v2.0.0-beta.5 for a cluster that must not change under you), is the catalog's vLLM image with warmctl on top (make pod-image builds it). In a privileged pod it runs the same warmctl up NAME and restores in place, with readiness on /health:

kubectl apply -f deploy/kubernetes/warmctl.yaml

deploy/kubernetes also holds node preparation and a KEDA autoscaler; details in docs/kubernetes.md. Prototype: tested in pod-like containers on CPU, not yet on a GPU cluster.

Profiles

schema: warmctl.profile/v1
id: llama31-8b-tp1
model: {id: meta-llama/Llama-3.1-8B-Instruct, revision: 0e9e39f2}
parallel: {tp: 1}
hardware: [h100-80gb-sxm]
vllm: {max-model-len: 8192, kv-cache-memory-bytes: 21474836480}

vllm: takes any vllm serve flag; the rest comes from profiles/_defaults.yaml.

Requirements

Linux x86-64 with glibc, Docker with the NVIDIA runtime, root, driver 580+, kernel.io_uring_disabled=2. A snapshot restores under any release of the driver branch it was built on (580.x, 610.x). Proven on H100 SXM, H200, B200 and L40S. Keep warmctl and cuinterpose/ from the linux-amd64 archive side by side, or build both with make build cuinterpose. Releases also ship linux-arm64 (no cuInterpose yet, not proven on a GPU) and macOS builds, which run the registry side: catalog, images, mirror, push, pull. Every release is signed and has build provenance (verify).

Develop

make test · make lint · make e2e-test (CPU, Docker, root) · make release (the release archives as a local snapshot). Releases: RELEASING.md. GPU acceptance: docs/gpu-runbook.md.

License

Apache-2.0, including the bundled NVIDIA cuInterpose build (NOTICE).

Documentation

Overview

Package warmctl embeds what ships inside the binary: the curated model profiles, the profile defaults, the hardware table and the vLLM worker extension. Nothing in the Go code knows a model or a GPU by name.

Index

Constants

This section is empty.

Variables

View Source
var Adapter embed.FS

Adapter holds the Python package mounted into every engine container.

View Source
var Assets embed.FS

Assets holds profiles/*.yaml and hardware/hardware.yaml.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
warmctl command
Command warmctl snapshots warmed vLLM engines and restores them.
Command warmctl snapshots warmed vLLM engines and restores them.
internal
agent
Package agent is PID 1 of the donor and receiver containers.
Package agent is PID 1 of the donor and receiver containers.
cli
Package cli is the warmctl command line.
Package cli is the warmctl command line.
config
Package config reads warmctl's host settings: where short image names resolve, which mirrors and cache to try first.
Package config reads warmctl's host settings: where short image names resolve, which mirrors and cache to try first.
criu
Package criu drives CRIU around a process tree: freeze it with pidfds, dump it with link remaps and an empty plugin directory (GPU state is cuda-checkpoint's business, never CRIU's), restore it left stopped in a fresh PID namespace, thaw it.
Package criu drives CRIU around a process tree: freeze it with pidfds, dump it with link remaps and an empty plugin directory (GPU state is cuda-checkpoint's business, never CRIU's), restore it left stopped in a fresh PID namespace, thaw it.
cuda
Package cuda finds the processes of a tree that hold CUDA state and moves that state with NVIDIA's cuda-checkpoint: lock, checkpoint to host memory before the CRIU dump; restore onto the receiver's GPUs and unlock after.
Package cuda finds the processes of a tree that hold CUDA state and moves that state with NVIDIA's cuda-checkpoint: lock, checkpoint to host memory before the CRIU dump; restore onto the receiver's GPUs and unlock after.
docker
Package docker drives the local Docker Engine over its unix socket with the handful of calls a snapshot and a restore make: ensure an image by digest, create a container from a Spec, start, wait, stop, remove, inspect, read logs, list by label.
Package docker drives the local Docker Engine over its unix socket with the handful of calls a snapshot and a restore make: ensure an image by digest, create a container from a Spec, start, wait, stop, remove, inspect, read logs, list by label.
gateway
Package gateway is the host's public endpoint of a restored engine: a TCP listener that forwards the inference routes, and only those, to the agent's inference socket.
Package gateway is the host's public endpoint of a restored engine: a TCP listener that forwards the inference routes, and only those, to the agent's inference socket.
host
Package host reads the facts a snapshot depends on from the machine: the GPUs (NVML), their topology, the driver and kernel, and holds an exclusive lease on the GPUs a run uses.
Package host reads the facts a snapshot depends on from the machine: the GPUs (NVML), their topology, the driver and kernel, and holds an exclusive lease on the GPUs a run uses.
interpose
Package interpose runs an engine under NVIDIA's cuInterpose, which lets cross-process CUDA memory (legacy IPC, VMM exports, multicast) survive a CUDA checkpoint.
Package interpose runs an engine under NVIDIA's cuInterpose, which lets cross-process CUDA memory (legacy IPC, VMM exports, multicast) survive a CUDA checkpoint.
manifest
Package manifest defines manifest.json, the one description of a snapshot.
Package manifest defines manifest.json, the one description of a snapshot.
oci
Package oci moves snapshots through an OCI registry.
Package oci moves snapshots through an OCI registry.
process
Package process runs bounded external tools without shell interpretation.
Package process runs bounded external tools without shell interpretation.
profile
Package profile loads model profiles and the hardware table from YAML and turns a profile into the effective vLLM launch: argv, environment, graph capture sizes, warmup grid, canary policy and resources.
Package profile loads model profiles and the hardware table from YAML and turns a profile into the effective vLLM launch: argv, environment, graph capture sizes, warmup grid, canary policy and resources.
pyext
Package pyext materializes the embedded vLLM worker extension on the host, where containers mount it read-only at /opt/warmctl/adapter.
Package pyext materializes the embedded vLLM worker extension on the host, where containers mount it read-only at /opt/warmctl/adapter.
restore
Package restore brings a snapshot back to serving: a receiver container installs the archived trees, CRIU restores the process tree stopped, the agent thaws it and puts its CUDA state on this host's GPUs, the engine reloads its weights pool and checks it, and the host gateway opens.
Package restore brings a snapshot back to serving: a receiver container installs the archived trees, CRIU restores the process tree stopped, the agent thaws it and puts its CUDA state on this host's GPUs, the engine reloads its weights pool and checks it, and the host gateway opens.
run
Package run holds what snapshot and restore share: the progress log, the run's container with its agent and engine, and the staging of files.
Package run holds what snapshot and restore share: the progress log, the run's container with its agent and engine, and the staging of files.
runtimefs
Package runtimefs archives the filesystem trees a process snapshot depends on: /workspace (compile and JIT caches, mapped .so files), /tmp and /dev/shm (what the engine wrote after the image), taken after the CRIU dump so the link_remap files CRIU leaves next to deleted-but-open files are ordinary members.
Package runtimefs archives the filesystem trees a process snapshot depends on: /workspace (compile and JIT caches, mapped .so files), /tmp and /dev/shm (what the engine wrote after the image), taken after the CRIU dump so the link_remap files CRIU leaves next to deleted-but-open files are ordinary members.
snapshot
Package snapshot bakes a snapshot: it starts the engine in a donor container, warms it up, records a canary, exports the weights pool, puts the engine to sleep, checkpoints CUDA, dumps the process tree with CRIU, archives the trees it wrote and publishes everything with one manifest.
Package snapshot bakes a snapshot: it starts the engine in a donor container, warms it up, records a canary, exports the weights pool, puts the engine to sleep, checkpoints CUDA, dumps the process tree with CRIU, archives the trees it wrote and publishes everything with one manifest.
store
Package store keeps snapshot blobs content-addressed under <state>/blobs/sha256/<digest>.
Package store keeps snapshot blobs content-addressed under <state>/blobs/sha256/<digest>.
vllm
Package vllm drives a vLLM API server through the agent's inference socket: lifecycle (health, sleep, wake), the worker RPC that reaches warmctl's extension, and token-ID completions for warmup and canaries.
Package vllm drives a vLLM API server through the agent's inference socket: lifecycle (health, sleep, wake), the worker RPC that reaches warmctl's extension, and token-ID completions for warmup and canaries.
tests
integration/criu/witness command
Command witness stands in for an inference engine in the CPU roundtrip.
Command witness stands in for an inference engine in the CPU roundtrip.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL