Spaces:
Sleeping
Sleeping
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 |
if torch.cuda.is_available():
|
47 |
model_id = "mistralai/Mistral-Small-24B-Instruct-2501"
|
48 |
model = AutoModelForCausalLM.from_pretrained("AlexHung29629/fix_magistra4b", torch_dtype=torch.bfloat16, device_map="auto")
|
49 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
50 |
|
51 |
|
52 |
@spaces.GPU
|
|
|
46 |
if torch.cuda.is_available():
|
47 |
model_id = "mistralai/Mistral-Small-24B-Instruct-2501"
|
48 |
model = AutoModelForCausalLM.from_pretrained("AlexHung29629/fix_magistra4b", torch_dtype=torch.bfloat16, device_map="auto")
|
49 |
+
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-Small-24B-Instruct-2501")
|
50 |
|
51 |
|
52 |
@spaces.GPU
|