--- library_name: mlx license: other license_name: component-specific license_link: LICENSE.md base_model: - pyannote/segmentation-3.0 - pyannote/wespeaker-voxceleb-resnet34-LM tags: - speaker-diarization - speaker-segmentation - speaker-embedding - audio - mlx --- # Pyannote diarization 3.1 weights for Murmur on Apple silicon These FP32 safetensors contain the two neural networks used by Murmur's MLX implementation of the pyannote 3.1 diarizer. The runtime takes a 16 kHz mono waveform and returns speaker turns. It applies segmentation to overlapping 10-second windows, computes masked speaker embeddings, and clusters speakers across the recording. | File | Upstream model | Changes for MLX inference | License | |---|---|---|---| | `segmentation.safetensors` | [PyanNet segmentation 3.0](https://huggingface.co/pyannote/segmentation-3.0/tree/e66f3d3b9eb0873085418a7b813d3b369bf160bb) | Precomputed SincNet filters, combined LSTM biases, and transposed convolution and matrix weights | MIT | | `wespeaker.safetensors` | [WeSpeaker VoxCeleb ResNet34-LM, pyannote wrapper](https://huggingface.co/pyannote/wespeaker-voxceleb-resnet34-LM/tree/837717ddb9ff5507820346191109dc79c958d614) | Folded inference batch normalization into the convolutions, stored channels-last convolution kernels and transposed the embedding projection | CC BY 4.0 | Efficient Speech converted both checkpoints without training or quantization. The configuration records each source revision, the exported file's SHA-256 checksum and the tensor layout. These tensors target the Murmur MLX inference implementation. ## Load the tensors Install `mlx` and `huggingface_hub` on Apple silicon. The first call downloads the files to the Hugging Face cache. ```python from pathlib import Path import mlx.core as mx from huggingface_hub import snapshot_download directory = Path(snapshot_download( "efficient-speech/Pyannote-Diarization-3.1-MLX-FP32", allow_patterns=["*.safetensors", "config.json"], )) segmentation = mx.load(str(directory / "segmentation.safetensors")) wespeaker = mx.load(str(directory / "wespeaker.safetensors")) ``` ## Credits The segmentation model is by pyannote (copyright 2023 CNRS). See Alexis Plaquet and Hervé Bredin, [Powerset multi-class cross entropy loss for neural speaker diarization](https://www.isca-archive.org/interspeech_2023/plaquet23_interspeech.html). The speaker embedding model is by the [WeSpeaker team](https://github.com/wenet-e2e/wespeaker), packaged for pyannote.audio by pyannote. Per-file licensing and attribution are in [LICENSE.md](LICENSE.md).