Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ jobs:
if: matrix.backend == 'mlx'
run: |
pip install -r backend/requirements-mlx.txt
# mlx-audio>=0.3.1 and mlx-lm>=0.31.1 both declare transformers>=5.x,
# which conflicts with our 4.57.x cap. The runtime APIs we use work
# fine on transformers 4.57.x in practice (verified in dev), so install
# them --no-deps. mlx-audio's other runtime deps (huggingface_hub,
# librosa, numpy, numba, pyloudnorm) are already in requirements.txt;
# the rest (sounddevice, miniaudio, protobuf, sentencepiece, pyyaml,
# jinja2) are pulled in by other engines.
pip install --no-deps mlx-lm==0.31.1
pip install --no-deps mlx-audio==0.4.1

- name: Build Python server (Linux/macOS)
if: matrix.platform != 'windows-latest'
Expand Down
18 changes: 10 additions & 8 deletions backend/requirements-mlx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
# These should only be installed on aarch64-apple-darwin platforms

mlx>=0.30.0
mlx-audio>=0.3.1

# Restate the transformers cap from requirements.txt. mlx-audio depends on
# `transformers` with no upper bound, so installing it after requirements.txt
# lets pip upgrade transformers past 4.57.x (latest is 5.x), which breaks
# qwen-custom-voice (`@check_model_inputs()` API change), tada-1b (dataclass
# `mutable default` enforcement), and luxtts (Whisper init path) in the
# frozen MLX bundle. Keep this constraint in sync with requirements.txt.
transformers>=4.36.0,<=4.57.6
# NOTE: mlx-audio is intentionally not listed here. From 0.3.1 onward it
# declares `transformers==5.0.0rc3` / `>=5.0.0`, which conflicts with the
# `transformers<=4.57.6` cap in requirements.txt and breaks CI's clean
# resolver. The mlx-audio API surface we use (mlx_audio.tts.load,
# mlx_audio.stt.load) works fine on transformers 4.57.x in practice.
#
# Install it via `pip install --no-deps mlx-audio==0.4.1` after this file
# (see .github/workflows/release.yml). All other mlx-audio runtime deps
# (huggingface_hub, librosa, miniaudio, mlx-lm, numba, numpy, protobuf,
# pyloudnorm, sounddevice, tqdm) are already in requirements.txt.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local dev setup missing mlx-audio and mlx-lm

High Severity

Removing mlx-audio from requirements-mlx.txt breaks local developer setup on Apple Silicon. The justfile setup-python recipe and several documentation pages (TROUBLESHOOTING.md, setup.mdx) instruct users to install requirements-mlx.txt, which now only contains mlx>=0.30.0. The --no-deps workaround for mlx-audio and mlx-lm was only added to release.yml, so developers running just setup will be missing these packages and the MLX backend will fail at runtime when importing mlx_audio.tts.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 34a53ba. Configure here.

Loading