use torch to compute discrepancies in OnnxDiscrepancyCheck (#2540) #352
This file contains hidden or 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 job is run as a github action. | |
| # It checks Olive works on random and small models. | |
| name: Test model fast | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| ubuntu-test-model-fast: | |
| name: Ubuntu test model fast | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install -r requirements.txt | |
| python -m pip install -r test/requirements-test-cpu.txt | |
| - name: pip freeze | |
| run: | | |
| python -m pip freeze | |
| - name: Run fast test | |
| run: | | |
| python -m pytest -v -s -p no:warnings --disable-warnings --log-cli-level=WARNING test/cli/test_cli_test_model_smoke.py test/cli/test_cli_whisper_smoke.py |