Skip to content

is8ac/bnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitnets

See description: https://www.isaacleonard.com/ml/distributed/

https://rustup.rs/

You will need nightly rust

rustup default nightly

and make sure it is up to date.

rustup update

Now you can build it.

cargo build --release

See how fast different word sizes are on your machine. (Replace "zen+" with the appropriate arch name.)

./target/release/count_bits_benchmark 20 zen+ "Threadripper 2950X 16-Core" word_perf_zen+.json

Plot the numbers (replace 3000 with a scaling factor appropriate for your machine):

./target/release/plot_word_perf 3000 word_perf_zen+.json word_perf_zen+.png

And finally stack some layers and measure accuracy on a given training set:

./target/release/layer_demo 20 "/path/to_some/big/chunk/of/text.txt"

Or run setup.sh.

Literature

Low precision neural nets

One bit:

https://openreview.net/pdf?id=ryxfHnCctX

Ternary:

Two bit / quaternary:

Mixed

Genetic / evolutionary optimization

AdaComp : Adaptive Residual Gradient Compression for Data-Parallel Distributed Training

Clustering

Layerwise training

Loc Quang Trinh's thesis paper: https://dspace.mit.edu/bitstream/handle/1721.1/123128/1128279897-MIT.pdf

Neural Network with Binary Activations for Efficient Neuromorphic Computing

Gradient compression

About

Binary neural net research

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published