3 releases (breaking)

new 0.16.0 Jan 14, 2025
0.15.0 Oct 28, 2024
0.14.0 Aug 27, 2024

#876 in Machine learning

Download history 288/week @ 2024-09-29 214/week @ 2024-10-06 296/week @ 2024-10-13 209/week @ 2024-10-20 529/week @ 2024-10-27 462/week @ 2024-11-03 325/week @ 2024-11-10 344/week @ 2024-11-17 434/week @ 2024-11-24 588/week @ 2024-12-01 644/week @ 2024-12-08 670/week @ 2024-12-15 283/week @ 2024-12-22 233/week @ 2024-12-29 630/week @ 2025-01-05 759/week @ 2025-01-12

1,943 downloads per month
Used in 16 crates (via burn-core)

MIT/Apache

2MB
46K 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

~46–80MB
~1.5M SLoC