We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Meta-issue: #3340
Model does not work out of the box
Model works out of the box.
{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}
{{- bos_token }} {%- if messages[0]['role'] == 'system' %} {{- raise_exception('System role not supported') }} {%- endif %} {%- for message in messages %} {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %} {{- raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }} {%- endif %} {%- if message['role'] == 'assistant' %} {%- set role = 'model' %} {%- else %} {%- set role = message['role'] %} {%- endif %} {{- '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }} {%- endfor %} {%- if add_generation_prompt %} {{- '<start_of_turn>model\n' }} {%- endif %}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Meta-issue: #3340
Bug Report
Model does not work out of the box
Steps to Reproduce
Expected Behavior
Model works out of the box.
Your Environment
Original Jinja template in tokenizer_config.json (taken from unsloth/gemma-2-2b-it)
Jinja template out of the box in GPT4All-Chat 3.6.1, but still has EOS issues:
The text was updated successfully, but these errors were encountered: