Skip to content

TST: Add tests for 4bit LoftQ#1208

Merged
BenjaminBossan merged 4 commits into
huggingface:mainfrom
BenjaminBossan:tst-loftq-tests-4bit
Dec 11, 2023
Merged

TST: Add tests for 4bit LoftQ#1208
BenjaminBossan merged 4 commits into
huggingface:mainfrom
BenjaminBossan:tst-loftq-tests-4bit

Conversation

@BenjaminBossan
Copy link
Copy Markdown
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
Copy Markdown
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
Copy link
Copy Markdown

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

Copy link
Copy Markdown
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?

Comment thread tests/test_gpu_examples.py
Comment thread tests/test_gpu_examples.py Outdated
Comment thread tests/test_gpu_examples.py Outdated
Comment thread tests/test_gpu_examples.py Outdated
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
@BenjaminBossan BenjaminBossan deleted the tst-loftq-tests-4bit branch December 11, 2023 14:34
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
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.

---------

Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com>
cyyever pushed a commit to cyyever/peft that referenced this pull request Sep 4, 2025
* Add support for ChatML dataset format in
SFTTrainer

* fix formatting

* fix tests

* more comment

* fix intent

* fix doc string

* Update dataset_formatting.py

* Update dataset_formatting.py

* add documentation

* Update sft_trainer.mdx

* add leonardos comment and more tests

* added more tests and fixed batching

* style

* comment in
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