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 tests for 4bit LoftQ #1208

Merged
merged 4 commits into from
Dec 11, 2023

Conversation

BenjaminBossan
Copy link
Member

Add GPU tests for LoftQ with 4bit quantization.

Notes

Tests for 8bit quantization are already there but not run at the moment, see this comment:

#1150 (comment)

In my testing, 8bit passes when using NFQuantizer, so if the original author is fine with using that, I can make the adjustment.

Add GPU tests for LoftQ with 4bit quantization.

Notes

Tests for 8bit quantization are already there but not run at the moment,
see this comment:

huggingface#1150 (comment)

In my testing, 8bit passes when using NFQuantizer, so if the original
author is fine with using that, I can make the adjustment.
@BenjaminBossan
Copy link
Member Author

@yxli2123 If you could also do a quick review, that would be great.

I ran the GPU tests locally and they passed, so 🤞 that they also pass on the nightly CI (PR CI does not run GPU tests).

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Contributor

@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 a lot for adding the test ! I left one suggestion so that we can easily play with the error tolerance in the future in case the test fail on the runner - what do you think?

tests/test_gpu_examples.py Show resolved Hide resolved
tests/test_gpu_examples.py Outdated Show resolved Hide resolved
tests/test_gpu_examples.py Outdated Show resolved Hide resolved
tests/test_gpu_examples.py Outdated Show resolved Hide resolved
BenjaminBossan and others added 3 commits December 5, 2023 18:14
Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com>
@BenjaminBossan BenjaminBossan merged commit b08e6fa into huggingface:main Dec 11, 2023
14 checks passed
@BenjaminBossan BenjaminBossan deleted the tst-loftq-tests-4bit branch December 11, 2023 14:34
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.

3 participants