HOW-TO · INF

How to pull a model with Q5_K_M quantization for detailed responses

intermediate10 minBy Eruo Fredoline
Target environment
Ubuntu 24.04 · Ollama 0.4.x
PREREQUISITES

Ollama installed and running on your system.

What this does

Retrieves a language model tagged with the Q5_K_M quantization variant, delivering higher output quality than lower K variants while maintaining manageable file size and memory demands. The model will be ready to run interactively or via API.

Steps

  1. Pull the Q5_K_M variant explicitly. Downloads the specific tagged version by appending :q5_K_M to the model name.

    ollama pull llama3:q5_K_M
    

    Expected output: Progress bars for each layer, concluding with success.

  2. Verify the model and confirm the quantization level. Checks that the correct variant was installed.

    ollama list | grep q5_K_M
    

    Expected output: A row showing llama3:q5_K_M, size in bytes, and the last-modified timestamp.

  3. Compare memory footprint with Q5_K_S variant. Q5_K_M allocates more memory than Q5_K_S but less than Q8_0.

    free -h
    

    Expected output: Memory usage showing model allocated within expected range.

  • Record the local run evidence. Save the exact command, runtime or package version, model name if applicable, and observed output so the result can be reproduced later.

Verification

ollama list | grep -E "llama3.*q5_K_M"
# Expected: a row with model name "llama3" and tag "q5_K_M" present in the table

Common failures

  • Error: pull model not found - The quantization tag does not exist for this model; check available tags on the library page.
  • insufficient disk space - Not enough room for the layer files; free space with ollama rm or expand storage.
  • partial download corruption - Re-run ollama pull <model:tag>; Ollama re-downloads missing layers.
  • network timeout - Unstable internet connection; retry the pull command in a stable network environment.

Operator checkpoint

Before treating this as solved, write down the local runtime, model or package version, hardware/backend if relevant, and the verification output. This keeps the guide useful as a Will-It-Run style decision instead of a one-off command transcript.

Related guides

RELATED GUIDES