Fix integer overflows in attention & cache ops (#1514)

This commit is contained in:
Woosuk Kwon
2023-10-31 15:19:30 -07:00
committed by GitHub
parent 9cabcb7645
commit 0ce8647dc5
5 changed files with 53 additions and 47 deletions
+1 -1
View File
@@ -301,7 +301,7 @@ class Worker:
dtype=torch.long,
device="cuda")
slot_mapping_tensor = torch.tensor(padded_slot_mapping,
dtype=torch.int,
dtype=torch.long,
device="cuda")
context_lens_tensor = torch.tensor(context_lens,
dtype=torch.int,