Skip to content

Commit

Permalink
Fix type error in ZeROOrderedDict (#6794)
Browse files Browse the repository at this point in the history
As @keskival pointed in
3d5cf73#r149582004,
I've confirmed there's a type error, which this PR fixes.

I didn't run into this because our internal version still use `*r2`.

Co-authored-by: Tero Keski-Valkama <[email protected]>
Co-authored-by: Logan Adams <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2024
1 parent 1b58ba5 commit 9e31252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/zero/parameter_offload.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, parent_module, *args, **kwargs):

def __reduce__(self):
r0, _, *r2 = super().__reduce__()
return (r0, (self._parent_module, )) + r2
return (r0, (self._parent_module, )) + tuple(r2)

def __getitem__(self, key):
param = super().__getitem__(key)
Expand Down

0 comments on commit 9e31252

Please sign in to comment.