EvanTHU commited on
Commit
e53f6f9
·
verified ·
1 Parent(s): edcbefc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -508,7 +508,7 @@ quantize = None
508
  t0 = time.time()
509
 
510
  mlp_path = args.mlp_path
511
- pretrained_checkpoint_mlp = torch.load(mlp_path)
512
 
513
  with EmptyInitOnDevice(
514
  device=fabric.device, dtype=dtype, quantization_mode=quantize
 
508
  t0 = time.time()
509
 
510
  mlp_path = args.mlp_path
511
+ pretrained_checkpoint_mlp = torch.load(mlp_path, map_location='cpu')
512
 
513
  with EmptyInitOnDevice(
514
  device=fabric.device, dtype=dtype, quantization_mode=quantize