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

Verbose #3937

Draft
wants to merge 47 commits into
base: main
Choose a base branch
from
Draft

Verbose #3937

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
9c5055c
Revert "Fix output size computation for MaxPool2D for ceil_model = tr…
rahuls-cerebras Jan 3, 2025
23453db
Revert "build: manually update PyTorch version (#3919)"
rahuls-cerebras Jan 3, 2025
f70994d
Revert "[torch-mlir][doc] remove MPACT as example (#3930)"
rahuls-cerebras Jan 3, 2025
9e6493e
Revert "[TOSA] Add legalization for torch.aten.unfold (#3922)"
rahuls-cerebras Jan 3, 2025
afae33e
Revert "[torch-mlir] add MPACT as an example torch-mlir based compile…
rahuls-cerebras Jan 3, 2025
31b46a3
Revert "[Torch] Add decomposition for 1d torch.nonzero (#3876)"
rahuls-cerebras Jan 3, 2025
327e6f2
Revert "[torch] Update `torch.bmm` to use accumulator type (#3924)"
rahuls-cerebras Jan 3, 2025
6acf852
Revert "Add attributes support for onnx.nms (#3920)"
rahuls-cerebras Jan 3, 2025
9c4dd02
Revert "[torch-mlir][sparse] register sparse tensor dialect for all r…
rahuls-cerebras Jan 3, 2025
f118b62
Revert "[MLIR][TORCH] Add support for 1-d group convolution (#3904)"
rahuls-cerebras Jan 3, 2025
c6c429f
Revert "[ONNX] Fix nonzero output type difference between onnx and t…
rahuls-cerebras Jan 3, 2025
51ec34c
Revert "[TorchToTosa] Refactoring to separate construction of legal/i…
rahuls-cerebras Jan 3, 2025
5de1e25
Revert "[MLIR][TORCH] Add aten.special.expm1 op lowering (#3878)"
rahuls-cerebras Jan 3, 2025
ab0819f
Revert "Replace unmaintained `create-release` action (#3905)"
rahuls-cerebras Jan 3, 2025
811e887
Revert "Replace `ubuntu-latest` with specific version (#3906)"
rahuls-cerebras Jan 3, 2025
edb27bd
Revert "Pin and update actions (#3907)"
rahuls-cerebras Jan 3, 2025
15e2d4a
Revert "build: manually update PyTorch version (#3896)"
rahuls-cerebras Jan 3, 2025
671656a
Revert "[TOSA] Add some more mixed dtype handling (#3909)"
rahuls-cerebras Jan 3, 2025
906a0c3
Revert "[onnx][importer] Merge character sanitization into regex (#39…
rahuls-cerebras Jan 3, 2025
8dedb73
Revert "[onnx][importer] Sanitize '-' characters in TensorProto names…
rahuls-cerebras Jan 3, 2025
c2cd79f
Revert "[CI] Disable LTC build from CI (#3911)"
rahuls-cerebras Jan 3, 2025
f889645
Revert "Add support for the padding variations of conv op (#3883)"
rahuls-cerebras Jan 3, 2025
20102b7
Revert "[TOSA] Add logit, log1p, log10 and add promote type to unary …
rahuls-cerebras Jan 3, 2025
1ae33cb
Revert "[TOSA] Add upsample_nearest2d, split_dim, outer, GELU tanh mo…
rahuls-cerebras Jan 3, 2025
60710ca
Revert "Support bf16 on aten.uniform lowering (#3895)"
rahuls-cerebras Jan 3, 2025
2a6b9f6
Revert "aten.pow / onnx.Pow: Fix (float,int) / (int, float) accuracy …
rahuls-cerebras Jan 3, 2025
6fa8e82
Revert "[TorchToLinalg] Add `aten.fft_rfft` and lowering (#3857)"
rahuls-cerebras Jan 3, 2025
20c65b6
Revert "[Torch Dialect] Emit `torch.aten.mul.float_int`, add folder a…
rahuls-cerebras Jan 3, 2025
7fe2fd6
Revert "Support NMS op lowering (#3871)"
rahuls-cerebras Jan 3, 2025
4ec60e9
Revert "Support stash_type attribute for onnx.LayerNormalization (#38…
rahuls-cerebras Jan 3, 2025
8ad6d26
Revert "Add TorchToArith rewrite pattern for AtenGtFloatOp (#3892)"
rahuls-cerebras Jan 3, 2025
1a43203
Revert "[Torch] Address unnecessary dynamic shapes in argmax decompos…
rahuls-cerebras Jan 3, 2025
9f0a407
Revert "convert to double before float materialization in scalarize s…
rahuls-cerebras Jan 3, 2025
ec38cc9
Revert "[Torch Dialect] Add `torch.aten.mul.int_float` (required to s…
rahuls-cerebras Jan 3, 2025
1b6cd0f
Revert "[TorchToStablehlo] support l1_loss, deg2rad, logit (#3865)"
rahuls-cerebras Jan 3, 2025
e8c94b2
Revert "[Torch] support aten.column_stack (#3867)"
rahuls-cerebras Jan 3, 2025
37feff7
Revert "[TOSA] Add reflection and replication pad lowering (#3874)"
rahuls-cerebras Jan 3, 2025
f627b06
Revert "[TorchToLinalg] Use `linalg.transpose` instead of `generic` i…
rahuls-cerebras Jan 3, 2025
1b3bfd3
Revert "Fix a bug for large models in onnx importer. (#3875)"
rahuls-cerebras Jan 3, 2025
96ffb3b
Revert "Bump LLVM to 813f7c3 (#3873)"
rahuls-cerebras Jan 3, 2025
469a7b1
Revert "[ONNX] Remove kernel shape and weight shape equivalence check…
rahuls-cerebras Jan 3, 2025
1d3c7c6
Revert "[Torch Dialect] Allow simplification of shape calculations of…
rahuls-cerebras Jan 3, 2025
ca77a5a
Revert "[ONNX] rework some reduction op lowerings (#3870)"
rahuls-cerebras Jan 3, 2025
c1c0524
Revert "Support default padding case for tosa::AvgPool in the presenc…
rahuls-cerebras Jan 3, 2025
612ccc3
Revert "Add Scalarization Patterns for `AtenToDtypeOp`, `AtenNegOp`, …
rahuls-cerebras Jan 3, 2025
e7389de
Revert "OnnxToTorch bicubic interpolation (#3802)"
rahuls-cerebras Jan 3, 2025
7a5f8ad
Revert old pytorch
rahuls-cerebras Jan 3, 2025
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
4 changes: 2 additions & 2 deletions .github/actions/setup-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
steps:
- name: Set up Python
if: ${{ runner.arch == 'X64' }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@v4
with:
python-version: '3.11'

Expand Down Expand Up @@ -74,7 +74,7 @@ runs:

- name: Enable ccache
if: ${{ inputs.cache-enabled == 'true' }}
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.ccache
key: ${{ runner.os }}-${{ inputs.cache-suffix }}-${{ github.sha }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/RollPyTorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
sudo rm -rf $GITHUB_WORKSPACE/*

- name: Get torch-mlir
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
submodules: 'false'
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:

- name: Post issue comment on build failure
if: failure()
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: 1690
body: |
Expand All @@ -111,7 +111,7 @@ jobs:
- name: Update PyTorch Build Cache (if running on main branch)
if: github.ref_name == 'main'
id: cache-pytorch
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache@v3
with:
path: ${{ github.workspace }}/build_tools/python_deploy/wheelhouse
key: ${{ runner.os }}-pytorch-${{ env.PT_HASH }}
Expand All @@ -127,7 +127,7 @@ jobs:
git pull origin main

- name: Create pull request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
uses: peter-evans/create-pull-request@v5.0.1
with:
author: Roll PyTorch Action <[email protected]>
branch: rollpytorch
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/bazelBuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:
jobs:
ubuntu-build:
name: ubuntu-x86_64
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- name: Prepare workspace
Expand All @@ -32,15 +32,15 @@ jobs:
sudo rm -rf $GITHUB_WORKSPACE/*

- name: Checkout torch-mlir
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
submodules: 'true'

# Continually update cache even if there's a "hit" during
# restore to avoid the cache going stale over time
# https://github.com/actions/cache/blob/main/workarounds.md#update-a-cache
- name: Setup cache for bazel
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: torch_mlir-bazel-build-cache-${{ runner.os }}-${{ github.sha }}
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:

- name: Send mail
if: failure()
uses: dawidd6/action-send-mail@2cea9617b09d79a095af21254fbcb7ae95903dde # v3.12.0
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{ secrets.SMTP_SERVER }}
server_port: ${{ secrets.SMTP_PORT }}
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/buildRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
sudo rm -rf $GITHUB_WORKSPACE/*

- name: Get torch-mlir
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: 0
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Publish Release (if requested)
if: github.event.inputs.release_id != ''
id: publish_release
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
with:
Expand All @@ -75,7 +75,7 @@ jobs:
#
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
- name: Store the binary wheel
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
Expand All @@ -96,7 +96,7 @@ jobs:
sudo rm -rf $GITHUB_WORKSPACE/*

- name: Get torch-mlir
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: 0
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
- name: Publish Release (if requested)
if: github.event.inputs.release_id != ''
id: publish_release
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
with:
Expand All @@ -143,7 +143,7 @@ jobs:
#
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
- name: Store the binary wheel
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
Expand All @@ -156,7 +156,7 @@ jobs:
package: [torch-mlir]
steps:
- name: Get torch-mlir
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
submodules: 'true'
- uses: ./.github/actions/setup-build
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
- name: Publish Release (if requested)
if: github.event.inputs.release_id != ''
id: publish_release
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
with:
Expand All @@ -203,7 +203,7 @@ jobs:
#
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
- name: Store the binary wheel
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist
Expand All @@ -216,7 +216,7 @@ jobs:
package: [torch-mlir]
steps:
- name: Get torch-mlir
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
submodules: 'true'
- uses: ./.github/actions/setup-build
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
- name: Publish Release (if requested)
if: github.event.inputs.release_id != ''
id: publish_release
uses: eregon/publish-release@01df127f5e9a3c26935118e22e738d95b59d10ce # v1.0.6
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
with:
Expand All @@ -267,13 +267,13 @@ jobs:
#
# See https://github.com/pypa/gh-action-pypi-publish/discussions/15
- name: Store the binary wheel
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

publish_releases:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs:
- build_linux
- build_linux_arm64
Expand All @@ -285,7 +285,7 @@ jobs:

steps:
- name: Invoke Publish Releases Page
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Publish releases page
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
scrape_and_publish_releases:
name: "Scrape and publish releases"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

# Don't run this in everyone's forks.
if: github.repository == 'llvm/torch-mlir'
Expand All @@ -20,7 +20,7 @@ jobs:
# existing lock files.
sudo rm -rf $GITHUB_WORKSPACE/*
- name: Checking out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
- name: Run scrape releases script
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/merge-rollpytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
merge-pr:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: |
github.repository == 'llvm/torch-mlir' &&
github.event.workflow_run.actor.login == 'stellaraccident' &&
Expand All @@ -18,7 +18,7 @@ jobs:
steps:
# Fetch the repo first so that the gh command knows where to look for the PR
- name: Fetch Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/oneshotSnapshotPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
sudo rm -rf $GITHUB_WORKSPACE/*

- name: Checking out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}

Expand All @@ -43,15 +43,16 @@ jobs:

- name: Create Release
id: create_release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
with:
tag: ${{ env.tag_name }}
name: torch-mlir snapshot ${{ env.tag_name }}
tag_name: ${{ env.tag_name }}
release_name: torch-mlir snapshot ${{ env.tag_name }}
body: |
Automatic snapshot release of torch-mlir.
draft: true
prerelease: false
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}

- name: "Invoke workflow :: Build and Test"
uses: benc-uk/workflow-dispatch@v1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pre-commit-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:

jobs:
pre-commit:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
extra_args: --color=always --all-files
8 changes: 4 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:

jobs:
pre-commit:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@v3
with:
# requites to grab the history of the PR
fetch-depth: 0
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
with:
extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
17 changes: 9 additions & 8 deletions .github/workflows/releaseSnapshotPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
release_snapshot_package:
name: "Tag snapshot release"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
# Don't run this in everyone's forks.
if: github.repository == 'llvm/torch-mlir'
steps:
Expand All @@ -21,7 +21,7 @@ jobs:
sudo rm -rf $GITHUB_WORKSPACE/*

- name: Checking out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@v3
with:
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}

Expand All @@ -46,25 +46,26 @@ jobs:

- name: Create Release
id: create_release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
with:
tag: ${{ env.tag_name }}
name: torch-mlir snapshot ${{ env.tag_name }}
tag_name: ${{ env.tag_name }}
release_name: torch-mlir snapshot ${{ env.tag_name }}
body: |
Automatic snapshot release of torch-mlir.
draft: true
prerelease: false
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}

- name: "Invoke workflow :: Build and Test"
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Build and Test
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
ref: "${{ env.tag_name }}"

- name: "Invoke workflow :: Release Build"
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Release Build
token: ${{ secrets.WORKFLOW_INVOCATION_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion build_tools/ci/build_posix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$repo_root" \
-DLLVM_TARGETS_TO_BUILD=host \
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
-DTORCH_MLIR_ENABLE_LTC=OFF \
-DTORCH_MLIR_ENABLE_LTC=ON \
-DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON
echo "::endgroup::"

Expand Down
2 changes: 1 addition & 1 deletion externals/llvm-project
Submodule llvm-project updated 10963 files
Loading
Loading