A lightweight ML framework built from scratch in Rust with GPU-first architecture.
- GPU acceleration via wgpu (Vulkan, Metal, DX12, WebGPU)
- Element types:
f32,i32,u32,bool - Cross-platform: Linux, macOS, Windows, Web/WASM
- Automatic compute pipeline caching
- No unsafe code
N-dimensional array with GPU-accelerated operations and automatic broadcasting.
| Type | Numeric | Signed | Integer | Float | Logical |
|---|---|---|---|---|---|
f32 |
✓ | ✓ | ✓ | ||
i32 |
✓ | ✓ | ✓ | ||
u32 |
✓ | ✓ | |||
bool |
✓ |
Trains a fully-connected network on the MNIST dataset.
cd examples/mnist-train
cargo run --releaseInteractive digit recognition in the browser using WebGPU and WASM.
cd examples/mnist-web
wasm-pack build --target web
python3 -m http.serverTrains a simple linear model to fit y = wx + b.
cargo run --release --example linregTrains a 2-layer neural network to solve the XOR problem.
cargo run --release --example xorMIT — see LICENSE for details.