@@ -480,6 +480,32 @@ jobs:
480480 PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
481481 PYTHON_EXECUTABLE=python bash .ci/scripts/test_model.sh ${{ matrix.model }} "cmake" "qnn"
482482
483+ test-qnn-optimum-model :
484+ name : test-qnn-optimum-model
485+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
486+ permissions :
487+ id-token : write
488+ contents : read
489+ strategy :
490+ matrix :
491+ dtype : [fp32]
492+ model : [albert, bert, distilbert] # eurobert requires transfomer >= 4.48.0, skip for now
493+ fail-fast : false
494+ with :
495+ runner : linux.2xlarge
496+ docker-image : executorch-ubuntu-22.04-qnn-sdk
497+ submodules : ' recursive'
498+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
499+ timeout : 900
500+ script : |
501+ # The generic Linux job chooses to use base env, not the one setup by the image
502+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
503+ conda activate "${CONDA_ENV}"
504+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool cmake
505+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
506+ PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
507+ PYTHON_EXECUTABLE=python bash .ci/scripts/test_model.sh ${{ matrix.model }} "cmake" "qnn"
508+
483509 test-apple-model :
484510 name : test-apple-model
485511 uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
@@ -571,9 +597,8 @@ jobs:
571597 git clone https://github.com/huggingface/optimum-executorch
572598 pushd optimum-executorch
573599 # There is no release yet, for CI stability, always test from the same commit on main
574- git checkout 1c653dc49812fc431a22312c7295d97005d22e12
575- pip install .[tests]
576- pip install transformers==4.52.4
600+ git checkout 4c3b18f6cca68c5ccff809131d570062723d7188
601+ python install_dev.py --skip_override_torch
577602 popd
578603 pip list
579604 echo "::endgroup::"
0 commit comments