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

Method __init__

main_low_rank_diff.py:23–27  ·  view source on GitHub ↗
(self, base: nn.Linear)

Source from the content-addressed store, hash-verified

21 """
22
23 def __init__(self, base: nn.Linear):
24 super().__init__()
25 self.base = base
26 self.activation_norms = [] # offload to CPU
27 self.record_activation = True
28
29 def clear_act_buffer(self):
30 self.activation_norms = []

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected