Spaces:
Runtime error
Runtime error
eaglelandsonce
commited on
Commit
β’
31f3df3
1
Parent(s):
44680f4
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,8 @@ QA_PROMPT = PromptTemplate(
|
|
34 |
)
|
35 |
|
36 |
# Load Phi-2 model from hugging face hub
|
37 |
-
model_id = "microsoft/phi-2"
|
38 |
-
|
39 |
|
40 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
41 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float32, device_map="auto", trust_remote_code=True)
|
|
|
34 |
)
|
35 |
|
36 |
# Load Phi-2 model from hugging face hub
|
37 |
+
# model_id = "microsoft/phi-2"
|
38 |
+
model_id = "HuggingFaceH4/zephyr-7b-alpha"
|
39 |
|
40 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
41 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float32, device_map="auto", trust_remote_code=True)
|