RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Fredoline Eruo
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Learn
  4. /How-to
  5. /How to import custom GGUF model files into Ollama
HOW-TO · INF

How to import custom GGUF model files into Ollama

intermediate·15 min·By Fredoline Eruo
Target environment
Ubuntu 24.04 · Ollama 0.4.x
PREREQUISITES

GGUF model file downloaded, Ollama installed and verified working

What this does

Registers a downloaded GGUF model file as a runnable model in Ollama's local library. After completing this guide the custom model will appear in ollama list and respond to inference requests alongside library-sourced models.

Steps

  1. Place the GGUF file in a working directory. Creates a clean directory for the Modelfile and model blob.

    mkdir -p ~/ollama-models/my-model && cp /path/to/model.gguf ~/ollama-models/my-model/
    
  2. Create a Modelfile referencing the GGUF file. The FROM directive must point to the GGUF relative path.

    cat > ~/ollama-models/my-model/Modelfile << 'EOF'
    FROM ./model.gguf
    TEMPLATE """{{ .Prompt }}"""
    PARAMETER temperature 0.7
    PARAMETER num_ctx 4096
    EOF
    
  3. Register the model with Ollama. Analyzes the GGUF metadata and adds the model to the local registry.

    cd ~/ollama-models/my-model && ollama create my-custom-model -f Modelfile
    

    Expected output: transferring model data followed by success.

  4. Verify the model is available. Confirms the model registered correctly.

    ollama list
    

    Expected output: A row with name my-custom-model and a valid size.

Verification

ollama run my-custom-model "Hello, describe yourself in one sentence."
# Expected: a coherent text response generated by the imported model

Common failures

  • FROM path error - Relative path in FROM is incorrect; use an absolute path to the GGUF file.
  • unable to determine architecture - GGUF format is not recognized; verify the file is a valid GGUF and not a PyTorch or Safetensors checkpoint.
  • disk full during create - Ollama copies the GGUF internally; free space before retrying.
  • template mismatch - Output is garbled or repetitive; adjust the TEMPLATE directive for the specific model architecture.

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

  • How to create a Modelfile to customize model parameters
  • How to verify model integrity after downloading
RELATED GUIDES
INF
How to create a Modelfile to customize model parameters
INF
How to verify model integrity after downloading
← All how-to guidesCourses →