[Fix] Fix cuda graph padding for triton attention backend (#1782)
This commit is contained in:
1 parent
0089c4bc96
commit
fc82f5a743
6 files changed
+3
-19
No files matched your search
@@ -38,7 +38,7 @@ class ReqToTokenPool:
|
||||
self.size = size
|
||||
self.max_context_len = max_context_len
|
||||
self.device = device
|
||||
self.req_to_token = torch.empty(
|
||||
self.req_to_token = torch.zeros(
|
||||
(size, max_context_len), dtype=torch.int32, device=device
|
||||
)
|
||||
self.free_slots = list(range(size))
|
||||
|
||||
Reference in new issue
Block a user