Skip to content

Commit bf58750

Browse files
jamiepineclaude
andauthored
fix(build): pin transformers in MLX requirements to prevent 5.x upgrade (#481)
mlx-audio depends on `transformers` with no upper bound. Installing requirements-mlx.txt after requirements.txt lets pip upgrade transformers past the 4.57.x cap to 5.x, which breaks three engines in the frozen MLX bundle: - qwen-custom-voice: `check_model_inputs` was rewritten to take `func` as positional, so `@check_model_inputs()` factory calls fail with `TypeError: missing 1 required positional argument: 'func'` - tada-1b: `PretrainedConfig.__init_subclass__` now applies `@dataclass`, which rejects tada's `strides: list = []` mutable default - luxtts: Whisper init hits `AssertionError` in `torch._refs.normal_` Restating the same constraint here keeps mlx-audio's transformers dependency from quietly winning the resolver. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2d56309 commit bf58750

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

backend/requirements-mlx.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33

44
mlx>=0.30.0
55
mlx-audio>=0.3.1
6+
7+
# Restate the transformers cap from requirements.txt. mlx-audio depends on
8+
# `transformers` with no upper bound, so installing it after requirements.txt
9+
# lets pip upgrade transformers past 4.57.x (latest is 5.x), which breaks
10+
# qwen-custom-voice (`@check_model_inputs()` API change), tada-1b (dataclass
11+
# `mutable default` enforcement), and luxtts (Whisper init path) in the
12+
# frozen MLX bundle. Keep this constraint in sync with requirements.txt.
13+
transformers>=4.36.0,<=4.57.6

0 commit comments

Comments
 (0)