Repository navigation
Add MLX Whisper and faster-whisper instrumentation - #88
Merged
Merged
Conversation
Coverage report
Top uncovered files
|
This was referenced Oct 20, 2026
- Name models once at load: Hugging Face cache paths use the repo name instead of the snapshot hash, and local folders resolve relative paths. - Record every real load, including MLX reloads after switching models and repeat WhisperModel instances. - Track BatchedInferencePipeline, which does not go through WhisperModel.transcribe. - Report a faster-whisper loop that exits early as STREAM_ABANDONED when the iterator is collected; never-iterated streams send nothing. - Bind faster-whisper models with bind_client_reference like provider clients, so a replaced client warns once. - Report time_to_first_segment_ms; leave out word counts for languages written without spaces. - Detect the MLX device and bf16, and read quantization from layers for models cached before instrumentation. - Share one capture limit constant, clearer track_transcription arguments, a transcript collector class and one MLX fallback helper. - Split and extend tests; restructure docs/whisper.md; add a changelog entry.
- Name backend, source, WAV encoding and upstream-default constants, and move 16-bit WAV encoding into its own helper. - Share Hugging Face cache path parsing with the ONNX integration, and STREAM_* error codes with the stream integrations. - Add reload= to the client's auto-load callback instead of editing its dedupe set from the integration; record cached MLX loads through one helper. - Expose started/finished on stream wrappers so the segment stream no longer reads private state. - Compare MLX devices directly, leave unknown dtypes unlabelled, bind the MLX loader's signature, and reuse registered handles per transcription. - Clearer names and keyword arguments; tests share the MLX fixture and use a weak-referenceable fake model.
Whisper reported "gpu", which no other integration uses. faster-whisper now
passes through CTranslate2's resolved device ("cpu" or "cuda") and MLX
reports "mps" for the Apple GPU, matching GGUF, TensorFlow and Keras on the
same machine. Accelerator names live in the new wildedge.accelerators module.
This was referenced Oct 21, 2026
Merged
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.
Adds opt-in
mlx_whisperandfaster_whisperintegrations for local speech recognition, closing #65. Seedocs/whisper.md.Model loads
WhisperModelinstances.model_cache_hit=true.Transcriptions
time_to_first_segment_msfor faster-whisper.BatchedInferencePipelineis tracked too.faster-whisper lifecycle
close()and decoder errors each record one outcome.close()recordsSTREAM_ABANDONEDwhen the iterator is collected. This is a deliberate exception to the no-finalizer rule indocs/streaming.md; otherwise early-stopped and failed transcriptions would vanish silently.bind_client_reference.Capture
attachments_enabled=True.Shared changes outside the Whisper modules
wildedge/accelerators.pywith the SDK's accelerator names. Whisper reportscuda/mps/cpulike the other integrations; moving the rest of the SDK onto it follows in a separate PR.reload=.started/finished.hf_repo_from_cache_path()is now shared with ONNX.stream_error_code()is now shared by the OpenAI, Anthropic and GGUF streams.Before 0.3.0: raw audio uploads whenever attachments are enabled. A per-media setting (for example
attachment_media, defaulting to text only) is planned as a separate PR and must land before the release.Validation
breakon real speech records oneSTREAM_ABANDONEDevent, timed to the last segment.bf16and follows the default device (cpu/gpu).🤖 Generated with Claude Code