Skip to content

Conversation

@pnunna93
Copy link

@pnunna93 pnunna93 commented Nov 1, 2023

What does this PR do?

  • Fixes error while loading trainer.ds_module
  • Changes torch.distributed.launch to torchrun

pnunna93 and others added 15 commits October 27, 2023 16:11
Fix the issue "[rank0]: RuntimeError: Expected all tensors to be on the same device,
but found at least two devices, cuda:0 and cpu!"
On DeepSpeed library 0.15.0, the commit 7260890452eb89185f9ab1e09550938f78ea91db
changed the return output tensor exp_counts from 'cpu' to device when
calling deepspeed.moe.layer.MoE()
This change reduces cpu host overhead when using moe.
The device type of self.expert_counts tensor in Fairseq transformer_moe_layer module
needs to be changed from cuda from cpu, for ds library >= 0.15.0

Signed-off-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@amd.com>
transformer_moe_layer: Fix Runtime error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants