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 ET runner to benchmark * remove spurios end * add mps runner and groupsize kludge * adjust groupsize * fortify runners * handle device for export_et
- Loading branch information
Showing
4 changed files
with
61 additions
and
6 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
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: Run the README instructions - with stories - to ensure they work | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-mps: | ||
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main | ||
with: | ||
runner: macos-14-xlarge | ||
script: | | ||
set -x | ||
# NS: Remove previous installation of torch first | ||
# as this script does not isntall anything into conda env but rather as system dep | ||
pip3 uninstall -y torch || true | ||
set -eou pipefail | ||
echo "::group::Print machine info" | ||
uname -a | ||
sysctl machdep.cpu.brand_string | ||
sysctl machdep.cpu.core_count | ||
echo "::endgroup::" | ||
# echo "::group::Install newer objcopy that supports --set-section-alignment" | ||
# yum install -y devtoolset-10-binutils | ||
# export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH | ||
# echo "::endgroup::" | ||
echo "::group::Create script" | ||
python3 scripts/process-readme.py > ./readme-commands.sh | ||
echo "exit 1" >> ./readme-commands.sh | ||
echo "::endgroup::" | ||
echo "::group::Run This" | ||
grep -v login ./readme-commands.sh | sed -e '1,$s/llama3/stories15M/g' > ./we-run-this.sh | ||
echo "*******************************************" | ||
cat ./we-run-this.sh | ||
echo "*******************************************" | ||
bash -x ./we-run-this.sh | ||
echo "tests complete" | ||
echo "*******************************************" | ||
echo "::endgroup::" |
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
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