Giter VIP home page Giter VIP logo

examples's Introduction

Neural Magic ๐Ÿช„ Model Optimization Examples

Deep learning models have grown bigger over the years making their deployment complex and expensive. Neural Magic is building model optimization tools to change this narrative. We provide tools for optimizing these models to make them more performant and easier to deploy. For example, you can use SparseML to make your model sparse in a couple of lines of code. Neural Magic also provides numerous optimized natural language and computer vision models on the SparseZoo. When you are ready to move to production, you can take advantage of the DeepSparse inference runtime to achieve GPU-class performance on commodity CPUs.

In this repository, you will find examples that show how to use Neural Magic's tools to apply optimizations on your models. You will also find examples on how to use Neural Magic's libraries with other machine learning packages.

Highlighted Notebooks

Here are three notebooks you can look at immediately:

Stable Diffusion on CPUs With DeepSparse

Colab

In this notebook, you will learn how to perform text-to-image generation on DeepSparse using stable diffusion models. DeepSparse accelerates inference, enabling the images to be generated on commodity CPUs.

Stable diffusion notebook

Optimize YOLOv5 Model With SparseML

Colab

This notebook will take you through the process of optimizing a YOLOv5 model for real-time object detection. You will also learn how to deploy the resulting model on CPU using DeepSparse.

YOLOv5 notebook

Run Hugging Face Models on DeepSparse

Colab

DeepSparse supports numerous transformer models. This notebook illustrates how to pull models from Hugging Face using Optimum and run them on CPU using DeepSparse.

Optimum notebook

Bugs and Contribution

Let us know in case something isn't working by creating an issue. You can also propose a fix by submitting a pull request. Join our Slack community to engage with other practitioners or inform us of any examples you'd like to see.

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.