Simple introduction into Rust. From Hello World to ML.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Introduces
cargoandrustccommands - Guides through building a simple program
- Introduces building Python modules with Rust
- Illustrates performance benefits of Rust over Python
- More advanced example of using Rust binding for OpenCV C++ API
- Shows examples of imutable (
&) and mutable (&mut) borrowing in Rust
- An example of ControlNet in Rust. This example makes use of two ML focused crates:
tch-rs: Rust bindings for the PyTorch C++ APIdiffusers-rs: A Rust implementation of HuggingFace's Diffusers Python library. Written withtch.
- Introduces
candle, a minimalist ML framework for Rust - Contains two examples
mnist: Builds a simple two-layer model to classify MNIST digitsgpt-rs: Rust implementation of Andrej Karpathy's "Let's build GPT" tutorial