Spaces:
Runtime error
Runtime error
init
Browse files
app.py
CHANGED
@@ -62,11 +62,11 @@ def load(
|
|
62 |
), f"Loading a checkpoint for MP={len(checkpoints)} but world size is {world_size}"
|
63 |
ckpt_path = checkpoints[local_rank]
|
64 |
print("Loading")
|
65 |
-
checkpoint = torch.load(ckpt_path, map_location="
|
66 |
instruct_adapter_checkpoint = torch.load(
|
67 |
-
instruct_adapter_path, map_location="
|
68 |
caption_adapter_checkpoint = torch.load(
|
69 |
-
caption_adapter_path, map_location="
|
70 |
with open(Path(ckpt_dir) / "params.json", "r") as f:
|
71 |
params = json.loads(f.read())
|
72 |
|
|
|
62 |
), f"Loading a checkpoint for MP={len(checkpoints)} but world size is {world_size}"
|
63 |
ckpt_path = checkpoints[local_rank]
|
64 |
print("Loading")
|
65 |
+
checkpoint = torch.load(ckpt_path, map_location="cpu")
|
66 |
instruct_adapter_checkpoint = torch.load(
|
67 |
+
instruct_adapter_path, map_location="cpu")
|
68 |
caption_adapter_checkpoint = torch.load(
|
69 |
+
caption_adapter_path, map_location="cpu")
|
70 |
with open(Path(ckpt_dir) / "params.json", "r") as f:
|
71 |
params = json.loads(f.read())
|
72 |
|