1. torch.library’ has no attribute 'custom_op
Failed to import diffusers.pipelines.pipeline_utils because of the following error (look up to see its traceback):
Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
module 'torch.library' has no attribute 'custom_op'
需要torch>=2.5
2. RuntimeError: r.nvmlDeviceGetNvLinkRemoteDeviceType_ INTERNAL ASSERT FAILED at
- CUDA driver version >= 470.42.01 or downgrade pytorch version <= 2.2.2
- 也可能只是单纯的显存超了
3. version `GLIBC_2.25‘ not found
# https://ftp.gnu.org/gnu/glibc/
wget https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz
tar -zxvf glibc-2.35.tar.gz
cd glibc-2.35
mkdir build
cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
# export LD_LIBRARY_PATH=.../usr/local/gcc/lib:/usr/local/gcc/lib64: =>
# export LD_LIBRARY_PATH=.../usr/local/gcc/lib:/usr/local/gcc/lib64
make -j32
make # jobserver may not work
make install
安装make(机器不能获取最新版的make)
https://ftp.gnu.org/gnu/make/make-4.4.tar.gz
tar -zxvf make-4.4.tar.gz
cd make-4.4
./configure --prefix=/usr
type make
# make check
make install
make -v