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

Add test_all_subset_models mode #2428

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

Conversation

kwasd
Copy link
Contributor

@kwasd kwasd commented Oct 7, 2024

For #2246

@kwasd kwasd requested a review from pbchekin October 7, 2024 13:03
@kwasd
Copy link
Contributor Author

kwasd commented Oct 7, 2024

@vlad-penkin vlad-penkin linked an issue Oct 7, 2024 that may be closed by this pull request
.github/workflows/e2e-performance.yml Outdated Show resolved Hide resolved
.github/workflows/e2e-accuracy.yml Outdated Show resolved Hide resolved
@@ -225,7 +229,7 @@ jobs:
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 ${{ inputs.only_one_model }}
elif [[ "${{ inputs.models }}" == "subset" ]]; then
while read model; do
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 $model
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 $model || ${{ inputs.test_all_subset_models }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work as expected, the script returns 0 even if some accuracy tests or performance runs failed. You need to check the report (csv file) and verify it has all items from a corresponding subset and every item has passed. See https://github.com/intel/intel-xpu-backend-for-triton/blob/main/.github/workflows/build-test-reusable.yml#L179-L181 for the idea.

@kwasd kwasd requested a review from pbchekin October 8, 2024 10:33
@@ -226,6 +230,7 @@ jobs:
elif [[ "${{ inputs.models }}" == "subset" ]]; then
while read model; do
bash -e $GITHUB_WORKSPACE/scripts/inductor_xpu_test.sh ${{ inputs.suite }} ${{ inputs.dtype }} ${{ inputs.mode }} ${{ inputs.test_mode }} xpu 0 static 1 0 $model
grep ,$model, $WORKSPACE/inductor_log/*/*/*.csv | grep -q ,pass, || ${{ inputs.test_all_subset_models }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will work only for accuracy. Also for accuracy it is possible that CSV file does not exist (major failure with E2E) in this case the one liner above won't work. I think you need more sophisticated script to handle accuracy/performance and all corner cases. The idea is you need to check that every model from the subset was successfully executed.

@kwasd kwasd marked this pull request as draft October 9, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subset of E2E models for accuracy tests
2 participants