Repository navigation
Align the JAX causal mask bottom-right when queries and keys differ (… #249
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: mypy | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/mypy.yml" | |
| - "pytensor_ml/**" | |
| - "scripts/run_mypy.py" | |
| - "pyproject.toml" | |
| - "conda_envs/**" | |
| # Cancels all previous workflow runs for pull requests that have not completed. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| mypy: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| env: | |
| CACHE_NUMBER: 0 | |
| with: | |
| path: ~/conda_pkgs_dir | |
| key: ${{ runner.os }}-py312-conda-${{ env.CACHE_NUMBER }}-${{ | |
| hashFiles('conda_envs/pytensor_ml.yml') }} | |
| - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1 | |
| with: | |
| miniforge-variant: Miniforge3 | |
| miniforge-version: latest | |
| mamba-version: "*" | |
| activate-environment: pytensor_ml | |
| channel-priority: strict | |
| environment-file: conda_envs/pytensor_ml.yml | |
| python-version: 3.12 | |
| use-mamba: true | |
| use-only-tar-bz2: false | |
| - name: Install current branch | |
| run: | | |
| conda activate pytensor_ml | |
| pip install -e . | |
| python --version | |
| - name: Run mypy | |
| run: | | |
| conda activate pytensor_ml | |
| python ./scripts/run_mypy.py |