ColossalAI/colossalai/moe/__init__.py

21 lines
531 B
Python
Raw Normal View History

from .checkpoint import MoECheckpointIO
from .experts import MLPExperts
2023-12-14 09:52:05 +00:00
from .layers import SparseMLP, apply_load_balance
from .manager import MOE_MANAGER
from .routers import MoeRouter, Top1Router, Top2Router, TopKRouter
from .utils import NormalNoiseGenerator, UniformNoiseGenerator
__all__ = [
"MLPExperts",
"MoeRouter",
"Top1Router",
"Top2Router",
"TopKRouter",
"NormalNoiseGenerator",
"UniformNoiseGenerator",
"SparseMLP",
"MoECheckpointIO",
2023-12-14 09:52:05 +00:00
"MOE_MANAGER",
"apply_load_balance",
]