Comments (6)
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.
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.
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.
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.
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.
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)
- RecursionError when converting LlaMa model to ONNX HOT 6
- Error converting mistral to onnx HOT 13
- SparseML/YOLOv5s - ValueError: Unable to find any modifiers in given recipe. HOT 1
- Feature Request: Oriented Bounding Box Sparsification for YOLOv5/YOLOv8 on Custom Models/Datasets HOT 1
- [Roadmap] SparseML Roadmap Q1 2024 HOT 1
- Regarding the execution speed and model size after Sparsifying ResNet-50 HOT 2
- Class Index change observed when validating a yolov5 pruned sparseml model HOT 2
- yolov5 sparse fine tuning error HOT 2
- [Roadmap] SparseML Roadmap Q2 2024
- Does Sparseml support Integer-Arithmetic-Only Inference? HOT 1
- recipe.yaml not found HOT 4
- Missing key(s) in state_dict: "model.0.conv.quant.activation_post_process.scale" HOT 5
- Performance Degradation in YOLOv8s Model Exported to ONNX via SparseML's Exporter HOT 9
- How to export a GPTQ model to ONNX to run in DeepSparse HOT 2
- Sparsify custom pytorch models from scratch HOT 8
- Remove QuantizeLinear/DequantizeLinear of ONNX model HOT 5
- Sparse/Quantization Aware Training for YOLOv10 HOT 4
- YOLOv8 - INT4 Training HOT 1
- YOLOv8 Export Bug HOT 2
- One-Shot LLM Compression bug with obcq recipe.yaml HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparseml.