rphrp1985 commited on
Commit
5cfe646
·
verified ·
1 Parent(s): 0d02f18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ with init_empty_weights():
58
  device_map = infer_auto_device_map(model, max_memory={0: "80GB", 1: "80GB", "cpu": "65GB"})
59
 
60
  # Load the model with the inferred device map
61
- model = load_checkpoint_and_dispatch(model, "path_to_checkpoint", device_map=device_map)
62
  model.half()
63
 
64
 
 
58
  device_map = infer_auto_device_map(model, max_memory={0: "80GB", 1: "80GB", "cpu": "65GB"})
59
 
60
  # Load the model with the inferred device map
61
+ model = load_checkpoint_and_dispatch(model, model_id, device_map=device_map, no_split_module_classes=["GPTJBlock"])
62
  model.half()
63
 
64