Kernels:
Trusted publisher
Download build/torch-cuda/modules/norm/__init__.py from kernels-community/fla: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/kernels/kernels-community/fla/resolve/v2/build/torch-cuda/modules/norm/__init__.py
- Command line
-
hf download hf://kernels-community/fla@v2/build/torch-cuda/modules/norm/__init__.py
-
curl -L -o __init__.py https://huggingface.co/kernels/kernels-community/fla/resolve/v2/build/torch-cuda/modules/norm/__init__.py
1.32 kB
| # 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 ...modules.norm.fused_norm_gate import ( | |
| FusedLayerNormGated, | |
| FusedLayerNormGatedLinear, | |
| FusedLayerNormSwishGate, | |
| FusedLayerNormSwishGateLinear, | |
| FusedRMSNormGated, | |
| FusedRMSNormGatedLinear, | |
| FusedRMSNormSwishGate, | |
| FusedRMSNormSwishGateLinear, | |
| ) | |
| from ...modules.norm.l2norm import L2Norm | |
| from ...modules.norm.layernorm import ( | |
| GroupNorm, | |
| GroupNormLinear, | |
| LayerNorm, | |
| LayerNormLinear, | |
| NormParallel, | |
| RMSNorm, | |
| RMSNormLinear, | |
| ) | |
| from ...modules.norm.layernorm_gated import LayerNormGated, RMSNormGated | |
| __all__ = [ | |
| 'FusedLayerNormGated', | |
| 'FusedLayerNormGatedLinear', | |
| 'FusedLayerNormSwishGate', | |
| 'FusedLayerNormSwishGateLinear', | |
| 'FusedRMSNormGated', | |
| 'FusedRMSNormGatedLinear', | |
| 'FusedRMSNormSwishGate', | |
| 'FusedRMSNormSwishGateLinear', | |
| 'GroupNorm', | |
| 'GroupNormLinear', | |
| 'L2Norm', | |
| 'LayerNorm', | |
| 'LayerNormGated', | |
| 'LayerNormLinear', | |
| 'NormParallel', | |
| 'RMSNorm', | |
| 'RMSNormGated', | |
| 'RMSNormLinear', | |
| ] | |