3 releases (breaking)

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

#1405 in Machine learning

Download history 665/week @ 2024-12-07 683/week @ 2024-12-14 300/week @ 2024-12-21 223/week @ 2024-12-28 547/week @ 2025-01-04 762/week @ 2025-01-11 944/week @ 2025-01-18 1259/week @ 2025-01-25 1137/week @ 2025-02-01 1038/week @ 2025-02-08 1162/week @ 2025-02-15 5262/week @ 2025-02-22 3041/week @ 2025-03-01 3592/week @ 2025-03-08 2708/week @ 2025-03-15 2325/week @ 2025-03-22

12,187 downloads per month
Used in 19 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

~44–78MB
~1.5M SLoC