Comments (2)
the .ptmodel
s store every weight as a python object
(so most of them will be NumPy array or something).
So even though they are sparse (have a lot of zeros), the model size will be exactly the same.
My implementation measures how much nonzeros are left after pruning, how much accuracy changes after weight sharing, and how much bytes are required after Huffman encoding. (For research purpose)
If you want to really compress the model for production use, you might need to modify the code and implement the encoding/decoding scheme.
from deep-compression-pytorch.
Why after i use the three way, the model size is same of the three: @mightydeveloper
-rw-r--r--. 1 root root 2.1M Oct 10 02:17 initial_model.ptmodel -rw-r--r--. 1 root root 2.1M Oct 10 02:46 model_after_retraining.ptmodel -rw-r--r--. 1 root root 2.1M Oct 10 03:04 model_after_weight_sharing.ptmodel
hello, thanks your issue.
have you soved the problem? i also want to save the pruned model with small size.
look farward to your reply.
best regards.
from deep-compression-pytorch.
Related Issues (13)
- AttributeError: 'ReLU' object has no attribute 'weight'
- problem in dataloader HOT 2
- dimension error
- weight_shared.py run false
- Why after huffman_encode, why the parameters increase? HOT 1
- Using Deep-Compression in MobileNet-V2
- running bug: HOT 1
- pytorch version HOT 1
- Using LeNet5 HOT 1
- some problem in quantization HOT 3
- Darknet weights Pruning, Quantisation and Huffman Encoding!
- Custom architecture HOT 1
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 deep-compression-pytorch.