Unify CosSinRoPE and ComplexRoPE YaRN computation #12286
Workflow file for this run
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
| name: CPU Unit Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'torchtitan/experiments/**' | |
| pull_request: | |
| paths-ignore: | |
| - 'torchtitan/experiments/**' | |
| concurrency: | |
| group: unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test: | |
| uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
| with: | |
| docker-image: torchtitan-ubuntu-22.04-clang12 | |
| repository: pytorch/torchtitan | |
| script: | | |
| set -eux | |
| # The generic Linux job chooses to use base env, not the one setup by the image | |
| CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") | |
| conda activate "${CONDA_ENV}" | |
| pip config --user set global.progress_bar off | |
| pip install --force-reinstall --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu | |
| USE_CPP=0 python -m pip install --pre torchao --index-url https://download.pytorch.org/whl/nightly/cpu | |
| # Write coverage data/report to /tmp (world-writable): the mounted workspace and | |
| # RUNNER_TEMP are owned by the host uid, which the container user (ci-user) can't write. | |
| export COVERAGE_FILE=/tmp/.coverage | |
| pytest tests/unit_tests --cov=. --cov-report=xml:/tmp/coverage.xml --durations=20 -vv |