conda 环境迁移后有关配置修改
1、CUDA路径修改
RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback):
CUDA Setup failed despite GPU being available. Please run the following command to get more information:
python -m bitsandbytes
Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues
修改
find / -name libcudart.so 2>/dev/null
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib
2、pip 路径修改
找到 env环境 目录下的bin/pip , 打开文件修改 第一行路径为 当前的路径