mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-22 09:59:38 +00:00
Added MoE parallel (#127)
This commit is contained in:
@@ -38,8 +38,9 @@ class BaseSchedule(ABC):
|
||||
return data
|
||||
|
||||
@staticmethod
|
||||
def _check_sanity(data, tag):
|
||||
assert isinstance(data, (torch.Tensor, dict)), f'{tag} must be torch.Tensor or dict'
|
||||
def _check_sanity(data, tag: str):
|
||||
assert isinstance(data, (torch.Tensor, dict)), \
|
||||
f'{tag} must be torch.Tensor or dict'
|
||||
|
||||
def load_batch(self, data_iter, to_gpu=True):
|
||||
"""Loads a batch from data iterator. It returns the data and labels which are
|
||||
|
Reference in New Issue
Block a user