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

Workflow / Bnb: Add a mechanism to inform us if the import fails #1830

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

younesbelkada
Copy link
Contributor

As per title and to avoid our CI silently passing

cc @Titus-von-Koeller @BenjaminBossan

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Just for my understanding, this is basically an extra step that checks if bnb import works and reports the results to slack (I wonder if checking python -m bitsandbytes would also make sense).

This does not address the issue that the failing nightly bnb runs are not correctly reported on slack, right? Could we also use the post-slack workflow for those to report them correctly?

@younesbelkada
Copy link
Contributor Author

Makes sense, added them as suggested ! LMK wdyt !

Copy link
Member

@BenjaminBossan BenjaminBossan 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 working on this. LGTM.

@Titus-von-Koeller
Copy link
Contributor

Thanks @younesbelkada for working on this and @BenjaminBossan for raising this and following up!

Everything LGTM as well, but agreed that we should definitely add python -m bitsandbytes as a check. I did a quick text search, but didn't find it yet, sorry if I missed it somehow.

@younesbelkada
Copy link
Contributor Author

The issue with python -m bitsandbytes is that this will not explictly throw an error if the setup is broken, it will simply display a message saying that bnb is broken, on the other hand importing bnb on the command line will fail and we would be able to catch it with jobs.import.status

@younesbelkada
Copy link
Contributor Author

LMK what do you think and I will merge if you think what I said makes sense

@BenjaminBossan
Copy link
Member

The issue with python -m bitsandbytes is that this will not explictly throw an error if the setup is broken, it will simply display a message saying that bnb is broken, on the other hand importing bnb on the command line will fail and we would be able to catch it with jobs.import.status

Can we not have both, first python -m bitsandbytes and then importing? That way, we have a bit more information in the logs if something breaks.

@younesbelkada
Copy link
Contributor Author

Done !

@BenjaminBossan
Copy link
Member

Thanks. Just a small note: Would it make sense to call python3 -m bitsandbytes first, in case the import fails the next line is not executed, or is it?

@younesbelkada
Copy link
Contributor Author

makes sense!

@BenjaminBossan
Copy link
Member

From my point of view, this can be merged, not sure if we want to wait for another look by Titus.

@younesbelkada younesbelkada merged commit 0b40d1a into main Jun 7, 2024
14 checks passed
@younesbelkada younesbelkada deleted the younesbelkada-add-bnb-notif-import branch June 7, 2024 14:38
@younesbelkada
Copy link
Contributor Author

just forgot to merge! :D

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.

4 participants