Giter Club home page Giter Club logo

Comments (2)

mightydeveloper avatar mightydeveloper commented on July 17, 2024

the .ptmodels 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.

stepstep123 avatar stepstep123 commented on July 17, 2024

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)

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.