Bootstrap

生成式复现踩坑笔记

前言

使用AutoDL服务器选择3039 cuda12.1 python3.9
不能选择无卡模式开机
按照readme文件按序执行

克隆代码

克隆代码前启动git加速

source /etc/network_turbo

cuda

不能选择12.1否则执行下述代码会出现cuda不匹配问题
pip install ./diff-gaussian-rasterization

requerments.txt遇到的问题

error: can't find Rust compiler
      
      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
      
      To update pip, run:
      
          pip install --upgrade pip
      
      and then retry package installation.
      
      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tokenizers
Successfully built nvdiffrast envlight clip
Failed to build xformers tokenizers
ERROR: Could not build wheels for xformers, tokenizers, which is required to install pyproject.toml-based projects
root@autodl-container-a7b04ea700-8cffb93d:~/ASD# pip install -r requirements.txt翻译

切换python版本3.9
切换后需要重新build

diff-gaussian-rasterization
simple-knn

大模型下载问题

1.切换国内镜像(当前终端有效)

export HF_ENDPOINT=https://hf-mirror.com

2.切换模型保存目录(当前终端有效)

export HF_HOME=/root/autodl-tmp/cache/
;