This quant was made using exllamav2-0.2.7 with default dataset and extended quantization sample length (8k instead of default 2k). It also uses -head_bits=8 and max accuracy quant for first and last layer (8bpw), all other layers of the model use normally chosen methods (method and name (6.5bpw_L) inspired by quants like Q4_K_L and Q6_K_L made by bartowski)
It fits nicely in 24GB VRAM on Windows with 20k fp16 context (should fit all 32k that with q8 cache in exl2).
Mistral Small 3 ( 2501 ) sets a new benchmark in the "small" Large Language Models category below 70B, boasting 24B parameters and achieving state-of-the-art capabilities comparable to larger models!
This model is an instruction-fine-tuned version of the base model: Mistral-Small-24B-Base-2501.
Mistral Small can be deployed locally and is exceptionally "knowledge-dense", fitting in a single RTX 4090 or a 32GB RAM MacBook once quantized.
Perfect for:
Fast response conversational agents.
Low latency function calling.
Subject matter experts via fine-tuning.
Local inference for hobbyists and organizations handling sensitive data.
For enterprises that need specialized capabilities (increased context, particular modalities, domain specific knowledge, etc.), we will be releasing commercial models beyond what Mistral AI contributes to the community.
This release demonstrates our commitment to open source, serving as a strong base model.
Note: Running Mistral-Small-Instruct-2501 on GPU requires 60 GB of GPU RAM.
To ping the client you can use a simple Python snippet.
py
1import requests
2import json
3from datetime import datetime, timedelta
45url ="http://<your-server>:8000/v1/chat/completions"6headers ={"Content-Type":"application/json","Authorization":"Bearer token"}78model ="mistralai/Mistral-Small-24B-Instruct-2501"910messages =[11{12"role":"system",13"content":"You are a conversational agent that always answers straight to the point, always end your accurate response with an ASCII drawing of a cat."14},15{16"role":"user",17"content":"Give me 5 non-formal ways to say 'See you later' in French."18},19]2021data ={"model": model,"messages": messages}2223response = requests.post(url, headers=headers, data=json.dumps(data))24print(response.json()["choices"][0]["message"]["content"])2526# Sure, here are five non-formal ways to say "See you later" in French:27#28# 1. À plus tard29# 2. À plus30# 3. Salut31# 4. À toute32# 5. Bisous33#34# ```35# /\_/\36# ( o.o )37# > ^ <38# ```
Offline
py
1from vllm import LLM
2from vllm.sampling_params import SamplingParams
3from datetime import datetime, timedelta
45SYSTEM_PROMPT ="You are a conversational agent that always answers straight to the point, always end your accurate response with an ASCII drawing of a cat."67user_prompt ="Give me 5 non-formal ways to say 'See you later' in French."89messages =[10{11"role":"system",12"content": SYSTEM_PROMPT
13},14{15"role":"user",16"content": user_prompt
17},18]1920# note that running this model on GPU requires over 60 GB of GPU RAM21llm = LLM(model=model_name, tokenizer_mode="mistral", tensor_parallel_size=8)2223sampling_params = SamplingParams(max_tokens=512)2425outputs = llm.chat(messages, sampling_params=sampling_params)2627print(outputs[0].outputs[0].text)28# Sure, here are five non-formal ways to say "See you later" in French:29#30# 1. À plus tard31# 2. À plus32# 3. Salut33# 4. À toute34# 5. Bisous35#36# ```37# /\_/\38# ( o.o )39# > ^ <40# ```
Transformers
If you want to use Hugging Face transformers to generate text, you can do something like this.
py
1from transformers import pipeline
23messages =[4{"role":"system","content":"You are a conversational agent that always answers straight to the point, always end your accurate response with an ASCII drawing of a cat."},5{"role":"user","content":"Give me 5 non-formal ways to say 'See you later' in French."},6]7chatbot = pipeline("text-generation", model="mistralai/Mistral-Small-24B-Instruct-2501", max_new_tokens=256)8chatbot(messages)
The Mistral AI Team
Albert Jiang, Alexandre Sablayrolles, Alexis Tacnet, Alok Kothari, Antoine Roux, Arthur Mensch, Audrey Herblin-Stoop, Augustin Garreau, Austin Birky, Bam4d, Baptiste Bout, Baudouin de Monicault, Blanche Savary, Carole Rambaud, Caroline Feldman, Devendra Singh Chaplot, Diego de las Casas, Diogo Costa, Eleonore Arcelin, Emma Bou Hanna, Etienne Metzger, Gaspard Blanchet, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Harizo Rajaona, Henri Roussez, Hichem Sattouf, Ian Mack, Jean-Malo Delignon, Jessica Chudnovsky, Justus Murke, Kartik Khandelwal, Lawrence Stewart, Louis Martin, Louis Ternon, Lucile Saulnier, Lélio Renard Lavaud, Margaret Jennings, Marie Pellat, Marie Torelli, Marie-Anne Lachaux, Marjorie Janiewicz, Mickaël Seznec, Nicolas Schuhl, Niklas Muhs, Olivier de Garrigues, Patrick von Platen, Paul Jacob, Pauline Buche, Pavan Kumar Reddy, Perry Savas, Pierre Stock, Romain Sauvestre, Sagar Vaze, Sandeep Subramanian, Saurabh Garg, Sophia Yang, Szymon Antoniak, Teven Le Scao, Thibault Schueller, Thibaut Lavril, Thomas Wang, Théophile Gervet, Timothée Lacroix, Valera Nemychnikova, Wendy Shang, William El Sayed, William Marshall