auditkit 1.1.7__tar.gz → 1.1.9__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.
- auditkit-1.1.9/.github/CODEOWNERS +2 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/.github/workflows/patch-release.yml +2 -2
- auditkit-1.1.9/.github/workflows/tests.yml +49 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/CHANGELOG.md +25 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/CITATION.cff +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/PKG-INFO +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/GUIDE.md +4 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/scenarios.md +2 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/16_agentic_endpoints_live.ipynb +2 -8
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/cohere/README.md +1 -2
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/cohere/compare_models.ipynb +4 -14
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/cohere/metrics_generation.ipynb +4 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/cohere/run_lmeval.ipynb +4 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/cohere/sglang_auditkit.ipynb +4 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/cohere/tgi_endpoint.ipynb +3 -12
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/colab/01_cohere_and_hf_api_models.ipynb +4 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/colab/02_agentic_rag_real_agent.ipynb +4 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/colab/03_vllm_integration.ipynb +4 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/colab/04_cohere_hf_fixes_live.ipynb +13 -17
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/colab/05_real_world_agentic_rag.ipynb +4 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/colab/06_cohere_all_backends.ipynb +5 -8
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/colab/README.md +7 -7
- {auditkit-1.1.7 → auditkit-1.1.9}/pyproject.toml +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/__init__.py +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/api.py +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/lexsi_login.py +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metric.py +38 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/__init__.py +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/probe.py +3 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/runner.py +72 -12
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenario.py +2 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/gsm8k.py +5 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/FINDINGS.md +7 -8
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/README.md +3 -3
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/colab_model_matrix.ipynb +2 -2
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_resolved_issues.py +3 -3
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/README.md +2 -2
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/colab_cohere_models.ipynb +8 -19
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/colab_integrations.ipynb +5 -8
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/colab_sglang.ipynb +6 -9
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/colab_sglang_32b_north.ipynb +10 -11
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/colab_sglang_cohere_matrix.ipynb +11 -13
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/colab_vllm_32b.ipynb +12 -15
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/colab_vllm_cohere_matrix.ipynb +14 -18
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/README.md +1 -1
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_pr1_additions.py +1 -1
- auditkit-1.1.9/tests/test_gsm8k_numeric.py +51 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_redteam.py +30 -0
- auditkit-1.1.9/tests/test_redteam_invalid.py +66 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/.gitattributes +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/.github/workflows/check-release-version.yml +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/.gitignore +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/AGENTS.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/LICENSE.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/CNAME +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/HF_ENDPOINT.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/SGLANG.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/VLLM_KNOWN_ISSUES.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/about/glossary.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/about/platform-integration.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/agent_eval.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/agents_and_rag.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/annotators.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/api.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/architecture/data-model.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/architecture/system-design.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/auditkit-logo-black.png +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/auditkit-logo-dark.png +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/auditkit-logo-light.png +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/auditkit-logo-white.png +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/extra.css +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/extra.js +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/favicon.png +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/icon.png +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/icon.svg +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/assets/logo.svg +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/best_practices/scorers.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/cli.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/community/changelog.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/community/contributing.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/community/faq.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/community/roadmap.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/configuration.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/cookbook/llm_judge.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/cookbook/rag_evaluation.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/development.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/encoder_judge.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/encoder_judge_prebuilts.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/examples/custom_scorer.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/examples/experiments.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/examples/many_datasets.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/examples/model_comparison.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/examples/quickstart.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/experiments.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/getting_started.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/guard_models.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/index.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/integrations.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/known_issues.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/lexsi_integration.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/llm_judge_rendering.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/metrics.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/model_backends.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/rag_stress.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/reports.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/requirements.txt +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/docs/scorers_reference.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/01_full_evaluation_pipeline.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/02_generation_across_hf_families.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/03_custom_annotators.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/04_metrics_deep_dive.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/05_data_types.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/06_model_comparison.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/07_annotators_across_models.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/08_compare_result_deep_dive.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/09_guard_judge_implementation_check.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/10_guard_judge_legit_models.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/11_encoder_judge_prebuilts.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/12_performance_metrics_demo.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/13_sglang_compatibility.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/14_agent_and_rag_evals.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/15_agentic_rag_metrics_walkthrough.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/17_multi_route_references.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/agent_eval_offline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/01_application_pruned_llama_boolq.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/02_application_healthcare_pubmedqa.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/03_application_finance_10k_qa.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/04_application_ecommerce_review_triage.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/05_application_education_arc_tutor.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/06_application_enterprise_search_rag.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/07_application_bert_nli_judge.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/applications/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/auditkit.yaml +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/model_comparison_notebook.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/stress_tests/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/stress_tests/test_stress_gated_model.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/examples/stress_tests/test_stress_open_model_load.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/mkdocs.yml +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/scripts/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/scripts/release.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/__main__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/_bootstrap.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/_identity_guard.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/_text.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/adapter.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/importers.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/lexsi.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/outcome.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/reliability.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/report.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/runner.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/sidecar.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/agent_eval/types.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/annotator.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/assets/auditkit_logo.png +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/bfcl.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/cache.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/cli.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/comparison.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/compat.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/diff.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/errors.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/evaluator.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/experiment.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/hf_publish.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/lexsi_relay.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/lmeval_engine.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/loaders.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/logs.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/agent.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/code.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/embedding.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/encoder_judge.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/generation.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/guard.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/hallucination.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/judge.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/pairwise.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/perf.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/rag.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/rag_judge.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/rag_stress.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/rag_stress_ops.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/rag_stress_runner.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/retrieval.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/security.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/structured.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/metrics/toxicity.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/agent_endpoint.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/anthropic.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/api_gen.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/groq_gen.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/hf_gen.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/lexsi.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/litellm_gen.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/openai.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/openrouter_gen.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model/vllm_gen.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/model_compare.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/provenance.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/detector.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/detectors/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/detectors/builtin.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/probes/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/redteam/probes/builtin.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/registry.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/report.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/report_format.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/router.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/runner.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/runspec.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/sample.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/arc.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/hellaswag.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/humaneval.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/mmlu.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scenarios/truthfulqa.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/score.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scorers.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/scoring.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/trace.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/src/auditkit/types.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/.gitignore +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/catalog.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/colab_offline_suite.ipynb +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/conftest.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/make_metric_reports.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_agentic_pipeline_all_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_fingerprint_offline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_formats_offline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_live.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_live_rag.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_metrics_offline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_pipeline_offline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/agentic_suite/test_rag_offline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/conftest.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/chat_templates/aya_expanse.jinja +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/chat_templates/command_r7b_tool_use.jinja +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/chat_templates/tiny_aya_default.jinja +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/agenttune/dataset_train_grpo.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/agenttune/report_constructed.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/agenttune/trace_finder.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/agenttune/trace_hotpotqa.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/agenttune/trajectory_store_export.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/aligntune/AuditReport.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/aligntune/RegressionReport.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_default.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_ib_fastpath.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_nonfinite.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/circuitkit/faithfulness_report_unknown_sentinels.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/checkpoint_TextCleaner.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/data_sample.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/data_sample_pdf.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/manifest.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/manifest_pdf.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/rejected.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/rejected_pdf.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/sft_alpaca.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/curatorkit/sft_sharegpt.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/safetune/placeholder-model__base__placeholder_bench.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/safetune/placeholder-model__base__placeholder_bench_scored.jsonl +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/safetune/safety_audit_event__post_allow_long_redacted.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/safetune/safety_audit_event__post_keyword_classifier_block.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/safetune/safety_audit_event__pre_allow.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/lexsi_real/safetune/safety_audit_event__pre_tool_block.json +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/sglang_0520/commandr_excerpt.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/sglang_0520/transformers_backend_excerpt.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/fixtures/sglang_0520/unified_radix_cache_excerpt.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/conftest.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/test_agenttune.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/test_cohere.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/test_hf.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/test_live.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/integrations_suite/test_sglang.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/conftest.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/serve_model.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/test_issue43_specs.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/test_issue44_user_flows.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/test_issue45_bfcl.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/test_issue45_routes.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/test_live.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/issues_suite/test_vllm_cohere_templates.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/nonmetric_suite/README.md +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/nonmetric_suite/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/nonmetric_suite/conftest.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/nonmetric_suite/test_agent_eval_and_loaders.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/nonmetric_suite/test_mrm_evidence.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/nonmetric_suite/test_redteam_machinery.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/__init__.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/conftest.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_edge_agent_and_rag_judges.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_edge_mrm.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_edge_rag_stress.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_edge_redteam_judges.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_edge_uncertainty.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_pr2_redteam.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_pr3_mrm.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/pipeline_suite/test_pr4_uncertainty.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_adapter.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_adapter_params.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_endpoint.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_cli.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_disagreement.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_eventlog.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_harness.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_importers.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_outcome.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_reliability.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_runner.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_secrets.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_sidecar.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_eval_types.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agent_reference_free.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agenttune_fix_plan.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_agenttune_integration.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_annotator.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_api.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_api_backend.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_api_images.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_api_tool_calls.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_api_unverified_fields.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_apostrophe_fold.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_benchmark.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_bootstrap_ties.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_callable_model_cache.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_chat_messages.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_chat_template_kwargs_everywhere.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_cli.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_cli_yaml_model.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_code_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_cohere_aya.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_cohere_hf_fix_plan.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_cohere_tool_calls.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_compare.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_comparison.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_compat.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_core_engine.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_custom_judge_pipeline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_diff.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_embedding_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_encoder_judge.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_env_compat_fix_plan.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_errors.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_evaluate_many.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_eventlog_action_shapes.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_execute_concurrency.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_experiment.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_failed_as_zero.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_fingerprint_stability.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_function_scorer_identity.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_generation_kwargs.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_generation_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_guard.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hallucination_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hf_device_map.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hf_dtype_fallback.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hf_gen_import_error.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hf_gen_logits_sanitizer.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hf_gen_loglikelihood_float32.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hf_interop.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_hf_wire_format.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_integration.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_judge.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_judge_flow.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_judge_indic_choices.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_judge_number_parse.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_judge_option_labels.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_lexsi_compat.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_lexsi_relay.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_llm_judge.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_lmeval_engine.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_lmeval_real_pipeline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_load_dataset.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_loaders.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_loaders_agent.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_mcq_gen_params.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_metric.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_metric_properties.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_metrics_via_pipeline.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_minimize_direction_correct.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_missing_is_not_zero.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_model.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_model_backends.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_model_spec_label.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_multipath_references.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_paired_bootstrap.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_pairwise_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_pipeline_live_hf.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_practical.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_provenance.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_rag_judge.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_rag_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_rag_reference_free.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_rag_stress.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_rag_stress_ops.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_rag_stress_runner.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_reference_fingerprint.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_registry.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_release.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_retrieval_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_review27_followups.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_route_distribution.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_router.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_runner.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_sample.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_scenario_dataset_ids.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_scenarios.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_score.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_scorer_context_typeerror.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_scorer_order_cache.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_security_perf.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_structured_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_summary_failed_samples.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_template_kwargs_f1_fix_plan.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_token_usage_and_cost.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_toxicity_metrics.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_trace.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_track3_agenttune.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_types.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_unknown_architecture_message.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_unmeasured_not_zero.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_unscored_results.py +0 -0
- {auditkit-1.1.7 → auditkit-1.1.9}/tests/test_vllm_offline_engine.py +0 -0
|
@@ -21,8 +21,8 @@ env:
|
|
|
21
21
|
jobs:
|
|
22
22
|
plan:
|
|
23
23
|
name: Inspect release state
|
|
24
|
-
#
|
|
25
|
-
#
|
|
24
|
+
# Releases come only from Lexsi-Labs/AuditKIT: a fork or copy that inherits this
|
|
25
|
+
# workflow never tags, pushes to main, or uploads to PyPI.
|
|
26
26
|
if: github.repository == 'Lexsi-Labs/AuditKIT' && (github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true)
|
|
27
27
|
runs-on: ubuntu-latest
|
|
28
28
|
outputs:
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: tests-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
pytest:
|
|
18
|
+
name: pytest (Python ${{ matrix.python }})
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
timeout-minutes: 30
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
python: ["3.10", "3.12"]
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: ${{ matrix.python }}
|
|
31
|
+
cache: pip
|
|
32
|
+
cache-dependency-path: pyproject.toml
|
|
33
|
+
|
|
34
|
+
# Some tests load small Hugging Face models; cache them so shared runner IPs hit the rate limit less.
|
|
35
|
+
- uses: actions/cache@v4
|
|
36
|
+
with:
|
|
37
|
+
path: ~/.cache/huggingface
|
|
38
|
+
key: hf-hub-auditkit-v1
|
|
39
|
+
|
|
40
|
+
# The CPU torch wheel keeps the install small; the transformers extra is what the metric and backend tests need.
|
|
41
|
+
- name: Install
|
|
42
|
+
run: |
|
|
43
|
+
python -m pip install --upgrade pip
|
|
44
|
+
python -m pip install --extra-index-url https://download.pytorch.org/whl/cpu -e ".[dev,transformers]" pytest-rerunfailures
|
|
45
|
+
|
|
46
|
+
- name: Run tests
|
|
47
|
+
env:
|
|
48
|
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
49
|
+
run: python -m pytest --reruns 2 --reruns-delay 10 --only-rerun "OSError" --only-rerun "ConnectionError"
|
|
@@ -110,6 +110,31 @@ All notable changes to AuditKIT. The format follows [Keep a Changelog](https://k
|
|
|
110
110
|
|
|
111
111
|
### Fixed
|
|
112
112
|
|
|
113
|
+
- The Colab notebooks under `examples/` and `tests/*_suite` install AuditKIT from PyPI (or clone this repository
|
|
114
|
+
at `main`) instead of cloning a repository that is not public with a token, and comments, docstrings and READMEs
|
|
115
|
+
no longer point at pull requests and branches outside this repository.
|
|
116
|
+
- **Results change for red-team runs with empty or reasoning replies.** An empty reply, a reply that is only
|
|
117
|
+
reasoning (`<think>…</think>`, or reasoning cut at the token limit), or a generation error passed every
|
|
118
|
+
red-team check, so a broken endpoint scored 100% (5/5 on the `refusal` probe). Such a reply is now
|
|
119
|
+
`ProbeResult.invalid` (reason in `metadata["invalid_reason"]`), counted in `RedTeamResult.invalid_probes`
|
|
120
|
+
and the summary, and left out of `pass_rate`, which is passed over judged checks and `None` when no reply
|
|
121
|
+
could be judged. Detectors read the answer with the `<think>` block removed, so a refusal or a harmful plan
|
|
122
|
+
written only in the reasoning no longer decides the result. Hub rows carry `invalid`.
|
|
123
|
+
- The built-in `gsm8k` scenario scored almost every answer 0: its target was the whole worked
|
|
124
|
+
solution and the default scorer was exact match, so "The answer is 72." scored 0. The target is now
|
|
125
|
+
the final number (the worked solution stays in `Sample.metadata["solution"]`), and `gsm8k` scores with
|
|
126
|
+
the new `numeric_match` metric (the number after `####`, else the last number in the reply; commas and
|
|
127
|
+
`$` ignored; `metadata["no_number"]` marks replies with no number). Scenarios can now name their own
|
|
128
|
+
default scorers (`Scenario.default_scorers`). **gsm8k results change**: earlier native gsm8k scores
|
|
129
|
+
are not comparable.
|
|
130
|
+
- **Results change for multi-probe red-team runs.** When no detectors are given, each probe is checked only with
|
|
131
|
+
its own default detectors. The runner used to gather the defaults of every probe and apply all of them to every
|
|
132
|
+
probe, so a model that correctly refused a jailbreak prompt was failed by `RefusalDetector` when the `refusal`
|
|
133
|
+
probe also ran (39 checks, 13 failed, against 21 checks and none failed for the two probes run alone). Detectors
|
|
134
|
+
passed explicitly still apply to every probe. `detectors_used` keeps a stable order; it came from a `set`.
|
|
135
|
+
- `RedTeamRunner.run` raises a `ValueError` when a probe has no prompts, naming the probe and the built-in probe
|
|
136
|
+
names. A bare `Probe("name")` sent nothing to the model and the summary still reported a 100% pass rate. The
|
|
137
|
+
example in the `auditkit.redteam` docstring used such a probe and now uses built-in ones.
|
|
113
138
|
- `evaluate()` and `generate()` take `cache=False` (native engine), which runs without the disk cache.
|
|
114
139
|
`CallableModel` warns when a function model reads state the run fingerprint cannot see, such as a model
|
|
115
140
|
object whose weights are edited in place, because such a model is otherwise served an earlier run's result.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: auditkit
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.9
|
|
4
4
|
Summary: Evaluate any model on any dataset and any task — standalone, no platform required
|
|
5
5
|
Project-URL: Homepage, https://auditkit.lexsi.ai/
|
|
6
6
|
Project-URL: Documentation, https://auditkit.lexsi.ai/
|
|
@@ -861,6 +861,10 @@ from auditkit.redteam import RedTeamRunner
|
|
|
861
861
|
print(RedTeamRunner(model="openai:gpt-4o-mini").run(probes=["jailbreak"]).summary())
|
|
862
862
|
```
|
|
863
863
|
|
|
864
|
+
Detectors read the answer with any `<think>…</think>` reasoning removed. A reply that cannot be judged
|
|
865
|
+
(empty, reasoning only, or a generation error) is marked `invalid`: it is neither passed nor failed,
|
|
866
|
+
`invalid_probes` counts it, and `pass_rate` is passed over judged checks (`None` when none could be judged).
|
|
867
|
+
|
|
864
868
|
It's deliberately small: fixed probe lists and keyword/pattern detectors, not an attack
|
|
865
869
|
generator. For broad adversarial testing, Garak, Promptfoo or DeepTeam go much further.
|
|
866
870
|
|
|
@@ -15,6 +15,8 @@ Requires `pip install auditkit[interop]` (the `datasets` package).
|
|
|
15
15
|
Each loads its namespaced Hub dataset (`cais/mmlu`, `openai/gsm8k`, `allenai/ai2_arc`, `Rowan/hellaswag`,
|
|
16
16
|
`truthfulqa/truthful_qa`, `openai/openai_humaneval`). HumanEval's target is the reference solution, and
|
|
17
17
|
AuditKIT has no code-execution metric, so it can't score pass@k; use `ak.run_lmeval("humaneval", ...)` for that.
|
|
18
|
+
GSM8K's target is the final number, and it is scored with `numeric_match` (the number after `####`,
|
|
19
|
+
else the last number in the reply) unless you pass `scorers=`.
|
|
18
20
|
|
|
19
21
|
AuditKIT doesn't re-export these classes at the top-level `auditkit` package.
|
|
20
22
|
Import them from their own module, or resolve by name via `SCENARIOS`.
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"\n",
|
|
23
23
|
"**Optional secrets:**\n",
|
|
24
24
|
"- `HF_TOKEN`, from an account that has accepted the licences for `CohereLabs/tiny-aya-global` / `CohereLabs/c4ai-command-r7b-12-2024` (§3);\n",
|
|
25
|
-
"- `CO_API_KEY` (§4)
|
|
26
|
-
"- `GITHUB_TOKEN`, to install AuditKIT from the private repo.\n",
|
|
25
|
+
"- `CO_API_KEY` (§4).\n",
|
|
27
26
|
"\n",
|
|
28
27
|
"Sections whose requirements are missing are skipped with a note."
|
|
29
28
|
]
|
|
@@ -44,7 +43,6 @@
|
|
|
44
43
|
"outputs": [],
|
|
45
44
|
"source": [
|
|
46
45
|
"# ---- settings ----\n",
|
|
47
|
-
"BRANCH = \"test/agentic-rag-full-suite\" # an AuditKIT branch with #10 (hf: native tools, Cohere parsing)\n",
|
|
48
46
|
"MODEL = \"Qwen/Qwen3-1.7B\" # any hf: chat model whose template renders tools\n",
|
|
49
47
|
"TINY_AYA = \"CohereLabs/tiny-aya-global\" # gated\n",
|
|
50
48
|
"COMMAND_R7B = \"CohereLabs/c4ai-command-r7b-12-2024\" # gated, ~16 GB\n",
|
|
@@ -73,16 +71,12 @@
|
|
|
73
71
|
" import auditkit # already importable (local checkout / installed)\n",
|
|
74
72
|
"except ImportError:\n",
|
|
75
73
|
" from google.colab import userdata\n",
|
|
76
|
-
" gh = userdata.get(\"GITHUB_TOKEN\")\n",
|
|
77
74
|
" for k in (\"HF_TOKEN\", \"CO_API_KEY\"):\n",
|
|
78
75
|
" try:\n",
|
|
79
76
|
" os.environ[k] = userdata.get(k)\n",
|
|
80
77
|
" except Exception:\n",
|
|
81
78
|
" pass\n",
|
|
82
|
-
" subprocess.run([\"
|
|
83
|
-
" f\"https://{gh}@github.com/aryapratinavseth/AuditKIT-Internal.git\"], check=True)\n",
|
|
84
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\", \"AuditKIT-Internal[transformers,requests]\"], check=True)\n",
|
|
85
|
-
" sys.path.insert(0, \"AuditKIT-Internal/src\")\n",
|
|
79
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[transformers,requests]\"], check=True)\n",
|
|
86
80
|
"import auditkit as ak, torch\n",
|
|
87
81
|
"from auditkit.runspec import RunConfig\n",
|
|
88
82
|
"DEVICE = \"cuda\" if torch.cuda.is_available() else (\"mps\" if torch.backends.mps.is_available() else \"cpu\")\n",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cohere notebooks
|
|
2
2
|
|
|
3
|
-
These notebooks evaluate Cohere models (Tiny Aya, Aya Expanse, Aya Vision, North Micro Vision) with AuditKIT. Each is self-contained: on Colab, its first code cell installs AuditKIT from
|
|
3
|
+
These notebooks evaluate Cohere models (Tiny Aya, Aya Expanse, Aya Vision, North Micro Vision) with AuditKIT. Each is self-contained: on Colab, its first code cell installs AuditKIT from PyPI with the extras that notebook needs.
|
|
4
4
|
|
|
5
5
|
| Notebook | What it does | Models | Colab GPU |
|
|
6
6
|
|---|---|---|---|
|
|
@@ -11,7 +11,6 @@ These notebooks evaluate Cohere models (Tiny Aya, Aya Expanse, Aya Vision, North
|
|
|
11
11
|
| `tgi_endpoint.ipynb` | Evaluates a model served by Hugging Face **TGI** through `api:` (AuditKIT never imports TGI). Needs a running TGI server; ships without outputs. | any TGI-served model | the TGI server's |
|
|
12
12
|
|
|
13
13
|
**Colab secrets:**
|
|
14
|
-
- `GITHUB_TOKEN`, to clone the private repo;
|
|
15
14
|
- `HF_TOKEN`, from an account that has accepted the licences for Tiny Aya, Aya Expanse and Aya Vision (North Micro Vision is open).
|
|
16
15
|
|
|
17
16
|
**Quick smoke test with other models:** the settings cells read `NB_*` environment variables (`NB_MODEL`, `NB_RUN1_A`, …), so the same notebook can run with an open model.
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"\n",
|
|
25
25
|
"**Access:**\n",
|
|
26
26
|
"- Tiny Aya, Aya Expanse and Aya Vision are **gated**: accept each licence on the Hub, then add an `HF_TOKEN` Colab secret.\n",
|
|
27
|
-
"- North Micro Vision is open
|
|
28
|
-
"- Add a `GITHUB_TOKEN` secret to install AuditKIT from the private repo."
|
|
27
|
+
"- North Micro Vision is open."
|
|
29
28
|
]
|
|
30
29
|
},
|
|
31
30
|
{
|
|
@@ -55,27 +54,18 @@
|
|
|
55
54
|
"outputs": [],
|
|
56
55
|
"source": [
|
|
57
56
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
58
|
-
"# Colab:
|
|
57
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
59
58
|
"# Local: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
60
59
|
"import os, sys, subprocess\n",
|
|
61
|
-
"REPO_BRANCH = \"feat/rag-agent-evals\" # #1's branch: #9, #10 and every #15 / #27 fix are merged here\n",
|
|
62
60
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
63
61
|
"if IN_COLAB:\n",
|
|
64
62
|
" from google.colab import userdata\n",
|
|
65
|
-
" for key in (\"
|
|
63
|
+
" for key in (\"HF_TOKEN\",):\n",
|
|
66
64
|
" try:\n",
|
|
67
65
|
" os.environ[key] = userdata.get(key)\n",
|
|
68
66
|
" except Exception:\n",
|
|
69
67
|
" pass\n",
|
|
70
|
-
"
|
|
71
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
72
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", REPO_BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
73
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
74
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, REPO_BRANCH], check=True)\n",
|
|
75
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", REPO_BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
76
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
77
|
-
" \"/content/AuditKIT-Internal[transformers,vision]\"], check=True)\n",
|
|
78
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
68
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[transformers,vision]\"], check=True)\n",
|
|
79
69
|
"\n",
|
|
80
70
|
"if os.environ.get(\"HF_TOKEN\"):\n",
|
|
81
71
|
" from huggingface_hub import login\n",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"| 4 | Math word problems (GSM8K slice) | answer extraction plus a custom last-number metric |\n",
|
|
18
18
|
"| 5 | Performance | latency and throughput, recorded on every run |\n",
|
|
19
19
|
"\n",
|
|
20
|
-
"**Runtime:** a Colab **T4 is enough**: Tiny Aya is ~6.7 GB in fp16. **Access:** gated, so accept the licence and add the `HF_TOKEN` secret
|
|
20
|
+
"**Runtime:** a Colab **T4 is enough**: Tiny Aya is ~6.7 GB in fp16. **Access:** gated, so accept the licence and add the `HF_TOKEN` secret."
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
{
|
|
@@ -43,27 +43,18 @@
|
|
|
43
43
|
"outputs": [],
|
|
44
44
|
"source": [
|
|
45
45
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
46
|
-
"# Colab:
|
|
46
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
47
47
|
"# Local: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
48
48
|
"import os, sys, subprocess\n",
|
|
49
|
-
"REPO_BRANCH = \"feat/rag-agent-evals\" # #1's branch: #9, #10 and every #15 / #27 fix are merged here\n",
|
|
50
49
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
51
50
|
"if IN_COLAB:\n",
|
|
52
51
|
" from google.colab import userdata\n",
|
|
53
|
-
" for key in (\"
|
|
52
|
+
" for key in (\"HF_TOKEN\",):\n",
|
|
54
53
|
" try:\n",
|
|
55
54
|
" os.environ[key] = userdata.get(key)\n",
|
|
56
55
|
" except Exception:\n",
|
|
57
56
|
" pass\n",
|
|
58
|
-
"
|
|
59
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
60
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", REPO_BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
61
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
62
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, REPO_BRANCH], check=True)\n",
|
|
63
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", REPO_BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
64
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
65
|
-
" \"/content/AuditKIT-Internal[transformers,vision]\"], check=True)\n",
|
|
66
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
57
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[transformers,vision]\"], check=True)\n",
|
|
67
58
|
"\n",
|
|
68
59
|
"if os.environ.get(\"HF_TOKEN\"):\n",
|
|
69
60
|
" from huggingface_hub import login\n",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"\n",
|
|
18
18
|
"**Runtime:** a Colab **L4 or A100**. vLLM's current wheels target Ampere or newer; a T4 may not be supported by the installed vLLM build. vLLM needs Linux + CUDA, so it doesn't run on macOS.\n",
|
|
19
19
|
"\n",
|
|
20
|
-
"**Access:** Tiny Aya is gated. Accept the licence and add the `HF_TOKEN` secret
|
|
20
|
+
"**Access:** Tiny Aya is gated. Accept the licence and add the `HF_TOKEN` secret."
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
{
|
|
@@ -44,27 +44,19 @@
|
|
|
44
44
|
"outputs": [],
|
|
45
45
|
"source": [
|
|
46
46
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
47
|
-
"# Colab:
|
|
47
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
48
48
|
"# Local: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
49
49
|
"# Installing [vllm] brings vLLM >= 0.30 and the torch/transformers 5 versions it pins; do it before importing torch.\n",
|
|
50
50
|
"import os, sys, subprocess\n",
|
|
51
|
-
"REPO_BRANCH = \"feat/rag-agent-evals\" # #1's branch: #9, #10 and every #15 / #27 fix are merged here\n",
|
|
52
51
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
53
52
|
"if IN_COLAB:\n",
|
|
54
53
|
" from google.colab import userdata\n",
|
|
55
|
-
" for key in (\"
|
|
54
|
+
" for key in (\"HF_TOKEN\",):\n",
|
|
56
55
|
" try:\n",
|
|
57
56
|
" os.environ[key] = userdata.get(key)\n",
|
|
58
57
|
" except Exception:\n",
|
|
59
58
|
" pass\n",
|
|
60
|
-
"
|
|
61
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
62
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", REPO_BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
63
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
64
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, REPO_BRANCH], check=True)\n",
|
|
65
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", REPO_BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
66
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
67
|
-
" \"/content/AuditKIT-Internal[vllm,lmeval]\"], check=True)\n",
|
|
59
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[vllm,lmeval]\"], check=True)\n",
|
|
68
60
|
" # vLLM >= 0.30 upgrades torch to a CUDA 13 build. Colab's preinstalled torchaudio (CUDA 12.8) is not a vLLM\n",
|
|
69
61
|
" # dependency, so pip leaves it behind, and transformers imports it if present -> \"PyTorch and TorchAudio were\n",
|
|
70
62
|
" # compiled with different CUDA versions\". Nothing here uses audio, so remove it before anything imports torch.\n",
|
|
@@ -72,7 +64,6 @@
|
|
|
72
64
|
" print(subprocess.run([sys.executable, \"-c\", \"import torch, torchvision; print('torch', torch.__version__, \"\n",
|
|
73
65
|
" \"'cuda', torch.version.cuda, '| torchvision', torchvision.__version__)\"],\n",
|
|
74
66
|
" capture_output=True, text=True).stdout)\n",
|
|
75
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
76
67
|
"\n",
|
|
77
68
|
"if os.environ.get(\"HF_TOKEN\"):\n",
|
|
78
69
|
" from huggingface_hub import login\n",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"\n",
|
|
25
25
|
"**Runtime:** a Colab **L4 or A100** (a T4 works with `DTYPE = \"half\"`). If flashinfer can't JIT-build its kernels, the launch cell retries once with the Triton attention backend. SGLang is Linux-only.\n",
|
|
26
26
|
"\n",
|
|
27
|
-
"**Access:** Tiny Aya is gated, so add the `HF_TOKEN` secret
|
|
27
|
+
"**Access:** Tiny Aya is gated, so add the `HF_TOKEN` secret. To use an open model instead, set `MODEL = \"Qwen/Qwen2.5-1.5B-Instruct\"`."
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
{
|
|
@@ -55,28 +55,19 @@
|
|
|
55
55
|
"outputs": [],
|
|
56
56
|
"source": [
|
|
57
57
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
58
|
-
"# Colab:
|
|
58
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
59
59
|
"# Local: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
60
60
|
"# AuditKIT itself only needs [requests] here; SGLang is installed into its own venv below.\n",
|
|
61
61
|
"import os, sys, subprocess\n",
|
|
62
|
-
"REPO_BRANCH = \"feat/rag-agent-evals\" # #1's branch: #9, #10 and every #15 / #27 fix are merged here\n",
|
|
63
62
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
64
63
|
"if IN_COLAB:\n",
|
|
65
64
|
" from google.colab import userdata\n",
|
|
66
|
-
" for key in (\"
|
|
65
|
+
" for key in (\"HF_TOKEN\",):\n",
|
|
67
66
|
" try:\n",
|
|
68
67
|
" os.environ[key] = userdata.get(key)\n",
|
|
69
68
|
" except Exception:\n",
|
|
70
69
|
" pass\n",
|
|
71
|
-
"
|
|
72
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
73
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", REPO_BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
74
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
75
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, REPO_BRANCH], check=True)\n",
|
|
76
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", REPO_BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
77
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
78
|
-
" \"/content/AuditKIT-Internal[requests]\"], check=True)\n",
|
|
79
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
70
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[requests]\"], check=True)\n",
|
|
80
71
|
"\n",
|
|
81
72
|
"if os.environ.get(\"HF_TOKEN\"):\n",
|
|
82
73
|
" from huggingface_hub import login\n",
|
|
@@ -63,28 +63,19 @@
|
|
|
63
63
|
"outputs": [],
|
|
64
64
|
"source": [
|
|
65
65
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
66
|
-
"# Colab:
|
|
66
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
67
67
|
"# Local: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
68
68
|
"import os, sys, subprocess\n",
|
|
69
69
|
"\n",
|
|
70
|
-
"REPO_BRANCH = \"feat/multipath-tool-references\"\n",
|
|
71
70
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
72
71
|
"if IN_COLAB:\n",
|
|
73
72
|
" from google.colab import userdata\n",
|
|
74
|
-
" for key in (\"
|
|
73
|
+
" for key in (\"HF_TOKEN\",):\n",
|
|
75
74
|
" try:\n",
|
|
76
75
|
" os.environ[key] = userdata.get(key)\n",
|
|
77
76
|
" except Exception:\n",
|
|
78
77
|
" pass\n",
|
|
79
|
-
"
|
|
80
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
81
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", REPO_BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
82
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
83
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, REPO_BRANCH], check=True)\n",
|
|
84
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", REPO_BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
85
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
86
|
-
" \"/content/AuditKIT-Internal[requests]\"], check=True)\n",
|
|
87
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
78
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[requests]\"], check=True)\n",
|
|
88
79
|
"\n",
|
|
89
80
|
"# ---- server coordinates ----\n",
|
|
90
81
|
"# MODEL is what --model-id was given on the server. It is only used for run labels here:\n",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"\n",
|
|
25
25
|
"**Runtime:** CPU is enough; nothing runs locally.\n",
|
|
26
26
|
"\n",
|
|
27
|
-
"**Secrets (Colab → 🔑):** `
|
|
27
|
+
"**Secrets (Colab → 🔑):** `CO_API_KEY` and/or `HF_TOKEN`. A provider without its key is skipped. A Cohere **trial** key is rate-limited (about 20 chat calls a minute), so the runs use one request at a time and retry on 429."
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
{
|
|
@@ -51,27 +51,18 @@
|
|
|
51
51
|
"outputs": [],
|
|
52
52
|
"source": [
|
|
53
53
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
54
|
-
"# Colab:
|
|
54
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
55
55
|
"# Locally: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
56
56
|
"import os, subprocess, sys\n",
|
|
57
|
-
"BRANCH = \"feat/rag-agent-evals\"\n",
|
|
58
57
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
59
58
|
"if IN_COLAB:\n",
|
|
60
59
|
" from google.colab import userdata\n",
|
|
61
|
-
" for key in ('
|
|
60
|
+
" for key in ('HF_TOKEN', 'CO_API_KEY'):\n",
|
|
62
61
|
" try:\n",
|
|
63
62
|
" os.environ[key] = userdata.get(key)\n",
|
|
64
63
|
" except Exception:\n",
|
|
65
64
|
" pass # secret not set / not granted to this notebook\n",
|
|
66
|
-
"
|
|
67
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
68
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
69
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
70
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, BRANCH], check=True)\n",
|
|
71
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
72
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
73
|
-
" \"/content/AuditKIT-Internal[requests]\"], check=True)\n",
|
|
74
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
65
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[requests]\"], check=True)\n",
|
|
75
66
|
"import auditkit as ak\n",
|
|
76
67
|
"print(\"auditkit\", ak.__version__, \"| secrets:\", {k: bool(os.environ.get(k)) for k in ('HF_TOKEN', 'CO_API_KEY')})"
|
|
77
68
|
]
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"\n",
|
|
30
30
|
"The judge in §3 uses `JUDGE_BACKEND`, which defaults to the same backend. A bigger judge gives steadier verdicts.\n",
|
|
31
31
|
"\n",
|
|
32
|
-
"**Secrets:** `
|
|
32
|
+
"**Secrets:** `CO_API_KEY` / `HF_TOKEN` for the backend you pick. A Cohere trial key runs this at one request at a time, and §3 makes about 100 judge calls."
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -60,27 +60,18 @@
|
|
|
60
60
|
"outputs": [],
|
|
61
61
|
"source": [
|
|
62
62
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
63
|
-
"# Colab:
|
|
63
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
64
64
|
"# Locally: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
65
65
|
"import os, subprocess, sys\n",
|
|
66
|
-
"BRANCH = \"feat/rag-agent-evals\"\n",
|
|
67
66
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
68
67
|
"if IN_COLAB:\n",
|
|
69
68
|
" from google.colab import userdata\n",
|
|
70
|
-
" for key in ('
|
|
69
|
+
" for key in ('HF_TOKEN', 'CO_API_KEY'):\n",
|
|
71
70
|
" try:\n",
|
|
72
71
|
" os.environ[key] = userdata.get(key)\n",
|
|
73
72
|
" except Exception:\n",
|
|
74
73
|
" pass # secret not set / not granted to this notebook\n",
|
|
75
|
-
"
|
|
76
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
77
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
78
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
79
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, BRANCH], check=True)\n",
|
|
80
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
81
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
82
|
-
" \"/content/AuditKIT-Internal[requests,transformers]\"], check=True)\n",
|
|
83
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
74
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[requests,transformers]\"], check=True)\n",
|
|
84
75
|
"import auditkit as ak\n",
|
|
85
76
|
"print(\"auditkit\", ak.__version__, \"| secrets:\", {k: bool(os.environ.get(k)) for k in ('HF_TOKEN', 'CO_API_KEY')})"
|
|
86
77
|
]
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"\n",
|
|
22
22
|
"**Runtime:** a Colab **L4 or A100** GPU. vLLM's current wheels need Ampere or newer, and CUDA 13 needs an NVIDIA driver ≥ 580. Linux only.\n",
|
|
23
23
|
"\n",
|
|
24
|
-
"**Secrets:**
|
|
24
|
+
"**Secrets:** none required. `HF_TOKEN` is optional; Qwen3 isn't gated.\n",
|
|
25
25
|
"\n",
|
|
26
26
|
"If the install cell says torch was already imported, restart the session and run from the top. vLLM replaces torch, and a running kernel keeps the old one."
|
|
27
27
|
]
|
|
@@ -49,33 +49,24 @@
|
|
|
49
49
|
"outputs": [],
|
|
50
50
|
"source": [
|
|
51
51
|
"# ---- install (Colab) / reuse (local checkout) ----\n",
|
|
52
|
-
"# Colab:
|
|
52
|
+
"# Colab: installs AuditKIT from PyPI with the extras this notebook needs.\n",
|
|
53
53
|
"# Locally: uses the auditkit already importable (e.g. the repo's .venv kernel).\n",
|
|
54
54
|
"import os, subprocess, sys\n",
|
|
55
|
-
"BRANCH = \"feat/rag-agent-evals\"\n",
|
|
56
55
|
"IN_COLAB = \"google.colab\" in sys.modules\n",
|
|
57
56
|
"if IN_COLAB:\n",
|
|
58
57
|
" from google.colab import userdata\n",
|
|
59
|
-
" for key in ('
|
|
58
|
+
" for key in ('HF_TOKEN',):\n",
|
|
60
59
|
" try:\n",
|
|
61
60
|
" os.environ[key] = userdata.get(key)\n",
|
|
62
61
|
" except Exception:\n",
|
|
63
62
|
" pass # secret not set / not granted to this notebook\n",
|
|
64
|
-
"
|
|
65
|
-
" if not os.path.isdir(\"/content/AuditKIT-Internal\"):\n",
|
|
66
|
-
" subprocess.run([\"git\", \"clone\", \"-q\", \"--branch\", BRANCH, repo_url, \"/content/AuditKIT-Internal\"], check=True)\n",
|
|
67
|
-
" else: # a reused runtime: move the existing clone to the branch head, never run stale code\n",
|
|
68
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"fetch\", \"-q\", repo_url, BRANCH], check=True)\n",
|
|
69
|
-
" subprocess.run([\"git\", \"-C\", \"/content/AuditKIT-Internal\", \"checkout\", \"-q\", \"-B\", BRANCH, \"FETCH_HEAD\"], check=True)\n",
|
|
70
|
-
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"-e\",\n",
|
|
71
|
-
" \"/content/AuditKIT-Internal[vllm,lmeval,requests]\"], check=True)\n",
|
|
63
|
+
" subprocess.run([sys.executable, \"-m\", \"pip\", \"-q\", \"install\", \"auditkit[vllm,lmeval,requests]\"], check=True)\n",
|
|
72
64
|
" # vLLM >= 0.30 installs a CUDA 13 torch. Colab's preinstalled torchaudio (CUDA 12.8) isn't a vLLM dependency, so pip\n",
|
|
73
65
|
" # leaves it, and transformers imports it if present -> \"PyTorch and TorchAudio were compiled with different CUDA\n",
|
|
74
66
|
" # versions\". Nothing here needs audio, so remove it before anything imports torch.\n",
|
|
75
67
|
" subprocess.run([sys.executable, \"-m\", \"pip\", \"uninstall\", \"-y\", \"-q\", \"torchaudio\"], check=False)\n",
|
|
76
68
|
" if \"torch\" in sys.modules:\n",
|
|
77
69
|
" raise SystemExit(\"torch was imported before this install: Runtime -> Restart session, then run from the top.\")\n",
|
|
78
|
-
" sys.path.insert(0, \"/content/AuditKIT-Internal/src\")\n",
|
|
79
70
|
"import auditkit as ak\n",
|
|
80
71
|
"print(\"auditkit\", ak.__version__, \"| secrets:\", {k: bool(os.environ.get(k)) for k in ('HF_TOKEN',)})"
|
|
81
72
|
]
|