Skip to content

Commit b2caf35

Browse files
committed
Merge main
2 parents 4485e83 + ab8c090 commit b2caf35

File tree

3,158 files changed

+118157
-65597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,158 files changed

+118157
-65597
lines changed

.github/workflows/before_merge.yaml

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,52 @@ jobs:
9393
name: model-tests-metrics-group-${{ matrix.group }}
9494
path: metrics/
9595

96+
push-autogen-op-tests:
97+
needs: [model-tests]
98+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_report != 'None'}}
99+
runs-on: ["in-service"]
100+
env:
101+
PYTHONPATH: ${{ github.workspace }}
102+
steps:
103+
- uses: actions/checkout@v4
104+
- uses: ./.github/actions/common_repo_setup
105+
106+
- name: Download All Metrics Artifacts
107+
uses: actions/download-artifact@v4
108+
with:
109+
pattern: model-tests-metrics-group-*
110+
merge-multiple: true
111+
path: metrics/
112+
113+
- name: Push Autogen Op Tests
114+
run: |
115+
git config user.name "GitHub Actions"
116+
git config user.email "[email protected]"
117+
git pull
118+
119+
rm -rf tests/autogen_op/ # Remove old tests
120+
python3 tools/generate_input_variation_test_from_models.py
121+
python3 tools/generate_input_variation_test_from_models.py --merge=True
122+
echo "Remove these files because it's heavy for running"
123+
rm -f tests/autogen_op/Stable_Diffusion_V2/test_Stable_Diffusion_V2_aten_convolution_default.py
124+
if [ "${{ github.event.inputs.commit_report }}" == "All" ]; then
125+
git add --all
126+
elif [ "${{ github.event.inputs.commit_report }}" == "Tests" ]; then
127+
git add tests/
128+
else
129+
echo "No files will be committed"
130+
exit 0
131+
fi
132+
if git diff --cached --quiet; then
133+
echo "No changes to commit"
134+
exit 0
135+
else
136+
git commit -m '[auto][on-merge-queue] Update input variations tests'
137+
git push
138+
fi
139+
96140
model-autogen-op-tests:
97-
needs: lowering-tests
141+
needs: [push-autogen-op-tests]
98142
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_report != 'None'}}
99143
runs-on: ["in-service"]
100144
strategy:
@@ -111,6 +155,7 @@ jobs:
111155
- name: Run Model Input Variations Tests
112156
run: |
113157
set +e
158+
git pull
114159
rm -rf tests/autogen_op/ALL
115160
python3 -m pytest --github-report tests/autogen_op --splits 40 --group ${{ matrix.group }} -s
116161
exit_code=$? # Capture the exit code, but ignore any errors for now.
@@ -173,7 +218,7 @@ jobs:
173218
path: metrics-autogen-op/
174219

175220
collect-metrics:
176-
needs: [model-tests, model-autogen-op-tests]
221+
needs: [model-autogen-op-tests]
177222
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_report != 'None'}}
178223
runs-on: ["in-service"]
179224
env:
@@ -234,50 +279,6 @@ jobs:
234279
git push
235280
fi
236281
237-
push-autogen-op-tests:
238-
needs: [model-tests, collect-metrics]
239-
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_report != 'None'}}
240-
runs-on: ["in-service"]
241-
env:
242-
PYTHONPATH: ${{ github.workspace }}
243-
steps:
244-
- uses: actions/checkout@v4
245-
- uses: ./.github/actions/common_repo_setup
246-
247-
- name: Download All Metrics Artifacts
248-
uses: actions/download-artifact@v4
249-
with:
250-
pattern: model-tests-metrics-group-*
251-
merge-multiple: true
252-
path: metrics/
253-
254-
- name: Push Autogen Op Tests
255-
run: |
256-
git config user.name "GitHub Actions"
257-
git config user.email "[email protected]"
258-
git pull
259-
260-
rm -rf tests/autogen_op/ # Remove old tests
261-
python3 tools/generate_input_variation_test_from_models.py
262-
python3 tools/generate_input_variation_test_from_models.py --merge=True
263-
echo "Remove these files because it's heavy for running"
264-
rm -f tests/autogen_op/Stable_Diffusion_V2/test_Stable_Diffusion_V2_aten_convolution_default.py
265-
if [ "${{ github.event.inputs.commit_report }}" == "All" ]; then
266-
git add --all
267-
elif [ "${{ github.event.inputs.commit_report }}" == "Tests" ]; then
268-
git add tests/
269-
else
270-
echo "No files will be committed"
271-
exit 0
272-
fi
273-
if git diff --cached --quiet; then
274-
echo "No changes to commit"
275-
exit 0
276-
else
277-
git commit -m '[auto][on-merge-queue] Update input variations tests'
278-
git push
279-
fi
280-
281282
validate-pr:
282283
if: ${{ always() }}
283284
runs-on: ubuntu-latest

.github/workflows/update-ttnn-wheel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
latest_version=${{ steps.fetch_release.outputs.release }}
3131
latest_version_short=$(echo $latest_version | sed 's/-rc/rc/')
3232
sed -i '/^https:\/\/github\.com\/tenstorrent\/tt-metal\/releases\//d' requirements.txt
33-
echo "https://github.com/tenstorrent/tt-metal/releases/download/v$latest_version/metal_libs-$latest_version_short+wormhole.b0-cp38-cp38-linux_x86_64.whl" >> requirements.txt
33+
echo "https://github.com/tenstorrent/tt-metal/releases/download/v$latest_version/ttnn-$latest_version_short+wormhole.b0-cp38-cp38-linux_x86_64.whl" >> requirements.txt
3434
3535
- name: Create Pull Request
3636
uses: peter-evans/create-pull-request@v7

0 commit comments

Comments
 (0)