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

Account for FIM tokens in prompt #62

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

HennerM
Copy link
Contributor

@HennerM HennerM commented Jan 20, 2024

For the Fill-in-the-middle prompt we need extra tokens to designate start, middle and end. This is usually one token each, so need to subtract 3 token of the max context length

@McPatate
Copy link
Member

Hi @HennerM, thanks a lot for all your contributions. I'll take a look when I have some time, I'm currently busy on other subjects.
Stay put!

@McPatate McPatate merged commit a5f2e87 into huggingface:main Jan 28, 2024
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