Fix idle batch predict dtype in spec v2 (#18379)

This commit is contained in:
Qiaolin Yu
2026-02-09 18:29:13 -08:00
committed by GitHub
parent df733c5ee5
commit 4a1b50bb2d

View File

@@ -267,7 +267,7 @@ class EagleVerifyInputV2Mixin:
(which contains spec decoding information).
"""
if batch.forward_mode.is_idle():
predict = torch.empty(0, dtype=torch.long, device=batch.input_ids.device)
predict = torch.empty(0, dtype=torch.int32, device=batch.input_ids.device)
accept_length = torch.empty(
0, dtype=torch.int32, device=batch.input_ids.device
)