[Perf][3/n] Eliminate GPU<->CPU syncs in attention impls (#41434)

Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
Nick Hill
2026-05-07 19:44:24 -07:00
committed by GitHub
parent cd58e30872
commit 989c176c0a
10 changed files with 169 additions and 68 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ class StagedWriteTensor:
# Special handling for write_contents
write_contents = async_tensor_h2d(
self._staged_write_contents, self.dtype, self.device, pin_memory=True
self._staged_write_contents, self.dtype, self.device
)
# Write diffs to the GPU buffer