MCPcopy Create free account
hub / github.com/boyiwei/alignment-attribution-code / clear_act_buffer

Function clear_act_buffer

lib/model_wrapper_low.py:122–125  ·  view source on GitHub ↗
(act_model)

Source from the content-addressed store, hash-verified

120
121
122def clear_act_buffer(act_model):
123 for name, module in act_model.named_modules():
124 if isinstance(module, ActLinear):
125 module.clear_act_buffer()
126
127
128def make_low_rank(

Callers 2

make_low_rankFunction · 0.70

Calls 1

clear_act_bufferMethod · 0.45

Tested by

no test coverage detected