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] Fix & Add scripts to push pretrained flax model weights to the huggingface hub #545

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

Conversation

snoop2head
Copy link
Contributor

What does this PR do?

Fixes the following:

Issues above happened mainly because provided examples upload initialized model's parameters, resulting in jibberish output as mentioned in the issues.

Fixed with 1) unreplicating params, 2) assigning back to the original flax model class, 3) pushing to the huggingface hub.

Who can review?

@patrickvonplaten

Thank you for your review and devotion to the open source project!

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@snoop2head snoop2head changed the title [Flax] Add code block to push pretrained flax model weights to the huggingface hub [Flax] Fix & Add scripts to push pretrained flax model weights to the huggingface hub Jan 1, 2025
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