wondervictor commited on
Commit
8549840
·
verified ·
1 Parent(s): 80ddc5e

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -2
model.py CHANGED
@@ -84,8 +84,8 @@ class 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
 
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