Update README.md #10
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: Parity check | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| parity: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install deps (CPU only) | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install --index-url https://download.pytorch.org/whl/cpu torch | |
| pip install numpy "jax[cpu]" dm-haiku | |
| pip install git+https://github.com/google-deepmind/tracr.git | |
| - name: Compile & export tracr | |
| run: python scripts/compile_export.py | |
| - name: Verify parity (fail if mismatch) | |
| run: python scripts/parity_check.py |