Giter VIP home page Giter VIP logo

Comments (6)

bfineran avatar bfineran commented on August 25, 2024

Hi @clementpoiret thank you for finding and fixing this bug. I've approved #442 and will get that landed.

We're currently overhauling our structure pruning support including for filter pruning which is reducing the wrong dimensions (should be [0] instead of [0,1]) and adding support for pruning groups of parameters together (#440).

from sparseml.

clementpoiret avatar clementpoiret commented on August 25, 2024

Thanks for the information @bfineran
As I am using sparseml to prune and quantize my models, does it mean I have to change (at least locally) [0,1] by [0] to have the expected filter pruning? Or is it better to wait until 0.9.0?

from sparseml.

markurtz avatar markurtz commented on August 25, 2024

Hi @clementpoiret, we'd recommend waiting until 0.9 for better-structured pruning support. This should go out in the next two weeks and we'll keep you updated as this progresses.

from sparseml.

jeanniefinks avatar jeanniefinks commented on August 25, 2024

Hi @clementpoiret
Release .9 has gone out the door; we hope you can try our latest version to address this issue; a summary of release highlights is also available - check them out here.

Best, Jeannie / Neural Magic

from sparseml.

markurtz avatar markurtz commented on August 25, 2024

Hi @clementpoiret to follow up on the comment from @jeanniefinks, we have added a StructuredPruningModifier in the 0.9 release for PyTorch. Let us know if you have a chance to try it out as this enables proper filter pruning. Happy to help walkthrough an example as well!

Thanks,
Mark

from sparseml.

clementpoiret avatar clementpoiret commented on August 25, 2024

I launched another training using StructuredPruningModifier to prune filters, but some questions are coming to my mind:
1/ In the doc, GMPruningModifier still have "filters" and "channels". Is it now equivalent to using the StructuredPruningModifier with the same arguments?
2/ How can I check if the model is correctly pruned? The final pruned ONNX file weights the same thing (around 140Mb) than its non-pruned counterpart, is this normal?

Thanks!

from sparseml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.