How to use from the
Use from the
MLX library
# Download the model from the Hub
pip install huggingface_hub[hf_xet]

hf download efficient-speech/Pyannote-Diarization-3.1-MLX-FP32 --local-dir Pyannote-Diarization-3.1-MLX-FP32

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 Precomputed SincNet filters, combined LSTM biases, and transposed convolution and matrix weights MIT
wespeaker.safetensors WeSpeaker VoxCeleb ResNet34-LM, pyannote wrapper 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.

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. The speaker embedding model is by the WeSpeaker team, packaged for pyannote.audio by pyannote. Per-file licensing and attribution are in LICENSE.md.

Downloads last month
30
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for efficient-speech/Pyannote-Diarization-3.1-MLX-FP32

Finetuned
(102)
this model