NeMo icon indicating copy to clipboard operation
NeMo copied to clipboard

Failed assertion when using Multitalker Parakeet example on macOS

Open namgyaaal opened this issue 10 months ago • 2 comments

Describe the bug

Running the example code provided here alongside with config designed to run on mps throws this assertion error with no other information of the error printed to the console.

/AppleInternal/Library/BuildRoots/4~B5vFugC00QBfsSa38UwjlpDhP2WeLxB3cTjDRaE/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphExecutable.mm:2565: failed assertion `Incompatible element type for parameter at index 9, mlir module expected element type f32 but received f16'

Steps/Code to reproduce bug

Use the example aforementioned example code with the following things changed

in multitalker_transcript_config.py: allow_mps: bool = True device: str = 'mps'

in example: asr_model and diar_model to(torch.device('mps'))

Expected behavior

Should run fine and output transcription. I was able to get it to work a few weeks ago and this error occurred when installing from pip again today.

Environment overview (please complete the following information)

Fresh uv environment with only pip installed and following the instructions listed:

apt-get update && apt-get install -y libsndfile1 ffmpeg
pip install Cython packaging
pip install git+https://github.com/NVIDIA/NeMo.git@main#egg=nemo_toolkit[asr]

Environment details

  • macOS Sequoia 15.7.2
  • Python 3.13.9

namgyaaal avatar Jan 08 '26 23:01 namgyaaal

Hi, We don;t actively test for mps devices.

nithinraok avatar Jan 09 '26 14:01 nithinraok

@namgyaaal Hi. Since we do not test on non-cuda device, we suggest to bring this inquiry to MPS maintainers.

tango4j avatar Jan 12 '26 17:01 tango4j