Fix idle batch predict dtype in spec v2 (#18379)
This commit is contained in:
@@ -267,7 +267,7 @@ class EagleVerifyInputV2Mixin:
|
|||||||
(which contains spec decoding information).
|
(which contains spec decoding information).
|
||||||
"""
|
"""
|
||||||
if batch.forward_mode.is_idle():
|
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(
|
accept_length = torch.empty(
|
||||||
0, dtype=torch.int32, device=batch.input_ids.device
|
0, dtype=torch.int32, device=batch.input_ids.device
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user