Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ CHAT_TEMPLATE="""{%- set default_system_message = "A user will ask you to solve
|
|
45 |
|
46 |
if torch.cuda.is_available():
|
47 |
model_id = "mistralai/Mistral-Small-24B-Instruct-2501"
|
48 |
-
model = AutoModelForCausalLM.from_pretrained("AlexHung29629/
|
49 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-Small-24B-Instruct-2501")
|
50 |
|
51 |
|
|
|
45 |
|
46 |
if torch.cuda.is_available():
|
47 |
model_id = "mistralai/Mistral-Small-24B-Instruct-2501"
|
48 |
+
model = AutoModelForCausalLM.from_pretrained("AlexHung29629/fix_magistral3", torch_dtype=torch.bfloat16, device_map="auto")
|
49 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-Small-24B-Instruct-2501")
|
50 |
|
51 |
|