Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def load_model(model_name):
|
|
149 |
#task_type="CAUSAL_LM",
|
150 |
)
|
151 |
print("222")
|
152 |
-
model = PeftModel.from_pretrained(
|
153 |
print("333")
|
154 |
model = model.merge_and_unload()
|
155 |
print("444")
|
|
|
149 |
#task_type="CAUSAL_LM",
|
150 |
)
|
151 |
print("222")
|
152 |
+
model = PeftModel.from_pretrained(model, "new_model", peft_config=peft_config)
|
153 |
print("333")
|
154 |
model = model.merge_and_unload()
|
155 |
print("444")
|