23 unstable releases (7 breaking)
Uses new Rust 2024
| 0.21.0 | May 7, 2026 |
|---|---|
| 0.21.0-pre.4 | Apr 27, 2026 |
| 0.21.0-pre.2 | Mar 2, 2026 |
| 0.20.0-pre.6 | Dec 18, 2025 |
| 0.15.0 | Oct 28, 2024 |
#2272 in Machine learning
72,613 downloads per month
Used in 259 crates
(31 directly)
2MB
38K
SLoC
Burn CUDA Backend
Burn CUDA backend
This crate provides a CUDA backend for Burn using the cubecl and cudarc crates.
Usage Example
#[cfg(feature = "cuda")]
mod cuda {
use burn_autodiff::Autodiff;
use burn_cuda::{Cuda, CudaDevice};
use mnist::training;
pub fn run() {
let device = CudaDevice::default();
training::run::<Autodiff<Cuda<f32, i32>>>(device);
}
}
Dependencies
Requires CUDA 12.x to be installed and on the PATH.
Dependencies
~68–110MB
~2M SLoC