RuntimeError: Library cublas64_12.dll is not found or cannot be loaded

2024-04-10 03:04

本文主要是介绍RuntimeError: Library cublas64_12.dll is not found or cannot be loaded,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

运行guillaumekln/faster-whisper-large-v2模型进行语音识别的时候报错了

RuntimeError: Library cublas64_12.dll is not found or cannot be loaded

代码:

from faster_whisper import WhisperModelmodel = WhisperModel("H:\\model\\guillaumekln\\faster-whisper-large-v2")segments, info = model.transcribe("E:\\测试材料\\录音\\英语录音.mp3")
for segment in segments:print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

报错日志:

Traceback (most recent call last):File "E:\software\web\pycharm\PyCharm Community Edition 2022.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1491, in _execpydev_imports.execfile(file, globals, locals)  # execute the scriptFile "E:\software\web\pycharm\PyCharm Community Edition 2022.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfileexec(compile(contents+"\n", file, 'exec'), glob, loc)File "E:/project/english_speak_service/Faster-whisper/WhisperTesk.py", line 5, in <module>segments, info = model.transcribe("E:\\测试材料\\录音\\英语录音.mp3")File "E:\software\web\anaconda3-2024.01.21\envs\common_transformers\lib\site-packages\faster_whisper\transcribe.py", line 344, in transcribeencoder_output = self.encode(segment)File "E:\software\web\anaconda3-2024.01.21\envs\common_transformers\lib\site-packages\faster_whisper\transcribe.py", line 762, in encodereturn self.model.encode(features, to_cpu=to_cpu)
RuntimeError: Library cublas64_12.dll is not found or cannot be loaded

直接原因:cublas64_12.dll动态链接库文件找不到。

间接原因:我这里安装的是cuda的版本是11,他这里运行的需要是cuda12.

参考帖子上的提示:

Windows got errpr: RuntimeError: Library cublas64_11.dll is not found or cannot be loaded · Issue #535 · SYSTRAN/faster-whisper · GitHub

解决:

1,找到cuda安装路径,我这里是 E:\software\web\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin

2,找到cublas64_11.dll,复制出来,改成cublas64_12.dll 

代码运行成功:

这篇关于RuntimeError: Library cublas64_12.dll is not found or cannot be loaded的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/889909

相关文章

【LabVIEW学习篇 - 21】:DLL与API的调用

文章目录 DLL与API调用DLLAPIDLL的调用 DLL与API调用 LabVIEW虽然已经足够强大,但不同的语言在不同领域都有着自己的优势,为了强强联合,LabVIEW提供了强大的外部程序接口能力,包括DLL、CIN(C语言接口)、ActiveX、.NET、MATLAB等等。通过DLL可以使用户很方便地调用C、C++、C#、VB等编程语言写的程序以及windows自带的大

Anaconda 中遇到CondaHTTPError: HTTP 404 NOT FOUND for url的问题及解决办法

最近在跑一个开源项目遇到了以下问题,查了很多资料都大(抄)同(来)小(抄)异(去)的,解决不了根本问题,费了很大的劲终于得以解决,记录如下: 1、问题及过程: (myenv) D:\Workspace\python\XXXXX>conda install python=3.6.13 Solving environment: done.....Proceed ([y]/n)? yDownloa

jenkins 插件执行shell命令时,提示“Command not found”处理方法

首先提示找不到“Command not found,可能我们第一反应是查看目标机器是否已支持该命令,不过如果相信能找到这里来的朋友估计遇到的跟我一样,其实目标机器是没有问题的通过一些远程工具执行shell命令是可以执行。奇怪的就是通过jenkinsSSH插件无法执行,经一番折腾各种搜索发现是jenkins没有加载/etc/profile导致。 【解决办法】: 需要在jenkins调用shell脚

ImportError: cannot import name ‘print_log‘ from ‘logging‘

mmcv升级到2.+后删除了很多 解决 查FAQ文档,找到 添加到mmcv.utils下即可

vue 父组件调用子组件的方法报错,“TypeError: Cannot read property ‘subDialogRef‘ of undefined“

vue 父组件调用子组件的方法报错,“TypeError: Cannot read property ‘subDialogRef’ of undefined” 最近用vue做的一个界面,引入了一个子组件,在父组件中调用子组件的方法时,报错提示: [Vue warn]: Error in v-on handler: “TypeError: Cannot read property ‘methods

什么是dll

DLL的概念        DLL(Dynamic Link Library)文件为动态链接库文件,又称“应用程序拓展”,是软件文件类型。在Windows中,许多应用程序并不是一个完整的可执行文件,它们被分割成一些相对独立的动态链接库,即DLL文件,放置于系统中。当我们执行某一个程序时,相应的DLL文件就会被调用。一个应用程序可使用多个DLL文件,一个DLL文件也可能被不同的应用程序使

QT 编译报错:C3861: ‘tr‘ identifier not found

问题: QT 编译报错:C3861: ‘tr’ identifier not found 原因 使用tr的地方所在的类没有继承自 QObject 类 或者在不在某一类中, 解决方案 就直接用类名引用 :QObject::tr( )

用VB创建开始菜单快捷方式(无需其他DLL)

Option Explicit   Private Sub Command1_Click()   CreateProgManGroup Me, "测试", "test.grp"   CreateProgManItem Me, "d:\ghost.exe", "Ghost"   CreateProgManItem Me, "d:\setupQQ.exe", "QQ"   End

Unstructured cannot write mode RGBA as JPEG 错误解决

Unstructured cannot write mode RGBA as JPEG 错误解决 0. 错误详细1. 解决方法 0. 错误详细 Image Extraction Error: Skipping the failed imageTraceback (most recent call last):File "/root/miniconda3/envs/learn-y