Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|