GGUF quantization of mistralai/Devstral-Small-2-24B-Instruct-2512 — a 24B dense multimodal coding model built on Mistral-Small-3.1 with 393K context, vision support, and tool calling.
Quantized to MXFP4 format for efficient inference with minimal quality loss.
About MXFP4
MXFP4 (Microscaling FP4, E2M1) is an open standard 4-bit format under the OCP Microscaling Formats specification. It uses E2M1 layout with block-wise shared 8-bit scaling factors, working on any GPU or CPU without hardware-specific acceleration.
1# Text + Image2llama-cli -m devstral-small-2-mxfp4.gguf \3 --mmproj mmproj-devstral-small-2-f16.gguf \4 --image photo.jpg \5 -p "Describe this image in detail"\6 -n 51278# Text only9llama-cli -m devstral-small-2-mxfp4.gguf \10 -p "Write a Python function to sort a list"\11 -n 5121213# OpenAI-compatible server14llama-server -m devstral-small-2-mxfp4.gguf \15 --mmproj mmproj-devstral-small-2-f16.gguf \16 --port 8080
llama-cpp-python
python
1from llama_cpp import Llama
23llm = Llama.from_pretrained(4 repo_id="FreedomAISVR/Devstral-Small-2-MXFP4-GGUF",5 filename="devstral-small-2-mxfp4.gguf",6 n_gpu_layers=-1,7)89response = llm.create_chat_completion([10{"role":"user","content":"Write a Python function to sort a list"}11])12print(response["choices"][0]["message"]["content"])