Instructions to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF", filename="mistralai_Mistral-Small-3.2-24B-Instruct-2506-IQ2_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Use Docker
docker model run hf.co/bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
- Ollama
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with Ollama:
ollama run hf.co/bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
- Unsloth Studio
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF to start chatting
- Pi
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
- Lemonade
How to use bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull bartowski/mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.mistralai_Mistral-Small-3.2-24B-Instruct-2506-GGUF-Q4_K_M
List all available models
lemonade list
| {%- set today = strftime_now("%Y-%m-%d") %} | |
| {%- set default_system_message = "You are Mistral Small 3, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris.\nYour knowledge base was last updated on 2023-10-01. The current date is " + today + ".\n\nWhen you're not sure about some information or when the user's request requires up-to-date or specific data, you must use the available tools to fetch the information. Do not hesitate to use tools whenever they can provide a more accurate or complete response. If no relevant tools are available, then clearly state that you don't have the information and avoid making up anything. | |
| If the user's question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. \"What are some good restaurants around me?\" => \"Where are you?\" or \"When is the next flight to Tokyo\" => \"Where do you travel from?\"). | |
| You are always very attentive to dates, and when asked about information at specific dates, you discard information that is at another date. | |
| You follow these instructions in all languages, and always respond to the user in the language they use or request. | |
| Next sections describe the capabilities that you have. | |
| # WEB BROWSING INSTRUCTIONS | |
| You cannot perform any web search or access internet to open URLs, links etc. If it seems like the user is expecting you to do so, you clarify the situation and ask the user to copy paste the text directly in the chat. | |
| # MULTI-MODAL INSTRUCTIONS | |
| You have the ability to read images, but you cannot generate images. You also cannot transcribe audio files or videos. | |
| You cannot read nor transcribe audio files or videos. | |
| # TOOL CALLING INSTRUCTIONS | |
| You may have access to tools that you can use to fetch information or perform actions. You must use these tools in the following situations: | |
| 1. When the request requires up-to-date information. | |
| 2. When the request requires specific data that you do not have in your knowledge base. | |
| 3. When the request involves actions that you cannot perform without tools. | |
| Always prioritize using tools to provide the most accurate and helpful response. If tools are not available, inform the user that you cannot perform the requested action at the moment." %} | |
| {%- set system_prompt = default_system_message %} | |
| {%- set loop_messages = messages %} | |
| {#- Define tools as none if not provided -#} | |
| {%- if not tools is defined %} | |
| {%- set tools = none %} | |
| {%- endif %} | |
| {#- Extract system prompt if present as first message -#} | |
| {%- if messages|length > 0 and messages[0]['role'] == 'system' %} | |
| {%- if messages[0]['content'] is string %} | |
| {%- set system_prompt = messages[0]['content'] %} | |
| {%- else %} | |
| {%- set system_prompt = messages[0]['content'][0]['text'] %} | |
| {%- endif %} | |
| {%- set loop_messages = messages[1:] %} | |
| {%- endif %} | |
| {#- Get all user messages for better last message detection -#} | |
| {%- set user_messages = loop_messages | selectattr("role", "equalto", "user") | list %} | |
| {#- Validate message role alternation -#} | |
| {%- set ns = namespace(index=0) %} | |
| {%- for message in loop_messages %} | |
| {%- if not (message.role == "tool" or (message.get('tool_calls'))) %} | |
| {%- if (message["role"] == "user") != (ns.index % 2 == 0) %} | |
| {{- raise_exception("After the optional system message, conversation roles must alternate user/assistant/user/assistant/...") }} | |
| {%- endif %} | |
| {%- set ns.index = ns.index + 1 %} | |
| {%- endif %} | |
| {%- endfor %} | |
| {{- '[SYSTEM_PROMPT]' + system_prompt + '[/SYSTEM_PROMPT]' }} | |
| {{- bos_token }} | |
| {%- for message in loop_messages %} | |
| {%- if message['role'] == 'system' %} | |
| {%- if message['content'] is string %} | |
| {{- '[SYSTEM_PROMPT]' + message['content'] + '[/SYSTEM_PROMPT]' }} | |
| {%- else %} | |
| {{- '[SYSTEM_PROMPT]' + message['content'][0]['text'] + '[/SYSTEM_PROMPT]' }} | |
| {%- endif %} | |
| {%- elif message['role'] == 'user' %} | |
| {%- if tools is not none and (message == user_messages[-1]) %} | |
| {{- '[AVAILABLE_TOOLS]' + tools|tojson + '[/AVAILABLE_TOOLS]' }} | |
| {%- endif %} | |
| {{- '[INST]' }} | |
| {%- if message['content'] is string %} | |
| {{- message['content'] }} | |
| {%- else %} | |
| {%- for block in message['content'] %} | |
| {%- if block['type'] == 'text' %} | |
| {{- block['text'] }} | |
| {%- elif block['type'] in ['image', 'image_url'] %} | |
| {{- '[IMG]' }} | |
| {%- else %} | |
| {{- raise_exception('Only text and image blocks are supported in message content!') }} | |
| {%- endif %} | |
| {%- endfor %} | |
| {%- endif %} | |
| {{- '[/INST]' }} | |
| {%- elif message['role'] == 'assistant' %} | |
| {%- if message.get('tool_calls') %} | |
| {%- for tool_call in message.tool_calls %} | |
| {{- '[TOOL_CALLS]' + tool_call.function.name }} | |
| {%- if not tool_call.id is defined or tool_call.id is not string or tool_call.id|length != 9 %} | |
| {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }} | |
| {%- endif %} | |
| {{- '[CALL_ID]' + tool_call.id }} | |
| {{- '[ARGS]' + tool_call['function']['arguments']|tojson }} | |
| {%- endfor %} | |
| {{- eos_token }} | |
| {%- elif message['content'] is string %} | |
| {{- message['content'] + eos_token }} | |
| {%- else %} | |
| {%- for block in message['content'] %} | |
| {%- if block['type'] == 'text' %} | |
| {{- block['text'] }} | |
| {%- elif block['type'] in ['image', 'image_url'] %} | |
| {{- '[IMG]' }} | |
| {%- else %} | |
| {{- raise_exception('Only text and image blocks are supported in assistant content!') }} | |
| {%- endif %} | |
| {%- endfor %} | |
| {{- eos_token }} | |
| {%- endif %} | |
| {%- elif message['role'] == 'tool_results' or message['role'] == 'tool' %} | |
| {%- if message.content is defined and message.content.content is defined %} | |
| {%- set content = message.content.content %} | |
| {%- else %} | |
| {%- set content = message.content %} | |
| {%- endif %} | |
| {%- if not message.tool_call_id is defined or message.tool_call_id is not string or message['tool_call_id']|length != 9 %} | |
| {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }} | |
| {%- endif %} | |
| {{- '[TOOL_RESULTS]' + message.tool_call_id + '[TOOL_CONTENT]' + content|string + '[/TOOL_RESULTS]' }} | |
| {%- else %} | |
| {{- raise_exception('Only system, user, assistant, and tool roles are supported!') }} | |
| {%- endif %} | |
| {%- endfor %} | |