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:1571–1573 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
1569
def
allgather_before(func: Callable) -> Callable:
1570
1571
def
wrapped(*args, **kwargs):
1572
param.all_gather()
1573
return
func(*args, **kwargs)
1574
1575
return
wrapped
1576
Callers
1
forward
Method · 0.80
Calls
2
func
Function · 0.85
all_gather
Method · 0.45
Tested by
1
forward
Method · 0.64