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

add formatting for llama2chat #534

Closed
wants to merge 3 commits into from
Closed

add formatting for llama2chat #534

wants to merge 3 commits into from

Conversation

samhavens
Copy link
Contributor

This adds formatting classes for ChatML (MPT) and Llama2 chat. In hf_chat.py we automatically infer the formatting needed based on model name for these two formatting types.

Why? This makes it a lot easier to test MPT-chat and llama2 chat models with our hf_chat.py script. Also, these formatters can be useful for storing chat data in a syntaxless way (list of lists) and easily reformatting for ChatML or llama2 style chat finetuning. It also allows for easy translation from llama2 formatting to ChatML formatting.

@samhavens
Copy link
Contributor Author

tokenizers added functionality that covers this behavior

@samhavens samhavens closed this Jan 9, 2024
@samhavens samhavens deleted the sam/chat-formats branch January 9, 2024 06:00
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.

1 participant