-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rocm_sparse_marlin
- Loading branch information
Showing
223 changed files
with
13,362 additions
and
7,803 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ mergebot: True | |
ciflow_push_tags: | ||
- ciflow/benchmark | ||
- ciflow/tutorials | ||
- ciflow/rocm |
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 |
---|---|---|
|
@@ -41,3 +41,34 @@ jobs: | |
runner-type: macos-m1-stable | ||
smoke-test-script: test/smoke_test.py | ||
trigger-event: ${{ github.event_name }} | ||
notify: | ||
runs-on: ubuntu-latest | ||
name: Email notification | ||
needs: [generate-matrix, build] | ||
if: failure() && github.event_name == 'schedule' | ||
steps: | ||
- uses: dawidd6/action-send-mail@v4 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: torchao.notify | ||
password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} | ||
from: [email protected] | ||
to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }} | ||
subject: Scheduled Build Failure for TorchAO | ||
body: | | ||
Build Failure Notification for TorchAO | ||
A failure occurred in the Build Linux Wheels workflow. | ||
Run Details: | ||
- Workflow: ${{ github.workflow }} | ||
- Run Type: ${{ github.event_name }} | ||
- Repository: ${{ github.repository }} | ||
- Branch/PR: ${{ github.ref }} | ||
- Commit: ${{ github.sha }} | ||
You can view the full run details here: | ||
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
Error Information: | ||
${{ needs.generate-matrix.result == 'failure' && 'Matrix generation failed' || '' }} | ||
${{ needs.build.result == 'failure' && 'Build job failed' || '' }} | ||
This is an automated notification. Please check the GitHub Actions page for more details about the failure. |
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 |
---|---|---|
|
@@ -29,7 +29,8 @@ jobs: | |
test-infra-repository: pytorch/test-infra | ||
test-infra-ref: main | ||
with-cuda: disable | ||
|
||
# please note: excluding 3.13t for aarch64 builds for now | ||
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' | ||
build: | ||
needs: generate-matrix | ||
permissions: | ||
|
@@ -53,3 +54,34 @@ jobs: | |
setup-miniconda: false | ||
secrets: | ||
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
notify: | ||
runs-on: ubuntu-latest | ||
name: Email notification | ||
needs: [generate-matrix, build] | ||
if: failure() && github.event_name == 'schedule' | ||
steps: | ||
- uses: dawidd6/action-send-mail@v4 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: torchao.notify | ||
password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} | ||
from: [email protected] | ||
to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }} | ||
subject: Scheduled Build Failure for TorchAO | ||
body: | | ||
Build Failure Notification for TorchAO | ||
A failure occurred in the Build AARCH64 Wheels workflow. | ||
Run Details: | ||
- Workflow: ${{ github.workflow }} | ||
- Run Type: ${{ github.event_name }} | ||
- Repository: ${{ github.repository }} | ||
- Branch/PR: ${{ github.ref }} | ||
- Commit: ${{ github.sha }} | ||
You can view the full run details here: | ||
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
Error Information: | ||
${{ needs.generate-matrix.result == 'failure' && 'Matrix generation failed' || '' }} | ||
${{ needs.build.result == 'failure' && 'Build job failed' || '' }} | ||
This is an automated notification. Please check the GitHub Actions page for more details about the failure. |
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 |
---|---|---|
|
@@ -30,6 +30,8 @@ jobs: | |
with-cuda: enable | ||
with-rocm: enable | ||
with-xpu: enable | ||
# please note: excluding 3.13t for aarch64 builds for now | ||
python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]' | ||
|
||
build: | ||
needs: generate-matrix | ||
|
@@ -56,3 +58,38 @@ jobs: | |
upload-to-pypi: cu121 | ||
secrets: | ||
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
notify: | ||
runs-on: ubuntu-latest | ||
name: Email notification | ||
needs: [generate-matrix, build] | ||
if: failure() && github.event_name == 'schedule' | ||
steps: | ||
- uses: dawidd6/action-send-mail@v4 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: torchao.notify | ||
password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} | ||
from: [email protected] | ||
to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }} | ||
subject: Scheduled Build Failure for TorchAO | ||
body: | | ||
Build Failure Notification for TorchAO | ||
A failure occurred in the Build Linux Wheels workflow. | ||
Run Details: | ||
- Workflow: ${{ github.workflow }} | ||
- Run Type: ${{ github.event_name }} | ||
- Repository: ${{ github.repository }} | ||
- Branch/PR: ${{ github.ref }} | ||
- Commit: ${{ github.sha }} | ||
You can view the full run details here: | ||
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
Error Information: | ||
${{ needs.generate-matrix.result == 'failure' && 'Matrix generation failed' || '' }} | ||
${{ needs.build.result == 'failure' && 'Build job failed' || '' }} | ||
This is an automated notification. Please check the GitHub Actions page for more details about the failure. |
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 |
---|---|---|
|
@@ -60,3 +60,38 @@ jobs: | |
package-name: ${{ matrix.package-name }} | ||
smoke-test-script: ${{ matrix.smoke-test-script }} | ||
trigger-event: ${{ github.event_name }} | ||
notify: | ||
runs-on: ubuntu-latest | ||
name: Email notification | ||
needs: [generate-matrix, build] | ||
if: failure() && github.event_name == 'schedule' | ||
steps: | ||
- uses: dawidd6/action-send-mail@v4 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
username: torchao.notify | ||
password: ${{ secrets.TORCHAO_NOTIFY_PASSWORD }} | ||
from: [email protected] | ||
to: ${{ secrets.TORCHAO_NOTIFY_RECIPIENT }} | ||
subject: Scheduled Build Failure for TorchAO | ||
body: | | ||
Build Failure Notification for TorchAO | ||
A failure occurred in the Build Windows Wheels workflow. | ||
Run Details: | ||
- Workflow: ${{ github.workflow }} | ||
- Run Type: ${{ github.event_name }} | ||
- Repository: ${{ github.repository }} | ||
- Branch/PR: ${{ github.ref }} | ||
- Commit: ${{ github.sha }} | ||
You can view the full run details here: | ||
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
Error Information: | ||
${{ needs.generate-matrix.result == 'failure' && 'Matrix generation failed' || '' }} | ||
${{ needs.build.result == 'failure' && 'Build job failed' || '' }} | ||
This is an automated notification. Please check the GitHub Actions page for more details about the failure. |
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
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,55 @@ | ||
name: Run Float8nocompile Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'gh/**' | ||
paths: | ||
- 'torchao/prototype/float8nocompile/**' | ||
- '!torchao/prototype/float8nocompile/**' | ||
pull_request: | ||
branches: | ||
- main | ||
- 'gh/**' | ||
paths: | ||
- 'torchao/prototype/float8nocompile/**' | ||
- '!torchao/prototype/float8nocompile/**' | ||
|
||
concurrency: | ||
group: floatnocompile_test-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: SM-89 | ||
runs-on: linux.g6.4xlarge.experimental.nvidia.gpu | ||
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu121' | ||
gpu-arch-type: "cuda" | ||
gpu-arch-version: "12.1" | ||
|
||
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | ||
with: | ||
timeout: 300 | ||
runner: ${{ matrix.runs-on }} | ||
gpu-arch-type: ${{ matrix.gpu-arch-type }} | ||
gpu-arch-version: ${{ matrix.gpu-arch-version }} | ||
submodules: recursive | ||
script: | | ||
conda create -n venv python=3.9 -y | ||
conda activate venv | ||
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH | ||
python -m pip install --upgrade pip | ||
pip install ${{ matrix.torch-spec }} | ||
pip install -r dev-requirements.txt | ||
pip install . | ||
cd torchao/prototype/float8nocompile | ||
pytest kernels/ --verbose -s | ||
pytest test/train_test.py --verbose -s |
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
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,49 @@ | ||
name: Run Regression Tests on ROCm | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- ciflow/rocm/* | ||
|
||
concurrency: | ||
group: regression_test-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
|
||
jobs: | ||
test-nightly: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: ROCM Nightly | ||
runs-on: linux.rocm.gpu.torchao | ||
torch-spec: '--pre torch==2.7.0.dev20250122 --index-url https://download.pytorch.org/whl/nightly/rocm6.3' | ||
gpu-arch-type: "rocm" | ||
gpu-arch-version: "6.3" | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | ||
with: | ||
timeout: 120 | ||
no-sudo: ${{ matrix.gpu-arch-type == 'rocm' }} | ||
runner: ${{ matrix.runs-on }} | ||
gpu-arch-type: ${{ matrix.gpu-arch-type }} | ||
gpu-arch-version: ${{ matrix.gpu-arch-version }} | ||
submodules: recursive | ||
script: | | ||
conda create -n venv python=3.9 -y | ||
conda activate venv | ||
python -m pip install --upgrade pip | ||
pip install ${{ matrix.torch-spec }} | ||
pip install -r dev-requirements.txt | ||
pip install . | ||
export CONDA=$(dirname $(dirname $(which conda))) | ||
export LD_LIBRARY_PATH=$CONDA/lib/:$LD_LIBRARY_PATH | ||
pytest test --verbose -s |
Oops, something went wrong.