Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boyiwei/alignment-attribution-code
/ clear_act_buffer
Function
clear_act_buffer
main_low_rank_diff.py:123–126 ·
view source on GitHub ↗
(act_model)
Source
from the content-addressed store, hash-verified
121
122
123
def
clear_act_buffer(act_model):
124
for
name, module in act_model.named_modules():
125
if
isinstance(module, ActLinear):
126
module.clear_act_buffer()
127
128
129
def
make_low_rank(
Callers
2
make_low_rank
Function · 0.70
main_low_rank_diff.py
File · 0.70
Calls
1
clear_act_buffer
Method · 0.45
Tested by
no test coverage detected