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

[flax generate] allow passing params to encode #14370

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

patil-suraj
Copy link
Contributor

What does this PR do?

Allows passing the user-provided params to the encode method for seq-2-seq generation. This is required to be able to pjit the generate method as we need to explicitly pass the sharded parameters.

@patil-suraj patil-suraj merged commit b1dbdf2 into huggingface:master Nov 11, 2021
@patil-suraj patil-suraj deleted the flax-generate-params branch November 11, 2021 11:46
Albertobegue pushed a commit to Albertobegue/transformers that referenced this pull request Jan 27, 2022
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.

None yet

2 participants