Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ if not torch.cuda.is_available():
|
|
25 |
|
26 |
if torch.cuda.is_available():
|
27 |
model_id = "NousResearch/Hermes-2-Pro-Mistral-7B"
|
28 |
-
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto"
|
29 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
30 |
tokenizer.use_default_system_prompt = False
|
31 |
|
|
|
25 |
|
26 |
if torch.cuda.is_available():
|
27 |
model_id = "NousResearch/Hermes-2-Pro-Mistral-7B"
|
28 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
29 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
30 |
tokenizer.use_default_system_prompt = False
|
31 |
|