Building upon Mistral Small 3.1 (2503), with added reasoning capabilities, undergoing SFT from Magistral Medium traces and RL on top, it's a small, efficient reasoning model with 24B parameters.
Magistral Small can be deployed locally, fitting within a single RTX 4090 or a 32GB RAM MacBook once quantized.
Apache 2.0 License: Open license allowing usage and modification for both commercial and non-commercial purposes.
Context Window: A 128k context window, but performance might degrade past 40k. Hence we recommend setting the maximum model length to 40k.
Benchmark Results
Model
AIME24 pass@1
AIME25 pass@1
GPQA Diamond
Livecodebench (v5)
Magistral Medium
73.59%
64.95%
70.83%
59.36%
Magistral Small
70.68%
62.76%
68.18%
55.84%
Sampling parameters
Please make sure to use:
top_p: 0.95
temperature: 0.7
max_tokens: 40960
Basic Chat Template
We highly recommend including the default system prompt used during RL for the best results, you can edit and customise it if needed for your specific use case.
<s>[SYSTEM_PROMPT]system_prompt
A user will ask you to solve a task. You should first draft your thinking process (inner monologue) until you have derived the final answer. Afterwards, write a self-contained summary of your thoughts (i.e. your summary should be succinct but contain all the critical steps you needed to reach the conclusion). You should use Markdown to format your response. Write both your thoughts and summary in the same language as the task posed by the user. NEVER use \boxed{} in your response.
Your thinking process must follow the template below:
<think>
Your thoughts or/and draft, like working through an exercise on scratch paper. Be as casual and as long as you want until you are confident to generate a correct answer.
</think>
Here, provide a concise summary that reflects your reasoning and presents a clear final answer to the user. Don't mention that this is a summary.
Problem:
[/SYSTEM_PROMPT][INST]user_message[/INST]<think>
reasoning_traces
</think>
assistant_response</s>[INST]user_message[/INST]
system_prompt, user_message and assistant_response are placeholders.
We invite you to choose, depending on your use case and requirements, between keeping reasoning traces during multi-turn interactions or keeping only the final assistant response.
Please make sure to use mistral-common as the source of truth
Usage
The model can be used with the following frameworks;
1from openai import OpenAI
2from huggingface_hub import hf_hub_download
34# Modify OpenAI's API key and API base to use vLLM's API server.5openai_api_key ="EMPTY"6openai_api_base ="http://localhost:8000/v1"78TEMP =0.79TOP_P =0.9510MAX_TOK =40_9601112client = OpenAI(13 api_key=openai_api_key,14 base_url=openai_api_base,15)1617models = client.models.list()18model = models.data[0].id1920defload_system_prompt(repo_id:str, filename:str)->str:21 file_path = hf_hub_download(repo_id=repo_id, filename=filename)22withopen(file_path,"r")asfile:23 system_prompt =file.read()24return system_prompt
2526SYSTEM_PROMPT = load_system_prompt(model,"SYSTEM_PROMPT.txt")2728query ="Write 4 sentences, each with at least 8 words. Now make absolutely sure that every sentence has exactly one word less than the previous sentence."29# or try out other queries30# query = "Exactly how many days ago did the French Revolution start? Today is June 4th, 2025."31# query = "Think about 5 random numbers. Verify if you can combine them with addition, multiplication, subtraction or division to 133"32# query = "If it takes 30 minutes to dry 12 T-shirts in the sun, how long does it take to dry 33 T-shirts?"3334messages =[35{"role":"system","content": SYSTEM_PROMPT},36{"role":"user","content": query}37]38stream = client.chat.completions.create(39 model=model,40 messages=messages,41 stream=True,42 temperature=TEMP,43 top_p=TOP_P,44 max_tokens=MAX_TOK,45)4647print("client: Start streaming chat completions...")48printed_content =False4950for chunk in stream:51 content =None52# Check the content is content53ifhasattr(chunk.choices[0].delta,"content"):54 content = chunk.choices[0].delta.content
5556if content isnotNone:57ifnot printed_content:58 printed_content =True59print("\ncontent:", end="", flush=True)60# Extract and print the content61print(content, end="", flush=True)6263# content:<think>64# Alright, I need to write 4 sentences where each one has at least 8 words and each subsequent sentence has one fewer word than the previous one.65# ...66# Final boxed answer (the four sentences):6768# \[69# \boxed{70# \begin{aligned}71# &\text{1. The quick brown fox jumps over lazy dog and yells hello.} \\72# &\text{2. I saw the cat on the stair with my hat.} \\73# &\text{3. The man in the moon came down quickly today.} \\74# &\text{4. A cat sat on the mat today patiently.}75# \end{aligned}76# }77# \]