torch-deepaudioembedding 0.1.0__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.
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/SKILL.md +323 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/README.md +4 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/architecture-and-embeddings.md +13 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/checkpoint-discovery.md +21 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/environment-resolution.md +29 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/evidence-policy.md +11 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/failure-classification.md +14 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/integration-planning.md +12 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/lifecycle-and-decision-gates.md +11 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/model-card-authoring.md +8 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/repository-analysis.md +16 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/runtime-verification.md +11 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/source-strategy.md +14 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/synthetic-evaluation.md +9 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/workflow-overview.md +15 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/README.md +4 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/common.py +55 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/generate_environment_candidates.py +39 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/inspect_checkpoints.py +25 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/inspect_dependencies.py +25 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/inspect_model_candidates.py +25 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/inspect_output_candidates.py +25 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/inspect_python_project.py +25 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/inspect_repository.py +25 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/render_analysis_report.py +49 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/validate_analysis_report.py +39 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/validate_skill_artifacts.py +570 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/README.md +7 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/agent-request.md +27 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/agent-response.md +24 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/decision-request.md +15 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/environment-resolution-report.json +18 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/integration-plan.md +21 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/model-card-draft.json +289 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/technical-analysis-report.json +126 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/technical-analysis-report.md +73 -0
- torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/templates/verification-plan.md +19 -0
- torch_deepaudioembedding-0.1.0/.codecov.yml +17 -0
- torch_deepaudioembedding-0.1.0/.github/workflows/ci.yml +124 -0
- torch_deepaudioembedding-0.1.0/.github/workflows/publish.yml +116 -0
- torch_deepaudioembedding-0.1.0/.github/workflows/test-publish.yml +75 -0
- torch_deepaudioembedding-0.1.0/.gitignore +24 -0
- torch_deepaudioembedding-0.1.0/.python-version +1 -0
- torch_deepaudioembedding-0.1.0/.readthedocs.yaml +18 -0
- torch_deepaudioembedding-0.1.0/AGENTS.md +14 -0
- torch_deepaudioembedding-0.1.0/CHANGELOG.md +58 -0
- torch_deepaudioembedding-0.1.0/CITATION.cff +41 -0
- torch_deepaudioembedding-0.1.0/CLAUDE.md +15 -0
- torch_deepaudioembedding-0.1.0/CONTRIBUTING.md +97 -0
- torch_deepaudioembedding-0.1.0/LICENSE +201 -0
- torch_deepaudioembedding-0.1.0/NOTICE +2 -0
- torch_deepaudioembedding-0.1.0/PKG-INFO +332 -0
- torch_deepaudioembedding-0.1.0/README.md +297 -0
- torch_deepaudioembedding-0.1.0/docs/_static/custom.css +24 -0
- torch_deepaudioembedding-0.1.0/docs/api/capabilities.rst +21 -0
- torch_deepaudioembedding-0.1.0/docs/api/checkpoints.rst +76 -0
- torch_deepaudioembedding-0.1.0/docs/api/environment-lifecycle.rst +67 -0
- torch_deepaudioembedding-0.1.0/docs/api/environment-specifications.rst +80 -0
- torch_deepaudioembedding-0.1.0/docs/api/index.md +63 -0
- torch_deepaudioembedding-0.1.0/docs/api/model-cards.rst +216 -0
- torch_deepaudioembedding-0.1.0/docs/api/model-execution.rst +41 -0
- torch_deepaudioembedding-0.1.0/docs/api/onboarding-contracts.rst +228 -0
- torch_deepaudioembedding-0.1.0/docs/api/onboarding-inspection.rst +100 -0
- torch_deepaudioembedding-0.1.0/docs/api/outputs-embeddings.rst +50 -0
- torch_deepaudioembedding-0.1.0/docs/api/public-api.toml +151 -0
- torch_deepaudioembedding-0.1.0/docs/api/registry.rst +32 -0
- torch_deepaudioembedding-0.1.0/docs/api/report-rendering.rst +27 -0
- torch_deepaudioembedding-0.1.0/docs/api/runtime-verification.rst +49 -0
- torch_deepaudioembedding-0.1.0/docs/checkpoint-management.md +74 -0
- torch_deepaudioembedding-0.1.0/docs/conf.py +44 -0
- torch_deepaudioembedding-0.1.0/docs/development/architecture.md +21 -0
- torch_deepaudioembedding-0.1.0/docs/development/contributing.md +9 -0
- torch_deepaudioembedding-0.1.0/docs/development/documentation.md +20 -0
- torch_deepaudioembedding-0.1.0/docs/development/releasing.md +106 -0
- torch_deepaudioembedding-0.1.0/docs/development/testing.md +17 -0
- torch_deepaudioembedding-0.1.0/docs/environment-management.md +87 -0
- torch_deepaudioembedding-0.1.0/docs/getting-started/installation.md +35 -0
- torch_deepaudioembedding-0.1.0/docs/getting-started/quickstart.md +17 -0
- torch_deepaudioembedding-0.1.0/docs/index.md +141 -0
- torch_deepaudioembedding-0.1.0/docs/model-onboarding-skill.md +51 -0
- torch_deepaudioembedding-0.1.0/docs/onboarding-artifacts.md +47 -0
- torch_deepaudioembedding-0.1.0/docs/onboarding-evidence-policy.md +40 -0
- torch_deepaudioembedding-0.1.0/docs/reference/cli.md +21 -0
- torch_deepaudioembedding-0.1.0/docs/reference/lifecycle.md +19 -0
- torch_deepaudioembedding-0.1.0/docs/reference/schemas.md +18 -0
- torch_deepaudioembedding-0.1.0/docs/skill/analyze.md +9 -0
- torch_deepaudioembedding-0.1.0/docs/skill/card.md +8 -0
- torch_deepaudioembedding-0.1.0/docs/skill/integrate.md +9 -0
- torch_deepaudioembedding-0.1.0/docs/skill/overview.md +19 -0
- torch_deepaudioembedding-0.1.0/docs/skill/resolve-environment.md +9 -0
- torch_deepaudioembedding-0.1.0/docs/skill/verify.md +8 -0
- torch_deepaudioembedding-0.1.0/docs/tutorials/agent-interaction.md +24 -0
- torch_deepaudioembedding-0.1.0/docs/tutorials/audio-model-onboarding.md +26 -0
- torch_deepaudioembedding-0.1.0/docs/user-guide/checkpoints.md +33 -0
- torch_deepaudioembedding-0.1.0/docs/user-guide/embeddings.md +26 -0
- torch_deepaudioembedding-0.1.0/docs/user-guide/environments.md +41 -0
- torch_deepaudioembedding-0.1.0/docs/user-guide/model-cards.md +28 -0
- torch_deepaudioembedding-0.1.0/docs/user-guide/model-registry.md +32 -0
- torch_deepaudioembedding-0.1.0/environments/.gitkeep +0 -0
- torch_deepaudioembedding-0.1.0/model_cards/.gitkeep +0 -0
- torch_deepaudioembedding-0.1.0/project_spec.md +1887 -0
- torch_deepaudioembedding-0.1.0/pyproject.toml +110 -0
- torch_deepaudioembedding-0.1.0/schemas/analysis-report.schema.json +1103 -0
- torch_deepaudioembedding-0.1.0/schemas/checkpoint.schema.json +446 -0
- torch_deepaudioembedding-0.1.0/schemas/embedding.schema.json +148 -0
- torch_deepaudioembedding-0.1.0/schemas/environment-resolution-report.schema.json +751 -0
- torch_deepaudioembedding-0.1.0/schemas/environment-sources.schema.json +213 -0
- torch_deepaudioembedding-0.1.0/schemas/environment.schema.json +152 -0
- torch_deepaudioembedding-0.1.0/schemas/model-card.schema.json +1914 -0
- torch_deepaudioembedding-0.1.0/schemas/verification-report.schema.json +303 -0
- torch_deepaudioembedding-0.1.0/scripts/__init__.py +1 -0
- torch_deepaudioembedding-0.1.0/scripts/check_coverage.py +64 -0
- torch_deepaudioembedding-0.1.0/scripts/check_release_version.py +106 -0
- torch_deepaudioembedding-0.1.0/scripts/generate_schemas.py +329 -0
- torch_deepaudioembedding-0.1.0/scripts/validate_repository.py +1088 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/__init__.py +10 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cards/__init__.py +59 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cards/models.py +471 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cards/validation.py +77 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cli/__init__.py +1 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cli/cards.py +45 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cli/checkpoints.py +75 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cli/environment.py +177 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cli/main.py +20 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/cli/models.py +27 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/contracts.py +96 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/__init__.py +41 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/capabilities.py +61 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/checkpoint.py +1386 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/embeddings.py +62 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/errors.py +89 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/model.py +285 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/outputs.py +116 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/preprocessing.py +29 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/core/registry.py +174 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/__init__.py +69 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/fingerprint.py +159 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/manager.py +1533 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/materialization.py +14 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/policy.py +25 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/runtime.py +286 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/sources.py +557 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/specification.py +188 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/subprocess.py +261 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/environment/verification.py +68 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/onboarding/__init__.py +87 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/onboarding/contracts.py +1336 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/onboarding/evaluation.py +423 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/onboarding/inspection.py +2387 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/onboarding/rendering.py +134 -0
- torch_deepaudioembedding-0.1.0/src/torch_dae/py.typed +0 -0
- torch_deepaudioembedding-0.1.0/tests/cards/test_models.py +90 -0
- torch_deepaudioembedding-0.1.0/tests/cli/test_card_environment_cli.py +18 -0
- torch_deepaudioembedding-0.1.0/tests/cli/test_cli.py +36 -0
- torch_deepaudioembedding-0.1.0/tests/cli/test_environment_checkpoint_cli.py +280 -0
- torch_deepaudioembedding-0.1.0/tests/conftest.py +25 -0
- torch_deepaudioembedding-0.1.0/tests/core/test_api.py +57 -0
- torch_deepaudioembedding-0.1.0/tests/core/test_checkpoint.py +95 -0
- torch_deepaudioembedding-0.1.0/tests/core/test_checkpoint_acquisition.py +1014 -0
- torch_deepaudioembedding-0.1.0/tests/core/test_registry.py +70 -0
- torch_deepaudioembedding-0.1.0/tests/environment/test_environment.py +315 -0
- torch_deepaudioembedding-0.1.0/tests/environment/test_environment_materialization.py +497 -0
- torch_deepaudioembedding-0.1.0/tests/environment/test_runtime_reporting.py +161 -0
- torch_deepaudioembedding-0.1.0/tests/environment/test_source_materialization.py +659 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/environment_runtime/README.md +7 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/analysis-report.unresolved-evidence-reference.json +130 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.github_release-contradictory-fields.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.github_release-missing-fields.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.https-contradictory-fields.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.https-missing-fields.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.huggingface-contradictory-fields.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.huggingface-missing-fields.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.invalid-id-0.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.invalid-id-1.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.invalid-id-2.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.invalid-id-3.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.invalid-id-4.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.invalid-id-5.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.invalid-id-6.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.local_path-contradictory-fields.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.local_path-missing-fields.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.malformed-sha.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.missing-schema-version.json +19 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.missing-source-field.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.package_bundle-contradictory-fields.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/checkpoint.package_bundle-missing-fields.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/embedding.extra-property.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/embedding.missing-schema-version.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment-resolution-report.failed-without-classification.json +76 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment-sources.duplicate-source-id.json +33 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment-sources.environment-id-mismatch.json +33 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment-sources.invalid-vendored-path.json +33 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment-sources.malformed-source-revision.json +33 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment.absolute-path.json +27 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment.invalid-git-revision.json +33 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment.missing-lock-reference.json +26 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment.model-card-id-mismatch.json +27 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment.python-malformed-version.json +27 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/environment.python-outside-constraint.json +27 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.absolute-source-path.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.checkpoint-verified-no-hash.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.default-embedding-reference.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.duplicate-default-embedding.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.embedding-capability-inconsistent.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.environment-resolved-unverified.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.inferred-evidence-no-rationale.json +290 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.invalid-wrapper-entry-point.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.missing-required.json +5 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.nested-empty-string.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.probability-capability-no-output.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.profiled-incomplete-profiling.json +239 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.profiled-section-without-report.json +239 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.runtime-without-report.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.unresolved-evidence-reference.json +291 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.unsupported-capability-without-reason.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.unsupported-probability-with-output.json +302 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/model-card.zero-default-embedding.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/verification-report.extra-property.json +62 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/verification-report.malformed-hash.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/verification-report.malformed-tensor-observation.json +61 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid/verification-report.rank-shape-inconsistent.json +55 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/invalid_manifest.json +56 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/analysis-report.synthetic.json +126 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/checkpoint.github_release.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/checkpoint.https.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/checkpoint.huggingface.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/checkpoint.local_path.json +20 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/checkpoint.package_bundle.json +22 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/embedding.synthetic.json +21 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/environment-resolution-report.synthetic.json +92 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/environment-sources.synthetic.json +33 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/environment.range.json +27 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/environment.synthetic.json +27 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/model-card.analyzed.json +289 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/model-card.runtime.json +239 -0
- torch_deepaudioembedding-0.1.0/tests/fixtures/valid/verification-report.synthetic.json +61 -0
- torch_deepaudioembedding-0.1.0/tests/onboarding/test_analysis_report_rendering.py +34 -0
- torch_deepaudioembedding-0.1.0/tests/onboarding/test_grounded_onboarding_evaluation.py +529 -0
- torch_deepaudioembedding-0.1.0/tests/onboarding/test_onboarding_contracts.py +621 -0
- torch_deepaudioembedding-0.1.0/tests/onboarding/test_static_onboarding_inspection.py +687 -0
- torch_deepaudioembedding-0.1.0/tests/schemas/test_schemas.py +113 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/ambiguous_embeddings/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/ambiguous_embeddings/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/ambiguous_embeddings/model.py +17 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/ambiguous_embeddings/pyproject.toml +5 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/external_pytorch_implementation/EQUIVALENCE.json +14 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/external_pytorch_implementation/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/external_pytorch_implementation/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/external_pytorch_implementation/UPSTREAM.json +3 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/external_pytorch_implementation/model.py +6 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/hidden_checkpoint_helper/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/hidden_checkpoint_helper/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/hidden_checkpoint_helper/downloads.py +15 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/hidden_checkpoint_helper/pyproject.toml +5 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/minimal_vendoring/BROKEN_PACKAGING +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/minimal_vendoring/COMMIT +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/minimal_vendoring/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/minimal_vendoring/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/minimal_vendoring/VENDORING.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/minimal_vendoring/core.py +6 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/minimal_vendoring/setup.py +6 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/non_pytorch_upstream/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/non_pytorch_upstream/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/non_pytorch_upstream/UPSTREAM.json +3 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/non_pytorch_upstream/model_tf.py +6 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/official_package/OFFICIAL.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/official_package/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/official_package/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/official_package/pyproject.toml +13 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/official_package/synthetic_model/model.py +13 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/pinned_git/COMMIT +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/pinned_git/OFFICIAL.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/pinned_git/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/pinned_git/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/pinned_git/audio_git/model.py +11 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/pinned_git/pyproject.toml +9 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unpinned_dependencies/.github/workflows/ci.yml +8 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unpinned_dependencies/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unpinned_dependencies/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unpinned_dependencies/environment.yml +6 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unpinned_dependencies/legacy_api.py +9 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unpinned_dependencies/pyproject.toml +5 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unpinned_dependencies/requirements.txt +3 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unsupported/LICENSE +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unsupported/README.md +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/fixtures/synthetic_onboarding/unsupported/SCENARIO.json +4 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/ambiguous-embeddings.analysis.json +225 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/hidden-checkpoint-helper.analysis.json +168 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/minimal-vendoring.analysis.json +181 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/non-pytorch-upstream.analysis.json +121 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/official-package.analysis.json +202 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/pinned-git.analysis.json +181 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/unpinned-dependencies.analysis.json +265 -0
- torch_deepaudioembedding-0.1.0/tests/skills/golden/unsupported.analysis.json +132 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/ambiguous-embeddings.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/hidden-checkpoint-helper.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/minimal-vendoring.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/non-pytorch-upstream.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/official-package.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/pinned-git.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/unpinned-dependencies.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/scenario_expectations/unsupported.json +1 -0
- torch_deepaudioembedding-0.1.0/tests/skills/test_skills.py +107 -0
- torch_deepaudioembedding-0.1.0/tests/test_contracts.py +19 -0
- torch_deepaudioembedding-0.1.0/tests/test_coverage_gate.py +87 -0
- torch_deepaudioembedding-0.1.0/tests/test_documentation.py +345 -0
- torch_deepaudioembedding-0.1.0/tests/test_public_metadata.py +355 -0
- torch_deepaudioembedding-0.1.0/tests/test_release_version.py +77 -0
- torch_deepaudioembedding-0.1.0/tests/test_release_workflows.py +116 -0
- torch_deepaudioembedding-0.1.0/tests/test_repository_safety.py +130 -0
- torch_deepaudioembedding-0.1.0/uv.lock +1336 -0
- torch_deepaudioembedding-0.1.0/verification_reports/.gitkeep +0 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: audio-model-onboarding
|
|
3
|
+
description: Analyze, resolve, integrate, verify, card, and profile PyTorch audio model integrations according to project_spec.md.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# audio-model-onboarding
|
|
7
|
+
|
|
8
|
+
This is the canonical, agent-neutral onboarding skill for `torch-dae`. Treat `project_spec.md` as
|
|
9
|
+
normative. Preserve it unless the user explicitly asks to edit the spec.
|
|
10
|
+
|
|
11
|
+
Codex and Claude entry points must resolve to this same directory. Do not create agent-specific
|
|
12
|
+
scientific workflows. Keep model runtime dependencies out of the root environment. Execute only the
|
|
13
|
+
workflow mode explicitly requested by the user, and never create a Git commit.
|
|
14
|
+
|
|
15
|
+
Before using any mode, read the relevant references:
|
|
16
|
+
|
|
17
|
+
- `references/workflow-overview.md`
|
|
18
|
+
- `references/evidence-policy.md`
|
|
19
|
+
- `references/repository-analysis.md`
|
|
20
|
+
- `references/environment-resolution.md`
|
|
21
|
+
- `references/source-strategy.md`
|
|
22
|
+
- `references/checkpoint-discovery.md`
|
|
23
|
+
- `references/architecture-and-embeddings.md`
|
|
24
|
+
- `references/integration-planning.md`
|
|
25
|
+
- `references/runtime-verification.md`
|
|
26
|
+
- `references/model-card-authoring.md`
|
|
27
|
+
- `references/lifecycle-and-decision-gates.md`
|
|
28
|
+
- `references/failure-classification.md`
|
|
29
|
+
- `references/synthetic-evaluation.md`
|
|
30
|
+
|
|
31
|
+
Canonical request and response formats are available at:
|
|
32
|
+
|
|
33
|
+
- `templates/agent-request.md`
|
|
34
|
+
- `templates/agent-response.md`
|
|
35
|
+
|
|
36
|
+
Use deterministic utilities under `scripts/` for evidence collection. They may collect, normalize,
|
|
37
|
+
and validate static evidence; they do not replace scientific or architectural reasoning.
|
|
38
|
+
|
|
39
|
+
## Evidence Vocabulary
|
|
40
|
+
|
|
41
|
+
Every material claim must be classified as one of:
|
|
42
|
+
|
|
43
|
+
- `verified_upstream_fact`
|
|
44
|
+
- `locally_observed_behavior`
|
|
45
|
+
- `reasoned_inference`
|
|
46
|
+
- `user_provided_decision`
|
|
47
|
+
- `unresolved_ambiguity`
|
|
48
|
+
- `unsupported_claim`
|
|
49
|
+
|
|
50
|
+
Evidence items must identify their source kind:
|
|
51
|
+
|
|
52
|
+
- `source_file`
|
|
53
|
+
- `source_line_or_symbol`
|
|
54
|
+
- `package_metadata`
|
|
55
|
+
- `configuration_file`
|
|
56
|
+
- `official_documentation`
|
|
57
|
+
- `paper`
|
|
58
|
+
- `runtime_observation`
|
|
59
|
+
- `agent_inference`
|
|
60
|
+
- `user_decision`
|
|
61
|
+
|
|
62
|
+
Inferences require a rationale. A verified or observed claim must not cite agent inference as proof.
|
|
63
|
+
Absent evidence becomes an open question, not a fabricated value.
|
|
64
|
+
|
|
65
|
+
## `analyze` Mode
|
|
66
|
+
|
|
67
|
+
Purpose: investigate an unfamiliar upstream project and produce a structured technical analysis
|
|
68
|
+
report plus a Markdown rendering.
|
|
69
|
+
|
|
70
|
+
Required inputs: official repository URL, local repository checkout, or official package identifier.
|
|
71
|
+
|
|
72
|
+
Optional inputs: paper/documentation references, candidate checkpoint URL, requested variant,
|
|
73
|
+
requested checkpoint, intended task, target use, intended embedding, target platform.
|
|
74
|
+
|
|
75
|
+
Prerequisites: repository baseline gates must pass; no production model card or wrapper may exist
|
|
76
|
+
for the target; root dependencies must remain model-agnostic.
|
|
77
|
+
|
|
78
|
+
Ordered procedure:
|
|
79
|
+
|
|
80
|
+
1. Establish repository identity, revision, license, package, release, maintenance, and official
|
|
81
|
+
status evidence.
|
|
82
|
+
2. Run static inventory utilities: repository, packaging, dependencies, checkpoint candidates, model
|
|
83
|
+
candidates, and output candidates.
|
|
84
|
+
3. Read upstream source, docs, papers, and package metadata needed to interpret the static evidence.
|
|
85
|
+
4. Produce the machine-readable report using `templates/technical-analysis-report.json`.
|
|
86
|
+
5. Render the human report with `templates/technical-analysis-report.md`.
|
|
87
|
+
6. Present unresolved scientific choices before making user-dependent decisions.
|
|
88
|
+
|
|
89
|
+
Evidence requirements: every architecture, preprocessing, output, embedding, checkpoint,
|
|
90
|
+
dependency, and source-strategy claim must cite evidence or be marked unresolved.
|
|
91
|
+
|
|
92
|
+
Generated outputs: technical analysis report JSON, Markdown report, open-question list, candidate
|
|
93
|
+
source strategy list, checkpoint candidates, environment evidence summary.
|
|
94
|
+
|
|
95
|
+
User-decision gates: ambiguous model variant, card scope, source implementation, official
|
|
96
|
+
checkpoint, preprocessing, outputs, embedding selection, technical access/authentication blocker,
|
|
97
|
+
license metadata issue, distribution/publication decision, or non-equivalent wrapper behavior.
|
|
98
|
+
|
|
99
|
+
Failure conditions: unsupported upstream, missing authoritative source, insufficient evidence,
|
|
100
|
+
path-unsafe local checkout, attempted repository-code execution, public-network dependence in tests,
|
|
101
|
+
or fabricated scientific facts.
|
|
102
|
+
|
|
103
|
+
Prohibited behavior: generate a model card from unsupported fields, download checkpoints, import
|
|
104
|
+
upstream code in the root environment, execute `setup.py`, or select an ambiguous embedding silently.
|
|
105
|
+
|
|
106
|
+
Completion criteria: strict report validation passes, Markdown report is consistent with the JSON,
|
|
107
|
+
all unresolved items are explicit, and the user has seen decision gates.
|
|
108
|
+
|
|
109
|
+
Next allowed lifecycle transition: `analyzed` after report review and card authoring; otherwise
|
|
110
|
+
continue in `analyze` or `resolve-environment`.
|
|
111
|
+
|
|
112
|
+
## `resolve-environment` Mode
|
|
113
|
+
|
|
114
|
+
Purpose: determine an evidence-supported, reproducible compatibility configuration.
|
|
115
|
+
|
|
116
|
+
Required inputs: accepted analysis report and selected source/checkpoint strategy.
|
|
117
|
+
|
|
118
|
+
Optional inputs: target OS/architecture, manually supplied constraints, selected candidate ID,
|
|
119
|
+
controlled trial results.
|
|
120
|
+
|
|
121
|
+
Prerequisites: analyze-mode evidence is sufficient; user decisions affecting compatibility are
|
|
122
|
+
resolved; environment contracts and CLI are available.
|
|
123
|
+
|
|
124
|
+
Ordered procedure:
|
|
125
|
+
|
|
126
|
+
1. Collect Python, PyTorch, TorchAudio, NumPy, build backend, source revision, CI, Docker, and import
|
|
127
|
+
evidence.
|
|
128
|
+
2. Generate ordered candidates using `scripts/generate_environment_candidates.py`.
|
|
129
|
+
3. Trial only an explicitly selected evidence-motivated candidate in an isolated model-specific
|
|
130
|
+
environment.
|
|
131
|
+
4. Classify every failure with `references/failure-classification.md`.
|
|
132
|
+
5. On success, prepare `environments/<card-id>/environment.json`, `pyproject.toml`, `uv.lock`,
|
|
133
|
+
`sources.json`, and `verify_environment.py` using the committed environment contracts and
|
|
134
|
+
commands.
|
|
135
|
+
|
|
136
|
+
Evidence requirements: candidate rationale, expected compatibility evidence, trial status, failure
|
|
137
|
+
classification, diagnostics, unresolved risk, platform evidence, and exact commands.
|
|
138
|
+
|
|
139
|
+
Generated outputs: environment-resolution report JSON, environment artifact draft paths, selected
|
|
140
|
+
candidate record, and failed-candidate diagnostics.
|
|
141
|
+
|
|
142
|
+
User-decision gates: multiple source strategies, multiple meaningful compatibility tracks,
|
|
143
|
+
unsupported platform, technical access/authentication blocker, license metadata issue, or
|
|
144
|
+
insufficient evidence.
|
|
145
|
+
|
|
146
|
+
Failure conditions: all evidence-supported candidates exhausted, external blocker, unsupported
|
|
147
|
+
implementation, source build failure, missing wheels, incompatible checkpoint, or unsafe execution.
|
|
148
|
+
|
|
149
|
+
Prohibited behavior: arbitrary Cartesian version search, hidden environment materialization, adding
|
|
150
|
+
model dependencies to the root environment, or duplicating the environment subsystem.
|
|
151
|
+
|
|
152
|
+
Completion criteria: selected candidate is verified through environment recreation and
|
|
153
|
+
verification, the lockfile is synchronized, the source manifest is coherent, and artifact
|
|
154
|
+
references agree.
|
|
155
|
+
|
|
156
|
+
Next allowed lifecycle transition: `environment_resolved`.
|
|
157
|
+
|
|
158
|
+
## `integrate` Mode
|
|
159
|
+
|
|
160
|
+
Purpose: implement the project-side wrapper while preserving upstream semantics.
|
|
161
|
+
|
|
162
|
+
Required inputs: analyzed report, resolved source strategy, resolved checkpoint strategy, selected
|
|
163
|
+
variant, selected embedding default when required.
|
|
164
|
+
|
|
165
|
+
Optional inputs: user target use, wrapper package path, adaptation notes.
|
|
166
|
+
|
|
167
|
+
Prerequisites: the user explicitly requested `MODE: integrate`; analysis is complete and reviewed;
|
|
168
|
+
the source strategy, target model variant, target checkpoint, and model-specific environment
|
|
169
|
+
strategy are resolved; the primary embedding is resolved or explicitly deferred by user decision;
|
|
170
|
+
and the user explicitly authorized production integration.
|
|
171
|
+
|
|
172
|
+
Ordered procedure:
|
|
173
|
+
|
|
174
|
+
1. Define wrapper package path, model construction, checkpoint loading, preprocessing ownership,
|
|
175
|
+
sample-rate/channel/length behavior, output mapping, embedding interface, device behavior,
|
|
176
|
+
deterministic behavior, and tests.
|
|
177
|
+
2. Verify source-strategy rules in `references/source-strategy.md`.
|
|
178
|
+
3. Preserve upstream inference semantics and document any deviation.
|
|
179
|
+
4. Add the wrapper, model-specific package code, committed environment and checkpoint
|
|
180
|
+
specifications, integration documentation, and tests needed for the selected model.
|
|
181
|
+
|
|
182
|
+
Evidence requirements: source provenance, upstream forward semantics, preprocessing evidence,
|
|
183
|
+
checkpoint compatibility evidence, selected embedding evidence, and user decisions.
|
|
184
|
+
|
|
185
|
+
Generated outputs: integration plan, wrapper and package code, committed specifications,
|
|
186
|
+
documentation, and tests for the selected model.
|
|
187
|
+
|
|
188
|
+
User-decision gates: non-equivalent wrapper behavior, multiple plausible embeddings, ambiguous
|
|
189
|
+
preprocessing, unclear output semantics, or vendored adaptation scope.
|
|
190
|
+
|
|
191
|
+
Failure conditions: source strategy unsupported, equivalence cannot be justified, required evidence
|
|
192
|
+
missing, integration prerequisites unresolved, or production integration not explicitly authorized.
|
|
193
|
+
|
|
194
|
+
Prohibited behavior: adding model dependencies to the root project, committing checkpoint binaries,
|
|
195
|
+
silently beginning verification or another workflow mode, creating a Git commit, semantic
|
|
196
|
+
reimplementation without provenance, or presenting logits/task decisions as embeddings.
|
|
197
|
+
|
|
198
|
+
Completion criteria: integration plan is reviewable, evidence-backed, and declares verification
|
|
199
|
+
requirements.
|
|
200
|
+
|
|
201
|
+
Next allowed lifecycle transition: none. `integrate` is a workflow mode, not a lifecycle state.
|
|
202
|
+
Existing committed lifecycle states remain authoritative.
|
|
203
|
+
|
|
204
|
+
## `verify` Mode
|
|
205
|
+
|
|
206
|
+
Purpose: verify runtime behavior after environment resolution and wrapper implementation.
|
|
207
|
+
|
|
208
|
+
Required inputs: model card draft, wrapper implementation, resolved environment, checkpoint
|
|
209
|
+
specification, expected outputs and embeddings.
|
|
210
|
+
|
|
211
|
+
Optional inputs: accelerator targets, extra input cases, user target assertions.
|
|
212
|
+
|
|
213
|
+
Prerequisites: environment verified, wrapper exists, the selected model and checkpoint are explicit,
|
|
214
|
+
and card-declared outputs and embeddings are evidence-backed.
|
|
215
|
+
|
|
216
|
+
Ordered procedure:
|
|
217
|
+
|
|
218
|
+
1. Test random initialization when supported, checkpoint initialization, invalid checkpoint behavior,
|
|
219
|
+
model variant agreement, and loading diagnostics.
|
|
220
|
+
2. Test canonical `[B,C,T]` waveform inputs, sample-rate behavior, channels, valid lengths, short and
|
|
221
|
+
long inputs, zero input, batches, and deterministic synthetic waveforms.
|
|
222
|
+
3. Observe every declared output and embedding for key, rank, shape, dtype, device, temporal
|
|
223
|
+
semantics, NaN/Inf, and repeated-call behavior.
|
|
224
|
+
4. Generate a structured verification report.
|
|
225
|
+
|
|
226
|
+
Evidence requirements: environment fingerprint, checkpoint hash, source revision, package identity,
|
|
227
|
+
test inputs, observed outputs, embedding observations, warnings, failures, unsupported capabilities.
|
|
228
|
+
|
|
229
|
+
Generated outputs: verification plan and verification report JSON.
|
|
230
|
+
|
|
231
|
+
User-decision gates: unsupported capabilities, output/card mismatch, embedding/card mismatch,
|
|
232
|
+
unsupported device behavior, or non-reproducible runtime observations.
|
|
233
|
+
|
|
234
|
+
Failure conditions: required runtime tests fail, card/report disagree, checkpoint cannot load,
|
|
235
|
+
outputs/embeddings are missing, or environment is not verified.
|
|
236
|
+
|
|
237
|
+
Prohibited behavior: acquiring any checkpoint other than the explicitly selected checkpoint,
|
|
238
|
+
acquiring checkpoints outside the checkpoint subsystem, running the model outside its isolated
|
|
239
|
+
environment, lifecycle promotion from schema validity alone, profiling, or fabricated runtime
|
|
240
|
+
observations.
|
|
241
|
+
|
|
242
|
+
Completion criteria: every card-declared output and embedding is observed and the report validates.
|
|
243
|
+
|
|
244
|
+
Next allowed lifecycle transition: `runtime_verified` only after `checkpoint_verified` and runtime
|
|
245
|
+
verification prerequisites are satisfied.
|
|
246
|
+
|
|
247
|
+
## `card` Mode
|
|
248
|
+
|
|
249
|
+
Purpose: generate or update a checkpoint-specific model card from verified evidence.
|
|
250
|
+
|
|
251
|
+
Required inputs: analysis report, user decisions, source/checkpoint strategy, environment artifacts,
|
|
252
|
+
wrapper evidence where applicable, verification report where applicable.
|
|
253
|
+
|
|
254
|
+
Optional inputs: unresolved issue decisions, intended default embedding, accepted limitations.
|
|
255
|
+
|
|
256
|
+
Prerequisites: actual committed lifecycle model is checked; every populated field has traceable
|
|
257
|
+
evidence; unresolved information remains explicit.
|
|
258
|
+
|
|
259
|
+
Ordered procedure:
|
|
260
|
+
|
|
261
|
+
1. Map report fields to the committed `ModelCard` schema.
|
|
262
|
+
2. Use null, unresolved status, or issues where evidence is absent.
|
|
263
|
+
3. Enforce checkpoint-specific scope: one family, one variant, one checkpoint.
|
|
264
|
+
4. Validate through Pydantic and generated JSON Schema.
|
|
265
|
+
5. Check lifecycle gates and card/report agreement.
|
|
266
|
+
|
|
267
|
+
Evidence requirements: upstream source, paper/docs, environment evidence, checkpoint evidence,
|
|
268
|
+
runtime observation, or explicit user decision for every populated field.
|
|
269
|
+
|
|
270
|
+
Generated outputs: model-card JSON draft, evidence references, checkpoint specification, embedding
|
|
271
|
+
specification, environment references, known issues.
|
|
272
|
+
|
|
273
|
+
User-decision gates: checkpoint scope, default embedding, unresolved technical
|
|
274
|
+
access/authentication blocker, license metadata issue, distribution/publication decision, source
|
|
275
|
+
strategy, lifecycle promotion, or accepted known issue.
|
|
276
|
+
|
|
277
|
+
Failure conditions: evidence reference missing, lifecycle skip, unsupported fact promoted, schema
|
|
278
|
+
failure, card not checkpoint-specific, or report/card disagreement.
|
|
279
|
+
|
|
280
|
+
Prohibited behavior: optional filler values, family-level cards for incompatible checkpoints, hidden
|
|
281
|
+
lifecycle promotion, or legal conclusions from license metadata.
|
|
282
|
+
|
|
283
|
+
Completion criteria: Pydantic and JSON Schema validation both pass and lifecycle gates are truthful.
|
|
284
|
+
|
|
285
|
+
Next allowed lifecycle transition: the next legal committed lifecycle state only; do not invent
|
|
286
|
+
states beyond `project_spec.md`.
|
|
287
|
+
|
|
288
|
+
## `profile` Mode
|
|
289
|
+
|
|
290
|
+
Purpose: reserved future mode that may inspect eligibility for profiling.
|
|
291
|
+
|
|
292
|
+
Required inputs: runtime-verified card and verification report.
|
|
293
|
+
|
|
294
|
+
Optional inputs: future profiling target platform and protocol.
|
|
295
|
+
|
|
296
|
+
Prerequisites: none because no profiling workflow has been implemented.
|
|
297
|
+
|
|
298
|
+
Ordered procedure:
|
|
299
|
+
|
|
300
|
+
1. Refuse profiling execution.
|
|
301
|
+
2. List missing prerequisites when asked.
|
|
302
|
+
3. Explain expected future inputs without producing profiling evidence.
|
|
303
|
+
|
|
304
|
+
Evidence requirements: runtime verification status may be inspected; no profiling measurement is
|
|
305
|
+
created.
|
|
306
|
+
|
|
307
|
+
Generated outputs: eligibility notes only.
|
|
308
|
+
|
|
309
|
+
User-decision gates: future profiling protocol selection remains unresolved.
|
|
310
|
+
|
|
311
|
+
Failure conditions: any attempt to measure latency, memory, energy, MACs, FLOPs, or benchmark
|
|
312
|
+
performance.
|
|
313
|
+
|
|
314
|
+
Prohibited behavior: latency measurement, memory profiling, energy measurement, MAC/FLOP
|
|
315
|
+
calculation, computational characterization, benchmark reports, or lifecycle promotion to
|
|
316
|
+
`profiled`.
|
|
317
|
+
|
|
318
|
+
Completion criteria: profiling remains reserved and no fabricated profiling evidence exists.
|
|
319
|
+
|
|
320
|
+
Next allowed lifecycle transition: none.
|
|
321
|
+
|
|
322
|
+
Profiling remains unavailable until a model is runtime_verified and a profiling workflow is
|
|
323
|
+
explicitly implemented and invoked.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Architecture And Embeddings
|
|
2
|
+
|
|
3
|
+
Cover model classes, topology, frontend, temporal/spatial processing, backbone, heads,
|
|
4
|
+
normalization, activations, pooling, sequence handling, candidate outputs, candidate embeddings, and
|
|
5
|
+
variant differences.
|
|
6
|
+
|
|
7
|
+
Embedding candidates must distinguish architectural intermediate tensors, pooled representations,
|
|
8
|
+
task-head inputs, pre-logit representations, post-activation outputs, sequence-level embeddings,
|
|
9
|
+
frame-level embeddings, and latent codes.
|
|
10
|
+
|
|
11
|
+
Declare an embedding only when origin, shape semantics, batch/time dimensions, and extraction
|
|
12
|
+
behavior are known. Ambiguous embeddings require a user decision. Classifier logits and task
|
|
13
|
+
decisions are not embeddings.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Checkpoint Discovery
|
|
2
|
+
|
|
3
|
+
Collect checkpoint URLs, release assets, Hugging Face references, helper download functions, package
|
|
4
|
+
resources, local paths, hashes, filenames, archive behavior, authentication needs, licenses, and
|
|
5
|
+
variant mappings.
|
|
6
|
+
|
|
7
|
+
Never download a real checkpoint during static analysis or synthetic evaluation. Hidden helper
|
|
8
|
+
functions should be identified as evidence, but the helper must not be executed in the root
|
|
9
|
+
environment. Controlled acquisition is allowed only in `verify` mode through the checkpoint
|
|
10
|
+
subsystem for the explicitly selected model and checkpoint.
|
|
11
|
+
|
|
12
|
+
Checkpoint candidates derived from helpers preserve `helper_symbol`, `expression_status`,
|
|
13
|
+
`unresolved_components`, source file, complete URL, filename, and hash evidence. Literal URLs may
|
|
14
|
+
leave helper fields unset, but helper-derived URLs must remain tied to the observed helper function
|
|
15
|
+
for grounded evaluation. Hashes are associated with a candidate only when the static AST relationship
|
|
16
|
+
ties the hash to that helper or checkpoint metadata structure. Repository-global or unrelated-helper
|
|
17
|
+
hashes cannot satisfy a candidate. When association is unresolved, the observed hash collection is
|
|
18
|
+
empty, `hash association` remains unresolved, and reports must omit the hash.
|
|
19
|
+
|
|
20
|
+
Checkpoint candidates are not verified until acquired, hashed, and loaded in the intended model
|
|
21
|
+
environment during a later lifecycle stage.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Environment Resolution
|
|
2
|
+
|
|
3
|
+
Environment resolution is evidence-driven. Candidate versions must come from Python constraints,
|
|
4
|
+
declared dependencies, lock files, setup files, CI/Docker evidence, imported APIs, release dates,
|
|
5
|
+
official compatibility matrices, issue evidence when inspected, and controlled local trial results.
|
|
6
|
+
Conda declarations preserve ranges such as `numpy<1.24`, exact Conda assignments such as
|
|
7
|
+
`python=3.10`, and build-suffixed declarations such as `pytorch=1.13.1=<build>` without treating the
|
|
8
|
+
build string as the version. GitHub Actions CI matrices may contribute exact dependency records from
|
|
9
|
+
scalar, inline-list, or block-list matrix values, with `.github/workflows/ci.yml` preserved as the
|
|
10
|
+
evidence path. Only values inside static `strategy` → `matrix` definitions create dependency
|
|
11
|
+
records. GitHub Actions `${{ ... }}` references in setup actions, environment variables, or commands
|
|
12
|
+
are ignored. Invalid declarations remain available as diagnostics but do not affect version
|
|
13
|
+
selection, constraint merging, conflicts, unpinned classification, or principal dependencies.
|
|
14
|
+
|
|
15
|
+
Use `generate_environment_candidates.py` to produce ordered unverified candidates. Do not run an
|
|
16
|
+
arbitrary Cartesian search. Trial only explicitly selected candidates and use the environment APIs
|
|
17
|
+
and CLI to materialize or verify isolated model-specific environments.
|
|
18
|
+
|
|
19
|
+
Successful resolution may prepare `environments/<card-id>/environment.json`, `pyproject.toml`,
|
|
20
|
+
`uv.lock`, `sources.json`, and `verify_environment.py`.
|
|
21
|
+
Official-package resolution requires exact `source_package_name` and `source_package_version`
|
|
22
|
+
evidence that matches the selected candidate. Accepted identity provenance is verified upstream
|
|
23
|
+
`package_metadata` or locally observed `environments/<card-id>/pyproject.toml`, `uv.lock`, or
|
|
24
|
+
`environment.json`; `sources.json`, `verify_environment.py`, arbitrary files, inference, and runtime
|
|
25
|
+
observations cannot prove package identity. Remaining
|
|
26
|
+
source-strategy decision gates block `environment_resolved`; resolved choices belong in decision
|
|
27
|
+
records. Diagnostic references use `.torch-dae`-relative
|
|
28
|
+
`reports/environments/<card-id>/<fingerprint>/<report>.json`, while committed verification reports
|
|
29
|
+
use `verification_reports/<card-id>/<report>.json`.
|
torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/evidence-policy.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Evidence Policy
|
|
2
|
+
|
|
3
|
+
Classify every material claim as `verified_upstream_fact`, `locally_observed_behavior`,
|
|
4
|
+
`reasoned_inference`, `user_provided_decision`, `unresolved_ambiguity`, or `unsupported_claim`.
|
|
5
|
+
|
|
6
|
+
Verified facts require authoritative upstream evidence. Local observations require an inspected file,
|
|
7
|
+
static utility output, or later controlled runtime report. Inferences require a rationale and must not
|
|
8
|
+
be used as proof for verified or observed claims. User decisions must be recorded explicitly.
|
|
9
|
+
|
|
10
|
+
When evidence is absent, leave the field unresolved or create an open question. Do not invent papers,
|
|
11
|
+
datasets, metrics, model variants, preprocessing, output semantics, dependencies, hashes, or licenses.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Failure Classification
|
|
2
|
+
|
|
3
|
+
Resolve-environment failures must be classified with a specific cause, including:
|
|
4
|
+
`python_constraint`, `dependency_conflict`, `resolution_failure`, `removed_api`, `deprecated_api`,
|
|
5
|
+
`binary_or_abi_incompatibility`, `missing_binary_wheel`, `torch_torchaudio_mismatch`,
|
|
6
|
+
`numpy_compatibility`, `checkpoint_incompatibility`, `source_build_failure`, `import_failure`,
|
|
7
|
+
`runtime_failure`, `platform_incompatibility`, `access_or_authentication_blocker`, and
|
|
8
|
+
`insufficient_evidence`.
|
|
9
|
+
|
|
10
|
+
The next candidate must be motivated by evidence or failure diagnostics.
|
|
11
|
+
|
|
12
|
+
Licenses are informational and non-blocking. Missing, ambiguous, or restrictive license text must be
|
|
13
|
+
recorded as evidence or an open question, but it must not automatically classify a model as
|
|
14
|
+
unsupported.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Integration Planning
|
|
2
|
+
|
|
3
|
+
The integration plan must specify wrapper path, source strategy, checkpoint strategy, construction,
|
|
4
|
+
random and checkpoint initialization, preprocessing ownership, sample-rate behavior, channel
|
|
5
|
+
behavior, waveform scaling, padding/truncation, valid lengths, forward signature, output
|
|
6
|
+
normalization, task capabilities, embeddings, device movement, evaluation mode, deterministic
|
|
7
|
+
behavior, tests, and errors.
|
|
8
|
+
|
|
9
|
+
Production integration is permitted only in an explicitly requested `integrate` mode after analysis
|
|
10
|
+
review, source/variant/checkpoint/embedding decisions, environment strategy resolution, and explicit
|
|
11
|
+
user authorization. Integration must remain scoped to the selected model and must not start
|
|
12
|
+
verification, add root model dependencies, commit checkpoints, or create a Git commit.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Lifecycle And Decision Gates
|
|
2
|
+
|
|
3
|
+
Use the committed lifecycle states from `project_spec.md`: `draft`, `analyzed`,
|
|
4
|
+
`environment_resolved`, `checkpoint_verified`, `runtime_verified`, and `profiled`.
|
|
5
|
+
|
|
6
|
+
Decision gates are required when multiple scientifically meaningful alternatives remain: card scope,
|
|
7
|
+
variant, checkpoint, source implementation, source strategy, embedding, preprocessing, output
|
|
8
|
+
semantics, technical access/authentication blockers, license metadata issues,
|
|
9
|
+
distribution/publication decisions, or wrapper equivalence.
|
|
10
|
+
|
|
11
|
+
Do not ask for decisions that objective evidence can resolve.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Model Card Authoring
|
|
2
|
+
|
|
3
|
+
Cards are checkpoint-specific: one model family, one variant, one checkpoint. Every populated field
|
|
4
|
+
must trace to upstream source, paper or official docs, environment evidence, checkpoint evidence,
|
|
5
|
+
runtime observation, or explicit user decision.
|
|
6
|
+
|
|
7
|
+
Use nulls, unresolved states, TODO markers where allowed, and explicit issues when evidence is
|
|
8
|
+
absent. Validate committed cards through both Pydantic and generated JSON Schema.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Repository Analysis
|
|
2
|
+
|
|
3
|
+
Analyze repository identity, owner/name, inspected revision, license, package metadata, release/tag
|
|
4
|
+
evidence, maintenance evidence, and official versus third-party status.
|
|
5
|
+
|
|
6
|
+
Use static utilities first:
|
|
7
|
+
|
|
8
|
+
- `inspect_repository.py`
|
|
9
|
+
- `inspect_python_project.py`
|
|
10
|
+
- `inspect_dependencies.py`
|
|
11
|
+
- `inspect_model_candidates.py`
|
|
12
|
+
- `inspect_output_candidates.py`
|
|
13
|
+
- `inspect_checkpoints.py`
|
|
14
|
+
|
|
15
|
+
Static candidates remain candidates until source reading or runtime evidence confirms their meaning.
|
|
16
|
+
Do not execute `setup.py`, notebooks, shell scripts, or upstream imports in the root environment.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Runtime Verification
|
|
2
|
+
|
|
3
|
+
Verification covers construction, checkpoint loading, invalid checkpoint behavior, model variant
|
|
4
|
+
agreement, inputs, outputs, embeddings, device movement, dtypes, NaN/Inf checks, and repeated-call
|
|
5
|
+
behavior.
|
|
6
|
+
|
|
7
|
+
The structured report must include environment fingerprint, checkpoint hash, source revision,
|
|
8
|
+
package identity, test inputs, observed outputs, embedding observations, warnings, failures,
|
|
9
|
+
unsupported capabilities, and runtime evidence.
|
|
10
|
+
|
|
11
|
+
Schema validity alone is insufficient for `runtime_verified`.
|
torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/source-strategy.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Source Strategy
|
|
2
|
+
|
|
3
|
+
Priority order:
|
|
4
|
+
|
|
5
|
+
1. Official package: official, exact version lockable, required API exposed, behavior equivalent, and
|
|
6
|
+
no uncontrolled runtime download.
|
|
7
|
+
2. Pinned official Git repository: official repo, immutable revision, reproducible build, required API
|
|
8
|
+
importable without modification.
|
|
9
|
+
3. Minimal vendored adaptation: package/Git insufficient, copied files minimal, provenance explicit,
|
|
10
|
+
revision pinned, changes documented, semantics preserved, tests cover copied files.
|
|
11
|
+
4. External PyTorch implementation: only when official upstream is not PyTorch and equivalence can be
|
|
12
|
+
justified; request a user decision when uncertain.
|
|
13
|
+
|
|
14
|
+
Unsupported or non-equivalent implementations must terminate truthfully.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Synthetic Evaluation
|
|
2
|
+
|
|
3
|
+
Synthetic evaluation uses only self-contained repositories. Each synthetic fixture must state that
|
|
4
|
+
it is scientifically meaningless and must not hide integration work.
|
|
5
|
+
|
|
6
|
+
The deterministic harness validates structured workflow properties: required sections, evidence
|
|
7
|
+
references, unsupported-claim rejection, decision gates, source strategy, failure classification,
|
|
8
|
+
artifact validation, lifecycle constraints, canonical skill resolution, and fixture-specific expected
|
|
9
|
+
outcomes.
|
torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/references/workflow-overview.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Workflow Overview
|
|
2
|
+
|
|
3
|
+
The skill converts unfamiliar upstream evidence into a structured onboarding package. The workflow is:
|
|
4
|
+
upstream identifier or local checkout -> static repository inspection -> evidence collection ->
|
|
5
|
+
technical analysis report -> user decision gates -> compatibility candidates -> integration plan ->
|
|
6
|
+
verification plan -> model-card draft preparation.
|
|
7
|
+
|
|
8
|
+
Static analysis does not execute upstream code or acquire checkpoints. Production integration and
|
|
9
|
+
controlled verification are available only through explicitly requested modes after their
|
|
10
|
+
prerequisites are satisfied. Static utilities gather evidence; the agent interprets architecture,
|
|
11
|
+
embeddings, source strategy, and scientific ambiguity.
|
|
12
|
+
|
|
13
|
+
The allowed modes are `analyze`, `resolve-environment`, `integrate`, `verify`, `card`, and
|
|
14
|
+
`profile`. `profile` is reserved until a runtime-verified model and an explicitly implemented
|
|
15
|
+
profiling workflow exist.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""Shared CLI helpers for onboarding workflow skill-local scripts."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
import json
|
|
7
|
+
import sys
|
|
8
|
+
from collections.abc import Callable
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Any
|
|
11
|
+
|
|
12
|
+
from pydantic import ValidationError
|
|
13
|
+
|
|
14
|
+
from torch_dae.onboarding.inspection import OnboardingInspectionError
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def emit_json(payload: Any) -> None:
|
|
18
|
+
"""Emit deterministic JSON."""
|
|
19
|
+
|
|
20
|
+
print(json.dumps(payload, indent=2, sort_keys=True, default=str))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def repository_argument(parser: argparse.ArgumentParser) -> None:
|
|
24
|
+
"""Add the standard repository argument."""
|
|
25
|
+
|
|
26
|
+
parser.add_argument("repository", type=Path, help="local repository checkout to inspect")
|
|
27
|
+
parser.add_argument("--json", action="store_true", help="emit machine-readable JSON")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def run_json_command(
|
|
31
|
+
func: Callable[[argparse.Namespace], Any], parser: argparse.ArgumentParser
|
|
32
|
+
) -> int:
|
|
33
|
+
"""Run a script command with typed, traceback-free expected failures."""
|
|
34
|
+
|
|
35
|
+
args = parser.parse_args()
|
|
36
|
+
try:
|
|
37
|
+
payload = func(args)
|
|
38
|
+
except (OnboardingInspectionError, ValidationError, ValueError) as exc:
|
|
39
|
+
print(f"error: {exc}", file=sys.stderr)
|
|
40
|
+
return 2
|
|
41
|
+
if getattr(args, "json", False):
|
|
42
|
+
emit_json(payload)
|
|
43
|
+
else:
|
|
44
|
+
print(_summary(payload))
|
|
45
|
+
return 0
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _summary(payload: Any) -> str:
|
|
49
|
+
if isinstance(payload, dict):
|
|
50
|
+
if "candidates" in payload and isinstance(payload["candidates"], list):
|
|
51
|
+
return f"{len(payload['candidates'])} candidates"
|
|
52
|
+
if "files" in payload and isinstance(payload["files"], list):
|
|
53
|
+
return f"{len(payload['files'])} files"
|
|
54
|
+
return ", ".join(sorted(payload.keys()))
|
|
55
|
+
return str(payload)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Generate ordered, evidence-motivated environment candidates without trial execution."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from common import repository_argument, run_json_command
|
|
9
|
+
|
|
10
|
+
from torch_dae.onboarding.contracts import EnvironmentCandidateGenerationResult
|
|
11
|
+
from torch_dae.onboarding.inspection import generate_environment_candidates
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def command(args: argparse.Namespace) -> dict[str, object]:
|
|
15
|
+
"""Generate unverified compatibility candidates."""
|
|
16
|
+
|
|
17
|
+
target_platform = args.target_platform
|
|
18
|
+
result = generate_environment_candidates(
|
|
19
|
+
args.repository,
|
|
20
|
+
target_platform=target_platform,
|
|
21
|
+
external_pytorch_root=args.external_pytorch_root,
|
|
22
|
+
)
|
|
23
|
+
return EnvironmentCandidateGenerationResult.model_validate(result).model_dump(mode="json")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def main() -> int:
|
|
27
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
28
|
+
repository_argument(parser)
|
|
29
|
+
parser.add_argument("--target-platform", help="optional target platform evidence")
|
|
30
|
+
parser.add_argument(
|
|
31
|
+
"--external-pytorch-root",
|
|
32
|
+
type=Path,
|
|
33
|
+
help="explicit inspected external PyTorch implementation repository root",
|
|
34
|
+
)
|
|
35
|
+
return run_json_command(command, parser)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if __name__ == "__main__":
|
|
39
|
+
raise SystemExit(main())
|
torch_deepaudioembedding-0.1.0/.agents/skills/audio-model-onboarding/scripts/inspect_checkpoints.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Inspect checkpoint-like files, URLs, hashes, and helper functions."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
|
|
7
|
+
from common import repository_argument, run_json_command
|
|
8
|
+
|
|
9
|
+
from torch_dae.onboarding.inspection import inspect_checkpoints
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def command(args: argparse.Namespace) -> dict[str, object]:
|
|
13
|
+
"""Run checkpoint discovery."""
|
|
14
|
+
|
|
15
|
+
return inspect_checkpoints(args.repository)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def main() -> int:
|
|
19
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
20
|
+
repository_argument(parser)
|
|
21
|
+
return run_json_command(command, parser)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
if __name__ == "__main__":
|
|
25
|
+
raise SystemExit(main())
|