Byte-parity with pyannote-PyTorch reference (cosine 0.763718 identical at 6 decimals on 200 cross-window slot pairs). 2.5x faster than pyannote-MPS on Apple Silicon native. Extracted from gitea.tavportal.com/olivier/MLX_CONVERTOR commit 5f9eafa.
10 lines
289 B
Python
10 lines
289 B
Python
"""Unit test: load SegmentationModel weights from HF mlx-community repo."""
|
|
import pytest
|
|
from pyannote_diarization_3_1_mlx.segmentation import SegmentationModel
|
|
|
|
|
|
@pytest.mark.integration
|
|
def test_segmentation_loads_from_hf():
|
|
m = SegmentationModel.from_hf()
|
|
assert m is not None
|