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

Why are \n generated in the output #128

Open
Cgrandjean opened this issue Aug 1, 2024 · 1 comment
Open

Why are \n generated in the output #128

Cgrandjean opened this issue Aug 1, 2024 · 1 comment

Comments

@Cgrandjean
Copy link

Hello guys,
I would like to train the model with format enforced output. I plan to mask the forced tokens to avoid learning this part.
But i see a lot of \n are added ,these constitute tokens too and i was wondering whats the logic behind that .Why are they added. Are they always there and thats normal,in which case i should mask them or is it something else?

Thanks for all answers!

@aw632
Copy link
Contributor

aw632 commented Aug 7, 2024

They're whitespace tokens (\n, \t, \d, etc) which are typically allowed. You can disable them using the CharacterLeveParserConfig.

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

No branches or pull requests

2 participants