Skip to content

Commit a352018

Browse files
committed
Revert "fixed some weird behaivoir in deepspeed which does allow me to import moe"
This reverts commit 2f232b9. Signed-off-by: Luke Friedrichs <[email protected]>
1 parent 9e7d3c6 commit a352018

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

deepspeed/inference/v2/model_implementations/layer_container_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def __new__(cls, clsname, bases, attrs):
9494

9595
# Check for invalid mappings
9696
if base_dependency not in all_names:
97-
continue
9897
raise ValueError(
9998
"Target parameter \"{}\" not found in this layer. Valid targets are {}".format(
10099
base_dependency, all_names))
@@ -123,7 +122,6 @@ def __new__(cls, clsname, bases, attrs):
123122
raise ValueError(
124123
"ParametrizedList index inference can only work with a single glob: {}".format(src_name))
125124
elif glob_count == 0:
126-
continue
127125
raise ValueError(
128126
"Must have wildcard (*) in source name for ParametrizedList mapping: {}".format(src_name))
129127

0 commit comments

Comments
 (0)