Fix training #1994
Workflow file for this run
This file contains 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
name: Optimum neuron / Test INF2 | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "setup.py" | |
- "optimum/**.py" | |
- ".github/workflows/test_inf2.yml" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "setup.py" | |
- "optimum/**.py" | |
- ".github/workflows/test_inf2.yml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
do-the-job: | |
name: Run INF2 tests | |
runs-on: | |
group: aws-inf2-8xlarge | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Neuronx runtime | |
uses: ./.github/actions/install_neuronx_runtime | |
- name: Prepare virtual environment | |
uses: ./.github/actions/prepare_venv | |
- name: Install optimum-neuron | |
uses: ./.github/actions/install_optimum_neuron | |
- name: Run cache tests | |
run: | | |
source aws_neuron_venv_pytorch/bin/activate | |
HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_NEURON_CI }} pytest -m is_inferentia_test tests/cache | |
- name: Run CLI tests | |
run: | | |
source aws_neuron_venv_pytorch/bin/activate | |
HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_NEURON_CI }} pytest -m is_inferentia_test tests/cli | |
- name: Run non-llm generation tests | |
run: | | |
source aws_neuron_venv_pytorch/bin/activate | |
HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_NEURON_CI }} pytest -m is_inferentia_test --ignore=tests/generation/test_parallel.py tests/generation | |
- name: Run parallel tests | |
run: | | |
source aws_neuron_venv_pytorch/bin/activate | |
HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_NEURON_CI }} pytest -m is_inferentia_test tests/generation/test_parallel.py |