Importing a model brings external GGUF or Safetensors weights into Ollama so the model can be run through the normal CLI and API. The Modelfile describes whether Ollama should load a model file, a directory of weights, or an adapter.
The import source and base model must match the weights. A LoRA or Safetensors adapter built for one base model can behave unpredictably if the Modelfile points at a different base.
Use a small test import before moving large production weights. Model conversion and quantization can consume significant disk and memory.
Related: How to create a custom Ollama model
Related: How to quantize an Ollama model
Related: How to run a model in Ollama
$ ls /srv/models/custom-model model.gguf
FROM /srv/models/custom-model/model.gguf
$ ollama create example/custom-model -f Modelfile transferring model data writing manifest success
$ ollama run example/custom-model "Return OK." OK
$ ollama show example/custom-model Model architecture llama ##### snipped #####