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

TST: Add simple BNB regression tests #1602

Merged

Conversation

BenjaminBossan
Copy link
Member

These are very basic and simplistic regression tests for bnb. Their
purpose is to ensure that there is no unnoticed change in bnb that leads
to different outputs. There is no check for "correctness", just that the
results haven't changed.

Eventually, this workflow should be improved and moved to the bnb repo.

Before merging, it would be good if someone can double check that these
tests pass for them as well (GPU CI does not run for PRs).

@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
Collaborator

@younesbelkada younesbelkada 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 the regression tests!

Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

@BenjaminBossan
Copy link
Member Author

not stale

Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

@BenjaminBossan
Copy link
Member Author

not stale

Copy link
Collaborator

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Thanks again !
(eval() is not needed as from_pretrained returns the model in eval mode directly)

tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
tests/bnb/test_bnb_regression.py Outdated Show resolved Hide resolved
@BenjaminBossan BenjaminBossan merged commit e7b7507 into huggingface:main May 28, 2024
14 checks passed
@BenjaminBossan BenjaminBossan deleted the tst-simple-bnb-regression-tests branch May 28, 2024 09:36
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.

None yet

3 participants