mirror of https://github.com/InternLM/InternLM
add moe module to `__init__.py`
parent
85f4d4af58
commit
1986116527
|
@ -5,12 +5,14 @@ from .embedding import Embedding1D, RotaryEmbedding
|
||||||
from .linear import FeedForward, RewardModelLinear, ScaleColumnParallelLinear
|
from .linear import FeedForward, RewardModelLinear, ScaleColumnParallelLinear
|
||||||
from .metrics import AccPerplex
|
from .metrics import AccPerplex
|
||||||
from .modeling_internlm import build_model_with_cfg
|
from .modeling_internlm import build_model_with_cfg
|
||||||
|
from .moe import MoE
|
||||||
from .multi_head_attention import MHA
|
from .multi_head_attention import MHA
|
||||||
from .utils import gather_forward_split_backward
|
from .utils import gather_forward_split_backward
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Embedding1D",
|
"Embedding1D",
|
||||||
"FeedForward",
|
"FeedForward",
|
||||||
|
"MoE",
|
||||||
"RotaryEmbedding",
|
"RotaryEmbedding",
|
||||||
"RewardModelLinear",
|
"RewardModelLinear",
|
||||||
"ScaleColumnParallelLinear",
|
"ScaleColumnParallelLinear",
|
||||||
|
|
Loading…
Reference in New Issue