MCPcopy 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
123def 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
129def make_low_rank(

Callers 2

make_low_rankFunction · 0.70

Calls 1

clear_act_bufferMethod · 0.45

Tested by

no test coverage detected