【无标题】

怎么装合适的GPU版本的torch

比如想装torch==1.13.1

直接用清华源镜像会安装对应的CPU版本,找清华源的GPU版本又麻烦!

可以先用官网网址,虽然下载很慢但是在安装过程中给出了下载的地址

bash 复制代码
pip install torch==1.13.1+cu116 -f https://download.pytorch.org/whl/torch_stable.html
bash 复制代码
pip install torchvision==0.14.1+cu116 -f https://download.pytorch.org/whl/torch_stable.html
bash 复制代码
pip install torchvision==0.14.1+cu116 -f https://download.pytorch.org/whl/torch_stable.html
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torchvision==0.14.1+cu116
  Downloading https://download.pytorch.org/whl/cu116/torchvision-0.14.1%2Bcu116-cp39-cp39-win_amd64.whl (4.8 MB)

https://download.pytorch.org/whl/cu116/torchvision-0.14.1%2Bcu116-cp39-cp39-win_amd64.whl

然后将地址粘贴到谷歌浏览器中直接下载

最后离线安装

相关推荐
冬奇Lab6 小时前
Workflow 系列(04):Multi-Agent 协调——编排器边界、并发控制与上下文隔离
人工智能·工作流引擎
冬奇Lab6 小时前
每日一个开源项目(第147篇):HyperGraphRAG - 用超图表示 N 元关系,RAG 的第三代范式
人工智能·开源·graphql
甲维斯6 小时前
Github + 阿里云oss实现类似codex的自动更新!
人工智能
阿里云大数据AI技术8 小时前
光轮智能 × 阿里云:共建 Physical AI 云上数据、评测与持续学习基础设施
人工智能·机器学习
机器之心8 小时前
实锤了:Claude Code偷查用户,时区、中国AI实验室全是关键词
人工智能·openai
网易云信8 小时前
Cursor点燃个人开发者,企业级AI为何频频受挫?Agent工厂从提效工具到AI员工的跃迁
人工智能·开源
网易云信8 小时前
解锁触手可及的温暖:网易智企 x Wander Puffs AI 云游泡芙
人工智能
转转技术团队8 小时前
从 PRD 到可验证代码:AI 需求开发闭环实践
人工智能