chbsaikiran commited on
Commit
f69eeb3
·
1 Parent(s): f643792

using different model

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -18,10 +18,11 @@ model = LlamaForCausalLM(
18
  )
19
  device = "cpu"
20
 
21
- checkpoint_path = "model_bin.pth"
 
 
22
  checkpoint = torch.load(checkpoint_path, map_location=device)
23
- #model.load_state_dict(checkpoint['model_state_dict'])
24
- model.load_state_dict(torch.load(checkpoint_path, map_location=device))
25
  model.to(device)
26
  model.eval()
27
 
 
18
  )
19
  device = "cpu"
20
 
21
+ model_id = "satyanayak/custom-smallmv2135"
22
+ checkpoint_path = hf_hub_download(repo_id=model_id, filename="model-dict-step-5500.pt")
23
+
24
  checkpoint = torch.load(checkpoint_path, map_location=device)
25
+ model.load_state_dict(checkpoint['model_state_dict'])
 
26
  model.to(device)
27
  model.eval()
28