2023-01-04 03:38:42 +00:00
|
|
|
from .cpu_adam import CPUAdamBuilder
|
|
|
|
from .fused_optim import FusedOptimBuilder
|
2023-01-06 12:50:26 +00:00
|
|
|
from .layernorm import LayerNormBuilder
|
2023-01-04 03:38:42 +00:00
|
|
|
from .moe import MOEBuilder
|
|
|
|
from .multi_head_attn import MultiHeadAttnBuilder
|
2023-01-06 12:50:26 +00:00
|
|
|
from .scaled_masked_softmax import ScaledMaskedSoftmaxBuilder
|
|
|
|
from .scaled_upper_triangle_masked_softmax import ScaledUpperTrainglemaskedSoftmaxBuilder
|
2023-01-04 03:38:42 +00:00
|
|
|
|
2023-01-06 12:50:26 +00:00
|
|
|
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'
|
|
|
|
]
|