[bug] vllm 0.6.1 RuntimeError: operator torchvision::nms does not exist

[bug] vllm 0.6.1 RuntimeError: operator torchvision::nms does not exist

环境

复制代码
python 3.10
torch                             2.4.0+cu118
torchvision                       0.19.0+cu118
vllm                              0.6.1.post2+cu118

问题详情

复制代码
if torch._C._dispatch_has_kernel_for_dispatch_key(self.qualname, "Meta"):
RuntimeError: operator torchvision::nms does not exist

在搭建vllm 0.6.1 环境后,运行vllm --help 命令弹出该错误。

原因是torchvision导致的错误。

解决方法

首先通过pip list 查询 torchvision 的版本号

然后在torchvision download网址中找到对应安装包,下载安装包进行重新离线安装。

例如我的版本是0.19.0,平台是linux,cuda驱动是11.8

python 复制代码
# cpu 对应安装包 
torchvision-0.19.0+cpu-cp310-cp310-linux_x86_64.whl

# gpu 对应安装包 
torchvision-0.19.0+cu118-cp310-cp310-linux_x86_64.whl

离线安装 pip install xxx.whl

参考

RuntimeError: operator torchvision::nms does not exist with torch 2.2.1+cpu

相关推荐
王家视频教程图书馆4 小时前
修复服务端500相应,修复客户端上传文件.tmp 服务端接受不到文件bug
bug
qq_401700415 小时前
Qt开发过程中遇到哪些经典的bug
qt·bug
0白露2 天前
关闭搜狗输入法右下角广告,可以适用于大多数应用系统通知的广告
windows·bug
一只自律的鸡3 天前
【Linux驱动】bug处理 ens33找不到IP
linux·运维·bug
Lichenpar4 天前
Springboot采用FastJson2作为MessageConverter时,配置的全局日期类型序列化转换BUG
java·开发语言·bug
Irene19915 天前
AI 找 bug 的局限性 和 Deepseek 优势明显
bug
癫狂的兔子5 天前
【bug】【Python】pandas中的DataFrame.to_excel()和ExcelWriter的区别
python·bug
癫狂的兔子6 天前
【BUG】【Python】【Spider】Compound class names are not allowed.
开发语言·python·bug
netkiller-BG7NYT6 天前
阿里云语音合成CosyVoice重大BUG被我发现了
bug
马猴烧酒.7 天前
【Mybatis出现bug】应为 <statement> 或 DELIMITER,得到 ‘id‘
java·bug·mybatis