File size: 803 Bytes
26ae91c | 1 2 3 4 5 6 7 8 9 10 | trial_units = {18: [10146], 17: [6344]}
for l, cols in trial_units.items():
name = f"model.layers.{l}.mlp.down_proj.weight"
print(tools.edit.project_out(
name, safe_dirs[l], cols=cols, strength=0.5,
evidence=f"SafeTune target activation circuit:1 and weight circuit:3 agree on {l}:{cols}; absent from harmful activation circuit:2. Refused-safe vs answered-safe residual contrast orthogonalized against harmful-minus-benign; positive safe-write scores 0.14385 (18:10146), 0.05450 (17:6344)."))
trial1 = tools.measure.dev_eval(n=64, sets=["borderline", "harmful", "benign"])
print("Trial 1:", trial1)
print("Edit accounting:", tools.edit.list_edits())
note("Trial 1: half-strength harmful-orthogonal projection of two independently agreed target-only neurons. Dev: " + str(trial1)) |