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

相关文章

vcpkg安装opencv中的特殊问题记录(无法找到opencv_corexd.dll)

我是按照网上的vcpkg安装opencv方法进行的(比如这篇:从0开始在visual studio上安装opencv(超详细,针对小白)),但是中间出现了一些别人没有遇到的问题,虽然原因没有找到,但是本人给出一些暂时的解决办法: 问题1: 我在安装库命令行使用的是 .\vcpkg.exe install opencv 我的电脑是x64,vcpkg在这条命令后默认下载的也是opencv2:x6

Loaded plugins: fastestmirror, langpacks

https://blog.csdn.net/weixin_37282478/article/details/82152239

yum install 失败报错`XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)

/export/env/py3.6/lib/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)   到/export/env/py3.6/lib cp /lib64/liblzma.so.5.2.2 . sudo ln -s -f liblzma.so.5.2.2 liblzm

BD错误集锦1——[Hive]ERROR StatusLogger No log4j2 configuration file found. Using default configuration:

错误描述:在使用IDEA进行jdbc方式连接到hive数据仓库时,出现以下错误:                ERROR StatusLogger No log4j2 configuration file found. 问题原因:缺少log4j2.xml文件   <?xml version="1.0" encoding="UTF-8"?><Configuration><Appender

# bash: chkconfig: command not found 解决方法

bash: chkconfig: command not found 解决方法 一、chkconfig 错误描述: 这个错误表明在 Bash 环境下,尝试执行 chkconfig 命令,但是系统找不到这个命令。chkconfig 命令是一个用于管理 Linux 系统中服务的启动和停止的工具,通常它是 initscripts 包的一部分,但在最新的 Linux 发行版中可能已经被 syste

crontab: command not found

[root@localhost syweb-sdkapi-new_manager]# crontab -e -bash: crontab: command not found 解决方法: yum install vixie-cron yum install crontabs service crond start           /etc/init.d/crond

no thread-bound request found:are you referring to request

问题描述: 通过webservice接口调用程序时,发现在执行查询的时候一直报一个错误,错误信息如下: java.lang.IllegalStateExceptino:No thread-bound request found:are you referring to request attributes outside of an actual web request,or processi

msvcp140.dll丢失的解决方法,msvcp140.dll丢失下载办法

一、msvcp140.dll丢失或损坏的影响 系统更新影响 系统更新是导致msvcp140.dll丢失或损坏的常见原因之一。在自动更新过程中,可能会引入与现有应用程序不兼容的DLL版本,从而引发错误。根据用户反馈和技术支持数据,大约15%的msvcp140.dll问题与系统更新有关。 恶意软件攻击 恶意软件通过删除或损坏系统文件来破坏计算机功能,msvcp140.dll是其攻击目标之一。安

[AIGC] Guava Library 中常用的一些工具类详解

Google Guava 是一个功能强大的 Java 库,它提供了大量用于优化代码和提高代码质量的工具。该库提供了许多常用的实用类,下面我们来详细介绍一些在编程应用开发中经常需要的。 文章目录 1. 集合类2. I/O 类1. ByteStreams(字节流)2. CharStreams(字符流)3. Files(文件)4. MoreFiles(文件)5. Resources(资

vue dist文件打开index.html报Failed to load resource: net::ERR_FILE_NOT_FOUND

本地正常。打包好的dist文件打开index.html报Failed to load resource: net::ERR_FILE_NOT_FOUND 解决办法: 在webpack.prod.conf.js 中output添加参数publicPath:’./’ 在webpack.base.conf.js里 publicPath: process.env.NODE_ENV === ‘pro