Skip to content
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

[Jinja] GPT4All-Chat 3.5.1 breaks RichardErkhov/occiglot_-_occiglot-7b-de-en-instruct-gguf #3283

Open
ThiloteE opened this issue Dec 13, 2024 · 0 comments
Labels
bug-unconfirmed chat gpt4all-chat issues

Comments

@ThiloteE
Copy link
Collaborator

ThiloteE commented Dec 13, 2024

Bug Report

Model does not work.

Steps to Reproduce

  1. Download and sideload the model.
  2. Check model settings:

Default Jinja Template:

{{'<s>'}}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = 'You are a helpful assistant. Please give a long and detailed answer.' %}{% endif %}{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 %}{{'<|im_start|>system
' + system_message + '<|im_end|>
'}}{% endif %}{{'<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}

Image

Better Jinja Template, but does NOT fix it completely:

{{'<s>' }}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = 'You are a helpful assistant. Please give a long and detailed answer.' %}{% endif %}{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in loop_messages %}{% if loop.index0 == 0 %}{{'<|im_start|>system
' + system_message + '<|im_end|>
' }}{% endif %}{{'<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>' + '
' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}

The model responds with emptyness/nothingness:
Image

Expected Behavior

Model works out of the box.

Your Environment

Additional Information:

I recommend a diff tool like Meld to compare differences between default and better jinja template.

@ThiloteE ThiloteE added bug-unconfirmed chat gpt4all-chat issues labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-unconfirmed chat gpt4all-chat issues
Projects
None yet
Development

No branches or pull requests

1 participant