gpt-omni commited on
Commit
03a92bb
1 Parent(s): 46f6b33

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -357,7 +357,7 @@ def load_model(ckpt_dir, device):
357
  with fabric.init_module(empty_init=False):
358
  model = GPT(config)
359
 
360
- model = fabric.setup(model)
361
  state_dict = lazy_load(ckpt_dir + "/lit_model.pth")
362
  model.load_state_dict(state_dict, strict=True)
363
  model.to(device).eval()
 
357
  with fabric.init_module(empty_init=False):
358
  model = GPT(config)
359
 
360
+ # model = fabric.setup(model)
361
  state_dict = lazy_load(ckpt_dir + "/lit_model.pth")
362
  model.load_state_dict(state_dict, strict=True)
363
  model.to(device).eval()