[moe] clean legacy code

This commit is contained in:
hxwang
2024-07-16 09:08:31 +00:00
committed by Hongxin Liu
parent 74eccac0db
commit 3e2b6132b7
39 changed files with 163 additions and 173 deletions

View File

@@ -4,9 +4,7 @@ import pytest
import torch
from colossalai.accelerator import get_accelerator
# from colossalai.moe import SparseMLP
from colossalai.moe._operation import MoeCombine, MoeDispatch, moe_cumsum
from colossalai.moe.operators import MoeCombine, MoeDispatch, moe_cumsum
NUM_EXPERTS = 4
BATCH_SIZE = 4