Often, weights are not at fault
When a local model suddenly gives strange answers, most people blame weights first: "this quantisation is broken" or "the new release is worse". In our support work a more frequent cause is a prompt template: a wrapper that turns a conversation into exact text a model was trained to expect. Getting it wrong crashes nothing; it just makes a good model look confused.
What a prompt template does
Instruction-tuned models learn a specific format during training: special tokens that mark where each turn starts and ends, a slot for a system message, and a token that means "stop here". Runtimes such as llama.cpp, Ollama and LM Studio read that format from model-file metadata or from a configuration you supply, then wrap every request in it. If that wrapper does not match training format, a model sees text that looks slightly foreign.
Symptoms that point to the template
- Output keeps going after it should stop, or invents a user's next turn.
- Stray markers such as role names or special tokens appear in the output.
- System prompts seem ignored entirely.
- Answers in one language are fine, but another language suddenly degrades.
- Everything worked until you switched runtime versions or downloaded another conversion of an identical model.
A checking routine
- Note exact model file, source, quantisation and runtime version.
- Inspect which chat template your runtime actually uses. Ollama shows it in each Modelfile; LM Studio shows it under prompt format settings; llama.cpp prints it at load time.
- Compare it with what a model card publishes.
- Run one short set of test prompts with default and corrected templates, keeping outputs side by side.
- When it is fixed, store that template in your own configuration so a future update cannot silently replace it.
Our tutorials section walks through installing Ollama, LM Studio and llama.cpp, and these checks apply to each.
Why conversions matter
Community conversions of popular models are convenient, but two files with the same name can carry different metadata. One may include the correct chat template, another may fall back to a generic default. That is why we recommend pinning a checksum, not just a model name, once a file has passed your tests.
My view
Prompt templates are invisible plumbing, and invisible plumbing is where local deployments fail quietly. I expect (confidence: moderate) that runtimes will keep improving template detection, but teams depending on stable answers should still treat templates as configuration they own. If you want to compare notes with other people running local models, our community page is where we collect such discussions.
Check wrappers before blaming weights, and write down every change.