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

Download history 7104/week @ 2025-09-25 5698/week @ 2025-10-02 6545/week @ 2025-10-09 8980/week @ 2025-10-16 6506/week @ 2025-10-23 5888/week @ 2025-10-30 5468/week @ 2025-11-06 5997/week @ 2025-11-13 5850/week @ 2025-11-20 6282/week @ 2025-11-27 6146/week @ 2025-12-04 6054/week @ 2025-12-11 6766/week @ 2025-12-18 6171/week @ 2025-12-25 9207/week @ 2026-01-01 13755/week @ 2026-01-08

36,744 downloads per month
Used in 116 crates (15 directly)

MIT/Apache

1.5MB
32K 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

~67–110MB
~2M SLoC