CPM-9G-8B/9G-Train/cpm/native_layers/__init__.py

13 lines
476 B
Python

from .attention import Attention
from .blocks import TransformerBlock
from .embedding import Embedding
from .embedding import EmbeddingExt
from .feedforward import FeedForward
from .layernorm import LayerNorm
from .linear import Linear
from .position_embedding import BucketPositionBias
from .position_embedding import RotaryEmbedding
from .position_embedding import RotaryEmbeddingESM
from .position_embedding import SegmentPositionEmbedding
from .transformer import Encoder