53 lines
1.7 KiB
Python
53 lines
1.7 KiB
Python
|
|
# Copyright (c) 2023-2026, Songlin Yang, Yu Zhang, Zhiyuan Li
|
||
|
|
#
|
||
|
|
# This source code is licensed under the MIT license found in the
|
||
|
|
# LICENSE file in the root directory of this source tree.
|
||
|
|
# For a list of all contributors, visit:
|
||
|
|
# https://github.com/fla-org/flash-linear-attention/graphs/contributors
|
||
|
|
|
||
|
|
from fla.modules.convolution import ImplicitLongConvolution, LongConvolution, ShortConvolution
|
||
|
|
from fla.modules.fused_bitlinear import BitLinear, FusedBitLinear
|
||
|
|
from fla.modules.fused_cross_entropy import FusedCrossEntropyLoss
|
||
|
|
from fla.modules.fused_kl_div import FusedKLDivLoss
|
||
|
|
from fla.modules.fused_linear_cross_entropy import FusedLinearCrossEntropyLoss
|
||
|
|
from fla.modules.fused_norm_gate import (
|
||
|
|
FusedLayerNormGated,
|
||
|
|
FusedLayerNormSwishGate,
|
||
|
|
FusedLayerNormSwishGateLinear,
|
||
|
|
FusedRMSNormGated,
|
||
|
|
FusedRMSNormSwishGate,
|
||
|
|
FusedRMSNormSwishGateLinear,
|
||
|
|
)
|
||
|
|
from fla.modules.l2norm import L2Norm
|
||
|
|
from fla.modules.layernorm import GroupNorm, GroupNormLinear, LayerNorm, LayerNormLinear, RMSNorm, RMSNormLinear
|
||
|
|
from fla.modules.mlp import GatedMLP
|
||
|
|
from fla.modules.rotary import RotaryEmbedding
|
||
|
|
from fla.modules.token_shift import TokenShift
|
||
|
|
|
||
|
|
__all__ = [
|
||
|
|
'BitLinear',
|
||
|
|
'FusedBitLinear',
|
||
|
|
'FusedCrossEntropyLoss',
|
||
|
|
'FusedKLDivLoss',
|
||
|
|
'FusedLayerNormGated',
|
||
|
|
'FusedLayerNormSwishGate',
|
||
|
|
'FusedLayerNormSwishGateLinear',
|
||
|
|
'FusedLinearCrossEntropyLoss',
|
||
|
|
'FusedRMSNormGated',
|
||
|
|
'FusedRMSNormSwishGate',
|
||
|
|
'FusedRMSNormSwishGateLinear',
|
||
|
|
'GatedMLP',
|
||
|
|
'GroupNorm',
|
||
|
|
'GroupNormLinear',
|
||
|
|
'ImplicitLongConvolution',
|
||
|
|
'L2Norm',
|
||
|
|
'LayerNorm',
|
||
|
|
'LayerNormLinear',
|
||
|
|
'LongConvolution',
|
||
|
|
'RMSNorm',
|
||
|
|
'RMSNormLinear',
|
||
|
|
'RotaryEmbedding',
|
||
|
|
'ShortConvolution',
|
||
|
|
'TokenShift',
|
||
|
|
]
|