SyntaxError: Unexpected character: ~

#1
by wapxmas - opened

Error rendering prompt with jinja template: "SyntaxError: Unexpected character: ~
at _0x3949c9 (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:105:206125)
at new _0x540100 (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:105:255376)
at /Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:74:39992
at async _0x17f648. (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:74:35005)
at async _0x5e1eb0. (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:81:20445)
at async _0x78f68c.temp_createLlamaPredictionArgs (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:31:2617)
at async _0x35e269..predictTokens (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:74:20139)
at async Object.predictTokens (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:87:12953)
at async Object.handleMessage (/Applications/LM Studio.app/Contents/Resources/app/.webpack/lib/llmworker.js:87:2461)". This is usually an issue with the model's prompt template. If you are using a popular model, you can try to search the model under lmstudio-community, which will have fixed prompt templates. If you cannot find one, you are welcome to post this issue to our discord or issue tracker on GitHub. Alternatively, if you know how to write jinja templates, you can override the prompt template in My Models > model settings > Prompt Template.

Managed to work it getting a template from a 32b model.

wapxmas changed discussion status to closed

Sign up or log in to comment