Download trace/turns/t013/code.py from Perfect7613/weightpatch-run-overrefusal-rejected: direct link, hf CLI and curl.
- Browser
- Download file 898 Bytes
-
https://huggingface.co/datasets/Perfect7613/weightpatch-run-overrefusal-rejected/resolve/main/trace/turns/t013/code.py
- Command line
-
hf download hf://datasets/Perfect7613/weightpatch-run-overrefusal-rejected/trace/turns/t013/code.py
-
curl -L -o code.py https://huggingface.co/datasets/Perfect7613/weightpatch-run-overrefusal-rejected/resolve/main/trace/turns/t013/code.py
898 Bytes
| target_eap = tools.localize.eap_circuit( | |
| top_k=32, n=32, granularity="head", on="aligned", a="borderline", b="benign") | |
| harm_eap = tools.localize.eap_circuit( | |
| top_k=32, n=32, granularity="head", on="aligned", a="harmful", b="benign") | |
| print("Target EAP:", target_eap) | |
| print("Harmful EAP:", harm_eap) | |
| target_heads = tools.localize.discover_circuit( | |
| a="borderline", b="benign", on="aligned", level="node", | |
| n_examples=32, sparsity=0.05, scope="both") | |
| print("CircuitKIT head result:", target_heads) | |
| try: | |
| head_faith = tools.localize.circuit_faithfulness( | |
| circuit=target_heads["circuit"], n_examples=32, on="aligned") | |
| print("Head circuit faithfulness:", head_faith) | |
| except Exception as e: | |
| head_faith = None | |
| print("Faithfulness unavailable:", str(e)) | |
| print("Head method agreement:", tools.localize.circuit_overlap( | |
| target_eap["circuit"], target_heads["circuit"])) |