Skip to content

PatchEmbeddingsConfig

Module: fast_llm.layers.vision.config

Inherits from: BlockConfig, ModuleConfig

Fields

normalizationarchitecture

Type: NormalizationConfig    Default: (sub-fields optional)

Configuration for the normalization layer.

patch_embeddingsarchitecture

Type: AffineLinearConfig    Default: (sub-fields optional)

Configuration for the patch embedding layer.

patch_heightcore

Type: int    Default: 16

Height of image patches, in pixels.

patch_widthcore

Type: int    Default: 16

Width of image patches, in pixels.

lr_scalefeature

Type: float or None    Default: None

Scaling factor for the layer learning rate. Combines multiplicatively with the scale set by the parent and child layers, if applicable.

full_precision_residualstability

Type: bool    Default: False

Store the residuals for the model in full precision (optimization_dtype).

Used in