vllm
7779fccd - Add NaN/Inf detection for NIXL KV cache transfers

Commit
246 days ago
Add NaN/Inf detection for NIXL KV cache transfers Gate behind VLLM_NIXL_NAN_DETECT=1 env var. Checks KV cache blocks for NaN on the decoder side after recv completes and on the prefiller side after send is confirmed. Handles uint8-stored fp8 KV caches (MLA cross-layer) by viewing as float8_e4m3fn before isnan check. Uses a fast two-pass approach: single torch.isnan().any() across all layers first, only doing per-layer breakdown if NaN is found. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
Author
Parents
Loading