Skip to content

Commit 69bfaea

Browse files
committed
enable llama test for qnn
1 parent aa1fb8a commit 69bfaea

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pull.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,3 +372,38 @@ jobs:
372372
373373
# Run pytest with coverage
374374
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}"

0 commit comments

Comments
 (0)