kamahori's picture
Release native FP32 MLX diarization checkpoints
bbe1ad4 verified
|
Raw History Blame Contribute Delete
2.59 kB
metadata
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 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.