Download trace/turns/t005/code.py from Perfect7613/weightpatch-run-overrefusal-rejected: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/datasets/Perfect7613/weightpatch-run-overrefusal-rejected/resolve/main/trace/turns/t005/code.py
- Command line
-
hf download hf://datasets/Perfect7613/weightpatch-run-overrefusal-rejected/trace/turns/t005/code.py
-
curl -L -o code.py https://huggingface.co/datasets/Perfect7613/weightpatch-run-overrefusal-rejected/resolve/main/trace/turns/t005/code.py
790 Bytes
| target_circuit = tools.localize.discover_circuit( | |
| a="borderline", b="benign", on="aligned", level="neuron", | |
| n_examples=32, sparsity=0.05, scope="mlp") | |
| print("Circuit summary:", {k: v for k, v in target_circuit.items() if k != "top_nodes"}) | |
| nodes = target_circuit.get("top_nodes", {}) | |
| print("Top circuit nodes:", sorted(nodes.items(), key=lambda kv: -abs(kv[1]))[:30]) | |
| faith = tools.localize.circuit_faithfulness( | |
| circuit=target_circuit["circuit"], n_examples=32, on="aligned") | |
| print("Faithfulness:", faith) | |
| overlap_ca = tools.localize.circuit_overlap(target_circuit["circuit"], target_act["circuit"]) | |
| print("CircuitKIT/activation overlap:", overlap_ca) | |
| print("CircuitKIT/weight overlap:", tools.localize.circuit_overlap( | |
| target_circuit["circuit"], target_weight["circuit"])) |