Build and train neural network models in Rust without depending on Python-based frameworks like TensorFlow.
Run machine learning inference on embedded hardware or FPGAs using OpenCL without a full CUDA setup.
Study the architecture of an early Rust ML framework as a reference for building portable compute abstractions.
Requires CUDA for the bundled examples, project is archived and may not compile with current Rust toolchain versions.
Leaf is an early-stage machine learning framework written in Rust, intended for building applications that train and run neural networks. It was created by the team behind the Autumn platform as an alternative to tools like TensorFlow and Caffe, with a focus on portability and speed. The README notes it was a few months old at the time of writing and describes itself as one of the faster available options for this type of work. The framework is designed to run on CPUs, GPUs, and FPGAs, and supports both CUDA (used with NVIDIA graphics cards) and OpenCL (a broader standard that works across more hardware). This makes it usable on a range of machines, including those without a traditional operating system. The actual hardware abstraction is handled by a separate companion library called Collenchyma. You use Leaf by adding it to a Rust project as a dependency. Feature flags in the configuration file let you select which hardware backends to include, so you can build a version that uses only the CPU if CUDA is not available. The project includes example implementations of well-known neural network architectures that can be run from the command line, though the README notes CUDA support is currently required for those examples. The project is part of a broader ecosystem that includes a preprocessing library called Cuticula for preparing data before training. Documentation is available through a book titled "Leaf - Machine Learning for Hackers." The code is dual-licensed under Apache 2.0 and MIT. The repository appears to be archived or no longer actively developed based on the early-stage notices in the README.
← autumnai on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.