mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-16 13:20:39 -07:00
* fix(setup): install mlx-lm and mlx-audio in setup-python on Apple Silicon The dev setup installed requirements-mlx.txt but not mlx-audio/mlx-lm themselves, so POST /transcribe failed on a fresh Apple Silicon setup with "No module named 'mlx_audio'" (then "No module named 'mlx_lm'"). The release workflow already installs both with --no-deps (they declare transformers>=5.x, conflicting with our <=4.57.x cap); mirror that in the setup-python recipe with the same pins. Co-Authored-By: Claude Fable 5 <[email protected]> * test: add MLX smoke test for the --no-deps mlx-audio/mlx-lm install mlx-audio and mlx-lm are installed --no-deps, so a missing transitive dependency only surfaces at import time. Add a pytest-discoverable smoke test (skipped off Apple Silicon) covering the exact entry points the backend uses: mlx_audio.tts.load, mlx_audio.stt.load (which also exercises the miniaudio dep from issue #505), mlx_lm.load/generate, and a basic mlx.core op. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
24 lines
1.1 KiB
Plaintext
24 lines
1.1 KiB
Plaintext
# MLX-specific dependencies (Apple Silicon only)
|
|
# These should only be installed on aarch64-apple-darwin platforms
|
|
|
|
mlx>=0.30.0
|
|
|
|
# miniaudio is a runtime dep of mlx-audio's STT path (mlx_audio.stt).
|
|
# mlx-audio itself is installed --no-deps (see comment below), so we
|
|
# must list miniaudio explicitly here or transcription fails on fresh
|
|
# M1 installs with `ModuleNotFoundError: miniaudio` (issue #505).
|
|
miniaudio>=1.59
|
|
|
|
# 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 and the setup-python recipe in the
|
|
# justfile). Most other mlx-audio runtime deps
|
|
# (huggingface_hub, librosa, mlx-lm, numba, numpy, protobuf, pyloudnorm,
|
|
# sounddevice, tqdm) are already in requirements.txt or pulled in by
|
|
# other engines.
|