juice 0.2.5

Machine Learning Framework for Hackers
docs.rs failed to build juice-0.2.5
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: juice-0.2.3

Juice • Join the chat at https://gitter.im/spearow/juice Build Status Crates.io dependency status License


Juice is a open Machine Learning Framework for hackers to build classical, deep or hybrid machine learning applications. It was inspired by the brilliant people behind TensorFlow, Torch, Caffe, Rust and numerous research papers and brings modularity, performance and portability to deep learning.

Juice has one of the simplest APIs, is lean and tries to introduce minimal technical debt to your stack.

See the Juice - Machine Learning for Hackers book for more.

See more Deep Neural Networks benchmarks on [Deep Learning Benchmarks][deep-learning-benchmarks-website].

Juice is portable. Run it on CPUs, GPUs, and FPGAs, on machines with an OS, or on machines without one. Run it with OpenCL or CUDA. Credit goes to Coaster and Rust.

We see Juice as the core of constructing high-performance machine intelligence applications. Juice's design makes it easy to publish independent modules to make e.g. deep reinforcement learning, visualization and monitoring, network distribution, automated preprocessing or scaleable production deployment easily accessible for everyone.

Disclaimer: Juice is currently in an early stage of development. If you are experiencing any bugs with features that have been implemented, feel free to create a issue.

Getting Started


To learn how to build classical, deep or hybrid machine learning applications with Juice, check out the Juice - Machine Learning for Hackers book.

For additional information see the Rust API Documentation or the Spearow Website.

Or start by running the Juice examples.

We are providing a Juice examples repository, where we and others publish executable machine learning models build with Juice. It features a CLI for easy usage and has a detailed guide in the project README.md.

Juice comes with an examples directory as well, which features popular neural networks (e.g. Alexnet, Overfeat, VGG). To run them on your machine, just follow the install guide, clone this repoistory and then run

# The examples currently require CUDA support.
cargo run --release --no-default-features --features cuda --example benchmarks alexnet


Juice is build in Rust. If you are new to Rust you can install Rust as detailed here. We also recommend taking a look at the official Rust - Getting Started Guide.

To start building a machine learning application (Rust only for now. Wrappers are welcome) and you are using Cargo, just add Juice to your Cargo.toml:

juice = "0.2.3"

If you are on a machine that doesn't have support for CUDA or OpenCL you can selectively enable them like this in your Cargo.toml:

juice = { version = "0.2.3", default-features = false }

default = ["native"] # include only the ones you want to use, in this case "native"
native  = ["juice/native"]
cuda    = ["juice/cuda"]
opencl  = ["juice/opencl"]

More information on the use of feature flags in Juice can be found in FEATURE-FLAGS.md


If you want to start hacking on Juice (e.g. adding a new Layer) you should start with forking and cloning the repository.

We have more instructions to help you get started in the CONTRIBUTING.md.

We also has a near real-time collaboration culture, which happens here on Github and on the Juice Gitter Channel.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.

Ecosystem / Extensions

We designed Juice and the other crates of the Autumn Platform to be as modular and extensible as possible. More helpful crates you can use with Juice:

  • Greenglas: Preprocessing Framework for Machine Learning
  • Coaster: Portable, HPC-Framework on any hardware with CUDA, OpenCL, Rust

Support / Contact

  • With a bit of luck, you can find us online on the #rust-machine-learning IRC at irc.mozilla.org,
  • but we are always approachable on Gitter/Juice
  • For bugs and feature request, you can create a Github issue
  • For more private matters, send us email straight to our inbox: hej@spearow.io


You can find the release history at the CHANGELOG.md. We are using Clog, the Rust tool for auto-generating CHANGELOG files.


Licensed under either of

at your option.