Fix minor style (#4460)

This commit is contained in:
Lianmin Zheng authored and GitHub committed 2025-03-15 21:51:12 -07:00
1 parent 158430473e
commit 2c4f5ccac1
3 files changed
+7 -4

No files matched your search

@@ -340,6 +340,7 @@ class MHATokenToKVPool(KVCache):
cache_v = cache_v.view(self.store_dtype)
if self.capture_mode and cache_k.shape[0] < 4:
# Overlap the copy of K and V cache for small batch size
current_stream = self.device_module.current_stream()
self.alt_stream.wait_stream(current_stream)
with self.device_module.stream(self.alt_stream):