remove useless code for no-pp

pull/407/head
yingtongxiong 2023-10-09 18:08:15 +08:00
parent 0fa1083780
commit 54e561665e
1 changed files with 0 additions and 2 deletions

View File

@ -202,10 +202,8 @@ class NonPipelineScheduler(BaseScheduler):
if return_output_label:
outputs.append(_output)
labels.append(_label)
if not return_output_label:
outputs, labels = None, None
# Compatible for non-moe
if hasattr(gpc.config.model, "num_experts"):
return outputs, labels, loss, moe_loss