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 the incorrect max_length for chat template #1818

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

chiwanpark
Copy link
Contributor

Description

The preprocessed data was being cut off at a maximum length of 2048 tokens, even when the user set sequence_len to a number greater than 2048. This PR fixes the bug by passing sequence_len from the configuration to max_length in ChatTemplatePrompter.

Motivation and Context

There is an issue reporting the same cut off problem. (#1749)

How has this been tested?

Screenshots (if appropriate)

Types of changes

Social Handles (Optional)

Copy link
Collaborator

@winglian winglian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @chiwanpark !

@winglian winglian merged commit 0801f23 into axolotl-ai-cloud:main Aug 9, 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