circuitkit 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {circuitkit-0.2.4 → circuitkit-0.2.5}/.github/workflows/patch-release.yml +5 -6
- {circuitkit-0.2.4/src/circuitkit.egg-info → circuitkit-0.2.5}/PKG-INFO +1 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/API_REFERENCE.md +1 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/chat-templates.md +2 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/baselines.md +1 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guides/steering.md +3 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/applications.md +2 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/__init__.py +1 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/api.py +37 -10
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/cure_clue.py +5 -6
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/cake.py +5 -6
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/mcircke.py +6 -8
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/circuit_tuning.py +4 -6
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/soft_healing.py +7 -9
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/node_pruner.py +11 -15
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/pruner.py +18 -28
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/weight_pruner.py +11 -15
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/score_extractor.py +12 -13
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/steering/steering.py +12 -15
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/steering/weight_steering.py +16 -7
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/artifacts/converters.py +11 -4
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/artifacts/scores.py +6 -5
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/attribute.py +7 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/attribute_node.py +9 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/eap_utils.py +17 -4
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/circuit.py +28 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/hf_checkpoint.py +3 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/lm_harness.py +3 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/baselines.py +24 -8
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/quick.py +22 -13
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/multilingual_refusal.py +8 -3
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/safety_datasets.py +1 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/comparison.py +8 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5/src/circuitkit.egg-info}/PKG-INFO +1 -1
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit.egg-info/SOURCES.txt +5 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/conftest.py +3 -2
- circuitkit-0.2.5/tests/unit/test_eap_batch_size.py +70 -0
- circuitkit-0.2.5/tests/unit/test_eap_head_names.py +303 -0
- circuitkit-0.2.5/tests/unit/test_faithfulness_node_set.py +46 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_mean_activations.py +35 -5
- circuitkit-0.2.5/tests/unit/test_multilingual_refusal_bos.py +30 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_pillars.py +24 -0
- circuitkit-0.2.5/tests/unit/test_safety_task_templated.py +37 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/.github/workflows/docs.yml +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/.github/workflows/test.yml +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/.github/workflows/version-consistency.yml +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/LICENSE.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/MANIFEST.in +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/README.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/INSTALLATION.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/about/faq.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/about/license.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/about/release-notes.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/about/roadmap.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/architecture-registry.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/circuit-artifacts.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/experimental-models.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/hallucination-detection.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/memory-optimization.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/tiny-aya.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/advanced/vllm-evaluation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/algorithms/acdc.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/algorithms/capability-matrix.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/algorithms/cdt.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/algorithms/eap.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/algorithms/ibcircuit.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/algorithms/overview.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/algorithms/stability-tiers.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/applications.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/backends.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/dict-config.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/evaluation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/flat-api.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/overview.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/pipeline.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/provenance.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/selectors.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/api-reference/tasks.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/blog/introducing-circuitkit.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/citation-map.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/cli/applications.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/cli/discovery.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/cli/evaluation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/cli/overview.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/cli/yaml-config.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/contributing/documentation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/contributing/new-algorithms.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/contributing/setup.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/contributing/standards.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/contributing/testing-on-cuda.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/dev_enterprise_runbook.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/ablation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/benchmarking.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/causal-patching.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/framework.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/generalization.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/robustness.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/evaluation/stability.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/examples/case-studies.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/examples/notebooks.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/examples/overview.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/examples/scripts.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/getting-started/configuration.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/getting-started/core-concepts.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/getting-started/index.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/getting-started/installation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/getting-started/quickstart.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/getting-started/taxonomy.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guidelines/Testing_Guidelines.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guides/CONCEPTS.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guides/circuit_artifact_guide.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guides/eap_ig_memory_optimization.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guides/hallucination_detection_guide.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guides/index.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/guides/vllm_evaluation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/index.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/product_blueprint.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/pypi_core_contract.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/reference/ARCHITECTURE_REGISTRY.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/reference/FEATURES.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/reference/hyperparameters.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/reference/index.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/references.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/trust/index.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/trust/results.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/trust/scope.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/custom-data.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/data-corruption.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/data.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/evaluation.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/pipeline-overview.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/selectors.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/tasks.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/troubleshooting.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/docs/user-guide/visualization.md +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/01-quickstart.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/02-discover-python-api.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/04-discover-yaml.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/05-evaluate-faithfulness.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/06-applications.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/07-pipeline.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/08-custom-data.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/09-load-and-reuse.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/10-steering.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/11-knowledge-editing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/12-custom-corruption.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/13-transfer-matrix.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/14-faithfulness-audit-for-compliance.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/15-compression-for-deployment.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/16-tabular-model-audit.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/17-quantization-unlearning.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/18-banking-safety-steering.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/19-trade-finance-document-classification.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/20-transit-edge-deployment.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/21-quantization-permanent-unlearning.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/22-gender-bias-audit-and-mitigation.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/23-jailbreak-refusal-multi-model.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/case-studies/24-safety-refusal-custom-data.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/discovery/algorithm-comparison.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/discovery/benchmark-circuit-discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/experiments/e1_algo_validation_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/experiments/e2_cross_family_discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/experiments/e3_neuron_level_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/experiments/e4_custom_data_jailbreak.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/experiments/e567_downstream_applications.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/finetuning/finetune-llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/finetuning/finetune-qwen.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/00_colab_setup.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/01_quickstart_pipeline.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/02_algorithm_comparison.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/03_evaluation_deep_dive.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/04_visualization_gallery.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/05_applications.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/06_cli_and_yaml.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/notebooks/07_advanced_research_tools.ipynb +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/pruning/basic-prune.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/pruning/prune-llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/pruning/prune-qwen.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/quantization/quantize-llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/quantization/quantize-qwen.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/simple_csv_task.yaml +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/_common.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/_runner.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/01_eap_ig_activations_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/02_eap_clean_corrupted_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/03_eap_exact_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/04_compare_eap_family_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/05_atp_gd_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/06_eap_gp_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/07_relp_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/08_ibcircuit_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/09_peap_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/10_cdt_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/11_eap_ifr_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/12_all_algos_llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/algos/_algos_common.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/01_pruning_gpt2_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/02_lora_healing_gpt2_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/03_pruning_gpt2_mmlu.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/04_pruning_gpt2_gender_bias.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/05_pruning_gpt2_sva.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/06_pruning_gpt2_capital_country.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/07_pruning_gpt2_boolq.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/08_pruning_gpt2_arc_easy.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/09_pruning_gpt2_hellaswag.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/10_pruning_gpt2_crows_pairs.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/11_knowledge_editing_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/12_unlearning_tofu_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/13_steering_gpt2_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/14_linear_probe_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/15_hallucination_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/16_peft_benchmark.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/17_knowledge_editing_full_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/18_steering_safety_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/19_quantization_llama1b.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/20_ctheta_steering_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/21_ctheta_steering_llama1b.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/22_ctheta_advbench_refusal.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/23_ctheta_k_grid_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/24_circuitkit_advbench_refusal_steering.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/25_knowledge_editing_llama_circuit.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/26_soft_healing_llama_circuit.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/27_hallucination_truthfulqa_llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/28_safety_dataset_pillar_evals.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/_apps_common.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/applications/_make_apps_cell.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/01_gpt2_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/02_gpt2_greater_than.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/03_llama1b_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/04_llama1b_greater_than.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/05_gpt2_mmlu.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/06_llama1b_mmlu.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/07_gpt2_gender_bias.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/08_gpt2_hypernymy.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/09_gpt2_sva.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/10_gpt2_capital_country.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/11_gpt2_boolq.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/12_gpt2_wmdp.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/13_gpt2_arc_easy.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/14_gpt2_arc_challenge.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/15_gpt2_hellaswag.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/16_gpt2_crows_pairs.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/17_gpt2_tofu.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/18_gpt2_gsm8k.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/99_aggregate.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/_bench_common.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/_custom_tasks.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/benchmark/_make_cell.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/01_pairwise_crowspairs.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/02_instruction_alpaca.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/03_conversational_sharegpt.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/04_mcq_mmlu_arc_hellaswag.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/05_forget_retain_tofu.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/06_strategies_all.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/07_e2e_discovery_mcq_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/08_e2e_discovery_tofu_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/09_e2e_discovery_crowspairs_llama1b.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/10_e2e_quality_stability_mcq_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/11_e2e_all_algos_custom_mcq_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/12_e2e_safety_advbench_gpt2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/data/_data_common.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/master_aggregator.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/01_circuit_graph.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/02_activation_saliency.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/03_feature_saliency.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/04_circuit_editor.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/05_comparison_dashboard.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/06_jupyter_widgets.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/07_gallery_generator.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/08_plotter.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/09_eap_visualization.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/10_acdc_visualize.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/validation/visualizations/11_transfer_visualizer.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/examples/visualization/graph-viz-example.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/pyproject.toml +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/pytest.ini +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/requirements.txt +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/setup.cfg +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/__main__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0001-moe-dtype-and-devices-fixes.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0002-gemma4.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0003-sarvam-moe.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0004-gemma4-hf-parity.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0005-memory-no-weight-copies.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0006-cohere.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0007-local-checkpoint-config.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0008-neox-lm-head.patch +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/analysis/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/analysis/cross_method_jaccard.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/analysis/metrics.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/analysis/scores.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/arch_registry.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/arch_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_covariance.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_device.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_dtype.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_metrics.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_tokenization.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/benchmark_analysis.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/hallucination_detection.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/linear_probe.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/circuit_guided_editing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/fine_tune_editing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/knowledge_editing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/knowledge_editing_enhanced.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/memit_wrapper.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/editing/rome_wrapper.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/benchmark_peft.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/healing_metrics.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/peft_methods.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/eval_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/prune.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/prune_llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/prune_qwen.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/finetune_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/importance.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/neuron_pruner.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/score_extractor.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/selectors/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/selectors/multi_granular_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/selectors/taylor_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/examples/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/examples/quantize_llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/examples/quantize_qwen.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/llmcompressor_quantize.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/quant_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/selectors/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/selectors/awq_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/selectors/tacq_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/examples/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/examples/finetune_llama.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/examples/finetune_qwen.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/finetune_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/score_loader.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/steering/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/steering/steering_enhanced.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/artifacts/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/artifacts/circuit_artifact.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/cohere.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/registry.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/smollm3.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/artifact_export.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/data.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/model_utils/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/model_utils/micro_model_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/model_utils/transformer_lens_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/ACDC.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/mask_gradient.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/prune_algos.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/docstring_prompts.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/docstring_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/induction_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/ioi_dataset.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/ioi_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/types.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/ablation_activations.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/custom_tqdm.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/graph_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/misc.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/patch_wrapper.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/patchable_model.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/task_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/tensor_ops.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/visualize.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/adapter.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/propagation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_ablations.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_basic.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_core.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_from_source_nodes.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_source_to_target.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/faithfulness_ablations.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/general.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/ioi_dataset.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/local_importance.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/pathology.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/toy_model.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/wrappers.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/artifact_export.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/circuit_kit_adapter.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/evaluate.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/graph.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/metrics.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/py.typed +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/eap/visualization.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/artifact_export.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/ib_noise.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/ib_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/model_wrapper.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/trainer.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/gptq.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/magnitude.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/random.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/sparsegpt.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/wanda.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/benchmark.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/benchmarks/reporting.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/cli/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/cli/config.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/cli/debug.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/cli/main.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/cli/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/base.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/color_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/distractor.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/distractor_variation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/effectiveness.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/entity_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/negation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/paraphrase.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/pipeline.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/position_shift.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/role_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/token_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/validators.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/corruption/voice_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/base.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/code.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/conversational.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/forget_retain.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/instruction.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/math.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/mcq.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/pairwise.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/qa.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/adapters/safety_prompt.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/auto_detect.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/clean_only.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/base.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/benign_rewrite.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/code_syntax_corrupt.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/entity_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/final_answer_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/instruction_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/llm_counterfactual.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/logical_negation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/math_step_corrupt.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/mcq_choice_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/operand_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/profession_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/resample.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/template.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/template_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/corruption/token_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/dataset_schema.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/eap_dataset.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/invariance_groups/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/invariance_groups/builder.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/invariance_groups/schema.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/normalized.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/normalized_task.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCCorrespondence.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCEdge.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCExperiment.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCInterpNode.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/acdc_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/cache.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/manager.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/greaterthan/greaterthan_32_ffd33106.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_16_8c879ddb.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_32_a432ca4a.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_500_1f7e7324.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_64_3bba747e.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_64_f4a164db.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_8_e87df42e.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/binary_align/generate_binary_align.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/binary_align/jailbreak_binary.csv +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/binary_align/safe_binary.csv +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/capital_country/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/capital_country/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/docstring/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/docstring/prompts.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/docstring/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/double_io/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/double_io/double_io_dataset.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/gender_bias/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/gender_bias/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/gender_bias/utils2.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/greaterthan/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/greaterthan/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/hypernymy/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/hypernymy/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/induction/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/induction/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/ioi/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/ioi/ioi_dataset.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/ioi/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/sva/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/sva/utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/wmdp/wmdp_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/template.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/wikitext_calibration.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/data/worthiness.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/checkpoint_benchmark.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/evaluate.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/full.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/intervention_faithfulness.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/lm_eval_simple.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/master_grid.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/mmlu_eval.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/ablation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/causal_patching.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/generalization.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/intervention_reliability.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/robustness.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/stability.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/report.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/aggregator.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/robustness_report.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/stability_report.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/stability_discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/transfer.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/transfer_analysis.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/transfer_visualizer.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/evaluation/weight_based_eval.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/pipeline.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/provenance.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/cdt_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/eap_gp_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/eap_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/gptq_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/ibcircuit_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/magnitude_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/random_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/relp_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/selection/wanda_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/_algorithm_families.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/_chat.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/auto_schema.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/bootstrap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/boolq.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/capital_country.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/double_io.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/gender_bias.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/glue.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/greater_than.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/gsm8k.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/hypernymy.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ifeval.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ioi_acdc.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ioi_legacy.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/mmlu.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/sva.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/truthfulqa.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/winogrande.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/winogrande_mc.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/wmdp.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/generic.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/hf_factory.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/inspect.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/registry.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/specs.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/classification_spec.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/generation_spec.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/mcq_spec.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/qa_spec.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/summarization_spec.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/translation_spec.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/validator.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tasks/yaml_loader.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tooling/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/tooling/validate_environment.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/artifacts.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/async_processing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/bootstrap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/config.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/corruption_validation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/dataset_cache.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/debug.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/debugging.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/device.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/distributed.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/exceptions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/hparams.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/logging.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/memory.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/profiling.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/utils/token_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/d3_template.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/editor.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/feature_saliency.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/gallery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/graph_viz.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/jupyter_suite.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/plotter.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/saliency.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/streamlit_app.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/visualize/theme.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit.egg-info/dependency_links.txt +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit.egg-info/entry_points.txt +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit.egg-info/requires.txt +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit.egg-info/top_level.txt +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/conftest.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_architecture_registry.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_benchmark_analysis.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_benchmark_peft.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_circuit_artifact.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_covariance.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_cross_architecture.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_fine_tune_editing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_hallucination_detection.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_knowledge_editing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_knowledge_editing_enhanced.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_knowledge_editing_pipeline.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_linear_probe.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_peft_methods.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_pruner.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_steering.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_steering_enhanced.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_tokenization.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/apply/test_weight_steering.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_ib_noise.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_ib_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_model_wrapper.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_trainer.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/test_artifact_export_integration.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse_32b.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse_32b_parity.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse_parity.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_backends.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_gqa.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_parity.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_selectors.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_wiring.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_command_r7b.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_command_r7b_parity.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_smollm3.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_compat/test_smollm3_parity.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_patches/configs/Ministral-3-3B-Instruct-2512.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_patches/configs/gemma-4-31B-it.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_patches/configs/sarvam-30b.json +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_patches/test_patch_hook.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/backends/tl_patches/test_tl_patchset.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/benchmarks/test_baselines.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/benchmarks/test_benchmark.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/conftest.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_distractor.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_effectiveness.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_entity_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_new_corruptions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_paraphrase.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_pipeline.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_pipeline_integration_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_practical_examples.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_role_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_strategies_integration.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_strategies_standalone.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_template.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_template_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_token_swap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_validators.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/corruption/test_yaml_strategy_synthesis.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/data/test_data_corruption_strategies.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/data/test_qa_adapter.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/data/test_safety_length_match.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/data/test_safety_register_pairing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/fixtures/sample_pipeline.yaml +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_chat_template_instruct.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_interfaces_e2e.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_ioi_gpt2_position_and_faithfulness.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_soft_healing_integration.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_steering_ioi.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_template_e2e.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_tl3_interop.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_transfer_integration.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_transfer_matrix.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_transfer_minimal.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/integration/test_yaml_run_advanced.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_32b_discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_32b_evaluation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_32b_interventions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_evaluation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_interventions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_cdt_nonzero_scores.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_circuit_tuner_training.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_cli_and_api_args.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_cohere_discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_cohere_evaluation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_cohere_interventions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_command_r7b_discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_command_r7b_evaluation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_command_r7b_interventions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_data_adapters_and_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_greater_than_tokenizer.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_pruner_gqa_kv_head.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_smollm3_discovery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_smollm3_evaluation.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_smollm3_interventions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/regression/test_steering_and_baselines.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/release/test_release.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_auto_schema.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_capital_country.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_chat_template.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_cohere_tokenization.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_generic_task.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_glue.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_greater_than_corruption.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_gsm8k.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_ioi_regression.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_validator.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_winogrande.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/tasks/test_winogrande_mc.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/test_custom_data.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/test_environment.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/test_packaging.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/sample_pipeline.yaml +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_api.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_attribute.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_attribute_node.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_baselines_multidraw.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_bootstrap.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_circuit.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_circuit_kit_adapter.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_circuit_scores.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_cli.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_cli_commands.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_cli_smoke.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_config_defaults.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_d3_lod.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_d5_d7_import.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_device_allocator.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_double_io.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_eap_grad_scope.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_end_to_end.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_evaluate.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_exceptions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_expandable_segments.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_extended_schema.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_faithfulness_raw_ratio.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_fine_tune_edit_weight_decay.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_finetune_utils.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_float16_guard.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_generic_num_examples.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_graph.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_graph_export_safety.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_graph_viz.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_graph_viz_bounded.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_hf_checkpoint.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_hparams.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_init_exports.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_instruction_swap_audit.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_logging_no_log_dir.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_mlp1.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_modules_exist.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_multi_token_answers.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_multi_token_unit.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_multilingual_refusal.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_neuron_pruner.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_no_regressions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_node_eap_mlp_gradient.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_node_pruner.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_normalized_task.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_normalized_task_num_examples.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_optimize_memory_usage.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_perplexity_metric.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_pillar_baseline_reuse.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_pipeline_benchmark_offload.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_pipeline_smoke.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_pipeline_unit.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_provenance.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_qkv_memory_guard.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_quantize_export_flow.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_quick_api.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_quick_extensions.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_r1_seed_consistency.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_r2_effect_magnitude.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_ranking_metrics.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_report.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_score_loader.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_security_hardening.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_selector.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_selector_bugs.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_selector_registry.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_signed_scores.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_soft_healing.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_stability_robustness_reports.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_steering.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_structural_pruner.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_task_answer_position.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_taylor_grad_scope.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_tokenize_batch_pair_max_length.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_tokenize_plus_padding_mask.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_tokenize_warning_throttle.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_trust_remote_code.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_validators_direct.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_yaml_pipeline_config.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/unit/test_yaml_run_cli.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/visualize/__init__.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/visualize/test_comparison.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/visualize/test_editor.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/visualize/test_feature_saliency.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/visualize/test_gallery.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/visualize/test_jupyter_suite.py +0 -0
- {circuitkit-0.2.4 → circuitkit-0.2.5}/tests/visualize/test_saliency.py +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
name: Automated patch release
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
4
|
+
push:
|
|
5
5
|
branches: [main]
|
|
6
|
-
types: [closed]
|
|
7
6
|
workflow_dispatch:
|
|
8
7
|
|
|
9
8
|
concurrency:
|
|
@@ -23,7 +22,7 @@ jobs:
|
|
|
23
22
|
# Releases come only from Lexsi-Labs/CircuitKIT. A fork or copy of this repo
|
|
24
23
|
# inherits the workflow, and there the release job (which pushes the tag and
|
|
25
24
|
# publishes to PyPI) must not run. Skipping `plan` skips `release`.
|
|
26
|
-
if: github.repository == 'Lexsi-Labs/CircuitKIT' && (github.event_name == 'workflow_dispatch' || github.
|
|
25
|
+
if: github.repository == 'Lexsi-Labs/CircuitKIT' && (github.event_name == 'workflow_dispatch' || github.event_name == 'push')
|
|
27
26
|
runs-on: ubuntu-latest
|
|
28
27
|
outputs:
|
|
29
28
|
action: ${{ steps.plan.outputs.action }}
|
|
@@ -47,7 +46,7 @@ jobs:
|
|
|
47
46
|
- name: Check out the trusted merged source
|
|
48
47
|
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
49
48
|
with:
|
|
50
|
-
# Fixed ref, not an event value: this job runs on
|
|
49
|
+
# Fixed ref, not an event value: this job runs on push to main and
|
|
51
50
|
# workflow_dispatch, where PR and dispatch inputs are attacker-influenced.
|
|
52
51
|
# Merged PRs always land on main, and the plan below already handles main
|
|
53
52
|
# having moved on (it compares the tip with the latest release commit).
|
|
@@ -72,7 +71,7 @@ jobs:
|
|
|
72
71
|
trigger=dispatch
|
|
73
72
|
requested_version=$current_version
|
|
74
73
|
|
|
75
|
-
if [[ "$EVENT_NAME" == "
|
|
74
|
+
if [[ "$EVENT_NAME" == "push" ]]; then
|
|
76
75
|
trigger=normal
|
|
77
76
|
fi
|
|
78
77
|
|
|
@@ -360,7 +359,7 @@ jobs:
|
|
|
360
359
|
fi
|
|
361
360
|
|
|
362
361
|
- name: Send release notes to Slack
|
|
363
|
-
uses: slackapi/slack-github-action@
|
|
362
|
+
uses: slackapi/slack-github-action@fcfb566f8b0aab22203f066d80ca1d7e4b5d05b3 # v1.27.1
|
|
364
363
|
continue-on-error: true
|
|
365
364
|
with:
|
|
366
365
|
channel-id: "lexsi-labs-circuitkit-release" #${{ vars.SLACK_CHANNEL }}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: circuitkit
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Unified Discover, Evaluate, Intervene toolkit for mechanistic interpretability: 13 circuit discovery algorithms, 6-pillar faithfulness evaluation, and pruning / quantization / knowledge editing / unlearning / activation steering / contrastive weight steering interventions behind one API.
|
|
5
5
|
Author: Hem Gosalia, Aditya Kasliwal, Vinay Kumar Sankarapu
|
|
6
6
|
Author-email: Pratinav Seth <pratinav.seth@lexsi.ai>
|
|
@@ -97,7 +97,7 @@ package root. These functions take and return Python objects directly (a loaded
|
|
|
97
97
|
- `circuitkit.load_model(name, *, dtype="bfloat16", device=None, algorithm=None)` — load a
|
|
98
98
|
TransformerLens `HookedTransformer` with the hook flags discovery needs already set.
|
|
99
99
|
- `circuitkit.discover(model, task, *, algorithm="eap-ig", level="node", n_examples=..., scope=..., ...)` — run discovery, return a `Circuit`.
|
|
100
|
-
- `circuitkit.faithfulness(model, circuit, ...)` — score a `Circuit` with the 6-pillar framework.
|
|
100
|
+
- `circuitkit.faithfulness(model, circuit, ...)` — score a `Circuit` with the 6-pillar framework. It scores the nodes in `circuit.nodes` and takes node-level circuits only; for a neuron-level circuit use `circuitkit.api.evaluate_circuit`.
|
|
101
101
|
- `circuitkit.prune(model, circuit, *, sparsity=..., scope=..., protect_layers=None, ...)` — structural pruning down to the circuit.
|
|
102
102
|
- `circuitkit.quantize(model, circuit, *, protect_layers=None, ...)` — circuit-aware quantization.
|
|
103
103
|
- `circuitkit.export_checkpoint(...)` — write a reloadable HuggingFace checkpoint.
|
|
@@ -27,6 +27,8 @@ The task type sets the default mode; you can override it per run.
|
|
|
27
27
|
| Custom `GenericTaskSpec` | `"auto"` | User-defined tasks |
|
|
28
28
|
| `NormalizedTaskSpec` | prompts used as given | Adapter / auto-schema datasets; pass `templated=True` if the prompts already carry the chat template |
|
|
29
29
|
|
|
30
|
+
A prompt that already starts with the tokenizer's BOS token does not get a second one. The `register_*` safety helpers keep the `templated` flag of their pairs, and `multilingual_refusal` with `chat_template_mode="off"` tokenizes pairs that already start with BOS without adding another.
|
|
31
|
+
|
|
30
32
|
The rationale: diagnostic tasks like IOI are designed around raw token completions, where adding a system prompt or `[INST]` wrapper would change the task semantics. Downstream-behavior tasks like MMLU are typically evaluated on chat models where the template matters.
|
|
31
33
|
|
|
32
34
|
---
|
|
@@ -16,7 +16,7 @@ Three patching scores are computed:
|
|
|
16
16
|
| **Random baseline** | A random selection of the same number of nodes |
|
|
17
17
|
| **Magnitude baseline** | The same number of nodes, selected by RMS weight norm |
|
|
18
18
|
|
|
19
|
-
A faithful circuit should score higher than both baselines. The gap between the circuit and random baseline is the primary indicator.
|
|
19
|
+
Both baselines have as many nodes as the circuit, and both keep the `input` node, so a baseline is never an empty graph. A faithful circuit should score higher than both baselines. The gap between the circuit and random baseline is the primary indicator.
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -235,7 +235,9 @@ class ActivationSteering:
|
|
|
235
235
|
Args:
|
|
236
236
|
model: HookedTransformer model
|
|
237
237
|
circuit_scores: Dict mapping node names to importance scores
|
|
238
|
-
score_threshold: Only use nodes with score >= threshold
|
|
238
|
+
score_threshold: Only use nodes with score >= threshold. EAP scores are per-example
|
|
239
|
+
averages and no longer depend on the batch size; they are about the batch
|
|
240
|
+
size larger than in earlier releases, so rescale a threshold chosen before.
|
|
239
241
|
"""
|
|
240
242
|
|
|
241
243
|
def compute_steering_vector(self, source_examples, target_examples,
|
|
@@ -69,6 +69,8 @@ ck.export_checkpoint(pruned, circuit, "./output/pruned_checkpoint")
|
|
|
69
69
|
| `protect_layers` | `None` | Layer indices never to prune |
|
|
70
70
|
| `inplace` | `False` | Modify model in place |
|
|
71
71
|
|
|
72
|
+
**Node names:** a neuron-level EAP run keeps EAP's own names in `circuit.scores` (`a{layer}.h{head}`, `m{layer}`), and node-level discovery writes `A{layer}.{head}` and `MLP {layer}`. Pruning, steering, quantization, fine-tuning and editing read both styles.
|
|
73
|
+
|
|
72
74
|
**What pruning does:** Zero-masks weight matrices of lowest-scoring components. The model retains its architecture — no layer deletion. `export_checkpoint` writes a HuggingFace-format checkpoint reloadable with `transformers.AutoModelForCausalLM.from_pretrained`.
|
|
73
75
|
|
|
74
76
|
Via Pipeline:
|
|
@@ -8,7 +8,7 @@ from ._tl_patches import install as _install_tl_patches
|
|
|
8
8
|
_install_tl_patches()
|
|
9
9
|
|
|
10
10
|
# The release pipeline (scripts/release.py set-version) rewrites this line.
|
|
11
|
-
__version__ = "0.2.
|
|
11
|
+
__version__ = "0.2.5"
|
|
12
12
|
__author__ = "Pratinav Seth, Hem Gosalia, Aditya Kasliwal, Vinay Kumar Sankarapu"
|
|
13
13
|
__description__ = "Unified Discover, Evaluate, Intervene toolkit for mechanistic interpretability"
|
|
14
14
|
_API_EXPORTS = {"discover_circuit", "evaluate_circuit", "load_circuit"}
|
|
@@ -524,14 +524,14 @@ from .backends.eap.circuit_kit_adapter import ( # noqa: E402 - import after int
|
|
|
524
524
|
|
|
525
525
|
|
|
526
526
|
def _ib_name_to_graph_name(ib_name: str) -> Optional[str]:
|
|
527
|
-
"""Convert
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
return None
|
|
527
|
+
"""Convert a score key ('A0.0', 'MLP 0', or already 'a0.h0', 'm0') to an EAP Graph node key ('a0.h0', 'm0')."""
|
|
528
|
+
from .circuit import _parse_head_name, _parse_mlp_name
|
|
529
|
+
|
|
530
|
+
head = _parse_head_name(ib_name)
|
|
531
|
+
if head is not None:
|
|
532
|
+
return f"a{head[0]}.h{head[1]}"
|
|
533
|
+
layer = _parse_mlp_name(ib_name)
|
|
534
|
+
return None if layer is None else f"m{layer}"
|
|
535
535
|
|
|
536
536
|
|
|
537
537
|
def _populate_graph_from_ib_scores(graph: Graph, ib_node_scores: dict) -> Graph:
|
|
@@ -2135,12 +2135,39 @@ def _reconstruct_circuit_graph(
|
|
|
2135
2135
|
if out_of_scope:
|
|
2136
2136
|
node.score = t.tensor(float("inf"))
|
|
2137
2137
|
graph.nodes_scores[fwd_idx] = float("inf")
|
|
2138
|
-
|
|
2139
|
-
|
|
2138
|
+
if not _apply_pruned_nodes(graph, pruning_cfg.get("pruned_nodes")):
|
|
2139
|
+
n_topn, n_to_keep = _compute_n_topn(graph, scope, sparsity)
|
|
2140
|
+
graph.apply_topn(n_topn, level="node", prune=True)
|
|
2140
2141
|
|
|
2141
2142
|
return graph
|
|
2142
2143
|
|
|
2143
2144
|
|
|
2145
|
+
def _apply_pruned_nodes(graph: Graph, pruned_nodes) -> bool:
|
|
2146
|
+
"""Put exactly the nodes outside ``pruned_nodes`` in the circuit.
|
|
2147
|
+
|
|
2148
|
+
Returns False, leaving the graph untouched, when there is no list or it holds
|
|
2149
|
+
a name that is not a head or MLP of this graph; the caller then selects by
|
|
2150
|
+
sparsity. ``graph.nodes_scores`` is unchanged.
|
|
2151
|
+
"""
|
|
2152
|
+
if pruned_nodes is None:
|
|
2153
|
+
return False
|
|
2154
|
+
components = {
|
|
2155
|
+
name: node
|
|
2156
|
+
for name, node in graph.nodes.items()
|
|
2157
|
+
if isinstance(node, (AttentionNode, MLPNode))
|
|
2158
|
+
}
|
|
2159
|
+
pruned = {n if n in components else _ib_name_to_graph_name(n) for n in pruned_nodes}
|
|
2160
|
+
if not pruned <= components.keys():
|
|
2161
|
+
logger.warning("Unrecognised node names in the circuit; selecting nodes by sparsity")
|
|
2162
|
+
return False
|
|
2163
|
+
scores = graph.nodes_scores.clone()
|
|
2164
|
+
for name, node in components.items():
|
|
2165
|
+
graph.nodes_scores[graph.forward_index(node, attn_slice=False)] = float(name not in pruned)
|
|
2166
|
+
graph.apply_topn(len(components) - len(pruned), level="node", prune=True)
|
|
2167
|
+
graph.nodes_scores.copy_(scores)
|
|
2168
|
+
return True
|
|
2169
|
+
|
|
2170
|
+
|
|
2144
2171
|
@debug_function
|
|
2145
2172
|
@handle_errors(context={"operation": "evaluate_circuit"})
|
|
2146
2173
|
def evaluate_circuit(
|
|
@@ -41,6 +41,8 @@ from typing import Dict, List, Optional
|
|
|
41
41
|
import torch
|
|
42
42
|
import torch.nn.functional as F
|
|
43
43
|
|
|
44
|
+
from circuitkit.circuit import _parse_mlp_name
|
|
45
|
+
|
|
44
46
|
from ._dtype import reject_float16
|
|
45
47
|
|
|
46
48
|
logger = logging.getLogger(__name__)
|
|
@@ -132,12 +134,9 @@ def _top_mlp_layers(
|
|
|
132
134
|
) -> List[int]:
|
|
133
135
|
layer_scores: Dict[int, float] = {}
|
|
134
136
|
for name, score in node_scores.items():
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
layer_scores[lyr] = max(layer_scores.get(lyr, 0.0), float(score))
|
|
139
|
-
except (ValueError, IndexError):
|
|
140
|
-
pass
|
|
137
|
+
lyr = _parse_mlp_name(name)
|
|
138
|
+
if lyr is not None:
|
|
139
|
+
layer_scores[lyr] = max(layer_scores.get(lyr, 0.0), float(score))
|
|
141
140
|
if not layer_scores:
|
|
142
141
|
mid = n_layers // 2
|
|
143
142
|
return list(range(max(0, mid - 1), min(n_layers, mid + top_k - 1)))
|
|
@@ -42,6 +42,8 @@ from typing import Dict, List, Optional
|
|
|
42
42
|
|
|
43
43
|
import torch
|
|
44
44
|
|
|
45
|
+
from circuitkit.circuit import _parse_mlp_name
|
|
46
|
+
|
|
45
47
|
logger = logging.getLogger(__name__)
|
|
46
48
|
|
|
47
49
|
|
|
@@ -105,12 +107,9 @@ def _top_mlp_layers(
|
|
|
105
107
|
"""Return the top-k MLP layers by node score."""
|
|
106
108
|
layer_scores: Dict[int, float] = {}
|
|
107
109
|
for name, score in node_scores.items():
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
layer_scores[lyr] = max(layer_scores.get(lyr, 0.0), float(score))
|
|
112
|
-
except (ValueError, IndexError):
|
|
113
|
-
pass
|
|
110
|
+
lyr = _parse_mlp_name(name)
|
|
111
|
+
if lyr is not None:
|
|
112
|
+
layer_scores[lyr] = max(layer_scores.get(lyr, 0.0), float(score))
|
|
114
113
|
if not layer_scores:
|
|
115
114
|
mid = n_layers // 2
|
|
116
115
|
return [mid]
|
|
@@ -44,6 +44,8 @@ from typing import Any, Dict, List, Optional
|
|
|
44
44
|
|
|
45
45
|
import torch
|
|
46
46
|
|
|
47
|
+
from circuitkit.circuit import _parse_mlp_name
|
|
48
|
+
|
|
47
49
|
logger = logging.getLogger(__name__)
|
|
48
50
|
|
|
49
51
|
|
|
@@ -123,14 +125,10 @@ def _best_mlp_layer(node_scores: Dict[str, float], n_layers: int) -> int:
|
|
|
123
125
|
"""Return the highest-scored MLP layer from node_scores."""
|
|
124
126
|
best_layer, best_score = n_layers // 2, -1.0
|
|
125
127
|
for name, score in node_scores.items():
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
best_score = float(score)
|
|
131
|
-
best_layer = lyr
|
|
132
|
-
except (ValueError, IndexError):
|
|
133
|
-
pass
|
|
128
|
+
lyr = _parse_mlp_name(name)
|
|
129
|
+
if lyr is not None and float(score) > best_score:
|
|
130
|
+
best_score = float(score)
|
|
131
|
+
best_layer = lyr
|
|
134
132
|
return best_layer
|
|
135
133
|
|
|
136
134
|
|
{circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/circuit_tuning.py
RENAMED
|
@@ -34,6 +34,7 @@ import torch.nn as nn
|
|
|
34
34
|
import torch.nn.functional as F
|
|
35
35
|
|
|
36
36
|
from circuitkit.applications.common_utils._dtype import reject_float16
|
|
37
|
+
from circuitkit.circuit import _parse_mlp_name
|
|
37
38
|
|
|
38
39
|
logger = logging.getLogger(__name__)
|
|
39
40
|
|
|
@@ -120,12 +121,9 @@ def _top_mlp_layers(
|
|
|
120
121
|
) -> List[int]:
|
|
121
122
|
layer_scores: Dict[int, float] = {}
|
|
122
123
|
for name, score in node_scores.items():
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
layer_scores[lyr] = max(layer_scores.get(lyr, 0.0), float(score))
|
|
127
|
-
except (ValueError, IndexError):
|
|
128
|
-
pass
|
|
124
|
+
lyr = _parse_mlp_name(name)
|
|
125
|
+
if lyr is not None:
|
|
126
|
+
layer_scores[lyr] = max(layer_scores.get(lyr, 0.0), float(score))
|
|
129
127
|
if not layer_scores:
|
|
130
128
|
mid = n_layers // 2
|
|
131
129
|
return list(range(max(0, mid - 1), min(n_layers, mid + top_k - 1)))
|
{circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/soft_healing.py
RENAMED
|
@@ -7,7 +7,6 @@ to circuit-relevant modules in a pruned transformer model. The goal is to
|
|
|
7
7
|
recover performance of pruned models through targeted fine-tuning.
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
-
import re
|
|
11
10
|
import warnings
|
|
12
11
|
from typing import Any, Dict, List, Optional, Tuple
|
|
13
12
|
|
|
@@ -17,6 +16,7 @@ from torch.utils.data import DataLoader
|
|
|
17
16
|
from transformer_lens import HookedTransformer
|
|
18
17
|
|
|
19
18
|
from circuitkit.applications.common_utils._dtype import reject_float16
|
|
19
|
+
from circuitkit.circuit import _parse_head_name, _parse_mlp_name
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
import logging
|
|
@@ -261,17 +261,15 @@ class CircuitLoRA(nn.Module):
|
|
|
261
261
|
logger.info(f"Applying LoRA to circuit-relevant nodes (threshold: {self.score_threshold})")
|
|
262
262
|
|
|
263
263
|
for node_name, score in self.high_score_nodes.items():
|
|
264
|
-
|
|
265
|
-
if
|
|
266
|
-
self._apply_lora_to_attn_head(
|
|
267
|
-
int(attn_match.group(1)), int(attn_match.group(2)), score
|
|
268
|
-
)
|
|
264
|
+
head = _parse_head_name(node_name)
|
|
265
|
+
if head is not None and "attn_head" in self.target_modules:
|
|
266
|
+
self._apply_lora_to_attn_head(head[0], head[1], score)
|
|
269
267
|
continue
|
|
270
268
|
|
|
271
|
-
|
|
272
|
-
if
|
|
269
|
+
mlp_layer = _parse_mlp_name(node_name)
|
|
270
|
+
if mlp_layer is not None:
|
|
273
271
|
if "W_in" in self.target_modules or "W_out" in self.target_modules:
|
|
274
|
-
self._apply_lora_to_mlp(
|
|
272
|
+
self._apply_lora_to_mlp(mlp_layer, score)
|
|
275
273
|
continue
|
|
276
274
|
|
|
277
275
|
def _apply_lora_to_attn_head(self, layer_idx: int, head_idx: int, score: float):
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# FILE: circuitkit/applications/pruning/node_pruner.py
|
|
2
2
|
|
|
3
|
-
import re
|
|
4
3
|
from collections import defaultdict
|
|
5
4
|
from functools import partial
|
|
6
5
|
|
|
7
6
|
import torch as t
|
|
8
7
|
|
|
9
8
|
from circuitkit.backends.acdc.utils.patchable_model import PatchableModel
|
|
9
|
+
from circuitkit.circuit import _parse_head_name, _parse_mlp_name
|
|
10
10
|
from circuitkit.utils import count_at_fraction
|
|
11
11
|
import logging
|
|
12
12
|
|
|
@@ -67,14 +67,12 @@ def get_nodes_to_prune(
|
|
|
67
67
|
attn_heads_by_layer = defaultdict(dict)
|
|
68
68
|
|
|
69
69
|
for name, score in prunable_nodes.items():
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
if attn_match:
|
|
74
|
-
layer_idx = int(attn_match.group(1))
|
|
70
|
+
head = _parse_head_name(name)
|
|
71
|
+
if head is not None:
|
|
72
|
+
layer_idx = head[0]
|
|
75
73
|
attn_head_scores[name] = score
|
|
76
74
|
attn_heads_by_layer[layer_idx][name] = score
|
|
77
|
-
elif
|
|
75
|
+
elif _parse_mlp_name(name) is not None:
|
|
78
76
|
mlp_scores[name] = score
|
|
79
77
|
|
|
80
78
|
logger.info(
|
|
@@ -110,8 +108,7 @@ def get_nodes_to_prune(
|
|
|
110
108
|
if len(pruned_attn_heads) >= total_heads_to_prune:
|
|
111
109
|
break
|
|
112
110
|
|
|
113
|
-
|
|
114
|
-
layer_idx = int(attn_match.group(1))
|
|
111
|
+
layer_idx = _parse_head_name(head_name)[0]
|
|
115
112
|
|
|
116
113
|
total_heads_in_layer = len(attn_heads_by_layer[layer_idx])
|
|
117
114
|
max_prune_for_layer = int(total_heads_in_layer * 0.5)
|
|
@@ -170,17 +167,16 @@ def prune_nodes_and_evaluate(
|
|
|
170
167
|
|
|
171
168
|
hooks_to_add = []
|
|
172
169
|
for node_name in nodes_to_prune:
|
|
173
|
-
|
|
174
|
-
if
|
|
175
|
-
layer_idx, head_idx =
|
|
170
|
+
head = _parse_head_name(node_name)
|
|
171
|
+
if head is not None:
|
|
172
|
+
layer_idx, head_idx = head
|
|
176
173
|
hook_point = f"blocks.{layer_idx}.attn.hook_result"
|
|
177
174
|
hook_func = partial(zero_head_hook, head_index=head_idx)
|
|
178
175
|
hooks_to_add.append((hook_point, hook_func))
|
|
179
176
|
continue
|
|
180
177
|
|
|
181
|
-
|
|
182
|
-
if
|
|
183
|
-
layer_idx = int(mlp_match.group(1))
|
|
178
|
+
layer_idx = _parse_mlp_name(node_name)
|
|
179
|
+
if layer_idx is not None:
|
|
184
180
|
hook_point = f"blocks.{layer_idx}.hook_mlp_out"
|
|
185
181
|
hooks_to_add.append((hook_point, zero_mlp_hook))
|
|
186
182
|
continue
|
|
@@ -23,7 +23,6 @@ This module handles:
|
|
|
23
23
|
|
|
24
24
|
import copy
|
|
25
25
|
import logging
|
|
26
|
-
import re
|
|
27
26
|
import warnings
|
|
28
27
|
from pathlib import Path
|
|
29
28
|
from typing import Dict, List, Optional, Union
|
|
@@ -32,6 +31,7 @@ import torch as t
|
|
|
32
31
|
from transformer_lens import HookedTransformer
|
|
33
32
|
|
|
34
33
|
from circuitkit.artifacts.scores import CircuitScores
|
|
34
|
+
from circuitkit.circuit import _parse_head_name, _parse_mlp_name
|
|
35
35
|
from circuitkit.utils.hparams import validate as _validate_hparams
|
|
36
36
|
from circuitkit.utils import count_at_fraction
|
|
37
37
|
from circuitkit.utils.logging import get_logger
|
|
@@ -230,20 +230,21 @@ class StructuralPruner:
|
|
|
230
230
|
|
|
231
231
|
# Filter the candidate set by component type and protected layers.
|
|
232
232
|
# Node-name conventions match node_pruner.get_nodes_to_prune:
|
|
233
|
-
# attention heads 'A{layer}.{head}'
|
|
233
|
+
# attention heads 'A{layer}.{head}' / 'a{layer}.h{head}', MLP layers
|
|
234
|
+
# 'MLP {layer}' / 'm{layer}'.
|
|
234
235
|
candidates: Dict[str, float] = {}
|
|
235
236
|
for name, score in circuit_scores.node_scores.items():
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if
|
|
237
|
+
head = _parse_head_name(name)
|
|
238
|
+
mlp_layer = _parse_mlp_name(name)
|
|
239
|
+
if head is not None:
|
|
239
240
|
if scope not in ("heads", "both"):
|
|
240
241
|
continue
|
|
241
|
-
if
|
|
242
|
+
if head[0] in protected:
|
|
242
243
|
continue
|
|
243
|
-
elif
|
|
244
|
+
elif mlp_layer is not None:
|
|
244
245
|
if scope not in ("mlp", "both"):
|
|
245
246
|
continue
|
|
246
|
-
if
|
|
247
|
+
if mlp_layer in protected:
|
|
247
248
|
continue
|
|
248
249
|
else:
|
|
249
250
|
# Non head/MLP nodes (e.g. 'Resid Start') are never masked.
|
|
@@ -278,19 +279,12 @@ class StructuralPruner:
|
|
|
278
279
|
"""
|
|
279
280
|
heads_by_layer: Dict[int, List[int]] = {}
|
|
280
281
|
|
|
281
|
-
# Parse attention node names: 'A{layer}.{head}'
|
|
282
|
+
# Parse attention node names: 'A{layer}.{head}' or 'a{layer}.h{head}'
|
|
282
283
|
for node_name in nodes_to_prune.keys():
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
layer = int(parts[0])
|
|
288
|
-
head = int(parts[1])
|
|
289
|
-
if layer not in heads_by_layer:
|
|
290
|
-
heads_by_layer[layer] = []
|
|
291
|
-
heads_by_layer[layer].append(head)
|
|
292
|
-
except (ValueError, IndexError):
|
|
293
|
-
self.logger.warning(f"Could not parse attention node name: {node_name}")
|
|
284
|
+
parsed = _parse_head_name(node_name)
|
|
285
|
+
if parsed is not None:
|
|
286
|
+
layer, head = parsed
|
|
287
|
+
heads_by_layer.setdefault(layer, []).append(head)
|
|
294
288
|
|
|
295
289
|
# Sort heads in descending order to remove from end first
|
|
296
290
|
# (prevents index shifting)
|
|
@@ -404,15 +398,11 @@ class StructuralPruner:
|
|
|
404
398
|
"""
|
|
405
399
|
mlp_layers_to_prune: List[int] = []
|
|
406
400
|
|
|
407
|
-
# Parse MLP node names: 'MLP {layer}'
|
|
401
|
+
# Parse MLP node names: 'MLP {layer}' or 'm{layer}'
|
|
408
402
|
for node_name in nodes_to_prune.keys():
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
try:
|
|
413
|
-
mlp_layers_to_prune.append(int(parts[1]))
|
|
414
|
-
except ValueError:
|
|
415
|
-
self.logger.warning(f"Could not parse MLP node name: {node_name}")
|
|
403
|
+
mlp_layer = _parse_mlp_name(node_name)
|
|
404
|
+
if mlp_layer is not None:
|
|
405
|
+
mlp_layers_to_prune.append(mlp_layer)
|
|
416
406
|
|
|
417
407
|
for layer_idx in sorted(set(mlp_layers_to_prune)):
|
|
418
408
|
if not (0 <= layer_idx < len(model.blocks)):
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# FILE: circuitkit/applications/pruning/weight_pruner.py
|
|
2
2
|
|
|
3
|
-
import re
|
|
4
3
|
import warnings
|
|
5
4
|
from collections import defaultdict
|
|
6
5
|
from typing import Any, Dict, List, Tuple, Union
|
|
7
6
|
|
|
8
7
|
from transformer_lens import HookedTransformer
|
|
9
8
|
|
|
9
|
+
from circuitkit.circuit import _parse_head_name, _parse_mlp_name
|
|
10
10
|
from circuitkit.utils import count_at_fraction
|
|
11
11
|
import logging
|
|
12
12
|
|
|
@@ -413,17 +413,16 @@ def apply_node_pruning_to_weights(model: HookedTransformer, nodes_to_prune: List
|
|
|
413
413
|
for node_name in nodes_to_prune:
|
|
414
414
|
try:
|
|
415
415
|
# Parse attention head nodes (e.g., "A0.1" -> layer 0, head 1)
|
|
416
|
-
|
|
417
|
-
if
|
|
418
|
-
layer_idx, head_idx =
|
|
416
|
+
head = _parse_head_name(node_name)
|
|
417
|
+
if head is not None:
|
|
418
|
+
layer_idx, head_idx = head
|
|
419
419
|
logger.info(f" Pruning attention head: layer {layer_idx}, head {head_idx}")
|
|
420
420
|
zero_attention_head_weights(model, layer_idx, head_idx)
|
|
421
421
|
continue
|
|
422
422
|
|
|
423
423
|
# Parse MLP nodes (e.g., "MLP 2" -> layer 2)
|
|
424
|
-
|
|
425
|
-
if
|
|
426
|
-
layer_idx = int(mlp_match.group(1))
|
|
424
|
+
layer_idx = _parse_mlp_name(node_name)
|
|
425
|
+
if layer_idx is not None:
|
|
427
426
|
logger.info(f" Pruning MLP layer: {layer_idx}")
|
|
428
427
|
zero_mlp_weights(model, layer_idx)
|
|
429
428
|
continue
|
|
@@ -589,14 +588,12 @@ def get_nodes_to_prune_from_weights(
|
|
|
589
588
|
attn_heads_by_layer = defaultdict(dict)
|
|
590
589
|
|
|
591
590
|
for name, score in prunable_nodes.items():
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if attn_match:
|
|
596
|
-
layer_idx = int(attn_match.group(1))
|
|
591
|
+
head = _parse_head_name(name)
|
|
592
|
+
if head is not None:
|
|
593
|
+
layer_idx = head[0]
|
|
597
594
|
attn_head_scores[name] = score
|
|
598
595
|
attn_heads_by_layer[layer_idx][name] = score
|
|
599
|
-
elif
|
|
596
|
+
elif _parse_mlp_name(name) is not None:
|
|
600
597
|
mlp_scores[name] = score
|
|
601
598
|
|
|
602
599
|
logger.info(
|
|
@@ -632,8 +629,7 @@ def get_nodes_to_prune_from_weights(
|
|
|
632
629
|
if len(pruned_attn_heads) >= total_heads_to_prune:
|
|
633
630
|
break
|
|
634
631
|
|
|
635
|
-
|
|
636
|
-
layer_idx = int(attn_match.group(1))
|
|
632
|
+
layer_idx = _parse_head_name(head_name)[0]
|
|
637
633
|
|
|
638
634
|
total_heads_in_layer = len(attn_heads_by_layer[layer_idx])
|
|
639
635
|
max_prune_for_layer = int(total_heads_in_layer * 0.5)
|
{circuitkit-0.2.4 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/score_extractor.py
RENAMED
|
@@ -255,35 +255,34 @@ def head_scores_str_to_tuple(
|
|
|
255
255
|
) -> Dict[Tuple[int, int], float]:
|
|
256
256
|
"""Convert ``{"A{layer}.{head}": float}`` → ``{(layer, head): float}``.
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
EAP's ``"a{layer}.h{head}"`` keys are read too. MLP-style keys
|
|
259
|
+
(``"MLP {layer}"`` / ``"m{layer}"``) are filtered out; only attention-head
|
|
259
260
|
entries are returned. Use this to feed a pruning-selector's flat score
|
|
260
261
|
dict into the quantization tier-assignment helpers.
|
|
261
262
|
"""
|
|
262
|
-
import
|
|
263
|
+
from circuitkit.circuit import _parse_head_name
|
|
263
264
|
|
|
264
|
-
pat = re.compile(r"A(\d+)\.(\d+)")
|
|
265
265
|
out: Dict[Tuple[int, int], float] = {}
|
|
266
266
|
for k, v in str_scores.items():
|
|
267
|
-
|
|
268
|
-
if
|
|
269
|
-
out[
|
|
267
|
+
head = _parse_head_name(k)
|
|
268
|
+
if head is not None:
|
|
269
|
+
out[head] = float(v)
|
|
270
270
|
return out
|
|
271
271
|
|
|
272
272
|
|
|
273
273
|
def mlp_scores_str_to_int(str_scores: Dict[str, float]) -> Dict[int, float]:
|
|
274
274
|
"""Convert ``{"MLP {layer}": float}`` → ``{layer: float}``.
|
|
275
275
|
|
|
276
|
-
|
|
277
|
-
entries are returned. Mirror of ``head_scores_str_to_tuple``.
|
|
276
|
+
EAP's ``"m{layer}"`` keys are read too. Attention-head keys are filtered
|
|
277
|
+
out; only MLP entries are returned. Mirror of ``head_scores_str_to_tuple``.
|
|
278
278
|
"""
|
|
279
|
-
import
|
|
279
|
+
from circuitkit.circuit import _parse_mlp_name
|
|
280
280
|
|
|
281
|
-
pat = re.compile(r"MLP (\d+)")
|
|
282
281
|
out: Dict[int, float] = {}
|
|
283
282
|
for k, v in str_scores.items():
|
|
284
|
-
|
|
285
|
-
if
|
|
286
|
-
out[
|
|
283
|
+
layer = _parse_mlp_name(k)
|
|
284
|
+
if layer is not None:
|
|
285
|
+
out[layer] = float(v)
|
|
287
286
|
return out
|
|
288
287
|
|
|
289
288
|
|
|
@@ -90,19 +90,18 @@ class ActivationSteering:
|
|
|
90
90
|
Returns:
|
|
91
91
|
Hook point string, e.g., "blocks.0.attn.hook_result"
|
|
92
92
|
"""
|
|
93
|
-
import
|
|
93
|
+
from circuitkit.circuit import _parse_head_name, _parse_mlp_name
|
|
94
94
|
|
|
95
|
-
# Attention head node: "A<layer>.<head>"
|
|
96
|
-
|
|
97
|
-
if
|
|
98
|
-
layer_idx =
|
|
95
|
+
# Attention head node: "A<layer>.<head>" or EAP's "a<layer>.h<head>"
|
|
96
|
+
head = _parse_head_name(node_name)
|
|
97
|
+
if head is not None:
|
|
98
|
+
layer_idx = head[0]
|
|
99
99
|
# Hook to the attention result (after all heads are combined)
|
|
100
100
|
return f"blocks.{layer_idx}.attn.hook_result"
|
|
101
101
|
|
|
102
|
-
# MLP node: "MLP <layer>"
|
|
103
|
-
|
|
104
|
-
if
|
|
105
|
-
layer_idx = int(mlp_match.group(1))
|
|
102
|
+
# MLP node: "MLP <layer>" or EAP's "m<layer>"
|
|
103
|
+
layer_idx = _parse_mlp_name(node_name)
|
|
104
|
+
if layer_idx is not None:
|
|
106
105
|
# Hook to the MLP output
|
|
107
106
|
return f"blocks.{layer_idx}.hook_mlp_out"
|
|
108
107
|
|
|
@@ -110,13 +109,11 @@ class ActivationSteering:
|
|
|
110
109
|
|
|
111
110
|
@staticmethod
|
|
112
111
|
def _node_head_index(node_name: str) -> Optional[int]:
|
|
113
|
-
"""Return the head index for an attention node name ("A<layer>.<head>")."""
|
|
114
|
-
import
|
|
112
|
+
"""Return the head index for an attention node name ("A<layer>.<head>" or "a<layer>.h<head>")."""
|
|
113
|
+
from circuitkit.circuit import _parse_head_name
|
|
115
114
|
|
|
116
|
-
|
|
117
|
-
if
|
|
118
|
-
return int(attn_match.group(2))
|
|
119
|
-
return None
|
|
115
|
+
head = _parse_head_name(node_name)
|
|
116
|
+
return None if head is None else head[1]
|
|
120
117
|
|
|
121
118
|
def compute_steering_vector(
|
|
122
119
|
self,
|