2 unstable releases

0.15.0 Oct 28, 2024
0.14.0 Aug 27, 2024

#1081 in Machine learning

Download history 352/week @ 2024-08-26 178/week @ 2024-09-02 336/week @ 2024-09-09 240/week @ 2024-09-16 359/week @ 2024-09-23 289/week @ 2024-09-30 215/week @ 2024-10-07 295/week @ 2024-10-14 209/week @ 2024-10-21 534/week @ 2024-10-28 468/week @ 2024-11-04 349/week @ 2024-11-11

1,588 downloads per month
Used in 13 crates (via burn-core)

MIT/Apache

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

~37–72MB
~1.5M SLoC