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