pivovalera2012 commited on
Commit
a896a74
1 Parent(s): 2197f50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
5
  MODEL_NAME = 'meta-llama/Llama-2-7b-chat-hf'
6
  ADAPTERS_NAME = 'pivovalera2012/Llama-2-7b-Dr-Hous-test'
7
 
8
- model_trained = AutoModelForCausalLM.from_pretrained(MODEL_NAME)
 
9
 
10
  model_trained = PeftModel.from_pretrained(model_trained, ADAPTERS_NAME)
11
  model_trained = model_trained.merge_and_unload()
 
5
  MODEL_NAME = 'meta-llama/Llama-2-7b-chat-hf'
6
  ADAPTERS_NAME = 'pivovalera2012/Llama-2-7b-Dr-Hous-test'
7
 
8
+ model_trained = AutoModelForCausalLM.from_pretrained(MODEL_NAME,
9
+ token)
10
 
11
  model_trained = PeftModel.from_pretrained(model_trained, ADAPTERS_NAME)
12
  model_trained = model_trained.merge_and_unload()