MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / zero3_linear_wrap

Function zero3_linear_wrap

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

Source from the content-addressed store, hash-verified

102
103
104def zero3_linear_wrap(input, weight, bias=None):
105 if bias is None:
106 return LinearFunctionForZeroStage3.apply(input, weight)
107 else:
108 return LinearFunctionForZeroStage3.apply(input, weight, bias)
109
110
111class LinearModuleForZeroStage3(Module):

Callers

nothing calls this directly

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected