更新torch torchvision torchaudio版本以解决xinference不支持 NVIDIA 5090D显卡

部署运行你感兴趣的模型镜像

在这里插入图片描述

更新版本:


pip uninstall torch torchvision torchaudio -y

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
 
#https://pytorch.org/get-started/locally/

验证:
安装好之后可以试试是否安装成功

python -c "import torch; print(torch.__version__); print(torch.version.cuda)"
 
#2.9.0.dev20250729+cu128
#12.8

确认 GPU 是否能被 PyTorch 识别,有类似输出就大功告成啦。

python -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.get_device_name(0))"
 
#True
#NVIDIA GeForce RTX 5060 Ti

但会导致vllm版本与pytorch版本不适配

原因见:https://github.com/xorbitsai/inference/issues/3866

NVIDIA RTX PRO 6000 Blackwell Workstation Edition with CUDA capability sm_120 is not compatible with the current PyTorch installation. #3866
NVIDIA RTX PRO 6000 Blackwell Workstation Edition with CUDA sm_120 与当前的 PyTorch 安装不兼容。 #3866

links
https://blog.csdn.net/m0_62596826/article/details/149807782

您可能感兴趣的与本文相关的镜像

PyTorch 2.9

PyTorch 2.9

PyTorch
Cuda

PyTorch 是一个开源的 Python 机器学习库,基于 Torch 库,底层由 C++ 实现,应用于人工智能领域,如计算机视觉和自然语言处理

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

学亮编程手记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值