pytorch 源码编译安装

pytorch 源码编译安装

支持cuda, cudnn

1. 安装好GPU dirver, CUDA, cuDNN (注意对应版本)

2. 下载pytorch 源码

git clone https://github.com/pytorch/pytorch.git
cd pytorch
git pull
git submodule sync
git submodule update --init --recursive

3. 编译

export DEBUG=1
python setup.py bdist_wheel

4. 安装编译的whl 包

pip install dist/torch*.whl

5. 卸载

pip uninstall torch
python setup.py clean

https://blog.csdn.net/CSDN_ten/article/details/132636688
https://findhao.net/academic/2590
https://blog.csdn.net/qq_36755743/article/details/136877045
https://codle.net/install-pytorch-from-source/
https://bbs.huaweicloud.com/blogs/407977

posted @   michaelchengjl  阅读(208)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
历史上的今天:
2023-11-21 huggingface下载的.arrow数据集读取与使用说明
2023-11-21 NLP QA数据集
点击右上角即可分享
微信分享提示