Skip to content

[Bug] Chat template for Llama is incorrect #620

@narengogi

Description

@narengogi

What Happened?

Llama chat requires the prompt string to be formatted in the following format specified by Meta during training https://www.llama.com/docs/model-cards-and-prompt-formats/llama3_1
It's different for different llama models and also special characters have to be considered for legacy models

What Should Have Happened?

No response

Relevant Code Snippet

No response

Your Twitter/LinkedIn

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions