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: Lightning-AI/pytorch-lightning leads in total GitHub adoption (★ 31.5k), while tracel-ai/burn shows stronger 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
Rust tensor framework for shared training and inference code across CPU and GPU backends
PyTorch training with a managed Trainer and Fabric for custom distributed loops
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | tracel-ai/burn | Lightning-AI/pytorch-lightning |
|---|---|---|
| Total GitHub Stars | ★ 16,395 | ★ 31,488 |
| 24h / 7d Velocity | +7 / +39 | +0 / +31 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 94/100 | A+ · 95/100 |
| Deployment Signals | GPU | GPU |
| Primary Language | Rust | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated today | Updated yesterday |
| Latest Release | v0.22.1 | 2.6.6 |
| 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 | Teams standardizing PyTorch pretraining and fine-tuning across hardware, or researchers who need distributed execution without giving up their custom loops |
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}"); }
LightningModule defines the step and optimizer hooks; Trainer.fit drives execution.launch, setup, setup_dataloaders, and backward without taking control of the optimizer schedule.devices=8, num_nodes=32 illustrates a 256-GPU configuration, not a benchmark.val_loss; logger integrations include TensorBoard, Weights & Biases, Comet, and MLflow.pip install lightningSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy