-
Notifications
You must be signed in to change notification settings - Fork 78
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
[Bugfix] SparseGPT, Pipelines #1130
Conversation
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review. Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed. |
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree with the notion that adding the same variables through inheritance helps with code clarity or user readability.
Updating the docstring in the inherited classes would be sufficient rather than relying on redundant code.
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (pending tests)
Purpose
targets
specifies which modules to sparsity, not which layers to target_infer_owl_layer_sparsity
and add testnum_logits_to_keep
as Tensor and change it tologits_to_keep
+ add flag huggingface/transformers#35757Changes
targets
andsequential_targets
_infer_owl_layer_sparsity
and add testcalibrate_module
as an abstract method on the sgpt mixinmaybe_inject_pos_embeddings
to sequential pipeline to hackily support models withposition_embeddings
on_sequential_batch_end
to call on the end of epoch, rather than every batchFollowups
sequential_update
option from examples and testsTesting
tests/llmcompressor/transformers/obcq/test_obcq_owl.py
Regression Evaluations
Models were compressed using
examples/sparse_2of4_quantization_fp8/llama3_8b_2of4.py
without fp8 optionsparsegpt
Main
This branch
To test wanda, the
SparseGPTModifier
was replaced with theWandaPruningModifier
wanda
Main
This branch