Skip to content

Transformers 5.x + Spec-dec upgrade (SpecInfer/Sequoia) + Qwen3 & Gemma-4 support #66

Transformers 5.x + Spec-dec upgrade (SpecInfer/Sequoia) + Qwen3 & Gemma-4 support

Transformers 5.x + Spec-dec upgrade (SpecInfer/Sequoia) + Qwen3 & Gemma-4 support #66

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel grpcio-tools
git clone https://github.com/learning-at-home/hivemind.git /tmp/hivemind
git -C /tmp/hivemind checkout 4bd43b77895019b20d18d81d0d0c1a5ab9a10847
python - <<'PY'
from pathlib import Path
pyproject = Path("/tmp/hivemind/pyproject.toml")
text = pyproject.read_text()
old = 'license = "MIT"'
new = 'license = {text = "MIT"}'
if old not in text:
raise SystemExit("Expected Hivemind pyproject license field not found")
pyproject.write_text(text.replace(old, new, 1))
for path in (Path("setup.py"), Path("setup.cfg")):
lines = path.read_text().splitlines()
filtered = [
line
for line in lines
if "hivemind @ git+https://github.com/learning-at-home/hivemind.git@4bd43b77895019b20d18d81d0d0c1a5ab9a10847"
not in line
]
path.write_text("\n".join(filtered) + "\n")
PY
python -m pip install --no-build-isolation --no-deps /tmp/hivemind
python -m pip install --no-build-isolation -e ".[dev]"
- name: Run cache tests
run: |
pytest tests/test_cache.py -v