16 releases (6 breaking)
Uses new Rust 2024
| new 0.20.0 | Jan 15, 2026 |
|---|---|
| 0.20.0-pre.6 | Dec 18, 2025 |
| 0.20.0-pre.3 | Nov 24, 2025 |
| 0.18.0 | Jul 18, 2025 |
| 0.15.0 | Oct 28, 2024 |
#2160 in Machine learning
36,744 downloads per month
Used in 116 crates
(15 directly)
1.5MB
32K
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
~67–110MB
~2M SLoC