This PR refactors SparseGPT modifier(s) to remove their inheritance from Wanda, making SparseGPT fully independent. The change improves the modularity of the SparseGPT architecture, making it more straightforward to maintain and extend/modify
Test plan: Ran all the tests, + a manual one shot script on HuggingFaceM4/tiny-random-LlamaForCausalLM
This PR refactors
SparseGPT
modifier(s) to remove their inheritance fromWanda
, makingSparseGPT
fully independent. The change improves the modularity of the SparseGPT architecture, making it more straightforward to maintain and extend/modifyTest plan: Ran all the tests, + a manual one shot script on
HuggingFaceM4/tiny-random-LlamaForCausalLM