Skip to content

Improper input format for chat models #1

Description

@chujiezheng

In this line, when you transform the messages into a textual prompt, you may need to add the arg add_generation_prompt=True

prompt = tokenizer.apply_chat_template(messages, tokenize = False)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions