circuitkit 0.2.3__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.3 → circuitkit-0.2.5}/.github/workflows/patch-release.yml +8 -7
- {circuitkit-0.2.3/src/circuitkit.egg-info → circuitkit-0.2.5}/PKG-INFO +5 -5
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/API_REFERENCE.md +6 -4
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/INSTALLATION.md +6 -6
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/advanced/chat-templates.md +5 -1
- circuitkit-0.2.5/docs/advanced/memory-optimization.md +264 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/flat-api.md +30 -2
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/tasks.md +3 -2
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/contributing/testing-on-cuda.md +4 -4
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/baselines.md +1 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/getting-started/core-concepts.md +2 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/getting-started/installation.md +1 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guides/CONCEPTS.md +3 -2
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guides/eap_ig_memory_optimization.md +1 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guides/index.md +2 -2
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guides/steering.md +3 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/reference/FEATURES.md +4 -2
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/trust/scope.md +1 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/applications.md +2 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/custom-data.md +21 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/data.md +1 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/tasks.md +35 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/troubleshooting.md +7 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/00_colab_setup.ipynb +1 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/pyproject.toml +7 -6
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/__init__.py +3 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/api.py +75 -21
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/cure_clue.py +5 -6
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/cake.py +5 -6
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/mcircke.py +6 -8
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/circuit_tuning.py +4 -6
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/soft_healing.py +7 -9
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/node_pruner.py +24 -17
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/pruner.py +20 -29
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/weight_pruner.py +21 -17
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/score_extractor.py +12 -13
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/steering/steering.py +12 -15
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/steering/weight_steering.py +16 -7
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/artifacts/converters.py +11 -4
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/artifacts/scores.py +19 -6
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/attribute.py +7 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/attribute_node.py +15 -3
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/circuit_kit_adapter.py +8 -3
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/eap_utils.py +17 -4
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/circuit.py +41 -2
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/safety_prompt.py +90 -19
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/auto_detect.py +16 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/normalized_task.py +73 -45
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/hf_checkpoint.py +3 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/lm_harness.py +3 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/baselines.py +30 -13
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/stability_discovery.py +3 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/quick.py +46 -15
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/_chat.py +7 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/bootstrap.py +2 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/__init__.py +2 -0
- circuitkit-0.2.5/src/circuitkit/tasks/builtins/multilingual_refusal.py +434 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/safety_datasets.py +1 -1
- circuitkit-0.2.5/src/circuitkit/utils/__init__.py +11 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/comparison.py +8 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5/src/circuitkit.egg-info}/PKG-INFO +5 -5
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit.egg-info/SOURCES.txt +10 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit.egg-info/requires.txt +4 -4
- circuitkit-0.2.5/tests/data/test_safety_length_match.py +120 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/data/test_safety_register_pairing.py +24 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/conftest.py +3 -2
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_api.py +6 -0
- 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.3 → circuitkit-0.2.5}/tests/unit/test_init_exports.py +10 -1
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_mean_activations.py +35 -5
- circuitkit-0.2.5/tests/unit/test_multilingual_refusal.py +381 -0
- circuitkit-0.2.5/tests/unit/test_multilingual_refusal_bos.py +30 -0
- circuitkit-0.2.5/tests/unit/test_node_eap_mlp_gradient.py +112 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_node_pruner.py +12 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_normalized_task.py +22 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_pillars.py +24 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_quick_api.py +45 -0
- circuitkit-0.2.5/tests/unit/test_safety_task_templated.py +37 -0
- circuitkit-0.2.5/tests/unit/test_signed_scores.py +79 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_task_answer_position.py +1 -1
- circuitkit-0.2.3/docs/advanced/memory-optimization.md +0 -165
- circuitkit-0.2.3/tests/tasks/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/.github/workflows/docs.yml +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/.github/workflows/test.yml +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/.github/workflows/version-consistency.yml +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/LICENSE.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/MANIFEST.in +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/README.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/about/faq.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/about/license.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/about/release-notes.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/about/roadmap.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/advanced/architecture-registry.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/advanced/circuit-artifacts.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/advanced/experimental-models.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/advanced/hallucination-detection.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/advanced/tiny-aya.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/advanced/vllm-evaluation.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/algorithms/acdc.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/algorithms/capability-matrix.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/algorithms/cdt.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/algorithms/eap.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/algorithms/ibcircuit.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/algorithms/overview.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/algorithms/stability-tiers.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/applications.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/backends.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/dict-config.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/evaluation.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/overview.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/pipeline.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/provenance.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/api-reference/selectors.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/blog/introducing-circuitkit.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/citation-map.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/cli/applications.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/cli/discovery.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/cli/evaluation.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/cli/overview.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/cli/yaml-config.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/contributing/documentation.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/contributing/new-algorithms.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/contributing/setup.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/contributing/standards.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/dev_enterprise_runbook.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/ablation.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/benchmarking.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/causal-patching.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/framework.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/generalization.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/robustness.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/evaluation/stability.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/examples/case-studies.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/examples/notebooks.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/examples/overview.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/examples/scripts.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/getting-started/configuration.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/getting-started/index.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/getting-started/quickstart.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/getting-started/taxonomy.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guidelines/Testing_Guidelines.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guides/circuit_artifact_guide.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guides/hallucination_detection_guide.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/guides/vllm_evaluation.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/index.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/product_blueprint.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/pypi_core_contract.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/reference/ARCHITECTURE_REGISTRY.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/reference/hyperparameters.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/reference/index.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/references.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/trust/index.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/trust/results.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/data-corruption.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/evaluation.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/pipeline-overview.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/selectors.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/docs/user-guide/visualization.md +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/01-quickstart.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/02-discover-python-api.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/04-discover-yaml.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/05-evaluate-faithfulness.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/06-applications.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/07-pipeline.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/08-custom-data.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/09-load-and-reuse.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/10-steering.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/11-knowledge-editing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/12-custom-corruption.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/13-transfer-matrix.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/14-faithfulness-audit-for-compliance.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/15-compression-for-deployment.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/16-tabular-model-audit.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/17-quantization-unlearning.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/18-banking-safety-steering.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/19-trade-finance-document-classification.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/20-transit-edge-deployment.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/21-quantization-permanent-unlearning.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/22-gender-bias-audit-and-mitigation.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/23-jailbreak-refusal-multi-model.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/case-studies/24-safety-refusal-custom-data.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/discovery/algorithm-comparison.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/discovery/benchmark-circuit-discovery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/experiments/e1_algo_validation_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/experiments/e2_cross_family_discovery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/experiments/e3_neuron_level_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/experiments/e4_custom_data_jailbreak.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/experiments/e567_downstream_applications.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/finetuning/finetune-llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/finetuning/finetune-qwen.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/01_quickstart_pipeline.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/02_algorithm_comparison.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/03_evaluation_deep_dive.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/04_visualization_gallery.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/05_applications.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/06_cli_and_yaml.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/notebooks/07_advanced_research_tools.ipynb +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/pruning/basic-prune.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/pruning/prune-llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/pruning/prune-qwen.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/quantization/quantize-llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/quantization/quantize-qwen.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/simple_csv_task.yaml +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/_common.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/_runner.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/01_eap_ig_activations_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/02_eap_clean_corrupted_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/03_eap_exact_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/04_compare_eap_family_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/05_atp_gd_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/06_eap_gp_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/07_relp_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/08_ibcircuit_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/09_peap_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/10_cdt_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/11_eap_ifr_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/12_all_algos_llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/algos/_algos_common.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/01_pruning_gpt2_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/02_lora_healing_gpt2_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/03_pruning_gpt2_mmlu.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/04_pruning_gpt2_gender_bias.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/05_pruning_gpt2_sva.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/06_pruning_gpt2_capital_country.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/07_pruning_gpt2_boolq.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/08_pruning_gpt2_arc_easy.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/09_pruning_gpt2_hellaswag.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/10_pruning_gpt2_crows_pairs.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/11_knowledge_editing_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/12_unlearning_tofu_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/13_steering_gpt2_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/14_linear_probe_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/15_hallucination_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/16_peft_benchmark.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/17_knowledge_editing_full_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/18_steering_safety_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/19_quantization_llama1b.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/20_ctheta_steering_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/21_ctheta_steering_llama1b.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/22_ctheta_advbench_refusal.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/23_ctheta_k_grid_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/24_circuitkit_advbench_refusal_steering.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/25_knowledge_editing_llama_circuit.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/26_soft_healing_llama_circuit.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/27_hallucination_truthfulqa_llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/28_safety_dataset_pillar_evals.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/_apps_common.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/applications/_make_apps_cell.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/01_gpt2_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/02_gpt2_greater_than.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/03_llama1b_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/04_llama1b_greater_than.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/05_gpt2_mmlu.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/06_llama1b_mmlu.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/07_gpt2_gender_bias.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/08_gpt2_hypernymy.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/09_gpt2_sva.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/10_gpt2_capital_country.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/11_gpt2_boolq.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/12_gpt2_wmdp.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/13_gpt2_arc_easy.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/14_gpt2_arc_challenge.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/15_gpt2_hellaswag.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/16_gpt2_crows_pairs.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/17_gpt2_tofu.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/18_gpt2_gsm8k.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/99_aggregate.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/_bench_common.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/_custom_tasks.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/benchmark/_make_cell.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/01_pairwise_crowspairs.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/02_instruction_alpaca.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/03_conversational_sharegpt.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/04_mcq_mmlu_arc_hellaswag.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/05_forget_retain_tofu.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/06_strategies_all.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/07_e2e_discovery_mcq_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/08_e2e_discovery_tofu_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/09_e2e_discovery_crowspairs_llama1b.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/10_e2e_quality_stability_mcq_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/11_e2e_all_algos_custom_mcq_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/12_e2e_safety_advbench_gpt2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/data/_data_common.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/master_aggregator.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/01_circuit_graph.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/02_activation_saliency.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/03_feature_saliency.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/04_circuit_editor.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/05_comparison_dashboard.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/06_jupyter_widgets.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/07_gallery_generator.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/08_plotter.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/09_eap_visualization.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/10_acdc_visualize.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/validation/visualizations/11_transfer_visualizer.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/examples/visualization/graph-viz-example.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/pytest.ini +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/requirements.txt +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/setup.cfg +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/__main__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0001-moe-dtype-and-devices-fixes.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0002-gemma4.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0003-sarvam-moe.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0004-gemma4-hf-parity.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0005-memory-no-weight-copies.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0006-cohere.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0007-local-checkpoint-config.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/0008-neox-lm-head.patch +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/_tl_patches/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/analysis/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/analysis/cross_method_jaccard.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/analysis/metrics.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/analysis/scores.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/arch_registry.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/arch_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_covariance.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_device.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_dtype.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_metrics.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/_tokenization.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/benchmark_analysis.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/hallucination_detection.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/common_utils/linear_probe.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/circuit_guided_editing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/fine_tune_editing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/knowledge_editing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/knowledge_editing_enhanced.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/memit_wrapper.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/editing/rome_wrapper.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/benchmark_peft.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/healing_metrics.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/finetuning/peft_methods.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/eval_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/prune.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/prune_llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/examples/prune_qwen.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/finetune_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/importance.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/neuron_pruner.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/score_extractor.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/selectors/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/selectors/multi_granular_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/pruning/selectors/taylor_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/examples/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/examples/quantize_llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/examples/quantize_qwen.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/llmcompressor_quantize.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/quant_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/selectors/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/selectors/awq_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/quantization/selectors/tacq_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/examples/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/examples/finetune_llama.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/examples/finetune_qwen.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/finetune_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/score_loader.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/selective_finetuning/selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/steering/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/applications/steering/steering_enhanced.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/artifacts/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/artifacts/circuit_artifact.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/cohere.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/registry.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/_tl_compat/smollm3.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/artifact_export.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/data.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/model_utils/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/model_utils/micro_model_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/model_utils/transformer_lens_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/ACDC.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/mask_gradient.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/prune_algos/prune_algos.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/docstring_prompts.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/docstring_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/induction_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/ioi_dataset.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/tasks/ioi_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/types.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/ablation_activations.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/custom_tqdm.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/graph_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/misc.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/patch_wrapper.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/patchable_model.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/task_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/utils/tensor_ops.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/acdc/visualize.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/adapter.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/propagation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_ablations.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_basic.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_core.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_from_source_nodes.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/cdt_source_to_target.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/faithfulness_ablations.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/general.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/ioi_dataset.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/local_importance.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/pathology.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/toy_model.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/cdt/pyfunctions/wrappers.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/artifact_export.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/evaluate.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/graph.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/metrics.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/py.typed +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/eap/visualization.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/artifact_export.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/ib_noise.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/ib_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/model_wrapper.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/backends/ibcircuit/trainer.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/gptq.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/magnitude.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/random.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/sparsegpt.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/baselines/wanda.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/benchmark.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/benchmarks/reporting.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/cli/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/cli/config.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/cli/debug.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/cli/main.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/cli/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/base.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/color_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/distractor.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/distractor_variation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/effectiveness.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/entity_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/negation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/paraphrase.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/pipeline.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/position_shift.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/role_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/token_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/validators.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/corruption/voice_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/base.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/code.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/conversational.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/forget_retain.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/instruction.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/math.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/mcq.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/pairwise.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/adapters/qa.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/clean_only.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/base.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/benign_rewrite.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/code_syntax_corrupt.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/entity_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/final_answer_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/instruction_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/llm_counterfactual.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/logical_negation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/math_step_corrupt.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/mcq_choice_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/operand_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/profession_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/resample.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/template.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/template_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/corruption/token_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/dataset_schema.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/eap_dataset.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/invariance_groups/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/invariance_groups/builder.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/invariance_groups/schema.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/normalized.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCCorrespondence.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCEdge.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCExperiment.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/TLACDCInterpNode.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/core/acdc_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/cache.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/manager.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/generation/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/greaterthan/greaterthan_32_ffd33106.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_16_8c879ddb.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_32_a432ca4a.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_500_1f7e7324.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_64_3bba747e.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_64_f4a164db.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/storage/ioi/ioi_8_e87df42e.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/binary_align/generate_binary_align.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/binary_align/jailbreak_binary.csv +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/binary_align/safe_binary.csv +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/capital_country/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/capital_country/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/docstring/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/docstring/prompts.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/docstring/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/double_io/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/double_io/double_io_dataset.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/gender_bias/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/gender_bias/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/gender_bias/utils2.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/greaterthan/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/greaterthan/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/hypernymy/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/hypernymy/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/induction/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/induction/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/ioi/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/ioi/ioi_dataset.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/ioi/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/sva/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/sva/utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/task_data/tasks/wmdp/wmdp_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/template.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/wikitext_calibration.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/data/worthiness.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/checkpoint_benchmark.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/evaluate.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/full.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/intervention_faithfulness.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/lm_eval_simple.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/master_grid.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/mmlu_eval.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/ablation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/causal_patching.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/generalization.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/intervention_reliability.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/robustness.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/pillars/stability.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/report.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/aggregator.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/robustness_report.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/reports/stability_report.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/transfer.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/transfer_analysis.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/transfer_visualizer.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/evaluation/weight_based_eval.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/pipeline.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/provenance.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/cdt_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/eap_gp_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/eap_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/gptq_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/ibcircuit_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/magnitude_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/random_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/relp_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/selection/wanda_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/_algorithm_families.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/auto_schema.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/boolq.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/capital_country.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/double_io.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/gender_bias.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/glue.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/greater_than.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/gsm8k.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/hypernymy.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ifeval.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ioi_acdc.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/ioi_legacy.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/mmlu.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/sva.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/truthfulqa.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/winogrande.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/winogrande_mc.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/builtins/wmdp.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/generic.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/hf_factory.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/inspect.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/registry.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/specs.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/classification_spec.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/generation_spec.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/mcq_spec.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/qa_spec.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/summarization_spec.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/type_specs/translation_spec.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/validator.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tasks/yaml_loader.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tooling/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/tooling/validate_environment.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/artifacts.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/async_processing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/bootstrap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/config.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/corruption_validation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/dataset_cache.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/debug.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/debugging.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/device.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/distributed.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/exceptions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/hparams.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/logging.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/memory.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/profiling.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/utils/token_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/d3_template.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/editor.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/feature_saliency.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/gallery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/graph_viz.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/jupyter_suite.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/plotter.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/saliency.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/streamlit_app.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit/visualize/theme.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit.egg-info/dependency_links.txt +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit.egg-info/entry_points.txt +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/src/circuitkit.egg-info/top_level.txt +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/conftest.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_architecture_registry.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_benchmark_analysis.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_benchmark_peft.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_circuit_artifact.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_covariance.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_cross_architecture.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_fine_tune_editing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_hallucination_detection.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_knowledge_editing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_knowledge_editing_enhanced.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_knowledge_editing_pipeline.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_linear_probe.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_peft_methods.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_pruner.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_steering.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_steering_enhanced.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_tokenization.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/apply/test_weight_steering.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_ib_noise.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_ib_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_model_wrapper.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/ibcircuit/test_trainer.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/test_artifact_export_integration.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse_32b.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse_32b_parity.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_aya_expanse_parity.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_backends.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_gqa.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_parity.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_selectors.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_cohere_wiring.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_command_r7b.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_command_r7b_parity.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_smollm3.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_compat/test_smollm3_parity.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_patches/configs/Ministral-3-3B-Instruct-2512.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_patches/configs/gemma-4-31B-it.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_patches/configs/sarvam-30b.json +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_patches/test_patch_hook.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/backends/tl_patches/test_tl_patchset.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/benchmarks/test_baselines.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/benchmarks/test_benchmark.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/conftest.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_distractor.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_effectiveness.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_entity_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_new_corruptions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_paraphrase.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_pipeline.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_pipeline_integration_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_practical_examples.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_role_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_strategies_integration.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_strategies_standalone.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_template.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_template_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_token_swap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_validators.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/corruption/test_yaml_strategy_synthesis.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/data/test_data_corruption_strategies.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/data/test_qa_adapter.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/fixtures/sample_pipeline.yaml +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_chat_template_instruct.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_interfaces_e2e.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_ioi_gpt2_position_and_faithfulness.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_soft_healing_integration.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_steering_ioi.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_template_e2e.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_tl3_interop.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_transfer_integration.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_transfer_matrix.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_transfer_minimal.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/integration/test_yaml_run_advanced.py +0 -0
- {circuitkit-0.2.3/src/circuitkit/utils → circuitkit-0.2.5/tests/regression}/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_32b_discovery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_32b_evaluation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_32b_interventions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_discovery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_evaluation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_aya_expanse_interventions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_cdt_nonzero_scores.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_circuit_tuner_training.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_cli_and_api_args.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_cohere_discovery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_cohere_evaluation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_cohere_interventions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_command_r7b_discovery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_command_r7b_evaluation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_command_r7b_interventions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_data_adapters_and_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_greater_than_tokenizer.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_pruner_gqa_kv_head.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_smollm3_discovery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_smollm3_evaluation.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_smollm3_interventions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/regression/test_steering_and_baselines.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/release/test_release.py +0 -0
- {circuitkit-0.2.3/tests/regression → circuitkit-0.2.5/tests/tasks}/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_auto_schema.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_capital_country.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_chat_template.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_cohere_tokenization.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_generic_task.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_glue.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_greater_than_corruption.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_gsm8k.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_ioi_regression.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_validator.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_winogrande.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/tasks/test_winogrande_mc.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/test_custom_data.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/test_environment.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/test_packaging.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/sample_pipeline.yaml +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_attribute.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_attribute_node.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_baselines_multidraw.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_bootstrap.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_circuit.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_circuit_kit_adapter.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_circuit_scores.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_cli.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_cli_commands.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_cli_smoke.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_config_defaults.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_d3_lod.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_d5_d7_import.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_device_allocator.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_double_io.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_eap_grad_scope.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_end_to_end.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_evaluate.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_exceptions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_expandable_segments.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_extended_schema.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_faithfulness_raw_ratio.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_fine_tune_edit_weight_decay.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_finetune_utils.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_float16_guard.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_generic_num_examples.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_graph.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_graph_export_safety.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_graph_viz.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_graph_viz_bounded.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_hf_checkpoint.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_hparams.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_instruction_swap_audit.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_logging_no_log_dir.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_mlp1.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_modules_exist.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_multi_token_answers.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_multi_token_unit.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_neuron_pruner.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_no_regressions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_normalized_task_num_examples.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_optimize_memory_usage.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_perplexity_metric.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_pillar_baseline_reuse.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_pipeline_benchmark_offload.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_pipeline_smoke.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_pipeline_unit.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_provenance.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_qkv_memory_guard.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_quantize_export_flow.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_quick_extensions.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_r1_seed_consistency.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_r2_effect_magnitude.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_ranking_metrics.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_report.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_score_loader.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_security_hardening.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_selector.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_selector_bugs.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_selector_registry.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_soft_healing.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_stability_robustness_reports.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_steering.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_structural_pruner.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_taylor_grad_scope.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_tokenize_batch_pair_max_length.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_tokenize_plus_padding_mask.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_tokenize_warning_throttle.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_trust_remote_code.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_validators_direct.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_yaml_pipeline_config.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/unit/test_yaml_run_cli.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/visualize/__init__.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/visualize/test_comparison.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/visualize/test_editor.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/visualize/test_feature_saliency.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/visualize/test_gallery.py +0 -0
- {circuitkit-0.2.3 → circuitkit-0.2.5}/tests/visualize/test_jupyter_suite.py +0 -0
- {circuitkit-0.2.3 → 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
|
|
|
@@ -334,7 +333,9 @@ jobs:
|
|
|
334
333
|
run: |
|
|
335
334
|
set -euo pipefail
|
|
336
335
|
: "${TWINE_PASSWORD:?PYPI_API_TOKEN is required to publish the release}"
|
|
337
|
-
|
|
336
|
+
# --skip-existing: two merges close together can start two runs for the
|
|
337
|
+
# same version; the second must not fail on "File already exists".
|
|
338
|
+
python -m twine upload --non-interactive --verbose --skip-existing dist/*
|
|
338
339
|
|
|
339
340
|
# The version-bump commit created above (if any) only exists on this
|
|
340
341
|
# detached checkout so far; fast-forward main with it so the tracked
|
|
@@ -358,7 +359,7 @@ jobs:
|
|
|
358
359
|
fi
|
|
359
360
|
|
|
360
361
|
- name: Send release notes to Slack
|
|
361
|
-
uses: slackapi/slack-github-action@
|
|
362
|
+
uses: slackapi/slack-github-action@fcfb566f8b0aab22203f066d80ca1d7e4b5d05b3 # v1.27.1
|
|
362
363
|
continue-on-error: true
|
|
363
364
|
with:
|
|
364
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>
|
|
@@ -26,14 +26,14 @@ Classifier: Operating System :: OS Independent
|
|
|
26
26
|
Requires-Python: >=3.10
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
License-File: LICENSE.md
|
|
29
|
-
Requires-Dist: torch>=2.
|
|
29
|
+
Requires-Dist: torch>=2.13.0
|
|
30
30
|
Requires-Dist: einops
|
|
31
31
|
Requires-Dist: plotly
|
|
32
32
|
Requires-Dist: tqdm
|
|
33
33
|
Requires-Dist: numpy
|
|
34
34
|
Requires-Dist: pandas
|
|
35
35
|
Requires-Dist: scipy
|
|
36
|
-
Requires-Dist: huggingface-hub<
|
|
36
|
+
Requires-Dist: huggingface-hub<3,>=1.5
|
|
37
37
|
Requires-Dist: transformers<6,>=5.15
|
|
38
38
|
Requires-Dist: safetensors
|
|
39
39
|
Requires-Dist: ordered-set
|
|
@@ -84,8 +84,8 @@ Requires-Dist: lime>=0.2; extra == "cdt"
|
|
|
84
84
|
Requires-Dist: shap>=0.42; extra == "cdt"
|
|
85
85
|
Provides-Extra: pruning
|
|
86
86
|
Provides-Extra: gpu-cu126
|
|
87
|
-
Requires-Dist: torch==2.
|
|
88
|
-
Requires-Dist: torchvision==0.
|
|
87
|
+
Requires-Dist: torch==2.13.0+cu126; extra == "gpu-cu126"
|
|
88
|
+
Requires-Dist: torchvision==0.28.0+cu126; extra == "gpu-cu126"
|
|
89
89
|
Dynamic: license-file
|
|
90
90
|
|
|
91
91
|
<p align="center">
|
|
@@ -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.
|
|
@@ -232,9 +232,10 @@ Measures cross-seed circuit reproducibility. Returns a dict with `r1_seed_consis
|
|
|
232
232
|
|
|
233
233
|
**Module**: `circuitkit.tasks`
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
17 built-in tasks are registered on first use: `ioi`, `sva`, `gender_bias`,
|
|
236
236
|
`capital_country`, `hypernymy`, `greater_than`, `double_io`, `boolq`, `glue`, `mmlu`,
|
|
237
|
-
`winogrande`, `winogrande_mc`, `truthfulqa`, `ifeval`, `wmdp`, `gsm8k
|
|
237
|
+
`winogrande`, `winogrande_mc`, `truthfulqa`, `ifeval`, `wmdp`, `gsm8k`,
|
|
238
|
+
`multilingual_refusal`.
|
|
238
239
|
|
|
239
240
|
> **Per-task discovery metrics differ.** Most classification / MCQ tasks
|
|
240
241
|
> (`ioi`, `boolq`, `sva`, `winogrande_mc`, ...) score a single answer token at
|
|
@@ -265,7 +266,8 @@ template. `"auto"` wraps iff the model is a chat model (its tokenizer ships a
|
|
|
265
266
|
`chat_template`); `"on"` always wraps; `"off"` always uses raw text. `"auto"` is
|
|
266
267
|
the default for downstream-behavior tasks (`boolq`, `glue`, `mmlu`,
|
|
267
268
|
`truthfulqa`, `ifeval`, `wmdp`, `gsm8k`, `winogrande_mc`) and for custom
|
|
268
|
-
`GenericTaskSpec`
|
|
269
|
+
`GenericTaskSpec` tasks (`NormalizedTaskSpec` uses its prompts as given; pass
|
|
270
|
+
`templated=True` when they already carry the chat template); `"off"` is the default for
|
|
269
271
|
diagnostic minimal-pair tasks (the IOI family, `sva`, `greater_than`,
|
|
270
272
|
`gender_bias`, `capital_country`, `hypernymy`, `double_io`) and for the cloze
|
|
271
273
|
`winogrande` task. The mode is overridable per run via the
|
|
@@ -82,11 +82,11 @@ Pinned CUDA 12.6 wheels:
|
|
|
82
82
|
pip install -e .[gpu-cu126] --extra-index-url https://download.pytorch.org/whl/cu126
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Includes: `torch==2.
|
|
85
|
+
Includes: `torch==2.13.0+cu126`, `torchvision==0.28.0+cu126`
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
- CUDA 12.
|
|
89
|
-
- CUDA
|
|
87
|
+
Other CUDA builds of torch 2.13+ on PyTorch's wheel index:
|
|
88
|
+
- CUDA 12.9: `cu129`
|
|
89
|
+
- CUDA 13.0: `cu130`
|
|
90
90
|
|
|
91
91
|
### Development & Testing
|
|
92
92
|
|
|
@@ -214,7 +214,7 @@ pip install -e . --no-cache-dir
|
|
|
214
214
|
|
|
215
215
|
```bash
|
|
216
216
|
pip install -e .
|
|
217
|
-
pip install torch==2.
|
|
217
|
+
pip install torch==2.13.0+cu126 -f https://download.pytorch.org/whl/cu126
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
### Issue: `pygraphviz` compilation fails
|
|
@@ -328,7 +328,7 @@ pip uninstall circuitkit spacy lm-eval torch-pruning
|
|
|
328
328
|
For specific CUDA/cuDNN versions:
|
|
329
329
|
|
|
330
330
|
```bash
|
|
331
|
-
pip install torch==2.
|
|
331
|
+
pip install torch==2.13.0+cu130 --index-url https://download.pytorch.org/whl/cu130
|
|
332
332
|
pip install -e .
|
|
333
333
|
```
|
|
334
334
|
|
|
@@ -23,7 +23,11 @@ The task type sets the default mode; you can override it per run.
|
|
|
23
23
|
| Downstream-behavior tasks | `"auto"` | `boolq`, `glue`, `mmlu`, `truthfulqa`, `ifeval`, `wmdp`, `gsm8k`, `winogrande_mc` |
|
|
24
24
|
| Diagnostic minimal-pair tasks | `"off"` | `ioi`, `sva`, `greater_than`, `gender_bias`, `capital_country`, `hypernymy`, `double_io` |
|
|
25
25
|
| Cloze tasks | `"off"` | `winogrande` |
|
|
26
|
-
|
|
|
26
|
+
| Chat-model behavior tasks | `"on"` | `multilingual_refusal` |
|
|
27
|
+
| Custom `GenericTaskSpec` | `"auto"` | User-defined tasks |
|
|
28
|
+
| `NormalizedTaskSpec` | prompts used as given | Adapter / auto-schema datasets; pass `templated=True` if the prompts already carry the chat template |
|
|
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.
|
|
27
31
|
|
|
28
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.
|
|
29
33
|
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# Memory Optimization
|
|
2
|
+
|
|
3
|
+
EAP-IG can be memory-intensive, especially for large models. This page covers all available memory optimizations and their trade-offs.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Memory Budget by Model Size
|
|
8
|
+
|
|
9
|
+
Peak VRAM after the `perf/vram-optimizations` fixes (qkv-flag lifecycle,
|
|
10
|
+
per-batch buffer release, embedding-only gradients — see the changelog):
|
|
11
|
+
|
|
12
|
+
| Model | Previous default (measured) | With all optimizations (measured) |
|
|
13
|
+
|-------|----------------------------|-------------------------------------|
|
|
14
|
+
| GPT-2 (124M) | 1.0 GB | 0.5 GB |
|
|
15
|
+
| Llama-3.2-1B-Instruct | 8.7 GB | 4.1 GB |
|
|
16
|
+
| Llama-3B | not re-measured — order-of-magnitude only | not re-measured |
|
|
17
|
+
| Gemma-4B | not re-measured — order-of-magnitude only | not re-measured |
|
|
18
|
+
|
|
19
|
+
"Previous default" is `ig_steps=5`, `batch_size=4`, `num_examples=128` (`ig_steps` now defaults to 3). "With
|
|
20
|
+
all optimizations" is `ig_steps=3`, `batch_size=1`, `num_examples=64` (the
|
|
21
|
+
combined strategy below), both bf16. (The config key is `num_examples`, under
|
|
22
|
+
`data_params`; prose sometimes calls it `n_examples` — it is the same knob.)
|
|
23
|
+
The Llama-3B/Gemma-4B rows are not re-verified against the current code —
|
|
24
|
+
expect the same relative reduction as the two measured rows, not these exact
|
|
25
|
+
figures.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Optimization Techniques
|
|
30
|
+
|
|
31
|
+
### 1. Model precision (bfloat16 is the default)
|
|
32
|
+
|
|
33
|
+
CircuitKIT already loads models in bfloat16 — it's the default, and the backend warns if you set anything else, so you get this saving out of the box:
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
discover_circuit({
|
|
37
|
+
"model": {"name": "gpt2", "precision": "bfloat16"}, # the default, shown explicitly
|
|
38
|
+
...
|
|
39
|
+
})
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Why it's listed:** the float32 baseline in the table below is a what-if. Forcing float32 would roughly double model VRAM for no accuracy benefit, which is exactly why bfloat16 is the default rather than an opt-in.
|
|
43
|
+
|
|
44
|
+
### 2. Reduce `ig_steps` (linear savings)
|
|
45
|
+
|
|
46
|
+
`ig_steps` is the number of Integrated Gradients integration steps. The default is 3 (`utils/config.py`), which is enough for EAP-IG: the EAP-IG paper (Hanna et al., 2024) finds every value above 2 similarly faithful, and 2 unfaithful on some tasks. Cost grows linearly with the step count, so the previous default of 5 takes about 1.7x as long. The backends fall back to 3 as well when `ig_steps` is left unset (`None`).
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
"discovery": {"algorithm": "eap-ig", "ig_steps": 3, ...} # the default; 2 is faster but unfaithful on some tasks
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Savings:** Linear with step reduction. `ig_steps=3` (the default) is ~40% faster and ~30% less memory than the previous default of `ig_steps=5`.
|
|
53
|
+
|
|
54
|
+
### 3. Reduce `batch_size` (linear savings)
|
|
55
|
+
|
|
56
|
+
`batch_size` is read at the top level of the `discovery` block, not nested under `data_params`:
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
"discovery": {"batch_size": 1, "data_params": {"num_examples": 128}}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Savings:** Linear. `batch_size=1` is ~50-60% less peak memory than `batch_size=4`. Slower (more batches).
|
|
63
|
+
|
|
64
|
+
### 4. Skip TransformerLens weight copies (opt-in, `CIRCUITKIT_TL_MEMORY_PATCH=1`)
|
|
65
|
+
|
|
66
|
+
CircuitKIT ships a TransformerLens patch that removes two large temporaries from every forward pass: attention
|
|
67
|
+
output is computed with one `einsum` over `W_O` instead of broadcasting a `[batch, pos, head, d_head, d_model]`
|
|
68
|
+
tensor, and gated MLPs (Llama, Qwen, Gemma, ...) and the unembedding use transposed weight views instead of a fresh
|
|
69
|
+
`.T.contiguous()` copy of each matrix. Set the variable before CircuitKIT is imported:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
CIRCUITKIT_TL_MEMORY_PATCH=1 python run_discovery.py
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- **Off by default.** Without the contiguous copies, bf16 matmuls accumulate in a different order, so logits differ
|
|
76
|
+
from Hugging Face's in the last bits and scores can differ slightly between runs with and without the patch.
|
|
77
|
+
Keep it on or off for every run you compare. The measurements below say how large the change is.
|
|
78
|
+
- **Import order.** The patch is applied when `circuitkit` is imported. If `transformer_lens` was imported first,
|
|
79
|
+
CircuitKIT raises an `ImportError`; import `circuitkit` first (or restart the kernel).
|
|
80
|
+
- **Savings** grow with model width: the removed temporaries scale with `d_model × d_mlp` per layer and with
|
|
81
|
+
`batch × pos × n_heads × d_head × d_model` in attention. They were the out-of-memory sites for Gemma-4 31B on an
|
|
82
|
+
80 GB card. See `src/circuitkit/_tl_patches/README.md` for the patch series.
|
|
83
|
+
|
|
84
|
+
#### Measured: patch on vs off
|
|
85
|
+
|
|
86
|
+
Node-level EAP-IG on the `ioi` task: 64 examples, 3 IG steps, 3 data seeds (0, 1, 2), batch size 4 (1 for the
|
|
87
|
+
Cohere-architecture model). Every on/off pair ran in separate processes; the on and off runs of one model use the same
|
|
88
|
+
seeds and data. RTX 6000 Ada (48 GB), torch 2.13.0+cu126, transformer-lens 3.8.0, CircuitKIT `79f4b1b`. The GPU was
|
|
89
|
+
shared with other jobs, so wall times are indicative only. Peak is `torch.cuda.max_memory_allocated()` during
|
|
90
|
+
discovery and includes the weights. The Cohere-architecture row is a public fine-tune of `tiny-aya-global`
|
|
91
|
+
(`itssaharsh/tiny-aya-global-unlearn-bio-default-layers`, same `Cohere2ForCausalLM` architecture, 3.35B parameters)
|
|
92
|
+
loaded from a local checkpoint, because Tiny Aya itself is gated. It was run in bf16 only: fp32 weights alone
|
|
93
|
+
(13 GB) were more than the shared card could spare.
|
|
94
|
+
|
|
95
|
+
**Peak memory.**
|
|
96
|
+
|
|
97
|
+
| Model | dtype | Weights | Peak, patch off | Peak, patch on | Saving of peak | Saving beyond weights | Wall s, off → on |
|
|
98
|
+
|---|---|---|---|---|---|---|---|
|
|
99
|
+
| gpt2 | fp32 | 0.64 GiB | 1.13 GiB | 0.99 GiB | 12 % | 28 % | 3 → 3 |
|
|
100
|
+
| gpt2 | bf16 | 0.33 GiB | 0.62 GiB | 0.55 GiB | 11 % | 23 % | 3 → 3 |
|
|
101
|
+
| Qwen2.5-0.5B | fp32 | 2.41 GiB | 5.29 GiB | 3.61 GiB | 32 % | 58 % | 11 → 10 |
|
|
102
|
+
| Qwen2.5-0.5B | bf16 | 1.23 GiB | 2.77 GiB | 1.94 GiB | 30 % | 54 % | 11 → 10 |
|
|
103
|
+
| Qwen3-0.6B | fp32 | 2.90 GiB | 6.21 GiB | 4.65 GiB | 25 % | 47 % | 15 → 10 |
|
|
104
|
+
| Qwen3-0.6B | bf16 | 1.47 GiB | 3.31 GiB | 2.53 GiB | 24 % | 42 % | 11 → 10 |
|
|
105
|
+
| Tiny Aya architecture (3.35B) | bf16 | 7.34 GiB | 14.86 GiB | 9.42 GiB | 37 % | 72 % | 92 → 41 |
|
|
106
|
+
|
|
107
|
+
The saving is real and grows with model width. The wall-time differences are within what a shared GPU gives, except
|
|
108
|
+
that the patch cannot make discovery slower; do not read 92 → 41 s as a speed-up.
|
|
109
|
+
|
|
110
|
+
**Scores.** Same seed, patch on vs off, over the 3 seeds. The last column is the Spearman correlation between two
|
|
111
|
+
different seeds with the patch off, the run-to-run variation to compare against.
|
|
112
|
+
|
|
113
|
+
| Model | dtype | Spearman on/off, per seed | Top-k overlap, worst seed, k = 10 / 25 / 50 % of nodes | Seed vs seed, patch off |
|
|
114
|
+
|---|---|---|---|---|
|
|
115
|
+
| gpt2 | fp32 | 1.0000, 1.0000, 1.0000 | 1.00 / 1.00 / 1.00 | 0.867 |
|
|
116
|
+
| gpt2 | bf16 | 0.9968, 0.9981, 0.9989 | 1.00 / 0.97 / 0.97 | 0.870 |
|
|
117
|
+
| Qwen2.5-0.5B | fp32 | 1.0000, 1.0000, 1.0000 | 1.00 / 1.00 / 1.00 | 0.863 |
|
|
118
|
+
| Qwen2.5-0.5B | bf16 | 0.9906, 0.9941, 0.9935 | 0.97 / 0.99 / 0.98 | 0.859 |
|
|
119
|
+
| Qwen3-0.6B | fp32 | 1.0000, 1.0000, 1.0000 | 1.00 / 1.00 / 1.00 | 0.841 |
|
|
120
|
+
| Qwen3-0.6B | bf16 | 0.9941, 0.9944, **0.9866** | 0.96 / 0.98 / 0.97 | 0.842 |
|
|
121
|
+
| Tiny Aya architecture (3.35B) | bf16 | 0.9984, 0.9986, 0.9986 | 0.98 / 0.99 / 0.98 | 0.684 |
|
|
122
|
+
|
|
123
|
+
**Logits against Hugging Face** (8 short prompts, same token ids, same dtype; max |Δlogit| and top-1 agreement,
|
|
124
|
+
patch off / patch on). The last column is the largest on-vs-off difference at the last position of each prompt.
|
|
125
|
+
|
|
126
|
+
| Model | dtype | Max abs Δ, off / on | Top-1 agreement, off / on | On vs off, last position |
|
|
127
|
+
|---|---|---|---|---|
|
|
128
|
+
| gpt2 | fp32 | 7.3e-4 / 4.7e-4 | 1.000 / 1.000 | 2.4e-4 |
|
|
129
|
+
| gpt2 | bf16 | 9 / 10 | 0.936 / 0.917 | 1 |
|
|
130
|
+
| Qwen2.5-0.5B | fp32 | 9.1e-5 / 1.1e-4 | 1.000 / 1.000 | 3.9e-5 |
|
|
131
|
+
| Qwen2.5-0.5B | bf16 | 2.1 / 2.2 | 0.969 / 0.947 | 0.62 |
|
|
132
|
+
| Qwen3-0.6B | fp32 | 1.0e-4 / 7.6e-5 | 1.000 / 1.000 | 3.5e-5 |
|
|
133
|
+
| Qwen3-0.6B | bf16 | 0.78 / 1.3 | 0.985 / 0.977 | 0.75 |
|
|
134
|
+
| Tiny Aya architecture (3.35B) | bf16 | 1.3 / 1.2 | 0.965 / 0.979 | 0.31 |
|
|
135
|
+
|
|
136
|
+
In bf16 both settings are far from Hugging Face in absolute terms; the patch moves the logits by about as much as the
|
|
137
|
+
bf16 noise already present. In fp32 the difference is numerically tiny (about 1e-4 or less).
|
|
138
|
+
|
|
139
|
+
**Faithfulness** (patching score of the circuit that keeps the top 10 / 25 / 50 % of nodes, mean ± sd over the 3
|
|
140
|
+
seeds; each seed's circuit is scored on that seed's data; patch off | patch on). The ablation pillar is floored at 0
|
|
141
|
+
and was 0 for most circuits, so it is not shown.
|
|
142
|
+
|
|
143
|
+
| Model | dtype | Keep 10 % | Keep 25 % | Keep 50 % |
|
|
144
|
+
|---|---|---|---|---|
|
|
145
|
+
| gpt2 | fp32 | 0.151 ± 0.022 | 0.151 ± 0.022 | 0.749 ± 0.047 | 0.749 ± 0.047 | 0.969 ± 0.054 | 0.969 ± 0.054 |
|
|
146
|
+
| gpt2 | bf16 | 0.146 ± 0.030 | 0.145 ± 0.028 | 0.769 ± 0.037 | 0.757 ± 0.029 | 0.953 ± 0.081 | 0.957 ± 0.074 |
|
|
147
|
+
| Qwen2.5-0.5B | fp32 | 0.292 ± 0.095 | 0.292 ± 0.095 | 0.725 ± 0.117 | 0.725 ± 0.117 | 0.895 ± 0.068 | 0.895 ± 0.068 |
|
|
148
|
+
| Qwen2.5-0.5B | bf16 | 0.317 ± 0.077 | 0.311 ± 0.078 | 0.749 ± 0.136 | 0.777 ± 0.074 | 0.909 ± 0.048 | 0.897 ± 0.062 |
|
|
149
|
+
| Qwen3-0.6B | fp32 | 0.287 ± 0.009 | 0.287 ± 0.009 | 0.640 ± 0.048 | 0.640 ± 0.048 | 0.841 ± 0.025 | 0.841 ± 0.025 |
|
|
150
|
+
| Qwen3-0.6B | bf16 | 0.288 ± 0.011 | 0.289 ± 0.010 | 0.611 ± 0.045 | 0.624 ± 0.053 | 0.810 ± 0.037 | **0.855 ± 0.058** |
|
|
151
|
+
| Tiny Aya architecture (3.35B) | bf16 | 0.105 ± 0.075 | 0.104 ± 0.075 | 0.539 ± 0.136 | 0.539 ± 0.132 | 0.975 ± 0.021 | 0.970 ± 0.027 |
|
|
152
|
+
|
|
153
|
+
**Why it stays opt-in.** The rule applied before the runs was: make the patch the default only if, in bf16, every
|
|
154
|
+
seed has on/off Spearman ≥ 0.99 and top-k overlap ≥ 0.95 at every k, faithfulness differences stay within one sd, the
|
|
155
|
+
fp32 differences are numerically tiny, and the saving is at least 15 % on the larger models. Everything holds except
|
|
156
|
+
two marginal cases, both on Qwen3-0.6B in bf16: one seed has Spearman 0.9866 (the mean over seeds is 0.9917), and
|
|
157
|
+
faithfulness at 50 % of nodes is 0.045 higher with the patch on, which is larger than the sd of the runs without it
|
|
158
|
+
(0.037) and smaller than the sd with it (0.058). With three seeds that is not enough to call the change noise, and a
|
|
159
|
+
default changes every bf16 user's scores, so the patch stays opt-in. The differences that do appear are much smaller
|
|
160
|
+
than the seed-to-seed variation, and the memory saving is large (24-37 % of peak on the models above). If your
|
|
161
|
+
model is wide or tight on memory, turning it on is a reasonable choice; keep it the same for every run you compare.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Combined Strategy for Large Models
|
|
166
|
+
|
|
167
|
+
For Gemma-4B or Llama-3B (targeting ~6 GB peak VRAM):
|
|
168
|
+
|
|
169
|
+
```python
|
|
170
|
+
discover_circuit({
|
|
171
|
+
"model": {
|
|
172
|
+
"name": "google/gemma-3-4b-it",
|
|
173
|
+
"precision": "bfloat16", # 1. half-precision model
|
|
174
|
+
},
|
|
175
|
+
"discovery": {
|
|
176
|
+
"algorithm": "eap-ig",
|
|
177
|
+
"task": "mmlu",
|
|
178
|
+
"level": "node",
|
|
179
|
+
"ig_steps": 3, # 2. IG steps (the default)
|
|
180
|
+
"batch_size": 1, # 3. batch size 1 (top-level, not under data_params)
|
|
181
|
+
"data_params": {
|
|
182
|
+
"num_examples": 64, # 4. fewer examples
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
"pruning": {"target_sparsity": 0.3, "scope": "heads"},
|
|
186
|
+
"output_path": "./circuit.pt",
|
|
187
|
+
})
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Memory Savings Summary
|
|
193
|
+
|
|
194
|
+
| Configuration | Peak VRAM reduction |
|
|
195
|
+
|--------------|---------------------|
|
|
196
|
+
| Baseline — float32 (reference only; not the default) | 0% |
|
|
197
|
+
| Model bfloat16 | ~50% |
|
|
198
|
+
| + Batch size 1 | ~70–75% |
|
|
199
|
+
| + ig_steps 3 (now the default; was 5) | ~75–80% |
|
|
200
|
+
| **All combined** | **~80%** |
|
|
201
|
+
|
|
202
|
+
There are no `memory_efficient` or `use_half_precision_activations` config keys — neither is read anywhere in the discovery backend, so setting them silently does nothing. The levers above (model precision, `batch_size`, `ig_steps`, `n_examples`, and the opt-in `CIRCUITKIT_TL_MEMORY_PATCH=1`) are the only ones that actually affect memory.
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Monitoring Memory Usage
|
|
207
|
+
|
|
208
|
+
```python
|
|
209
|
+
import torch
|
|
210
|
+
|
|
211
|
+
if torch.cuda.is_available():
|
|
212
|
+
print(f"Before: {torch.cuda.memory_allocated() / 1e9:.2f} GB")
|
|
213
|
+
|
|
214
|
+
# ... run discovery ...
|
|
215
|
+
|
|
216
|
+
if torch.cuda.is_available():
|
|
217
|
+
print(f"Peak: {torch.cuda.max_memory_allocated() / 1e9:.2f} GB")
|
|
218
|
+
torch.cuda.reset_peak_memory_stats()
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Pre-Flight Memory Check
|
|
222
|
+
|
|
223
|
+
Before running discovery, check if the model will fit:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
circuitkit discover-smart \
|
|
227
|
+
--model google/gemma-3-4b-it \
|
|
228
|
+
--algorithm eap-ig \
|
|
229
|
+
--task mmlu \
|
|
230
|
+
--check-memory
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
This runs a dry-run estimate without loading the full dataset.
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Performance Impact
|
|
238
|
+
|
|
239
|
+
All optimizations have negligible impact on circuit quality:
|
|
240
|
+
|
|
241
|
+
| Optimization | Speed impact | Circuit quality impact |
|
|
242
|
+
|-------------|-------------|----------------------|
|
|
243
|
+
| `ig_steps=3` (now the default; was 5) | ~40% faster | < 0.5% score diff |
|
|
244
|
+
| `batch_size=1` | ~50% slower | None |
|
|
245
|
+
| `bfloat16` model | Same or faster | < 0.1% score diff |
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Troubleshooting OOM
|
|
250
|
+
|
|
251
|
+
If you still hit OOM with all optimizations:
|
|
252
|
+
|
|
253
|
+
1. **Reduce `num_examples` to 32** — enough for a reasonable circuit estimate
|
|
254
|
+
2. **Try `ig_steps=1`** — equivalent to vanilla `eap`; slightly less accurate but same memory as non-IG methods
|
|
255
|
+
3. **Use CPU** — very slow but no VRAM constraint. Set `model: {device: cpu}` in the config (without it, `get_device()` picks CUDA > MPS > CPU), or `ck.load_model(..., device="cpu")` for the flat API.
|
|
256
|
+
4. **Consider a smaller model** — GPT-2 or Pythia-70M for algorithm prototyping
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Next Steps
|
|
261
|
+
|
|
262
|
+
- [Algorithms: Capability Matrix](../algorithms/capability-matrix.md) — GPU requirements by model size
|
|
263
|
+
- [Algorithms: EAP Family](../algorithms/eap.md) — `ig_steps` tuning guidance
|
|
264
|
+
- [Troubleshooting](../user-guide/troubleshooting.md) — common OOM errors
|
|
@@ -26,7 +26,7 @@ Load a TransformerLens model with the hook flags circuit discovery needs already
|
|
|
26
26
|
|-----------|---------|-------------|
|
|
27
27
|
| `name` | — | HF / TL model id, e.g. `"gpt2"`, `"meta-llama/Llama-3.2-1B-Instruct"` |
|
|
28
28
|
| `dtype` | `"bfloat16"` | Torch dtype string |
|
|
29
|
-
| `device` |
|
|
29
|
+
| `device` | `None` | `None`: `"cuda"` if available, else `"cpu"`. `"auto"`: `"cuda"`, then `"mps"`, then `"cpu"` |
|
|
30
30
|
| `algorithm` | `None` | If given, only the flags that algorithm needs are set |
|
|
31
31
|
|
|
32
32
|
```python
|
|
@@ -67,13 +67,27 @@ Run circuit discovery and return a `Circuit` object.
|
|
|
67
67
|
| `sparsity` | 0.3 | Target pruning sparsity |
|
|
68
68
|
| `scope` | `"both"` | Pruning scope: `"heads"`, `"mlp"`, or `"both"` |
|
|
69
69
|
| `output_path` | `"./circuit_discovery_results.pt"` | Where to write artifacts |
|
|
70
|
-
| `**kw` | — | Extra keys forwarded into the discovery block (e.g. `ig_steps=3`) |
|
|
70
|
+
| `**kw` | — | Extra keys forwarded into the discovery block (e.g. `ig_steps=3`, `signed=True`) |
|
|
71
71
|
|
|
72
72
|
```python
|
|
73
73
|
circuit = ck.discover(model, "ioi", algorithm="eap-ig", n_examples=64, ig_steps=3)
|
|
74
74
|
print(circuit.top_nodes(5))
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
**Signed scores.** Node scores are absolute values by default, which is what pruning ranks on.
|
|
78
|
+
`signed=True` (EAP family, node level) also keeps each score with its sign in
|
|
79
|
+
`circuit.signed_scores` and in the `signed_node_scores` key of the scores side-cars; the circuit
|
|
80
|
+
and `circuit.scores` are the same as without it. With the built-in logit-difference metrics a
|
|
81
|
+
positive score means the node supports the clean answer (patching it to its corrupt activation
|
|
82
|
+
lowers the logit difference) and a negative score means it works against it. Other algorithms and
|
|
83
|
+
`level="neuron"` reject the key; a neuron-level run already saves signed per-neuron scores as
|
|
84
|
+
`neurons_scores` in the `_scores.pt` side-car.
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
circuit = ck.discover(model, "ioi", algorithm="eap", n_examples=64, signed=True)
|
|
88
|
+
negative = {n: s for n, s in circuit.signed_scores.items() if s < 0}
|
|
89
|
+
```
|
|
90
|
+
|
|
77
91
|
---
|
|
78
92
|
|
|
79
93
|
## `faithfulness`
|
|
@@ -324,6 +338,19 @@ ck.visualize_circuit(circuit, mode="graph", output="./circuit.html")
|
|
|
324
338
|
|
|
325
339
|
---
|
|
326
340
|
|
|
341
|
+
## `build_discovery_config`
|
|
342
|
+
|
|
343
|
+
```python
|
|
344
|
+
build_discovery_config(model, task, *, algorithm="eap-ig", level="node", n_examples=128,
|
|
345
|
+
batch_size=4, sparsity=0.3, scope="both",
|
|
346
|
+
output_path="./circuit_discovery_results.pt", **kw) -> dict
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
Returns the dict config that `discover` passes to `discover_circuit`, so you can inspect or edit it first.
|
|
350
|
+
Extra keyword arguments go into the `discovery` block.
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
327
354
|
## `Circuit` Object
|
|
328
355
|
|
|
329
356
|
`Circuit` is returned by `ck.discover` and `ck.load_scores`.
|
|
@@ -331,6 +358,7 @@ ck.visualize_circuit(circuit, mode="graph", output="./circuit.html")
|
|
|
331
358
|
```python
|
|
332
359
|
circuit.nodes # List[str] — node names
|
|
333
360
|
circuit.scores # Dict[str, float] — {node: importance_score}
|
|
361
|
+
circuit.signed_scores # Dict[str, float] — same with sign, when discovered with signed=True
|
|
334
362
|
circuit.level # "node" or "neuron"
|
|
335
363
|
circuit.task # task name
|
|
336
364
|
circuit.algorithm # algorithm used
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Built-in Tasks
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
17 built-in tasks are registered on first use:
|
|
10
10
|
|
|
11
11
|
| Task | Type | Metric | Default template |
|
|
12
12
|
|------|------|--------|-----------------|
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
| `ifeval` | Instruction | — (collateral-eval only, no discovery) | `"auto"` |
|
|
27
27
|
| `wmdp` | MCQ | logit-diff | `"auto"` |
|
|
28
28
|
| `gsm8k` | Generation | NLL on answer span | `"auto"` |
|
|
29
|
+
| `multilingual_refusal` | Chat behavior | logit-diff | `"on"` |
|
|
29
30
|
|
|
30
31
|
---
|
|
31
32
|
|
|
@@ -176,7 +177,7 @@ register_task(spec)
|
|
|
176
177
|
|
|
177
178
|
## Next Steps
|
|
178
179
|
|
|
179
|
-
- [Built-in tasks](../user-guide/tasks.md) — all
|
|
180
|
+
- [Built-in tasks](../user-guide/tasks.md) — all 17 tasks with metric details
|
|
180
181
|
- [Bring your own data](../user-guide/custom-data.md) — full custom data guide
|
|
181
182
|
- [Data model](../user-guide/data.md) — what discovery needs
|
|
182
183
|
- [Chat Templates](../advanced/chat-templates.md) — `chat_template_mode` reference
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Testing on a CUDA machine
|
|
2
2
|
|
|
3
3
|
Some of CircuitKIT's validation can't run on a CPU-only or Apple-Silicon box. The
|
|
4
|
-
`gpu-cu126` extra pins `torch==2.
|
|
4
|
+
`gpu-cu126` extra pins `torch==2.13.0+cu126` / `torchvision==0.28.0+cu126`, and those
|
|
5
5
|
`+cu126` wheels only exist on PyTorch's CUDA index — not on PyPI — so a plain
|
|
6
|
-
`uv`/`pip` resolve fails off a CUDA host with *"no version of torch==2.
|
|
6
|
+
`uv`/`pip` resolve fails off a CUDA host with *"no version of torch==2.13.0+cu126"*.
|
|
7
7
|
Real-model discovery, quantization, vLLM evaluation, and the GPU path of the
|
|
8
8
|
corruption/pairing guards therefore need to be checked on an actual NVIDIA GPU.
|
|
9
9
|
|
|
@@ -25,12 +25,12 @@ then CircuitKIT with the extras you need.
|
|
|
25
25
|
=== "pip"
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
pip install torch==2.
|
|
28
|
+
pip install torch==2.13.0+cu126 torchvision==0.28.0+cu126 \
|
|
29
29
|
--index-url https://download.pytorch.org/whl/cu126
|
|
30
30
|
pip install -e ".[dev,benchmarks,quantization]"
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
For a different CUDA version, swap `cu126` for your toolkit (e.g. `
|
|
33
|
+
For a different CUDA version, swap `cu126` for your toolkit (e.g. `cu130`) in both
|
|
34
34
|
the index URL and the torch pins.
|
|
35
35
|
|
|
36
36
|
## 2. Confirm the GPU is visible
|
|
@@ -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
|
|
|
@@ -72,7 +72,7 @@ A **task** defines the input/output structure for discovery. It specifies:
|
|
|
72
72
|
- A **corruption strategy** (how to generate paired corrupted inputs)
|
|
73
73
|
- A `chat_template_mode` (auto/on/off)
|
|
74
74
|
|
|
75
|
-
###
|
|
75
|
+
### 17 built-in tasks
|
|
76
76
|
|
|
77
77
|
| Task | Description | Metric |
|
|
78
78
|
|---|---|---|
|
|
@@ -92,6 +92,7 @@ A **task** defines the input/output structure for discovery. It specifies:
|
|
|
92
92
|
| `ifeval` | Instruction following | Logit-diff |
|
|
93
93
|
| `wmdp` | Hazardous knowledge | Logit-diff |
|
|
94
94
|
| `gsm8k` | Math word problems | Answer-span NLL |
|
|
95
|
+
| `multilingual_refusal` | Refusal of harmful requests, one language per run | Logit-diff |
|
|
95
96
|
|
|
96
97
|
!!! note "Per-task metrics"
|
|
97
98
|
Most tasks use single-token logit-difference. `winogrande` (suffix log-likelihood) and `gsm8k` (answer-span NLL) are deliberate exceptions.
|
|
@@ -100,7 +100,7 @@ circuitkit discover-smart --model gpt2 --algorithm eap-ig --task ioi --check-mem
|
|
|
100
100
|
Install CPU-only first, then swap in the GPU torch wheel:
|
|
101
101
|
```bash
|
|
102
102
|
pip install -e .
|
|
103
|
-
pip install torch==2.
|
|
103
|
+
pip install torch==2.13.0+cu126 -f https://download.pytorch.org/whl/cu126
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
## Next steps
|
|
@@ -112,9 +112,10 @@ A **task** defines:
|
|
|
112
112
|
|
|
113
113
|
### Built-in Tasks
|
|
114
114
|
|
|
115
|
-
CircuitKIT registers **
|
|
115
|
+
CircuitKIT registers **17 built-in tasks** (`ioi`, `sva`, `gender_bias`,
|
|
116
116
|
`capital_country`, `hypernymy`, `greater_than`, `double_io`, `boolq`, `glue`,
|
|
117
|
-
`mmlu`, `winogrande`, `winogrande_mc`, `truthfulqa`, `ifeval`, `wmdp`, `gsm8k
|
|
117
|
+
`mmlu`, `winogrande`, `winogrande_mc`, `truthfulqa`, `ifeval`, `wmdp`, `gsm8k`,
|
|
118
|
+
`multilingual_refusal`).
|
|
118
119
|
A few examples:
|
|
119
120
|
- **IOI (Indirect Object Identification)**: Identify the indirect object in "A and B went to C's house..."
|
|
120
121
|
- **SVA (Subject-Verb Agreement)**: Predict correct verb form in number agreement
|
|
@@ -137,7 +137,7 @@ If you still encounter OOM errors with all optimizations:
|
|
|
137
137
|
2. **Reduce IG steps to 3** (minimum for reasonable results)
|
|
138
138
|
3. **Use `samples_per_subject`** to cap examples per subject (MMLU/WMDP only)
|
|
139
139
|
4. **Use a smaller model** for algorithm prototyping (GPT-2, Pythia-70M)
|
|
140
|
-
5. **Use CPU** for very large models (much slower;
|
|
140
|
+
5. **Use CPU** for very large models (much slower; set `model: {device: cpu}` in the config, or `ck.load_model(..., device="cpu")`; without a device, `get_device()` picks CUDA > MPS > CPU)
|
|
141
141
|
|
|
142
142
|
## Best Practices
|
|
143
143
|
|
|
@@ -25,7 +25,7 @@ The cards below link every guide, including the deeper references (Selectors, Vi
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
What discovery needs, the
|
|
28
|
+
What discovery needs, the 17 built-in tasks, and bringing your own CSV, JSONL, or HuggingFace dataset.
|
|
29
29
|
|
|
30
30
|
[:octicons-arrow-right-24: Data overview](../user-guide/data.md)
|
|
31
31
|
|
|
@@ -65,7 +65,7 @@ The cards below link every guide, including the deeper references (Selectors, Vi
|
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
68
|
-
The
|
|
68
|
+
The 17 registered tasks, their metrics, and chat-template defaults.
|
|
69
69
|
|
|
70
70
|
[:octicons-arrow-right-24: Built-in tasks](../user-guide/tasks.md)
|
|
71
71
|
|
|
@@ -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,
|