chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

Prompt template for WizardLM-2-8x22B?

Open Arche151 opened this issue 1 year ago • 3 comments

What is the prompt template for WizardLM-2-8x22B in the .env.local?

When setting it to the default one: <s>{{#each messages}}{{#ifUser}}[INST] {{#if @first}}{{#if @root.preprompt}}{{@root.preprompt}}\n{{/if}}{{/if}}{{content}} [/INST]{{/ifUser}}{{#ifAssistant}}{{content}}</s>{{/ifAssistant}}{{/each}}

the generated output is very odd and incoherent.

When setting the prompt template to the one displayed in the model card: {system_prompt} USER: {prompt} ASSISTANT: </s>

the output gets even worse.

Can anyone help?

Arche151 avatar May 27 '24 14:05 Arche151

Hi! So we recommend using the tokenizer to fetch the chat prompt template. Remove chatPromptTemplate from your config and set

"tokenizer": "alpindale/WizardLM-2-8x22B" in your model config

that should hopefully work

nsarrazin avatar May 31 '24 10:05 nsarrazin

@nsarrazin Thanks for this solution, but it isn't optimal for me unfortunately, because then I have to enter my HF_Token and the ChatUI needs to connect with the internet, which is not ideal for my privacy requirements.

Is there a way to do this fully offline?

Arche151 avatar May 31 '24 16:05 Arche151

I find zephyr template suits it well

<|user|>
{User}
<|assistant|>
{Assistant}

anrgct avatar Jul 29 '24 15:07 anrgct