DenSec02 commited on
Commit
659202d
·
verified ·
1 Parent(s): e4680ab

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ cfg = ModelConfig(
30
  model = GlubLM(cfg)
31
 
32
  state = load_file(weights_path)
33
- model.load_state_dict(state)
34
  model.eval()
35
 
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
30
  model = GlubLM(cfg)
31
 
32
  state = load_file(weights_path)
33
+ model.load_state_dict(state, strict=False)
34
  model.eval()
35
 
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")