vaishakgkumar commited on
Commit
443561d
1 Parent(s): f8d2e9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
18
  tokenizer = AutoTokenizer.from_pretrained('stabilityai/stablelm-3b-4e1t',token=hf_token, trust_remote_code=True)
19
  config = PeftConfig.from_pretrained("vaishakgkumar/stablemedv1")
20
  model = AutoModelForCausalLM.from_pretrained("stabilityai/stablelm-3b-4e1t",token=hf_token, trust_remote_code=True)
21
- model = PeftModel.from_pretrained(model, "vaishakgkumar/stablemedv1")
22
 
23
  model.to(device)
24
 
 
18
  tokenizer = AutoTokenizer.from_pretrained('stabilityai/stablelm-3b-4e1t',token=hf_token, trust_remote_code=True)
19
  config = PeftConfig.from_pretrained("vaishakgkumar/stablemedv1")
20
  model = AutoModelForCausalLM.from_pretrained("stabilityai/stablelm-3b-4e1t",token=hf_token, trust_remote_code=True)
21
+ model = PeftModel.from_pretrained(model, "vaishakgkumar/stablemedv1",token=hf_token)
22
 
23
  model.to(device)
24