Skip to content

Conversation

@sgugger
Copy link
Collaborator

@sgugger sgugger commented Jan 4, 2023

What does this PR do?

Fixes #20884

This PR makes sure that models that use the code on the Hub feature can be saved and repushed while still including the necessary code files. as reported in #20884, this was not the case previously. The fix is simple enough and the tests have been extended to test this use case.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jan 4, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this fix!

@sgugger sgugger merged commit 1231383 into main Jan 5, 2023
@sgugger sgugger deleted the reload_dynamic_objects branch January 5, 2023 12:30
silverriver pushed a commit to silverriver/transformers that referenced this pull request Jan 6, 2023
* Make sure dynamic objects can be saved and reloaded

* Remove processor test
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.

santacoder: saved checkpoints after fine-tuning do not have required .py files

4 participants