Closed RonanKMcGovern closed 3 months ago
Hi! I'm aware of this and I'm working on adding mps support right now! I'm almost done, will tag you when I'm done!
This one should solve your use @RonanKMcGovern https://github.com/huggingface/speech-to-speech/pull/20
will try shortly, thanks
Just ran again and having the same issues with the commands.
Closing this and will comment on the PR. Thanks for the help.
Replication
Device = Mac M1 8 GB
Error:
Then trying with:
Error:
Then trying with:
Error:
Then trying with:
Traceback (most recent call last): File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/speech-to-speech/speech-to-speech/s2s_pipeline.py", line 1017, in
main()
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/speech-to-speech/speech-to-speech/s2s_pipeline.py", line 972, in main
stt = WhisperSTTHandler(
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/speech-to-speech/speech-to-speech/s2s_pipeline.py", line 103, in init
self.setup(*setup_args, *setup_kwargs)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/speech-to-speech/speech-to-speech/s2s_pipeline.py", line 433, in setup
).to(device)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2861, in to
return super().to(args, **kwargs)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1174, in to
return self._apply(convert)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 780, in _apply
module._apply(fn)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 780, in _apply
module._apply(fn)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 780, in _apply
module._apply(fn)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 805, in _apply
param_applied = fn(param)
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1160, in convert
return t.to(
File "/Users/ronanmcgovern/TR/ADVANCED-transcription/trelis-voice/hf_sts/venv/lib/python3.10/site-packages/torch/cuda/init.py", line 305, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled