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 a2bfc03 commit b78eb8fCopy full SHA for b78eb8f
src/compressed_tensors/utils/offload.py
@@ -579,6 +579,7 @@ def remove_dispatch(module: torch.nn.Module) -> torch.nn.Module:
579
remove_hook_from_module(module, recurse=True)
580
if hasattr(module, "hf_device_map"):
581
delattr(module, "hf_device_map")
582
+ module.to("cpu")
583
584
return module
585
0 commit comments