File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -372,3 +372,38 @@ jobs:
372
372
373
373
# Run pytest with coverage
374
374
pytest -c /dev/null -v -n auto --cov=./ --cov-report=xml backends/arm/test
375
+
376
+
377
+ test-llama-runner-qnn-linux :
378
+ name : test-llama-runner-qnn-linux
379
+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
380
+ strategy :
381
+ matrix :
382
+ dtype : [fp32]
383
+ build-tool : [cmake]
384
+ mode : [qnn]
385
+ fail-fast : false
386
+ with :
387
+ runner : linux.2xlarge
388
+ docker-image : executorch-ubuntu-22.04-clang12-android
389
+ submodules : ' true'
390
+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
391
+ timeout : 900
392
+ script : |
393
+ # The generic Linux job chooses to use base env, not the one setup by the image
394
+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
395
+ conda activate "${CONDA_ENV}"
396
+
397
+ DTYPE=${{ matrix.dtype }}
398
+ BUILD_TOOL=${{ matrix.build-tool }}
399
+ MODE=${{ matrix.mode }}
400
+
401
+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh
402
+ PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh
403
+
404
+ # Setup executorch
405
+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh buck2
406
+ # Install requirements for export_llama
407
+ PYTHON_EXECUTABLE=python bash examples/models/llama2/install_requirements.sh
408
+ # Test llama2
409
+ PYTHON_EXECUTABLE=python bash .ci/scripts/test_llama.sh stories110M "${BUILD_TOOL}" "${DTYPE}" "${MODE}"
You can’t perform that action at this time.
0 commit comments