Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Cannot execute emptyCache() without MPS backend. #145

Open
Lzzzii10 opened this issue Nov 29, 2024 · 0 comments
Open

RuntimeError: Cannot execute emptyCache() without MPS backend. #145

Lzzzii10 opened this issue Nov 29, 2024 · 0 comments

Comments

@Lzzzii10
Copy link

2024-11-29 11:40:37,152 - STT.paraformer_handler - DEBUG - infering paraformer...
0%| | 0/1 [00:00<?, ?it/s]/root/anaconda3/envs/speechtospeech/lib/python3.10/site-packages/funasr/models/paraformer/model.py:251: FutureWarning: torch.cuda.amp.autocast(args...) is deprecated. Please use torch.amp.autocast('cuda', args...) instead.
with autocast(False):
rtf_avg: 0.280: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2.26it/s]
Exception in thread Thread-5 (run):
Traceback (most recent call last):
File "/root/anaconda3/envs/speechtospeech/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/root/anaconda3/envs/speechtospeech/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/ai/app/voicechat/speech-to-speech/baseHandler.py", line 37, in run
for output in self.process(input):
File "/ai/app/voicechat/speech-to-speech/STT/paraformer_handler.py", line 56, in process
torch.mps.empty_cache()
File "/root/anaconda3/envs/speechtospeech/lib/python3.10/site-packages/torch/mps/init.py", line 85, in empty_cache
torch._C._mps_emptyCache()
RuntimeError: Cannot execute emptyCache() without MPS backend.
^CException ignored in: <module 'threading' from '/root/anaconda3/envs/speechtospeech/lib/python3.10/threading.py'>
Traceback (most recent call last):
File "/root/anaconda3/envs/speechtospeech/lib/python3.10/threading.py", line 1567, in _shutdown
lock.acquire()
KeyboardInterrupt:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant