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

[Test Fix] Add Quantization then finetune tests #964

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

horheynm
Copy link
Collaborator

@horheynm horheynm commented Dec 9, 2024

Contingent on merge of huggingface/transformers#34719
^ has been merged not yet released

SUMMARY:
Add test to

  • Given a model, oneshot quantize, then run ptq - training.
    Model must be run_compressed = False to run

Note:

Also fix a bug where in log_sparsification, the layer name is not being recognized so fails. Here nothting is being sparsified, so num params is set to zero

TEST PLAN:
ran the test using transformers main
must pass tests/llmcompressor/transformers/finetune/test_oneshot_then_finetune.py

Copy link

github-actions bot commented Dec 9, 2024

👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review.

@horheynm
Copy link
Collaborator Author

/ready

@dsikka dsikka marked this pull request as draft December 12, 2024 17:01
@horheynm horheynm changed the title Add Quantization then finetune tests [Test Fix] Add Quantization then finetune tests Dec 16, 2024
@horheynm horheynm marked this pull request as ready for review December 23, 2024 14:12
@horheynm horheynm marked this pull request as draft December 23, 2024 15:03
@horheynm horheynm marked this pull request as ready for review January 10, 2025 13:43
kylesayrs
kylesayrs previously approved these changes Jan 10, 2025
kylesayrs
kylesayrs previously approved these changes Jan 10, 2025
Copy link
Collaborator

@dsikka dsikka left a comment

Choose a reason for hiding this comment

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

LGTM.

As per offline conversation, lets decompress before running finetune
and verify if we still need the skipif

dsikka
dsikka previously approved these changes Jan 14, 2025
Copy link
Collaborator

@dsikka dsikka left a comment

Choose a reason for hiding this comment

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

LGTM. please fix quality

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