After upgrading to Ollama 0.35, an ADAPTER line and `ollama create -q q4_K_M` on a GGUF both fail — what changed, and what replaces each?
answer
- two older create features gone
- LoRA adapters are no longer supported
- quantize only on safetensors imports
- int4, int8, nvfp4, mxfp4, mxfp8
- arrive merged and already quantized
basics
~20 sSince Ollama 0.34.1 ollama create rejects ADAPTER ("LoRA adapters are no longer supported"), so merge the adapter into the weights first. --quantize works only on safetensors imports (int4, int8, nvfp4, mxfp4, mxfp8); a GGUF must be quantized before import.
solid answer
~40 sTwo features older tutorials rely on are gone from `ollama create`. `ADAPTER` is rejected since Ollama 0.34.1 with "LoRA adapters are no longer supported" — by the CLI, by `/api/create`, and for any GGUF whose metadata marks it as an adapter. The replacement is to merge the adapter into the base weights with your fine-tuning tooling and import the merged model with `FROM`. And `-q` / `--quantize` applies only to **safetensors imports**, quantizing for the MLX engine to `int4`, `int8`, `nvfp4`, `mxfp4` or `mxfp8`; on a GGUF, create stops with "create-time quantization is only supported for safetensors imports", because "Ollama does not quantize GGUF models during import". Produce the quantized GGUF with llama.cpp's tools first, then `FROM` it. In 0.35.0 a split GGUF imports through a wildcard over its original shard names.
code
bash · 8 lines# GGUF: arrives already quantized, no -q
ollama create my-model -f Modelfile.from-gguf
# safetensors directory: quantized for MLX at import
ollama create my-model-mlx -f Modelfile.from-safetensors -q nvfp4
# check what was built
ollama show my-model-mlxgo deeper
Recall that Ollama 0.35 takes a GGUF as it is, with no quantizing, and no longer accepts ADAPTER lines in a Modelfile.
Explain where each step moved: merging adapters to fine-tuning tools, GGUF quantizing to llama.cpp tools, and -q to safetensors imports with MLX types.
Migrate an old build script by reading create's errors, moving merge and quantize upstream, and checking the result with ollama show.
Decide where a team's model build pipeline lives now that the runtime imports finished artifacts: one upstream merge-and-quantize step, with Ollama as a consumer rather than a builder.
## Two things `ollama create` stopped doing A lot of Modelfiles and blog posts were written when `ollama create` did more of the pipeline itself: you could layer a **LoRA adapter** on a base with `ADAPTER`, and you could hand it a full-precision GGUF and a quant type and let it **quantize** during import. In the 0.3x line both moved out of Ollama. A pipeline that worked on an older release now fails at create time, and the error messages say exactly which rule it hit. | Old habit | Ollama 0.35.0 behaviour | What to do instead | |---|---|---| | `ADAPTER ./lora.gguf` in a Modelfile | rejected since 0.34.1: "LoRA adapters are no longer supported" | merge the adapter into the base weights first, then `FROM` the merged model | | `ollama create -q q4_K_M` on a GGUF | rejected: create-time quantization is only for safetensors imports | quantize the GGUF with llama.cpp tools before import | | `ollama create -q ...` on a safetensors directory | supported, for the MLX engine | use `int4`, `int8`, `nvfp4`, `mxfp4` or `mxfp8` | | one big GGUF required | split GGUFs import too | `FROM ./model-*.gguf` over the original shard names | ## ADAPTER: rejected everywhere it can arrive The rejection is enforced at several points, so there is no back door: - The **CLI** refuses a Modelfile that contains an `ADAPTER` line before sending anything. - **`/api/create`** returns HTTP 400 with `LoRA adapters are no longer supported` when the request carries adapters. - A GGUF passed to `FROM` whose metadata says it **is** an adapter is refused with the same error, naming the file. An older local model that already carries an adapter layer is not deleted: building `FROM` it carries that layer over with a warning that adapters are deprecated, but no new adapter can be added. The way forward is to **merge** the adapter into the base weights with the fine-tuning tooling that produced it — how a LoRA update is merged is a fine-tuning subject — and import the merged model as safetensors or as a GGUF you build from it. ## Quantization: only for safetensors, only for MLX The import docs are blunt: "Ollama does not quantize GGUF models during import." At 0.35.0 the rules are: - **GGUF in, GGUF as-is.** The weights are stored exactly as the file holds them. Passing `-q` / `--quantize` (or the API's `quantize` field) with a GGUF source fails with `create-time quantization is only supported for safetensors imports; quantize GGUF models with llama.cpp tools before importing`. - **Safetensors in, MLX quantization available.** `ollama create my-model -q nvfp4` with `FROM /path/to/safetensors/directory` quantizes the weights for the MLX engine. The accepted types are `int4`, `int8`, `nvfp4`, `mxfp4` and `mxfp8`, with `nvfp4` and `mxfp8` marked recommended; anything else, `q4_K_M` included, is refused as an unsupported type. So a llama.cpp quant name such as `q4_K_M` belongs in the llama.cpp quantization step that produces the GGUF; how that step works is the GGUF tooling's subject. ## Split GGUFs and REQUIRES Large GGUFs often ship as shards named like `model-00001-of-00003.gguf`. In 0.35.0 a Modelfile imports them with one wildcard that matches every shard, keeping the original split filenames; listing each shard on its own `FROM` line also works. Ollama records a minimum version of `0.35.0` on such a model when the Modelfile sets no `REQUIRES`. `REQUIRES <version>` is the general instruction for this: it stores the minimum Ollama version a model needs, as a semver such as `0.14.0`, and `ollama show` displays it. ## Migrating an old pipeline 1. Remove `ADAPTER`; merge the adapter upstream and point `FROM` at the merged weights. 2. Remove `-q` from GGUF builds; produce the quantized GGUF before `ollama create`. 3. Keep `-q` only for safetensors imports, with one of the five MLX types. 4. Re-run `ollama create` and check the result with `ollama show --modelfile`. ## Why it is asked The question checks whether a candidate's mental model of Ollama is current. Someone working from an older tutorial expects `ollama create` to be a small build system that layers adapters and quantizes weights. On 0.35.0 it is an importer: it takes finished, merged, already-quantized artifacts and packages them with configuration. Knowing that, and reading create's error text instead of fighting it, is what keeps a migration short.
- What happens to an older local model that already carries a LoRA adapter layer when you build FROM it in Ollama 0.35.0?Building `FROM` such a model in 0.35.0 carries the existing adapter layer over and logs a warning that LoRA adapters are deprecated; what is refused is adding a new adapter through `ADAPTER` or an adapter GGUF. For anything you maintain, merge the adapter into the base weights and import the merged model, so the next release cannot strand it.
- Why does `ollama create -q q4_K_M` fail even on a safetensors directory?Create-time quantization in 0.35.0 targets the MLX engine and accepts only `int4`, `int8`, `nvfp4`, `mxfp4` and `mxfp8`. `q4_K_M` is a llama.cpp GGUF type, so create rejects it as unsupported. Use an MLX type with safetensors, or build a `Q4_K_M` GGUF with llama.cpp tools and import that.
- ollama create still quantizes a GGUF when you pass -q q4_K_M
- ADAPTER still layers a LoRA on a base in Ollama 0.35
- Ollama's --quantize accepts llama.cpp quant names like q4_K_M
- A split GGUF must be merged into one file before Ollama imports it
- Removing ADAPTER support deleted existing models with adapter layers
Assumes Ollama 0.35.0: ADAPTER has been rejected since 0.34.1, create-time quantization covers safetensors (MLX) imports only, and split-GGUF wildcard imports record REQUIRES 0.35.0.