Skip to content

Account for FIM tokens in prompt#62

Merged
McPatate merged 1 commit intohuggingface:mainfrom
HennerM:fim-token-count
Jan 28, 2024
Merged

Account for FIM tokens in prompt#62
McPatate merged 1 commit intohuggingface:mainfrom
HennerM:fim-token-count

Conversation

@HennerM
Copy link
Copy Markdown
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
Copy Markdown
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