yilunzhao commited on
Commit
026f5b2
1 Parent(s): 7eb73dd

Update app.py

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