Update app.py
Browse files
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 = "
|
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:
|