Skip to content

Commit

Permalink
[plugin] hotfix zero plugin (hpcaitech#6036)
Browse files Browse the repository at this point in the history
* [plugin] hotfix zero plugin

* [plugin] hotfix zero plugin
  • Loading branch information
ver217 authored Aug 28, 2024
1 parent d383449 commit cc1b0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colossalai/booster/plugin/low_level_zero_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def forward(self, *args, **kwargs):
if self.convert_fn is not None:
args = tree_map(self.convert_fn, args)
kwargs = tree_map(self.convert_fn, kwargs)
ctx = ColoParamOpHookManager.use_hooks(self.op_hook) if self.overlap_allgather else nullcontext()
ctx = ColoParamOpHookManager.use_hooks(*self.op_hooks) if self.overlap_allgather else nullcontext()
with ctx:
return super().forward(*args, **kwargs)

Expand Down

0 comments on commit cc1b0ef

Please sign in to comment.