Skip to content

Improve tokenizer and model handling for Transformers v5 compatibility #436

Improve tokenizer and model handling for Transformers v5 compatibility

Improve tokenizer and model handling for Transformers v5 compatibility #436

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
jobs:
run-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install self
working-directory: ${{github.workspace}}
run: |
# Since pylate makes problems otherwise:
pip3 install pylate git+https://github.com/mjeensung/xtr-pytorch.git --no-deps
pip3 install .[test,dev] --extra-index-url https://download.pytorch.org/whl/cpu
pip3 cache purge
- name: Run tests
working-directory: ${{github.workspace}}
run: pytest tests