#4040th of 56 in ML frameworks and libraries

burn

Rust tensor library and deep learning framework for training and inference

Stars
16.1k
License
Apache-2.0
Last commit
Oct 2026
Last release
Oct 2026
Language
Rust

Missed the latest GitHub check; these facts may be older.

Overview

Burn is a Rust tensor library and deep learning framework with dynamic graphs, autodiff and automatic kernel fusion. Backends built on CubeCL target CUDA, ROCm, Metal, Vulkan, WebGPU and CPU, plus a pure-Rust Flex backend for Wasm and no_std. The same model code is used for training and deployment, and ONNX, PyTorch and Safetensors weights can be imported.

Who it is for: Rust developers training or deploying models across varied hardware

Strengths

  • Same code trains and runs inference; no export step to ONNX or other runtimes
  • Backends for CUDA, ROCm, Metal, Vulkan, WebGPU, CPU, Wasm and no_std
  • Swap backends at runtime via Device; autodiff and fusion work as decorators
  • Terminal training dashboard built on Ratatui, no external service needed

Weaknesses

  • Rust only; smaller ecosystem and model zoo than PyTorch
  • ONNX import supports only a limited set of operators
  • Remote execution backend is marked Beta
  • LibTorch backend was deprecated in 0.22.0 and removed from main

What it needs

  • GPU optional
  • Needs Rust toolchain
  • Models: ONNX (import), PyTorch weights, Safetensors

Also in ML frameworks and libraries

See all 56
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks167.7k starsApache-2.095 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning104.7k starscustom license94 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.5k starsAGPL-3.092 out of 100
#4supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.2k starsMIT89 out of 100
#5pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.089 out of 100