Perfect7613's picture
WeightPatch run astra-overrefusal-kits
26ae91c verified
Raw History Blame Contribute Delete
749 Bytes
for l, cols in combined_units.items():
name = f"model.layers.{l}.mlp.down_proj.weight"
mat = W.original(name).float().clone()
mat[:, cols] = 0
source = ("circuit:8", "circuit:9", "circuit:10") if l in agreed3 else ("circuit:14", "circuit:15", "circuit:16")
W.save_edit(name, mat,
evidence=f"Target activation/weight agreement {source[:2]} excluding harmful activation {source[2]}, columns {cols}. Trial 7 partial attenuation reduced borderline 27->21/64 with harmful/benign unchanged; test full suppression of same L{l} columns.")
trial8 = tools.measure.dev_eval(n=64, sets=["borderline", "harmful", "benign"])
print("Trial 8:", trial8)
note("Trial 8: complete suppression of 716 target-only columns; dev " + str(trial8))