# Burn

> A Rust tensor library and deep learning framework for training and inference on any hardware.

Source: https://talira.ai/catalog/burn-16d6c02a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Library
- Categories: [ai / ml / deep learning frameworks](https://talira.ai/categories/ai/ml/deep-learning-frameworks), [ai / inference / runtimes](https://talira.ai/categories/ai/inference/runtimes)
- Platforms: linux, macos, windows, web[^1]
- Licence: MIT OR Apache-2.0[^2][^3]
- Pricing: Free and open source[^2]
- Pricing notes: MIT or Apache-2.0.
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Backed by: [Tracel](https://talira.ai/orgs/tracel-ai.md)
- Creator: Tracel Inc.

Burn trains and runs neural networks in Rust with one API, so the code you train with is the code that ships, without exporting to another runtime. It keeps PyTorch-like dynamic graphs and shapes, but a just-in-time compiler streams tensor operations, fuses kernels automatically and auto-tunes them for the hardware. Its CubeCL backends run on CUDA, ROCm, Metal, Vulkan, WebGPU and the CPU through LLVM, and a pure-Rust Flex backend runs on Wasm and `no_std`; you can swap backends without changing model code, use several at once, and add autodiff, fusion or remote execution on top. ONNX models import as native Rust code, and weights load from PyTorch and Safetensors files. Model code recompiles in under 5 seconds, even in release mode. Made by Tracel.

## Links

- Website: https://burn.dev/
- GitHub: https://github.com/tracel-ai/burn
- Docs: https://burn.dev/learn/

## Problems it solves

- train and deploy a neural network in Rust without Python
- exporting our PyTorch model to ONNX for production keeps breaking
- run the same model on NVIDIA, AMD and Apple GPUs without rewriting it
- run a deep learning model in the browser with WebGPU or Wasm
- deep learning on an embedded device with no standard library
- import an ONNX model into a Rust application
- load PyTorch weights into a Rust model

## Features

- one API for training and inference
- dynamic graphs and shapes
- JIT compiler with automatic kernel fusion and autotuning
- CubeCL backends: CUDA, ROCm, Metal, Vulkan, WebGPU and CPU
- pure-Rust Flex backend for Wasm and no_std
- swap or combine backends without changing model code
- autodiff, fusion and remote-execution decorators
- ONNX import as Rust code
- load PyTorch and Safetensors weights
- benchmarking tool
- incremental compilation under 5 seconds

## Limitations

- The LibTorch backend was deprecated in 0.22 and removed from main.[^1]

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.35 out of 1.
Signals: backing 0.50, extensibility 0.00.

- backed by Tracel
- created by Tracel Inc.

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [ort](https://talira.ai/catalog/ort-e86n3wy1.md): Fast ML inference & training for ONNX models in Rust
- [candle](https://talira.ai/catalog/candle-mxvc1kc7.md): Minimalist ML framework for Rust
- [TensorFlow](https://talira.ai/catalog/tensorflow-rqdrd1fq.md): An Open Source Machine Learning Framework for Everyone
- [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md): Tensors and dynamic neural networks in Python with strong GPU acceleration
- [MLX](https://talira.ai/catalog/mlx-xz8zv9bv.md): An array framework for Apple silicon
- [Keras](https://talira.ai/catalog/keras-ysm31q4a.md): Deep Learning for humans

## Sources

[^1]: https://github.com/tracel-ai/burn (checked 22 Nov 2026)
[^2]: https://github.com/tracel-ai/burn/blob/main/LICENSE-MIT (checked 22 Nov 2026)
[^3]: https://github.com/tracel-ai/burn/blob/main/LICENSE-APACHE (checked 22 Nov 2026)
