PhantHive commited on
Commit
731e545
·
1 Parent(s): 2ff7936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,9 +4,9 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
4
  import torch
5
 
6
  # Load the model and config when the script starts
7
- config = PeftConfig.from_pretrained("% MODEL_NAME %")
8
  model = AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-chat-hf")
9
- model = PeftModel.from_pretrained(model, "% MODEL_NAME %")
10
 
11
  # Load the tokenizer
12
  tokenizer = AutoTokenizer.from_pretrained("NousResearch/Llama-2-7b-chat-hf", add_eos_token=True)
 
4
  import torch
5
 
6
  # Load the model and config when the script starts
7
+ config = PeftConfig.from_pretrained("PhantHive/bigbrain")
8
  model = AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-chat-hf")
9
+ model = PeftModel.from_pretrained(model, "PhantHive/bigbrain")
10
 
11
  # Load the tokenizer
12
  tokenizer = AutoTokenizer.from_pretrained("NousResearch/Llama-2-7b-chat-hf", add_eos_token=True)