fix: load embed_tokens and norm for ColQwen2/ColQwen2_5 on transformers 5.x #1109
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: Test (non-slow only) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[all]" | |
| # Hugging Face Hub rate-limits unauthenticated requests from shared runner IPs (HTTP 429). | |
| # With a warm cache, huggingface_hub falls back to cached files when a HEAD request fails. | |
| - name: Cache Hugging Face models | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/huggingface | |
| key: huggingface-${{ runner.os }}-${{ hashFiles('tests/**/*.py') }} | |
| restore-keys: | | |
| huggingface-${{ runner.os }}- | |
| - name: Run tests with pytest (except "slow" tests) | |
| run: | | |
| pytest -m "not slow" | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} |