We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc4369 commit 4d1eebdCopy full SHA for 4d1eebd
lmdeploy/utils.py
@@ -458,7 +458,6 @@ def serialize_state_dict(state_dict: dict) -> str:
458
from multiprocessing.reduction import ForkingPickler
459
460
from torch.multiprocessing.reductions import reduce_tensor
461
- assert all(v.device.type == 'cuda' for v in state_dict.values())
462
data = [(k, reduce_tensor(v)) for k, v in state_dict.items()]
463
buf = BytesIO()
464
ForkingPickler(buf).dump(data)
0 commit comments