Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update moe branch for torchrun and fix error while loading trainer.ds_module #7

Open
wants to merge 4 commits into
base: feature/deepspeed_moe
Choose a base branch
from

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 4 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 <[email protected]>
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.

2 participants