Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ wrapped
Method
wrapped
deepspeed/runtime/zero/partition_parameters.py:1620–1622 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
1618
def
allgather_before(func: Callable) -> Callable:
1619
1620
def
wrapped(*args, **kwargs):
1621
param.all_gather()
1622
return
func(*args, **kwargs)
1623
1624
return
wrapped
1625
Callers
1
forward
Method · 0.80
Calls
2
func
Function · 0.85
all_gather
Method · 0.45
Tested by
1
forward
Method · 0.64