yilunzhao commited on
Commit
aaae591
1 Parent(s): 6d24724

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
7
 
8
  # Load model and tokenizer if a GPU is available
9
  if torch.cuda.is_available():
10
- model_id = "allenai/OLMo-7B-Instruct"
11
  adapters_name = "yilunzhao/olmo-finetuned"
12
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", trust_remote_code=True)
13
  model = PeftModel.from_pretrained(model, adapters_name)
 
7
 
8
  # Load model and tokenizer if a GPU is available
9
  if torch.cuda.is_available():
10
+ model_id = "allenai/OLMo-7B-hf"
11
  adapters_name = "yilunzhao/olmo-finetuned"
12
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", trust_remote_code=True)
13
  model = PeftModel.from_pretrained(model, adapters_name)