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

Download history 13622/week @ 2026-01-23 14263/week @ 2026-01-30 13030/week @ 2026-02-06 11917/week @ 2026-02-13 11647/week @ 2026-02-20 11581/week @ 2026-02-27 13104/week @ 2026-03-06 13858/week @ 2026-03-13 14058/week @ 2026-03-20 13034/week @ 2026-03-27 13115/week @ 2026-04-03 12257/week @ 2026-04-10 15012/week @ 2026-04-17 14241/week @ 2026-04-24 18181/week @ 2026-05-01 22642/week @ 2026-05-08

72,613 downloads per month
Used in 259 crates (31 directly)

MIT/Apache

2MB
38K SLoC

Burn CUDA Backend

Burn CUDA backend

Current Crates.io Version license

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