Spaces:
Runtime error
Runtime error
eaglelandsonce
commited on
Commit
β’
efaa4a0
1
Parent(s):
31f3df3
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 |
-
|
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 |
+
|
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)
|