Spaces:
Running
on
Zero
Running
on
Zero
wondervictor
commited on
Update model.py
Browse files
model.py
CHANGED
@@ -85,7 +85,7 @@ class Model:
|
|
85 |
).to(device='cuda', dtype=precision)
|
86 |
|
87 |
model_weight = load_file(gpt_ckpt)
|
88 |
-
gpt_model.load_state_dict(model_weight, strict=True)
|
89 |
gpt_model.eval()
|
90 |
print("gpt model is loaded")
|
91 |
return gpt_model
|
|
|
85 |
).to(device='cuda', dtype=precision)
|
86 |
|
87 |
model_weight = load_file(gpt_ckpt)
|
88 |
+
# gpt_model.load_state_dict(model_weight, strict=True)
|
89 |
gpt_model.eval()
|
90 |
print("gpt model is loaded")
|
91 |
return gpt_model
|