Instructions to use unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF", filename="Mistral-Small-3.1-24B-Instruct-2503-BF16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama-cli -hf unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
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 unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
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 unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
- LM Studio
- Jan
- Ollama
How to use unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF with Ollama:
ollama run hf.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
- Unsloth Studio
How to use unsloth/Mistral-Small-3.1-24B-Instruct-2503-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 unsloth/Mistral-Small-3.1-24B-Instruct-2503-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 unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.Mistral-Small-3.1-24B-Instruct-2503-GGUF-UD-Q4_K_XL
List all available models
lemonade list
Vision not working on ollama - Tried updating templates
Model doesnt understand the image on ollama . Tried original template and some other too.
If it works for someone else, lemme know.
did you add the mmproj file?
adding the mmproj as second FROMor downloading HF via eg. ollama run hf.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF:Q4_K_XLleads to this:
clip_init: failed to load model '/home/user/.ollama/models/blobs/sha256-ca4d5ba2c7659021bf457abb2a3f346e9b83169655ab7ccd570b53dbe692abb2': load_hparams: unknown projector type: pixtral
We just updated the models to now support vision thanks to the latest PR in llama.cpp
I am getting similar but different error:
clip_init: failed to load model '/Users/felikz/.ollama/models/blobs/sha256-f5add93ad360ef6ccba571bba15e8b4bd4471f3577440a8b18785f8707d987ed': operator(): unable to find tensor mm.1.bias
Ollama 0.6.8 / M1 Max 32GB
Other models works well.
Same here: clip_init: failed to load model '/Users/Christian/.ollama/models/blobs/sha256-f5add93ad360ef6ccba571bba15e8b4bd4471f3577440a8b18785f8707d987ed': operator(): unable to find tensor mm.1.bias
Ok might be because ollamadidnt update to the latest PR in llama.cpp
Ok might be because ollamadidnt update to the latest PR in llama.cpp
OK, thanks for taking the time to bring the explanation :)