Spaces:
Paused
Paused
Update app_chat.py
Browse files- app_chat.py +1 -1
app_chat.py
CHANGED
@@ -18,7 +18,7 @@ DESCRIPTION = """\
|
|
18 |
"""
|
19 |
|
20 |
model_id = "nvidia/Hymba-1.5B-Instruct"
|
21 |
-
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="cuda", trust_remote_code=True)
|
22 |
model.to('cuda')
|
23 |
model.eval()
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
|
|
18 |
"""
|
19 |
|
20 |
model_id = "nvidia/Hymba-1.5B-Instruct"
|
21 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="cuda", model_dtype="bfloat16", trust_remote_code=True)
|
22 |
model.to('cuda')
|
23 |
model.eval()
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|