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

fix: Make convert_token_to_string pickleable #1236

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

Conversation

saattrupdan
Copy link
Contributor

This moves the convert_token_to_string helper function out as an independent function, to make it pickleable.

This is causing issues when storing logits processors in a class that needs to be pickleable.

@saattrupdan
Copy link
Contributor Author

@rlouf, does this seem good to you?

@rlouf rlouf force-pushed the fix/make-convert-token-to-string-pickleable branch from 009e4df to 2f9aeee Compare November 27, 2024 15:16
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.

1 participant