mirror of
https://github.com/kvcache-ai/sglang.git
synced 2026-07-09 00:37:44 +00:00
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).
|
||||
"""
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user