Giter Site home page Giter Site logo

hoangt / 8-bit-deep-learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthieucourbariaux/8-bit-deep-learning

0.0 2.0 0.0 7 KB

Training neural networks with 8-bit computations

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

8-bit-deep-learning's Introduction

8-bit Deep Learning

Motivations

In this repository, we train an MLP with 8-bit multiplications (but 32-bit accumulations). Our method could take advantage of a Pascal (the latest Nvidia GPU architecture) instruction which performs 4 x 8-bit multiplications 32-bit accumulation per clock cycle. Basically, we could train neural networks about 4 times faster than float32 with no loss in accuracy.

Requirements

  • Python 2.7, Numpy, Scipy
  • Theano
  • A fast Nvidia GPU (or a large amount of patience)
  • Setting your Theano flags to use the GPU
  • Lasagne

MNIST MLP

Firstly, download the MNIST dataset:

wget http://deeplearning.net/data/mnist/mnist.pkl.gz

Then, simply run the training script:

python mnist_mlp.py

It should run for about 15 minutes on a Titan X GPU. The final test error should be around 0.87%.

CIFAR-10 ConvNet

TODO

ImageNet ConvNet

TODO

8-bit-deep-learning's People

Contributors

matthieucourbariaux avatar

Watchers

 avatar  avatar

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.