csuhan commited on
Commit
c30db44
·
1 Parent(s): 3cf154c
Files changed (1) hide show
  1. app.py +3 -3
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="cuda")
66
  instruct_adapter_checkpoint = torch.load(
67
- instruct_adapter_path, map_location="cuda")
68
  caption_adapter_checkpoint = torch.load(
69
- caption_adapter_path, map_location="cuda")
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