-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPT4All V3.6.1->Jinia error #3348
Comments
Sorry, I don't know how to modify it according to the prompts. Because I don't understand anything.And that's just one of my many local models that have problems., which is terrible! Can't believe this could be an updated change! |
As long as you do not provide a link to the model you are using, nobody can reproduce and test an improved chat template, but simply by looking at the jinja, the following could work. Please try: {%- for message in messages %}
{{- '<|im_start|>' + message['role'] + '\n' + message['content'] }}
{%- if not loop.last or (loop.last and message['role'] != 'assistant') %}
{{- '<|im_end|>\n' }}
{%- endif %}
{%- endfor %}
{%- if add_generation_prompt and messages[-1]['role'] != 'assistant' %}
{{- '<|im_start|>assistant\n' }}
{%- endif %} |
Thank you very much for your help! Here is the model link:https://huggingface.co/tastypear/CausalLM-7B-DPO-alpha-GGUF |
jq -r ".chat_template" tokenizer_config.json
Jinja out of the box in GPT4All:
(#3340)
The text was updated successfully, but these errors were encountered: