3 releases (breaking)

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

#828 in Machine learning

Download history 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 600/week @ 2025-01-05 726/week @ 2025-01-12 992/week @ 2025-01-19 1259/week @ 2025-01-26 1169/week @ 2025-02-02 911/week @ 2025-02-09

4,379 downloads per month
Used in 17 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

~48–82MB
~1.5M SLoC