warmctl

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

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

Go to latest
Published: Nov 1, 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, B300, L40S, RTX PRO 6000

warmctl is GPU checkpoint/restore for vLLM. It snapshots a warmed-up engine and restores it in seconds on any host with the same GPUs and NVIDIA driver branch, so a new replica skips weight loading, torch.compile, kernel autotuning and CUDA graph capture. GLM-5.3-Flash on 8×H100: vLLM cold start 650 s, warmctl up 37 s, then stock serving speed. That makes scale to zero, fast autoscaling and spot GPU replacement practical for large models.

Docs · Catalog · Blog · Status and limits · Alternatives

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 and its GPUs
warmctl catalog                                # models this host can restore
warmctl up qwen3-8b --listen 0.0.0.0:8000      # pull, restore, serve

The public catalog has 21 models on H100, H200, B200, B300, L40S and RTX PRO 6000. Any other model vLLM serves with sleep mode, build yourself (tutorial):

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
DeepSeek-V4.1-Flash-1017 8×B300 729 GiB 76 s ~1026 s
DeepSeek-V4.1-Flash-1017, DEP8 8×B200 809 GiB 84 s 1077 s
DeepSeek-V4.1-Flash-1017, DEP8 8×B300 851 GiB 88 s 930 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: how a restore works, architecture, shared GPU memory, registries and caches.

Status and limits

warmctl is in beta: releases are GitHub pre-releases, and every user-facing change is in the CHANGELOG. Each restore is checked before it serves: the host must match the snapshot before anything is downloaded, every file carries its SHA-256, every weights allocation is compared by a GPU fingerprint, and a canary prompt must get the original engine's answer (bitwise for large models).

Works today Not yet
vLLM SGLang, TensorRT-LLM, TGI, LMDeploy (planned)
1 to 8 GPUs on one node, tensor and expert parallel Engines that span several nodes
H100, H200, B200, B300, L40S, RTX PRO 6000 Another GPU model or count, or another driver branch: build a snapshot for that platform
Docker hosts, Kubernetes, KServe GPUs in confidential-computing mode (cuda-checkpoint does not support it)
Any OCI registry, or a shared file system

Kubernetes

The warmctl runtime image, registry.warmctl.io/warmctl/runtime:latest (anonymous pull; pin a release tag such as :v2.0.0-beta.15 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, a KEDA autoscaler and a KServe LLMInferenceService preset; details in docs/kubernetes.md. Tutorials: Kubernetes, KServe. Measured on GPU clusters: GLM-5.3-Flash on 8×H100 restores in 58 s from a shared file system (post), and a new KServe replica of Qwen3-8B on an L40S serves in 14 s (post).

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, B300, L40S and RTX PRO 6000. warmctl hardware lists the GPU models warmctl knows and marks this host's; another model is a row in a hardware.yaml next to your profiles (--profile-dir). Keep warmctl, cuinterpose/ and the versioned dmtcp/ directory from the linux-amd64 archive side by side; the installer does this automatically. Linux arm64 archives include DMTCP but no cuInterpose yet and are CPU-tested, not GPU-qualified. The native DMTCP packages require Debian 12-compatible glibc (>= 2.36) and libstdc++. macOS builds run the registry side: catalog, images, mirror, push, pull. Source builds use make build cuinterpose; see DMTCP runtime installation and upgrades. 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.
dmtcp
Package dmtcp checkpoints and restarts an engine's process tree with DMTCP, entirely in user space: the backend for containers that cannot run CRIU (no CAP_SYS_ADMIN or CAP_CHECKPOINT_RESTORE, a read-only /proc/sys, unshare refused by seccomp), such as RunPod pods.
Package dmtcp checkpoints and restarts an engine's process tree with DMTCP, entirely in user space: the backend for containers that cannot run CRIU (no CAP_SYS_ADMIN or CAP_CHECKPOINT_RESTORE, a read-only /proc/sys, unshare refused by seccomp), such as RunPod pods.
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.
zframes
Package zframes stores a file as independent zstd frames, each of Size bytes of it but the last, so that a reader fetches and decodes the frames in parallel: the form a snapshot's process images and weights take on network storage, where every byte read costs and one decoding stream would not keep up with fast storage.
Package zframes stores a file as independent zstd frames, each of Size bytes of it but the last, so that a reader fetches and decodes the frames in parallel: the form a snapshot's process images and weights take on network storage, where every byte read costs and one decoding stream would not keep up with fast storage.
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