Skip to content

Commit

Permalink
Ensure is initialized for SD (microsoft#2534)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmikeh2 authored Nov 22, 2022
1 parent 2110552 commit 57e0a55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deepspeed/inference/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def __init__(self, model, config):

if isinstance(self.module, torch.nn.Module):
moe, _ = has_moe_layers(self.module)
else:
moe = False

if moe and dist.get_world_size() > 1:
self._create_ep_parallel_group(config.moe.moe_experts)
Expand Down

0 comments on commit 57e0a55

Please sign in to comment.