-
Notifications
You must be signed in to change notification settings - Fork 642
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
Mac M2 Max 源码运行如何调用gpu #1802
Comments
We don't know |
可以看下这段代码: FunASR/funasr/auto/auto_model.py Line 184 in 1c52e36
指定了 mps,也会被回退到 cpu。 除了 spk_model 不兼容,其他模型都能在 mps 下跑。 |
I can confirm that SenseVoiceSmall is runnable on mps, after commenting out the lines that coerse the device to CPU. |
Fine. Do you know how to detect running on mps? |
@LauraGPT You can use |
我修改了funasr_wss_server.py文件的配置,把cpu改为mps并没有效果。
我在google上没有找到解决方法。
修改的代码:
parser.add_argument("--ngpu", type=int, default=1, help="0 for cpu, 1 for gpu")
parser.add_argument("--device", type=str, default="mps", help="cuda, cpu")
parser.add_argument("--ncpu", type=int, default=10, help="cpu cores")
environment:
pip
, source):sourceThe text was updated successfully, but these errors were encountered: