mirror of https://github.com/hpcaitech/ColossalAI
33 lines
1.0 KiB
Python
33 lines
1.0 KiB
Python
from .cpu_adam import CPUAdamBuilder
|
|
from .fused_optim import FusedOptimBuilder
|
|
from .layernorm import LayerNormBuilder
|
|
from .moe import MOEBuilder
|
|
from .multi_head_attn import MultiHeadAttnBuilder
|
|
from .scaled_masked_softmax import ScaledMaskedSoftmaxBuilder
|
|
from .scaled_upper_triangle_masked_softmax import ScaledUpperTrainglemaskedSoftmaxBuilder
|
|
|
|
ALL_OPS = {
|
|
"cpu_adam": CPUAdamBuilder,
|
|
"fused_optim": FusedOptimBuilder,
|
|
"moe": MOEBuilder,
|
|
"multi_head_attn": MultiHeadAttnBuilder,
|
|
"scaled_masked_softmax": ScaledMaskedSoftmaxBuilder,
|
|
"scaled_upper_triangle_masked_softmax": ScaledUpperTrainglemaskedSoftmaxBuilder,
|
|
"layernorm": LayerNormBuilder,
|
|
}
|
|
|
|
__all__ = [
|
|
"ALL_OPS",
|
|
"CPUAdamBuilder",
|
|
"FusedOptimBuilder",
|
|
"MultiHeadAttnBuilder",
|
|
"ScaledMaskedSoftmaxBuilder",
|
|
"ScaledUpperTrainglemaskedSoftmaxBuilder",
|
|
"MOEBuilder",
|
|
"MultiTensorSGDBuilder",
|
|
"MultiTensorAdamBuilder",
|
|
"MultiTensorLambBuilder",
|
|
"MultiTensorScaleBuilder",
|
|
"MultiTensorL2NormBuilder",
|
|
]
|