-
Notifications
You must be signed in to change notification settings - Fork 31.8k
🚨🚨🚨 [Refactor] Move third-party related utility files into integrations/ folder 🚨🚨🚨
#25599
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
🚨🚨🚨 [Refactor] Move third-party related utility files into integrations/ folder 🚨🚨🚨
#25599
Conversation
Refactor] Move third-party related utility files into lib_integrations/ folderRefactor] Move third-party related utility files into lib_integrations/ folder 🚨🚨🚨
|
The documentation is not available anymore as the PR was closed or merged. |
|
Hi Younes, Unless I'm mistaken these would be BC breaking changes. Changing the doc to use the new API won't unbreak users' code. (In general for deepspeed integration issues please tag @pacman100 who is the current maintainer of the integration.) |
|
unrelated - perhaps there could be a neater name than Perhaps just |
|
Yes I had mentioned integrations as well as a name for the folder. Note that we usually do not guarantee backward compatibility with imports not at the init level (anything not imported in the main init or a subfolder init is considered private), but we can keep a deepspeed module that reimports |
|
I did not used |
|
Use a single as in |
|
As long as the objects are re-imported, it's completely fine (and non-breaking) to change |
sgugger
left a comment
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.
Not sur we need subfolders for DeepSpeed, bitandbytes and peft, they can jus be modules no?
|
Ah yes makes sense, modified it accordingly |
|
Actually sorry, forgot to do it for peft, will do it now |
|
The documentation is not available anymore as the PR was closed or merged. |
pacman100
left a comment
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.
Thank you @younesbelkada for iterating!
|
Thanks everyone for your reviews, regarding the large diff on the doctest file my intuition is that it got large because I added a new line that changed the alphabetical order of the file but I am not sure. (maybe @ydshieh can confirm) |
|
@sgugger , ran the daily CI (with a reduced number of models tests) thanks to @ydshieh and you can see the results here: https://github.com/huggingface/transformers/actions/runs/5965296109 |
sgugger
left a comment
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.
Thanks for all the work on this!
…tions/` folder 🚨🚨🚨 (huggingface#25599) * move deepspeed to `lib_integrations.deepspeed` * more refactor * oops * fix slow tests * Fix docs * fix docs * addess feedback * address feedback * final modifs for PEFT * fixup * ok now * trigger CI * trigger CI again * Update docs/source/en/main_classes/deepspeed.md Co-authored-by: Sylvain Gugger <[email protected]> * import from `integrations` * address feedback * revert removal of `deepspeed` module * revert removal of `deepspeed` module * fix conflicts * ooops * oops * add deprecation warning * place it on the top * put `FutureWarning` * fix conflicts with not_doctested.txt * add back `bitsandbytes` module with a depr warning * fix * fix * fixup * oops * fix doctests --------- Co-authored-by: Sylvain Gugger <[email protected]>
What does this PR do?
As per title and to address #25077 (comment)
Let's move all third party libs (outside HF ecosystem) related utility files inside
lib_integrations/, currently to the best of my knowledge bitsandbytes and deepspeed are the only 2 third party libs that we use as a plugin integration and is outside HF ecosystemcc @sgugger and @stas00 as it touches DS related code
Let me see first if the CI passes