Download trace/turns/t004/code.py from Perfect7613/weightpatch-run-overrefusal-rejected: direct link, hf CLI and curl.
- Browser
- Download file 803 Bytes
-
https://huggingface.co/datasets/Perfect7613/weightpatch-run-overrefusal-rejected/resolve/main/trace/turns/t004/code.py
- Command line
-
hf download hf://datasets/Perfect7613/weightpatch-run-overrefusal-rejected/trace/turns/t004/code.py
-
curl -L -o code.py https://huggingface.co/datasets/Perfect7613/weightpatch-run-overrefusal-rejected/resolve/main/trace/turns/t004/code.py
803 Bytes
| 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)) |