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.
2 parents bc4aa4f + 5730060 commit d0cd5acCopy full SHA for d0cd5ac
opensora/utils/ckpt.py
@@ -113,8 +113,7 @@ def load_checkpoint(
113
114
log_message(f"Loading checkpoint from {path}")
115
if path.endswith(".safetensors"):
116
- # ckpt = load_file(path, device=str(device_map))
117
- ckpt = load_file(path, device=torch.cuda.current_device())
+ ckpt = load_file(path, device='cpu')
118
119
if rename_keys is not None:
120
# rename keys in the loaded state_dict with old_key_prefix to with new_key_prefix.
0 commit comments