Add tensor.detach() back to update weight util (#8691)

This commit is contained in:
Stefan He authored and GitHub committed 2025-08-02 00:41:05 -07:00
1 parent ea93079b30
commit 4ca43b061c
2 files changed
+63 -65

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ async def update_weights(
(
name,
MultiprocessingSerializer.serialize(
_preprocess_tensor_for_update_weights(tensor)
_preprocess_tensor_for_update_weights(tensor.detach())
),
)
for name, tensor in params_batch