Skip to content

Add ensure_ascii parameter to json function #1547

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lm-cyber
Copy link

Add ensure_ascii parameter to json function in generate

@rlouf
Copy link
Member

rlouf commented Apr 30, 2025

Thank you for contributing! What was the issue prior to this PR?

@lm-cyber
Copy link
Author

lm-cyber commented May 9, 2025

Thank you for contributing! What was the issue prior to this PR?

Hi, different models have different tokenizers and samples for learners, so for languages whose characters are not in ascii, this parameter is required, it's just that the models were not always trained on \uXXXX

Sorry for not responding right away, there was no notification.

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