Release packed RecurQuant cache with held-out MBPP confirmation #12
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: "3.11" | |
| - uses: astral-sh/setup-uv@v9.0.0 | |
| with: | |
| python-version: "3.11" | |
| version: "0.11.31" | |
| - name: Install | |
| run: uv pip install --system -e ".[dev]" | |
| - name: Lint | |
| run: ruff check . | |
| - name: Test | |
| run: pytest | |
| package: | |
| name: Build wheel and sdist | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: "3.11" | |
| - uses: astral-sh/setup-uv@v9.0.0 | |
| with: | |
| version: "0.11.31" | |
| - name: Build distributions | |
| run: uv build | |
| - name: Check distribution metadata | |
| run: uvx --from "twine==6.2.0" twine check --strict dist/* | |
| - uses: actions/upload-artifact@v7.0.1 | |
| with: | |
| name: recurquant-dist | |
| path: dist/* | |
| if-no-files-found: error | |
| retention-days: 7 | |
| wheel-install: | |
| name: Wheel import / ${{ matrix.os }} / Python ${{ matrix.python-version }} | |
| needs: package | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 35 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| python-version: "3.11" | |
| - os: ubuntu-latest | |
| python-version: "3.13" | |
| - os: windows-latest | |
| python-version: "3.11" | |
| steps: | |
| - uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/download-artifact@v8.0.1 | |
| with: | |
| name: recurquant-dist | |
| path: dist | |
| - name: Install CPU PyTorch | |
| run: python -m pip install "torch>=2.7" --index-url https://download.pytorch.org/whl/cpu | |
| - name: Install the built wheel | |
| run: >- | |
| python -c "import pathlib, subprocess, sys; | |
| wheel = next(pathlib.Path('dist').glob('*.whl')); | |
| subprocess.check_call([sys.executable, '-m', 'pip', 'install', str(wheel)])" | |
| - name: Validate import and console entry point | |
| run: | | |
| python -c "import importlib.metadata as m, recurquant; assert m.version('recurquant') == recurquant.__version__ == '0.2.0.dev0'; print(recurquant.__version__)" | |
| recurquant demo --bits 4 --group-size 16 |