Use 3B model
Browse files
app.py
CHANGED
|
@@ -15,12 +15,12 @@ else:
|
|
| 15 |
"device_map": "auto",
|
| 16 |
}
|
| 17 |
|
| 18 |
-
tokenizer = LlamaTokenizer.from_pretrained("openlm-research/
|
| 19 |
model = LlamaForCausalLM.from_pretrained(
|
| 20 |
"openlm-research/open_llama_7b",
|
| 21 |
**options
|
| 22 |
)
|
| 23 |
-
model = PeftModel.from_pretrained(model, "robinhad/
|
| 24 |
|
| 25 |
|
| 26 |
def generate_prompt(instruction, input=None, output=""):
|
|
|
|
| 15 |
"device_map": "auto",
|
| 16 |
}
|
| 17 |
|
| 18 |
+
tokenizer = LlamaTokenizer.from_pretrained("openlm-research/open_llama_3b_v2")
|
| 19 |
model = LlamaForCausalLM.from_pretrained(
|
| 20 |
"openlm-research/open_llama_7b",
|
| 21 |
**options
|
| 22 |
)
|
| 23 |
+
model = PeftModel.from_pretrained(model, "robinhad/open_llama_3b_uk")
|
| 24 |
|
| 25 |
|
| 26 |
def generate_prompt(instruction, input=None, output=""):
|