Git Product home page Git Product logo

Comments (11)

mgoin avatar mgoin commented on June 10, 2024 2

@Y-T-G Here is a quick colab notebook I made using T4 GPU to one-shot sparsify/quantize the model. https://colab.research.google.com/drive/1DLB-tE1ide-55b9gzq6kQyrrW0lvT7xj?usp=sharing

It uses our Sparsify tool (in alpha right now, so leave feedback!) to optimize the ONNX with some (dummy) calibration data: https://github.com/neuralmagic/sparsify

Here is the low-sparsity ONNX: https://drive.google.com/file/d/1qMZCtikHtS4Edy0EBP9R7qX5i9eLyOvz/view?usp=sharing
Here is the high-sparsity ONNX: https://drive.google.com/file/d/1XkVYhX4SJfM0mLRuH-RIx6F0xQ9-vAYy/view?usp=drive_link

I used dummy data so the model likely isn't accurate, but you can substitute real input data to maintain.

If you want to talk more on this, happy to jump on a call or join our slack to ask question: https://join.slack.com/t/discuss-neuralmagic/shared_invite/zt-q1a1cnvo-YBoICSIw3L1dmQpjBeDurQ

Base model benchmark:
Screenshot 2023-08-10 at 12 28 57 PM

Sparsified model benchmark:
Screenshot 2023-08-10 at 12 29 13 PM

from deepsparse.

tlrmchlsmth avatar tlrmchlsmth commented on June 10, 2024 1

Hey @Y-T-G, thanks for the bug report. We can reproduce this issue and have a fix for it. I'll ping you once it's available in deepsparse-nightly

from deepsparse.

jeanniefinks avatar jeanniefinks commented on June 10, 2024 1

Hello @Y-T-G
The latest nightly has been mounted. Please now try pip install deepsparse-nightly - THANK YOU! 🥇
Jeannie / Neural Magic

from deepsparse.

mgoin avatar mgoin commented on June 10, 2024 1

Hi @Y-T-G here is a Colab notebook showing how to export the ONNX and run it on deepsparse-nightly: https://colab.research.google.com/drive/16r8fLUgAEqPWbDlQmgrmmuq8WvFXxLnQ?usp=sharing

from deepsparse.

tlrmchlsmth avatar tlrmchlsmth commented on June 10, 2024

A fix will be available the next time a nightly release goes out, and I'll close the issue then!

from deepsparse.

Y-T-G avatar Y-T-G commented on June 10, 2024

@tlrmchlsmth Cool. Thanks for the fix.

from deepsparse.

Y-T-G avatar Y-T-G commented on June 10, 2024

When can I expect the nightly to be available?

from deepsparse.

Y-T-G avatar Y-T-G commented on June 10, 2024

@jeanniefinks @mgoin Thanks. I will try it out.

from deepsparse.

Y-T-G avatar Y-T-G commented on June 10, 2024

I was able to test it on C++ and it works. Thanks.

from deepsparse.

mgoin avatar mgoin commented on June 10, 2024

Thanks for sharing @Y-T-G , very cool project! Let me know if you'd be interested in sparsifying the model for more performance

from deepsparse.

Y-T-G avatar Y-T-G commented on June 10, 2024

@mgoin Sure. That would be great. I was wondering how to improve the FPS further.

from deepsparse.

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.