Skip to content

Remove unnecessary numpy/thinc/spacy version overrides#243

Open
smirnovlad wants to merge 1 commit intomainfrom
fix/remove-unnecessary-dep-pins
Open

Remove unnecessary numpy/thinc/spacy version overrides#243
smirnovlad wants to merge 1 commit intomainfrom
fix/remove-unnecessary-dep-pins

Conversation

@smirnovlad
Copy link
Copy Markdown
Collaborator

Summary

Remove dependency overrides that were based on the incorrect assumption that vLLM requires numpy 2.x.

Verified that the current working environment uses numpy 1.26.4, thinc 8.2.5, spacy 3.7.5, and vLLM 0.12.0 — all tests pass (195/195), eval pipeline works end-to-end.

Changes

pyproject.toml:

  • numpy>=2.0.0,<2.3.0numpy>=1.23.5 (no upper bound needed)
  • Removed thinc>=8.3.0 (not needed with numpy 1.x)

setup.sh:

  • Removed post-install numpy>=2.0,<2.3 + thinc>=8.3 + spacy>=3.8 pinning block
  • Removed spacy sed patch on lm-polygraph
  • Updated transformers sed patch to match current lm-polygraph main (==4.50.0>=4.50.0)

Why this matters for PyPI

Every override in setup.sh is a hack that pip install thinkbooster can't reproduce. Removing unnecessary ones brings us closer to a clean PyPI package.

Test plan

  • pytest tests/ -v — 195 passed
  • API eval (offline BoN, MATH-500, gpt-4o-mini) — completed successfully
  • Core imports verified with numpy 1.26.4 + thinc 8.2.5 + spacy 3.7.5

The numpy>=2.0 constraint, thinc>=8.3, and spacy>=3.8 pins were based
on the assumption that vLLM requires numpy 2.x. Verified that vLLM 0.12.0
works fine with numpy 1.26.4, thinc 8.2.5, and spacy 3.7.5.

Changes:
- pyproject.toml: numpy>=2.0.0,<2.3.0 -> numpy>=1.23.5, remove thinc pin
- setup.sh: remove post-install numpy/thinc/spacy pinning block,
  remove spacy sed patch, update transformers sed to match main branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant