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
Cross-track 2026 comparison (LLMs & Inference vs Agents & Frameworks): pydantic/pydantic-ai leads both total GitHub adoption (★ 21.5k) 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
Typed Python agent SDK for reusable tools, model fallback, and realtime voice.
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | tracel-ai/burn | pydantic/pydantic-ai |
|---|---|---|
| Total GitHub Stars | ★ 16,378 | ★ 21,481 |
| 24h / 7d Velocity | +2 / +35 | +10 / +113 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 94/100 | A+ · 100/100 |
| Deployment Signals | GPU | CLI · API |
| Primary Language | Rust | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | v0.22.1 | v2.77.0 |
| 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 | Python teams shipping structured extraction, tool-backed support agents, or realtime voice assistants that need to reuse business logic across providers and interfaces |
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}"); }
RunContext.supports_tool_updates.StepPersistence snapshots settled steps; TemporalDurability runs model and tool calls as durable activities.uv add pydantic-ai "pydantic-ai-harness[coder]"
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy