THE FILE FIELD GUIDE
.gguf

GGUF LLM Model

AI & Machine Learning

Stores model tensors and metadata for ggml-based inference engines. It is not an image. Verify architecture, quantization support and memory requirements in the runtime.

What it is used for
Model distribution for local AI inference
What the file contains
Binary data
All sections, questions and sources

Content reviewed: · Editor:Kai

Find where GGUF loading stops

Find where GGUF loading stops
Situation / goalNext actionWhat to check
Model is absent from the listIdentify the main file versus shards or auxiliary files and use the application’s import workflow.Check destination and the listed model name.
Memory error during loadingReview context length and GPU offload; consider a supported smaller model or quantization.Do not equate file size with runtime memory requirements.
Loads but answers incorrectlyCheck the required chat template, input format and auxiliary components.Record reproducibility with the same short input and settings.

Source for these steps:LM Studio · lms import / LM Studio · lms load

Opening steps

Choose your environment or purpose to see its steps.

Identify the purpose and distribution

Identify full weights, shards and sidecars.

  1. Read the publisher instructions and license; record the producer, version and purpose.
  2. Inspect model, quantization and shard labels; do not confuse a projector sidecar with the main model.
  3. Retain the original and assemble configuration and companions in a working copy.
Inspect with the matching environment

Successful loading and correct inference are separate checks.

  1. Inspect architecture and quantization support in the application’s model information.
  2. With the LM Studio CLI, use the import --copy option to retain the original.
  3. Check RAM, VRAM and context-length settings before loading.
Test with a known input

Match the input contract and compare with a reference.

  1. Start with a modest context length and short input; check loading and the first reply.
  2. Check the model’s chat template and required sidecar components.
  3. Change one setting at a time and compare speed, memory and responses.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

LM Studio CLI: import while keeping the source

Requires LM Studio and an available lms CLI. Replace the filename with your actual GGUF and run the import from its folder. Check options in your installed version.

After import, find the model key in the model list and replace YOUR_MODEL_KEY in the estimate command. An estimate does not guarantee successful loading.

lms import "model.gguf" --copy
lms load --estimate-only YOUR_MODEL_KEY

Example based on official CLI documentation; this site does not load the model, and no real model was executed in LM Studio during this update.

Source for these steps:LM Studio · lms import / LM Studio · lms load

Troubleshooting by symptom

  • Unsupported architecture can mean runtime incompatibility. Compare the model card with runtime support.
  • Loading can fail because of RAM/VRAM limits, missing shards or incomplete downloads; the suffix does not ensure runtime compatibility.
  • Short inputs work but long ones fail: runtime caches also use memory; review context length.
  • Images fail: check multimodal support and the required matching projector.
  • Odd responses: inspect the chat template, model purpose and input format as well as quantization.

Before converting or quantizing to GGUF

  1. Check the source model, config, tokenizer, license and llama.cpp architecture support.
  2. Follow the official conversion workflow to a high-precision GGUF, then quantize if required. Use instructions for your installed version.
  3. Compare output shapes, values and timing with the same input before/after export; retain definitions and export settings.

Quantization trades size/speed against accuracy. Renaming a lower-precision model does not restore information; multimodal models may need additional components.

Choosing size, quantization and context

Quantization and usable context length are distinct. Start within available memory and increase context gradually.

A Q label alone does not determine quality. Compare the same task on the actual model and quantization scheme.

Source for these steps:ggml-org · GGUF specification / LM Studio · lms import / ggml-org · llama.cpp — quantize

Moving a model to another device

List main weights, shards, sidecars, application versions and settings; tune GPU placement per device.

Changing labels or saving quantized weights at higher precision does not restore lost information; keep the source model.

Source for these steps:ggml-org · GGUF specification / LM Studio · lms import / ggml-org · llama.cpp — quantize

Related-format differences

Related-format differences
FormatMain roleWhat to check
GGUFLocal inferenceCheck architecture and memory
SAFETENSORSWeight storage/distributionMay require separate architecture/config
ONNXInference graph interchangeCheck operators and runtime

Handling and security

Check publisher, license and runtime; accompanying Python code requires a separate trust assessment.

Questions and answers

Is GGUF an image file?

It stores models, including some that accept images; it is not the image itself.

Does LM Studio support every GGUF?

Support depends on architecture, engine and version, not the suffix alone.

What do Q4/Q5/Q8 mean?

They are quantization labels. Scheme and model affect size/accuracy as well as nominal bit width.

Can I rename Safetensors to GGUF?

No. Use a supported model-conversion workflow.

Does file size equal memory use?

Runtime caches and workspaces add memory; measure it with the intended settings and input lengths.

Can I concatenate GGUF shards?

Use the runtime’s supported shard loading or merging workflow rather than raw concatenation.

Format facts: name, steward and MIME type
Formal name
GGUF model container
Steward / specification
ggml-org
MIME type
No broadly established dedicated MIME type; generic binary transfer

Primary and official sources

  • Project documentationGGUF specification

    Defines GGUF model, tensor and metadata structures.

    ggml-org · Link checked:
  • Software documentationlms import

    Documents local import and --copy to keep the original.

    LM Studio · Link checked:
  • Project documentationllama.cpp — quantize

    Documents conversion/quantization and accuracy/size trade-offs.

    ggml-org · Link checked:
  • Software documentationlms import

    Local model import and the --copy option that preserves the source.

    LM Studio · Link checked:
  • Software documentationlms load

    Loading a model and estimating memory before loading.

    LM Studio · Link checked: