Skip to content

release 0.45.0: pgw#622 eager-while-compiling with hot-swap#369

Merged
PaulFidika merged 3 commits into
masterfrom
release/pgw622-hot-swap
Jul 22, 2026
Merged

release 0.45.0: pgw#622 eager-while-compiling with hot-swap#369
PaulFidika merged 3 commits into
masterfrom
release/pgw622-hot-swap

Conversation

@PaulFidika

Copy link
Copy Markdown
Contributor

Promotion chaos -> master: pgw#622 (release 0.45.0).

A compiled target's first call at a novel input signature no longer stalls
30-60s behind a Dynamo+Inductor compile. The consumer guard serves it (and
followups at that signature) through the eager original; one background
thread (nice +10, separate CUDA stream) warms the compiled callable with a
zero-filled dummy batch of the same signature; a successful warm atomically
hot-swaps the signature onto the compiled path. Each completed warm repacks
the live cache root and republishes the cell under the same ck1 key
(mode=replace) so the fleet never compiles that (shape, GPU, lane) again.

Sequential compile-then-serve is preserved for: the boot warmup-proof
window, mandatory quantized lanes (w8a8/w4a4), tight VRAM headroom
(degrade-don't-OOM), regional mode, and signature-vocabulary explosions.

Tests: tests/test_hot_swap_pgw622.py (18, incl. a real CPU torch.compile
round-trip and the race test vs an in-flight eager batch); adjacent
compile/cell suites green (248); mypy + ruff clean.

🤖 Generated with Claude Code

…erve immediately

A novel input signature at a compiled target no longer stalls 30-60s behind
Dynamo+Inductor: the guard routes it to the eager original, one background
thread warms the compiled callable with a zero-filled dummy batch (separate
CUDA stream, nice +10), and a successful warm atomically hot-swaps the
signature to the compiled path. Each completed warm repacks the live cache
root and republishes the cell under the same key so the fleet never
compiles that (shape, GPU, lane) again.

Sequential compile-then-serve is kept for: the boot warmup-proof window,
mandatory quantized lanes (w8a8/w4a4), tight VRAM headroom (degrade, never
OOM), regional mode, and signature-vocabulary explosions.
@PaulFidika
PaulFidika merged commit f2c1203 into master Jul 22, 2026
1 check passed
@PaulFidika
PaulFidika deleted the release/pgw622-hot-swap branch July 22, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant