B
tracel-ai/burn★ 16,395 · Rust
Rust tensor framework for shared training and inference code across CPU and GPU backends
Apache-2.0 · Commercial Friendlyv0.22.1
Side-by-side 2026 comparison in LLMs & Inference: tracel-ai/burn leads both total GitHub adoption (★ 16.4k) and recent 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs MIT · Commercial Friendly.
Rust tensor framework for shared training and inference code across CPU and GPU backends
A backend-agnostic Python library for explicit tensor shape transformations
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | tracel-ai/burn | arogozhnikov/einops |
|---|---|---|
| Total GitHub Stars | ★ 16,395 | ★ 9,643 |
| 24h / 7d Velocity | +7 / +39 | +1 / +5 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 94/100 | B · 60/100 |
| Deployment Signals | GPU | Local AI · CLI |
| Primary Language | Rust | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated today | Updated 3mo ago |
| Latest Release | v0.22.1 | v0.8.2 |
| Best For | Rust products that embed models, share forward code between training and inference, or ship the same model across GPU, CPU, and Wasm targets | Model and inference code that repeatedly splits, merges, or reorders tensor axes, especially when layout needs to be reviewable or shared across frameworks |
use burn::tensor::{Device, Distribution, Tensor}; fn main() { let device = Device::wgpu(Default::default()).autodiff(); let x: Tensor<2> = Tensor::random([32, 32], Distribution::Default, &device); let y: Tensor<2> = Tensor::random([32, 32], Distribution::Default, &device).require_grad(); let tmp = x.clone() + y.clone(); let tmp = tmp.matmul(x); let tmp = tmp.exp(); let grads = tmp.backward(); let y_grad = y.grad(&grads).unwrap(); println!("{y_grad}"); }
b (c h2 w2) and b (h2 w2 c) make different channel layouts explicit even when their output shapes match.pack with b * c returns shape metadata that unpack uses to restore the component shapes.einsum accepts multi-character axis names and places the pattern after the tensor operands.pip install einopsSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy