Expand description
Core module infrastructure and neural-network initializers.
Structs§
- Attribute
- Attribute to print in the display method.
- Content
- Struct to store the attributes of a module for formatting.
- Display
Settings - Custom module display settings.
- Flag
- A boolean parameter value used for module-owned control state.
- Ignored
Deprecated - Container to satisfy the Module trait for types that are not modules.
- Lora
- A
Reparameterizerthat attaches LoRA adapters to 2-D weight parameters. - Lora
Adapter - A LoRA (Low-Rank Adaptation) adapter attached to a frozen weight parameter.
- Param
- Parameters are identified, traversable values owned by modules.
- Param
Group - A way to represent a group of parameter for a Burn module.
- ParamId
- Unique ID for a parameter of a module.
- Param
Mapper - Applies transformations when loading and saving parameters.
- QLora
- A
Reparameterizerimplementing QLoRA: it quantizes the (frozen) base weights and attaches full-precision trainable LoRA adapters to 2-D weights. - Quantizer
- Describes how to quantize a module.
- Running
State - A state that can be updated during the forward pass while being thread safe.
Enums§
- Initializer
- Enum specifying with what values a tensor should be initialized
- Param
Group Error - Errors tied to ParamGroup’s.
Traits§
- Module
- Trait for all neural network modules.
- Module
Display - Trait to implement custom display settings for a module.
- Module
Display Default - Default display settings for a module.
- Module
Mapper - Module mapper trait for transforming module parameters.
- Module
Visitor - Module visitor trait for traversing and inspecting module parameters.
- Parameter
- A tensor-backed
ParameterValuewith autodiff, device and loading capabilities. - Parameter
Value - A value that can be identified and traversed inside a
Param. - Reparameterization
- A rank-specific parameter reparameterization.
- Reparameterizer
- Defines how floating-point parameters are prepared for reparameterization.
Functions§
- extract_
type_ name - Extracts the short name of a type T
- list_
param_ ids - Lists the IDs of all tensor-backed parameters in a module.
Type Aliases§
- Devices
- Type alias to
Vec<Device>which supportsno_stdenvironments, but automatically using thealloccrate.
Derive Macros§
- Module
- Derive macro for the
Moduletrait.