feat: add macOS Apple Silicon MLX support for transcription - #1
Open
SepineTam wants to merge 2 commits into
Open
feat: add macOS Apple Silicon MLX support for transcription#1SepineTam wants to merge 2 commits into
SepineTam wants to merge 2 commits into
Conversation
- detect_device() now returns "mlx" on Apple Silicon when mlx-whisper is installed - transcribe() branches between faster-whisper (cpu/cuda) and mlx-whisper (mlx) - add mlx-whisper as optional dependency under [project.optional-dependencies] - update transcriber tests to cover mlx device detection and transcription path
Mention Apple Silicon MLX auto-detection and pip install snipclip[mlx].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds first-class transcription support for macOS Apple Silicon via mlx-whisper, allowing
snipclipto automatically leverage the Neural Engine on M-series Macs.Changes
detect_device()now returns"mlx"on Apple Silicon whenmlx-whisperis installed.transcribe()branches betweenfaster-whisper(cpu/cuda) andmlx-whisper(mlx).mlx-whisperas an optional dependency under[project.optional-dependencies].tests/test_transcriber.pyto cover MLX device detection and transcription path.README.mdandREADME_en.mdwith MLX install instructions (pip install snipclip[mlx]).Motivation
On Apple Silicon,
faster-whisperfalls back to CPU.mlx-whisperprovides significantly better performance by running on the Apple Neural Engine, making transcription usable locally on M-series laptops.Testing
Installation