Files
vllm/vllm/model_executor/models
Tyler Michael SmithandClaude Opus 4.6 171eb482e8 [Kernel] Add pluggable NaN/Inf tensor checks to NaN detector
Add check_tensor() to NaNDetector for checking arbitrary tensors at
any point in the forward pass. Uses torch.isfinite() — all ops stay
on GPU, CUDA-graph compatible, writes to the same per-token flag
array as the RMSNorm kernel checks.

Any module can register checkpoints via register() and call
check_tensor(tensor, idx) in its forward. update_layer_names()
picks up _nan_detect_indices dicts for readable names.

Wire into DeepseekV2Attention to check attn_output before o_proj,
distinguishing "attention produced NaN" from "o_proj produced NaN".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
2026-03-28 18:58:43 -04:00
..
2026-03-17 21:04:17 +00:00
2026-03-10 08:14:21 -07:00
2026-03-05 17:05:46 +00:00
2026-03-05 17:05:46 +00:00
2026-02-19 22:07:23 -08:00
2026-03-05 17:05:46 +00:00
2026-03-11 16:39:29 +00:00
2026-03-05 17:05:46 +00:00
2026-03-05 17:05:46 +00:00
2026-03-11 16:39:29 +00:00
2026-02-06 00:08:05 -08:00