MCPcopy 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

forwardMethod · 0.80

Calls 2

funcFunction · 0.85
all_gatherMethod · 0.45

Tested by 1

forwardMethod · 0.64