B
tracel-ai/burn★ 16,378 · 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 Apache-2.0 · Commercial Friendly.
Rust tensor framework for shared training and inference code across CPU and GPU backends
RWKV: Parallel training and fixed-state decoding for recurrent language models
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | tracel-ai/burn | BlinkDL/RWKV-LM |
|---|---|---|
| Total GitHub Stars | ★ 16,378 | ★ 14,795 |
| 24h / 7d Velocity | +2 / +35 | +1 / +10 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 94/100 | A · 81/100 |
| Deployment Signals | GPU | GPU · CLI |
| Primary Language | Rust | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated today | Updated 27d ago |
| Latest Release | v0.22.1 | 5.00 |
| 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 studying recurrent language models, training RWKV checkpoints, or testing whether fixed-size state reduces memory pressure in long-running streams and batched inference |
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}"); }
RWKV-v7/train_temp/ with separate initialization and training scripts.RWKV-v5/make_data.py converts JSONL into binidx data with the World tokenizer for RWKV-5 World fine-tuning.RWKV-7 V65536-L24-D1024 #params = 2*V*D + 4*D + L*(19D+12D*D+2*D*(64+32+64+128)) = 450.834432 M (note blocks.0.v0/v1/v2 is unused, so actually 450.767872 M) Qwen3.5 V248320-L24-D1024 #params = V*D + D + L*2*D + L*3/4*(12*2*D+16*(2+2*D)+128+10*D*D) + L/4*(256*2+7*D*D) + L*(3*3.5*D*D) = 752.393024 M RWKV-7 L24-D1024 #state_params = L*(2*D+64*D) = 1.622016 M Qwen3.5 L24-D1024 #state_params = L*3/4*(3*6*D+2*128*D) + L/4*(2*2*256*T) = 5.050368 + 6.144*(T/1000) M
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy