Free | No tracking | Every fact with a source|German and English

Error / Models and files

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

  1. Reload the model, but from the "lmstudio-community" section or from "unsloth" on Hugging Face. These versions usually have corrected templates.
  2. Update LM Studio to the latest version. Newer versions understand more Jinja commands.
  3. Adjust the template yourself: Open "My Models", the model settings, and there "Prompt Template". Save the original text first.
  4. With "Unknown test: sequence", it often helps to replace is sequence with is iterable in the template, save it, and reload the model.
  5. 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:

Terms for this

Similar errors

Sources

Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.