Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
158
def
zero3_linear_wrap(input, weight, bias=None):
159
return
LinearFunctionForZeroStage3.apply(input, weight, bias)
160
161
162
class
LinearModuleForZeroStage3(Module):
Callers
7
test_grad_and_value_over_patched_functional_linear
Method · 0.90
loss_fn
Method · 0.90
test_unbatched_backward_matches_reference
Method · 0.90
_run_forward_backward
Method · 0.90
test_no_autocast_leak_into_backward
Method · 0.90
test_cpu_autocast_backward_matches_functional_linear
Method · 0.90
test_setup_context_stores_autocast_attrs
Method · 0.90
Calls
1
apply
Method · 0.45
Tested by
7
test_grad_and_value_over_patched_functional_linear
Method · 0.72
loss_fn
Method · 0.72
test_unbatched_backward_matches_reference
Method · 0.72
_run_forward_backward
Method · 0.72
test_no_autocast_leak_into_backward
Method · 0.72
test_cpu_autocast_backward_matches_functional_linear
Method · 0.72
test_setup_context_stores_autocast_attrs
Method · 0.72