Overview of Burn Neural Networks
mainburn-nn crate provides the core building blocks for constructing neural networks within the Burn ecosystem. It contains the fundamental modules, layers, and components required to define model architectures.repository·main·Indexed 12 days ago
https://github.com/tracel-ai/burnA high-performance deep learning framework and tensor library in Rust that unifies training and inference through a single, multi-platform API. It includes support for automatic differentiation via Burn Autodiff, multiple backends including CUDA, Wgpu, and CubeCL, and tools for kernel fusion and distributed tensor sharing.
burn-nn crate provides the core building blocks for constructing neural networks within the Burn ecosystem. It contains the fundamental modules, layers, and components required to define model architectures.burn-std crate provides the foundational core types and utilities used throughout the Burn ecosystem. It is designed to be lightweight and highly portable, offering essential definitions for shapes, indexing, and various data types required for deep learning operations.burn-backend crate provides the core interfaces and data structures required to execute tensor operations within the Burn ecosystem. It defines the abstraction layer that allows Burn's high-level tensor API to interact with various hardware-specific implementations (backends).burn-flex is a complete replacement for burn-ndarray designed to overcome limitations such as the 6-dimension limit and lack of native f16/bf16 support.
FloatTensorOps, IntTensorOps, BoolTensorOps, QTensorOps, ModuleOps, ActivationOps, and TransactionOps.gemm crate instead).export_tests reference implementation feature.Burn Store is an advanced model storage and serialization library for the Burn deep learning framework. It provides tools for efficient model serialization, cross-framework interoperability (such as PyTorch support), and advanced tensor management.
Key features include:
ParamId persistence for stateful training, and no-std environments..pth or .pt files with automatic weight transformation.burn-cubecl backend is a generic backend for the Burn framework that supports Just-In-Time (JIT) compilation to any shader language target. This allows for flexible execution across different hardware by compiling kernels to the appropriate shader language at runtime.Burn is a unified deep learning framework and tensor library written in Rust, optimized for numerical computing, training, and inference.
Unlike traditional workflows where models are trained in Python and exported to separate production engines (like ONNX or TensorRT), Burn allows you to use the exact same codebase for both training and production. This eliminates the brittle and lossy export step, making it ideal for complex architectures and deployment scenarios like on-device personalization or federated learning.
Key features include:
burn-flex is a high-performance, memory-efficient CPU backend for the Burn framework. It is designed to support a wide range of environments, including std, no_std (embedded), and WebAssembly (WASM).
Key characteristics include:
macerator), multi-threading (via rayon), and highly optimized matrix multiplication (via gemm).transpose, slice, expand) and Arc-based Copy-on-Write (COW) semantics for $O(1)$ tensor cloning.