Skip to content

Commit f9aeb0d

Browse files
committed
fix
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
1 parent 329c4d0 commit f9aeb0d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

plugins/accelerated-moe/src/fms_acceleration_moe/framework_plugin_megablocks.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,11 @@ def get_callbacks_and_ready_for_train(
173173
_layers = model._get_no_split_modules('')
174174
accelerator.state.fsdp_plugin.ignored_modules = [
175175
getattr(layer, name)
176-
for name in moe_component_module_names
176+
for name in self._moe_component_module_names
177177
for layer in model.modules()
178178
if layer.__class__.__name__ in _layers
179179
]
180180

181-
FSDP(
182-
model,
183-
ignored_modules=ignored_modules,
184-
)
185-
186181
return callbacks
187182

188183

0 commit comments

Comments
 (0)