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

Fix drop_long_seq bug due to truncation in prompt tokenization strategies when using chat_template #1867

Merged

Conversation

chiwanpark
Copy link
Contributor

Description

When we use chat_template prompt, dropping longer than sequence_len sequences is not working because the tokenized inputs are already truncated by ChatTemplatePrompter. We can easily fix this bug by adding one to max_length.

Motivation and Context

How has this been tested?

Screenshots (if appropriate)

Types of changes

Social Handles (Optional)

@winglian winglian merged commit 2dac1ed into axolotl-ai-cloud:main Aug 26, 2024
7 checks 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.

2 participants