csuhan commited on
Commit
719a1dd
·
1 Parent(s): 5c71922
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ def load(
66
  # ), f"Loading a checkpoint for MP={len(checkpoints)} but world size is {world_size}"
67
  # ckpt_path = checkpoints[local_rank]
68
  print("Loading")
69
- checkpoint = torch.load(ckpt_path, map_location="cpu")
70
  instruct_adapter_checkpoint = torch.load(
71
  instruct_adapter_path, map_location="cpu")
72
  caption_adapter_checkpoint = torch.load(
 
66
  # ), f"Loading a checkpoint for MP={len(checkpoints)} but world size is {world_size}"
67
  # ckpt_path = checkpoints[local_rank]
68
  print("Loading")
69
+ checkpoint = torch.load(ckpt_path, map_location="cuda")
70
  instruct_adapter_checkpoint = torch.load(
71
  instruct_adapter_path, map_location="cpu")
72
  caption_adapter_checkpoint = torch.load(