Skip to content

Commit

Permalink
Fix unexpected keyword error when deepspeed is not available
Browse files Browse the repository at this point in the history
Signed-off-by: Huan Zhao <quic_huzh@quicinc.com>
  • Loading branch information
quic-huzh committed Nov 1, 2024
1 parent cf9c256 commit 5202df7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def _do_patch_dummy_parameters(module):
except ImportError:
class SafeGatheredParameters(contextlib.nullcontext):
""" Dummy placeholder in case deepspeed doesn't exist """
pass
def __init__(self, *args, **kwargs):
super().__init__()


def _do_patch_dummy_parameters(module): # pylint: disable=unused-argument
Expand Down

0 comments on commit 5202df7

Please sign in to comment.