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

Add Quantization then finetune tests #964

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

horheynm
Copy link
Collaborator

@horheynm horheynm commented Dec 9, 2024

Contingent on merge of huggingface/transformers#34719

SUMMARY:
Add test to

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

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

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
@@ -18,11 +23,6 @@ def setUp(self):
self.output = Path("./finetune_output")

def test_oneshot_then_finetune(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

test_sparsification_then_finetune

Copy link
Collaborator

Choose a reason for hiding this comment

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

or move the recipe to an argument

parameterize or make functions, test_sparsification_then_finetune, test_quantization_then_finetune, test_oneshot_then_finetune, the latter is called by the first two

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.

2 participants