forked from pytorch/ao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validations to torchao (pytorch#453)
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__) |