IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    在GCP(谷歌云)上部署Stable Diffusion

    coder4发表于 2023-05-10 01:05:32
    love 0
    1 机器准备 GPU至少选Tesla T4、操作系统Ubuntu 20.04,硬盘30GB 2 安装cuda驱动 参考GCP的官方文档:https://cloud.google.com/compute/docs/gpus/install-drivers-gpu 可以使用自动安装脚本(注意提前安装python 3) curl https://raw.githubusercontent.com/GoogleCloudPlatform/compute-gpu-installation/main/linux/install_gpu_driver.py --output install_gpu_driver.py 3 安装git lfs . /etc/lsb-release && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo env os=ubuntu dist="${DISTRIB_CODENAME}" bash 4 安装webui和chilloutmix模型 我这里用的是一个给colab用的fork版 #!/bin/bash mkdir /content cd /content env TF_CPP_MIN_LOG_LEVEL=1 apt -y update -qq wget http://launchpadlibrarian.net/367274644/libgoogle-perftools-dev_2.5-2.2ubuntu3_amd64.deb wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/google-perftools_2.5-2.2ubuntu3_all.deb wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb apt install -y -qq […]


沪ICP备19023445号-2号
友情链接