Skip to content

Commit 4d1eebd

Browse files
authored
[Feat] enable ascend update_params (#4111)
1 parent bbc4369 commit 4d1eebd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lmdeploy/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ def serialize_state_dict(state_dict: dict) -> str:
458458
from multiprocessing.reduction import ForkingPickler
459459

460460
from torch.multiprocessing.reductions import reduce_tensor
461-
assert all(v.device.type == 'cuda' for v in state_dict.values())
462461
data = [(k, reduce_tensor(v)) for k, v in state_dict.items()]
463462
buf = BytesIO()
464463
ForkingPickler(buf).dump(data)

0 commit comments

Comments
 (0)