Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ model = LlamaForCausalLM.from_pretrained(
|
|
21 |
"openlm-research/open_llama_3b_v2",
|
22 |
**options
|
23 |
)
|
24 |
-
model = PeftModel.from_pretrained(model, "robinhad/open_llama_3b_uk",
|
25 |
|
26 |
|
27 |
def generate_prompt(instruction, input=None, output=""):
|
|
|
21 |
"openlm-research/open_llama_3b_v2",
|
22 |
**options
|
23 |
)
|
24 |
+
model = PeftModel.from_pretrained(model, "robinhad/open_llama_3b_uk", offload_state_dict=True, offload_folder=".")
|
25 |
|
26 |
|
27 |
def generate_prompt(instruction, input=None, output=""):
|