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

Bug on llama2-chinese conversation templates #2290

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

fan-chao
Copy link
Contributor

Why are these changes needed?

For llama2-chinese, in fastchat/conversations.py line 945: register_conv_template(
Conversation(
name="llama2-chinese",
system_message="{system_message}",
roles=("Human", "Assistant", "System"),
messages=(),
offset=0,

system_message should be changed to system_template.

Related issue number (if applicable)

Closes #2280

For llama2-chinese, in fastchat/conversations.py line 945:
register_conv_template(
    Conversation(
        name="llama2-chinese",
        system_message="<s>{system_message}</s>",
        roles=("Human", "Assistant", "System"),
        messages=(),
        offset=0,

system_message should be changed to system_template.
@merrymercy merrymercy merged commit 268fd4b into lm-sys:main Aug 23, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug on llama2-chinese conversation templates
2 participants