Spaces:
Sleeping
Sleeping
Update inference.py
Browse files- 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()
|