MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / zero3_linear_wrap

Function zero3_linear_wrap

deepspeed/runtime/zero/linear.py:158–159  ·  view source on GitHub ↗
(input, weight, bias=None)

Source from the content-addressed store, hash-verified

156
157
158def zero3_linear_wrap(input, weight, bias=None):
159 return LinearFunctionForZeroStage3.apply(input, weight, bias)
160
161
162class LinearModuleForZeroStage3(Module):

Calls 1

applyMethod · 0.45