Commit 2d9be57
committed
transformers 5.13.0 changed AutoTokenizer.register to require a config
class as the key; mlx-lm 0.31.x registers by name ("NewlineTokenizer"),
so `import mlx_lm` raises AttributeError('str' has no '__module__')
before any model can load. Every venv resolved after 5.13.0 shipped is
dead on arrival — three independent reporters in 24h (#136 + 2 dupes,
#135 is timing-consistent), and we hit the identical crash ourselves on
2026-07-03 and pinned the local venv manually (this makes the fix
survive the app's fingerprint force-reinstall, which the manual pin did
not). Marker-gated like the sibling mlx pins.
Same content as PR #137 by @davidtai (verified: bisect 5.12.1 good /
5.13.0 bad matches our own finding). Wheel metadata verified:
Requires-Dist: transformers<5.13 present in the built wheel.
Drop the cap once mlx-lm registers the 5.13-compatible way
(ml-explore/mlx-lm#1465).
1 parent 08905f8 commit 2d9be57
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
0 commit comments