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

Function zero3_linear_wrap

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

Source from the content-addressed store, hash-verified

146
147
148def zero3_linear_wrap(input, weight, bias=None):
149 return LinearFunctionForZeroStage3.apply(input, weight, bias)
150
151
152class LinearModuleForZeroStage3(Module):

Calls 1

applyMethod · 0.45