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

Remove the <s> token from post_prompt of multimodal #1508

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yupbank
Copy link

@yupbank yupbank commented Apr 26, 2024

In the multimodal example, both pre_input_ids, post_input_ids are generated using self.tokenizer and being concat to form the final input_id.
tokenizer by default will prefix a <s> special start of line token in the start. remove the <s> token from post_input_ids to make sure the final prompt don't have surprise tokens, also reorder the pre_input_ids, fake_prompt_id, since pre_input_ids also have a <s> token added in the front.

@zeryx
Copy link

zeryx commented May 14, 2024

@ncomly-nvidia 👀

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.

None yet

2 participants