-
Notifications
You must be signed in to change notification settings - Fork 288
[Bugfix] SparseGPT, Pipelines #1130
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
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
targetsspecifies which modules to sparsity, not which layers to target_infer_owl_layer_sparsityand add testnum_logits_to_keepas Tensor and change it tologits_to_keep+ add flag huggingface/transformers#35757Changes
targetsandsequential_targets_infer_owl_layer_sparsityand add testcalibrate_moduleas an abstract method on the sgpt mixinmaybe_inject_pos_embeddingsto sequential pipeline to hackily support models withposition_embeddingson_sequential_batch_endto call on the end of epoch, rather than every batchFollowups
sequential_updateoption from examples and testsTesting
tests/llmcompressor/transformers/obcq/test_obcq_owl.pyRegression Evaluations
Models were compressed using
examples/sparse_2of4_quantization_fp8/llama3_8b_2of4.pywithout fp8 optionsparsegpt
Main
This branch
To test wanda, the
SparseGPTModifierwas replaced with theWandaPruningModifierwanda
Main
This branch