Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validations to torchao #453

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/scripts/validate_binaries.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pip install ${PYTORCH_PIP_PREFIX} torchao --index-url ${PYTORCH_PIP_DOWNLOAD_URL}
python ./test/smoke_tests/smoke_tests.py
47 changes: 47 additions & 0 deletions .github/workflows/validate-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Validate binaries

on:
workflow_call:
inputs:
channel:
description: "Channel to use (nightly, test, release, all)"
required: false
type: string
default: release
ref:
description: "Reference to checkout, defaults to empty"
default: ""
required: false
type: string
workflow_dispatch:
inputs:
channel:
description: "Channel to use (nightly, test, release, all)"
required: true
type: choice
options:
- release
- nightly
- test
- all
ref:
description: "Reference to checkout, defaults to empty"
default: ""
required: false
type: string
pytorch_version:
description: "PyTorch version to validate (ie. 2.0, 2.2.2, etc.) - optional"
default: ""
required: false
type: string
jobs:
validate-binaries:
uses: pytorch/test-infra/.github/workflows/validate-domain-library.yml@main
with:
package_type: "wheel"
version: ${{ inputs.version }}
os: "linux"
channel: ${{ inputs.channel }}
repository: "pytorch/ao"
smoke_test: "source ./.github/scripts/validate_binaries.sh"
install_torch: true
6 changes: 6 additions & 0 deletions test/smoke_tests/smoke_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Run smoke tests"""

import torchao


print("torchao version is ", torchao.__version__)
Loading