mirror of https://github.com/InternLM/InternLM
fix moe loss logger for the interleaved pp
parent
d1d21546d9
commit
3a3ca71459
|
@ -1342,7 +1342,7 @@ class InterleavedPipelineScheduler(PipelineScheduler):
|
|||
accum_moe_loss = self._accum_moe_loss
|
||||
|
||||
accum_loss = self._accum_loss
|
||||
if return_loss:
|
||||
if accum_loss is not None:
|
||||
accum_loss += self._accum_moe_loss
|
||||
|
||||
self._clear_state()
|
||||
|
|
Loading…
Reference in New Issue