We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33db7c4 commit 39b1755Copy full SHA for 39b1755
1 file changed
deepspeed/runtime/zero/linear.py
@@ -154,10 +154,7 @@ def backward(ctx, grad_output):
154
155
156
def zero3_linear_wrap(input, weight, bias=None):
157
- if bias is None:
158
- return LinearFunctionForZeroStage3.apply(input, weight)
159
- else:
160
- return LinearFunctionForZeroStage3.apply(input, weight, bias)
+ return LinearFunctionForZeroStage3.apply(input, weight, bias)
161
162
163
class LinearModuleForZeroStage3(Module):
0 commit comments