Update app.py
Browse files
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-
|
| 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)
|