LM Studio: Error rendering prompt with jinja template (Model chat template cannot be processed)
LM Studio cannot execute the model's chat template (Jinja template), so no response is generated at all. The text in quotes varies by model, for example "Unknown test: sequence" or "Cannot apply filter \"string\" to type: NullValue".
The message
Error rendering prompt with jinja template: "Unknown test: sequence". … you can try to search the model under lmstudio-community, which will have fixed prompt templates. … you can override the prompt template in My Models > model settings > Prompt Template.
Affects: LM Studio
Why is this happening?
Every model comes with a template that defines how messages and tool calls are assembled. If this template uses Jinja commands that the Jinja interpreter built into LM Studio doesn't know, or if it contains errors, LM Studio aborts. Commonly affected are new models (for example Gemma, QwQ, Nemotron, Devstral), often only when an external program sends along tools.
How to fix it
- Reload the model, but from the "lmstudio-community" section or from "unsloth" on Hugging Face. These versions usually have corrected templates.
- Update LM Studio to the latest version. Newer versions understand more Jinja commands.
- Adjust the template yourself: Open "My Models", the model settings, and there "Prompt Template". Save the original text first.
- With "Unknown test: sequence", it often helps to replace
is sequencewithis iterablein the template, save it, and reload the model. - If the error only occurs after an LM Studio update, rolling back to the previous version can help until a fix appears.
Better not: Don't blindly delete parts of the template just so the message goes away: Without the correct structure, the model will then respond nonsense or tool calls will no longer work.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- LM Studio: Your First Local Chat
Install LM Studio on Windows, load a suitable language model, and chat offline, even with your own documents.
Terms for this
Similar errors
- GGUF: tensor '…' data is not within the file bounds, model is corrupted or incomplete (model file incomplete)
- Confusing answers, endless loops, or tags like <|im_end|> (wrong chat template)
- GGUF: unknown model architecture (program too old for the model)
- LM Studio: This message contains no content. The AI has nothing to say. (Reply remains empty)
- LM Studio: Trying to keep the first … tokens when context the overflows (Input is longer than the configured context length)
Sources
- https://github.com/zed-industries/zed/issues/45379
- https://reddit.sentinel-team.org/posts/1u38dke/snapshots/2026-06-13T02%3A56%3A06.64152Z
Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.