Skip to content

Commit e5ab29e

Browse files
codelionclaude
andauthored
Fix PyPI wheel deps: add math-verify, cap transformers <5.13 (bump 0.3.21) (#318)
The published wheel is built from pyproject.toml [project.dependencies], which had drifted from requirements.txt. As a result `pip install optillm` shipped a broken package: - math-verify was missing entirely, so `import optillm` failed with ModuleNotFoundError (optillm.cepo imports math_verify at import time) -- the package would not even start. - transformers was unpinned, so the mlx-lm cap added in 0.3.19 (requirements.txt only) never reached PyPI; installs pulled transformers 5.13.0 and broke mlx-lm on Apple silicon. Sync the runtime deps into pyproject.toml: - add math-verify - transformers>=5.0.0,<5.13.0 - outlines[transformers]>=1.2.3 Verified by building the wheel and installing it into a clean venv (only its declared deps) and importing optillm successfully. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 205a037 commit e5ab29e

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎optillm/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Version information
2-
__version__ = "0.3.20"
2+
__version__ = "0.3.21"
33

44
import os as _os
55

‎pyproject.toml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "optillm"
7-
version = "0.3.20"
7+
version = "0.3.21"
88
description = "An optimizing inference proxy for LLMs."
99
readme = "README.md"
1010
license = "Apache-2.0"
@@ -24,7 +24,9 @@ dependencies = [
2424
"aiohttp",
2525
"flask",
2626
"torch",
27-
"transformers",
27+
# Cap below 5.13: transformers 5.13.0 tightened AutoTokenizer.register() to
28+
# require a class, which breaks mlx-lm (registers a tokenizer by string name).
29+
"transformers>=5.0.0,<5.13.0",
2830
"azure-identity",
2931
"tiktoken",
3032
"scikit-learn",
@@ -44,11 +46,12 @@ dependencies = [
4446
"gradio<5.16.0",
4547
"spacy>=3.7.0",
4648
"cerebras_cloud_sdk",
47-
"outlines[transformers]",
49+
"outlines[transformers]>=1.2.3",
4850
"sentencepiece",
4951
"mcp",
5052
"adaptive-classifier",
5153
"datasets",
54+
"math-verify",
5255
"PyYAML",
5356
"selenium",
5457
"webdriver-manager",

0 commit comments

Comments
 (0)