如何使用GPU去运行这个代码而不是cpu? #583
Unanswered
xiaochang-c
asked this question in
Q&A
Replies: 2 comments 2 replies
-
唔,查看了下版本。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
最后如何解决的呢? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我不知道如何在这个项目上使用GPU去运行它,翻看了前面的讨论。尝试将模型加载改为
model = whisper.load_model("small", device="cuda")
发现仍然无法运行,提示我
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False.
但我的设备是有GPU的,tensorflow可以正常调用GPU。
Beta Was this translation helpful? Give feedback.
All reactions