驱动安装:
1.屏蔽显卡驱动:
vi /etc/modprobe.d/blacklist-nouveau.conf
添加以下两行
blacklist nouveau
options nouveau modeset=0
保存退出接着执行
update-initramfs -u
reboot
重启后执行:
lsmod | grep nouveau
没有输出即屏蔽了
2.下载驱动:
https://www.nvidia.cn/drivers/details/225542/
chmod 777
运行安装 make gcc等
3.安装torch
pip install torch==1.12.1+cu102 torchvision==0.13.1+cu102 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu102
运行stable diffusion
在虚拟环境运行python lanch.py
由于国内访问hugging face原因安装openai/clip-vit-large-patch14报错
使用国内网站https://hf-mirror.com/openai/clip-vit-large-patch14/tree/main
git clone https://hf-mirror.com/openai/clip-vit-large-patch14 创建在主目录个openai文件夹然后丢进去 修改module.py文件内的地址改成本地刚创建地址即可
文章来源于互联网:tesila k80驱动安装torch安装+stable diffusion
相关推荐: AIGC小说创作灵感库:用AI构建永不枯竭的创意源泉
AIGC小说创作灵感库:用AI构建永不枯竭的创意源泉 关键词:AIGC、小说创作、灵感库、自然语言处理、深度学习、创意生成、智能系统 摘要:本文系统解析如何利用人工智能构建小说创作灵感库,实现创意的自动化生成与管理。通过深度融合自然语言处理、深度学习和知识图谱…
5bei.cn大模型教程网










