-
Notifications
You must be signed in to change notification settings - Fork 555
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
Push to hub mixins that do not leverage git
#847
Conversation
Add in commit_message + tests Co-authored-by: Lysandre <lysandre.debut@reseau.eseo.fr>
The documentation is not available anymore as the PR was closed or merged. |
Merging #849 should reduce the diff here. |
I loved the refactor with HF API! I can open a PR for tests if you want @LysandreJik |
Thank you for the proposal @merveenoyan, I'll likely proceed to a backward compatibility implementation + test update next week. I'll let you know if I can use assistance on any of it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm excited to move towards this type of logic 😄 - here's a few comments while its still WIP.
This is on hold as another, more robust mechanism to upload files is in the making on the backend side. |
🤔 waiting for the new upload mechanism to integrate push to hub functionality to my packages! |
Glad to hear it @fcakyon, we will let you know. |
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! Only left a few comments regarding documentation & error messages.
Very impressed by the tests! Super cool to use mocking, I believe this is the first occurrence of such tests in the codebase.
Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
Codecov Report
@@ Coverage Diff @@
## main #847 +/- ##
==========================================
+ Coverage 80.69% 81.34% +0.65%
==========================================
Files 29 29
Lines 3316 3378 +62
==========================================
+ Hits 2676 2748 +72
+ Misses 640 630 -10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Big effort! Let's merge this, thanks for the help and all the work improving & wrapping it up @Wauplin! |
Many thanks for the help and support to finally make it @LysandreJik ! 😀 |
Great PR 💯 |
This draft PR proposes a refactor of both mixins,
ModelHubMixin
andpush_to_hub_keras
, so that they do not leveragegit
under the hood. It is the continuation of #321.This PR was done to present how it would behave. It was not done with backward-compatibility in mind, but instead by thinking of the best API, therefore with lean signatures. I recommend reading the files themselves rather than the diff as they are drastically simpler:
If we choose to go this way, a standard backward compatibility approach would be implemented.
cc @osanseviero @NielsRogge @nateraw @merveenoyan