大模型弄好了,想着玩玩stable-diffusion-webui,结果折腾了几天无果,最后使用大佬的docker镜像弄好了。
Ubuntu20.4 docker运行stable diffusion webui_siutin/stable-diffusion-webui-docker-CSDN博客
以下作为备忘:
配置nvidia-docker2仓库:
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
安装nvidia-docker2并重启docker服务
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd
sudo systemctl daemon-reload
sudo systemctl restart