New Tool Radar

Local AI

How to Choose Between GGUF, Safetensors and MLX Model Formats

Match the model format to your hardware and tool: GGUF for llama.cpp and Ollama, safetensors for PyTorch and vLLM, MLX for Apple Silicon.

Schematic diagram with three steps: check your hardware and tool, pick the matching format, and download the weights in that format.

The same model is often published three times — as a GGUF file, as safetensors shards, and as an MLX model — and the right one depends on what will run it, not on which is newest. Pick the format your tool already speaks; converting formats is possible but costs time and can cost quality.

Related guide: How to Convert a Hugging Face Model to GGUF with llama.cpp

Match the format to the tool

Format Use it with Best on
GGUF llama.cpp, Ollama, LM Studio, KoboldCpp, GPT4All Any hardware, especially CPU and modest GPUs
Safetensors vLLM, Transformers, most Python serving NVIDIA GPUs, batch serving
MLX MLX LM, LM Studio on Apple Silicon Apple Silicon Macs only

GGUF is a single file that holds the weights, the tokenizer and the model metadata, built for llama.cpp and everything built on it. Safetensors is the standard Hugging Face checkpoint format for PyTorch-based tools — vLLM serves safetensors checkpoints, including GPTQ and AWQ quantized ones. MLX is Apple’s framework format: LM Studio’s docs say it runs LLMs with llama.cpp on Mac, Windows and Linux, and with MLX on Apple Silicon Macs as well.

Decide in this order

First, what hardware do you have? On an Apple Silicon Mac, MLX is usually fastest; on an NVIDIA GPU with batch work, safetensors under vLLM; on a CPU or a mixed setup, GGUF. Second, what tool are you already using? A GGUF model will not load in vLLM, and a safetensors checkpoint will not load in Ollama — the format must match the loader. Third, how much memory do you have? GGUF’s quantization levels are the most flexible way to shrink a model to fit, while safetensors quantized models come in fixed recipes such as AWQ and GPTQ.

Expected result. We checked the llama.cpp repository for GGUF as its format, the LM Studio docs for the llama.cpp and MLX runtimes, and the Qwen vLLM docs for safetensors serving with AWQ and GPTQ. We did not run this software ourselves for this guide, so no output here is a recorded result; steps marked UNTESTED were checked against the sources below, not run.

Limits

Converting between formats is not free: GGUF conversion from safetensors is supported by llama.cpp’s converter, but converting back is not a normal workflow, and every conversion is a chance to lose something. Check the model’s own page for which formats its author actually published — not every model exists in all three. We did not convert any model ourselves.

Sources

Checked 2026-11-28.

See all