Remove redundant type conversion (#4513)

This commit is contained in:
Lianmin Zheng
2025-03-17 05:57:35 -07:00
committed by GitHub
parent 5f9b2c62ff
commit 82dec1f70b
6 changed files with 16 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ class TpModelWorkerClient:
self.future_token_ids_ct = 0
self.future_token_ids_limit = self.max_running_requests * 3
self.future_token_ids_map = torch.empty(
(self.max_running_requests * 5,), dtype=torch.int32, device=self.device
(self.max_running_requests * 5,), dtype=torch.int64, device=self.device
)
# Launch threads