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 3.6.1 GPT4All-Community/Llama3-DiscoLeo-Instruct-8B-32k-v0.1 (ready for substitution) #3347

Open
ThiloteE opened this issue Dec 22, 2024 · 0 comments
Labels

Comments

@ThiloteE
Copy link
Collaborator

ThiloteE commented Dec 22, 2024

Meta-issue: #3340

Bug Report

Model does not work out of the box

Steps to Reproduce

  1. Download the gguf
  2. sideload it in GPT4All-Chat
  3. start chatting

Expected Behavior

Model works out of the box.

Your Environment

Jinja template out of the box in GPT4All-Chat 3.6.1 (does not work)

{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>

'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>

' }}{% endif %}

Jinja template made by ThiloteE (works)

{%- set loop_messages = messages %}
{%- for message in loop_messages %}
    {%- set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}
        {%- if loop.index0 == 0 %}
            {%- set content = bos_token + content %}
        {%- endif %}
    {{- content }}
{%- endfor %}
{%- if add_generation_prompt %}
    {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
{%- endif %}

Image

Btw. this is a good system prompt for German:

"Die folgende Anweisung gibt einen Text vor und fordert Sie auf, eine angemessene Erwiderung zu formulieren. Bitte geben Sie Ihre Antwort."

@ThiloteE ThiloteE changed the title [jinja] GPT4All 3.6.1 GPT4All-Community/Llama3-DiscoLeo-Instruct-8B-32k-v0.1 [jinja] GPT4All 3.6.1 GPT4All-Community/Llama3-DiscoLeo-Instruct-8B-32k-v0.1 (ready for substitution) Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant