Tonic commited on
Commit
eab1dfc
1 Parent(s): 82f8dc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ tokenizer.padding_side = 'left'
59
 
60
  # Load the PEFT model
61
  peft_config = PeftConfig.from_pretrained("Tonic/stablemed", token=hf_token)
62
- peft_model = MistralForCausalLM.from_pretrained("stabilityai/stablelm-3b-4e1t", token=hf_token, trust_remote_code=True)
63
  peft_model = PeftModel.from_pretrained(peft_model, "Tonic/stablemed", token=hf_token)
64
 
65
  class ChatBot:
 
59
 
60
  # Load the PEFT model
61
  peft_config = PeftConfig.from_pretrained("Tonic/stablemed", token=hf_token)
62
+ peft_model = AutoModelForCausalLM.from_pretrained("stabilityai/stablelm-3b-4e1t", token=hf_token, trust_remote_code=True)
63
  peft_model = PeftModel.from_pretrained(peft_model, "Tonic/stablemed", token=hf_token)
64
 
65
  class ChatBot: