Comments (5)
可以看下这段代码:
FunASR/funasr/auto/auto_model.py
Line 184 in 1c52e36
指定了 mps,也会被回退到 cpu。
除了 spk_model 不兼容,其他模型都能在 mps 下跑。
from funasr.
We don't know M2
, you could ref to torch. funasr is torch-based.
from funasr.
I can confirm that SenseVoiceSmall is runnable on mps, after commenting out the lines that coerse the device to CPU.
@LauraGPT Could you please remove the device coersion lines? I was extremely confused at first because I specified the device as MPS but saw no GPU usage on my Mac. If you are worried about device compatability for certain model-device pairs, maybe a warning message is more appropriate/helpful.
from funasr.
I can confirm that SenseVoiceSmall is runnable on mps, after commenting out the lines that coerse the device to CPU. @LauraGPT Could you please remove the device coersion lines? I was extremely confused at first because I specified the device as MPS but saw no GPU usage on my Mac. If you are worried about device compatability for certain model-device pairs, maybe a warning message is more appropriate/helpful.
Fine. Do you know how to detect running on mps?
from funasr.
@LauraGPT You can use torch.backends.mps.is_available()
to detect if the MPS backend is supported. And the device name for MPS is simply the string mps
.
from funasr.
Related Issues (20)
- websocket 协议文档中,在 offline 模式下 is_final 字段是没有用处的
- 采样率问题 HOT 1
- 按照首页教程执行后报错:AssertionError: iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch is not registered HOT 1
- 加载python中的websock非常慢,耗时很长
- 现在FunAsr能否支持类似讯飞的动态修正的功能? HOT 1
- 内容无法识别 HOT 1
- How is the FP16 model trained?
- 说话人识别怎么识别不出来了啊,都是spk 0 HOT 1
- vad model的rtf为0.831是正常的吗?
- 微调iic/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch模型,请问大概需要多少条数据啊?我看data\list\train.jsonl里就三条数据
- 使用pipeline进行ASR时,当输入是scp文件,进程不解除输出目录的文件占用
- 使用speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch模型进行微调,导入模型失败。
- funasr.AutoModel.generate推理前强制报错+循环引用报错
- vad 采样率问题
- html始终连接失败 HOT 1
- 微调模型,数据中未收录的单词并未影响预测结果
- 请问有没有paraformer实时和vad实时的一体的gpu调用方法,以及vad录音输入问题 HOT 2
- iic/SenseVoiceSmall got: TypeError: expected Tensor as element 1 in argument 0, but got str
- speech_paraformer-large-vad-punc_asr_nat-zh-cn-16k-common 是否支持热词
- cpu和gpu的docker部署包转写错误也应该返回结果
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from funasr.