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