Why GGUF
GGUF (formerly GGML) is the format llama.cpp invented and Ollama wraps. It's optimized for: CPU-first inference, Metal acceleration on Apple Silicon, cross-platform binary distribution. A single .gguf file contains weights + tokenizer + metadata, ready to ollama pull.
How to produce a GGUF
The canonical path is via llama.cpp's convert_hf_to_gguf.py. Clone llama.cpp, point the script at your HF repo, pick a quantization (Q4_K_M, Q5_K_M, Q8_0, F16). Output: a .gguf file you can ship.
The naming convention
By community convention, GGUF files on the Hub are named {model}-{params}.{quant}.gguf: Llama-3.1-8B-Instruct-Q4_K_M.gguf. The quant tier (Q4_K_M is the typical "balanced" choice) tells you the bit-width and rounding scheme.