robinhad commited on
Commit
38f0467
1 Parent(s): e741862

Use 3B model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,12 +15,12 @@ else:
15
  "device_map": "auto",
16
  }
17
 
18
- tokenizer = LlamaTokenizer.from_pretrained("openlm-research/open_llama_7b")
19
  model = LlamaForCausalLM.from_pretrained(
20
  "openlm-research/open_llama_7b",
21
  **options
22
  )
23
- model = PeftModel.from_pretrained(model, "robinhad/open_llama_7b_uk")
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=""):