# Copyright (c) Meta Platforms, Inc. and affiliates. # # This software may be used and distributed in accordance with # the terms of the DINOv3 License Agreement. from .attention import CausalSelfAttention, LinearKMaskedBias, SelfAttention from .block import CausalSelfAttentionBlock, SelfAttentionBlock from .ffn_layers import Mlp, SwiGLUFFN from .fp8_linear import convert_linears_to_fp8 from .layer_scale import LayerScale from .patch_embed import PatchEmbed from .rms_norm import RMSNorm from .rope_position_encoding import RopePositionEmbedding