Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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:
|