报错CUDA Setup failed despite GPU being available
报错:
报错:
Traceback (most recent call last):
File "/home/bingxing2/ailab/group/ai4agr/wzf/LLM/models/ChatGLM-Finetuning/train.py", line 22, in <module>
from peft import LoraConfig, get_peft_model
File "/home/bingxing2/ailab/scxlab0069/.conda/envs/llm_test/lib/python3.9/site-packages/peft/__init__.py", line 22, in <module>
from .auto import (
File "/home/bingxing2/ailab/scxlab0069/.conda/envs/llm_test/lib/python3.9/site-packages/peft/auto.py", line 31, in <module>
from .mapping import MODEL_TYPE_TO_PEFT_MODEL_MAPPING
File "/home/bingxing2/ailab/scxlab0069/.conda/envs/llm_test/lib/python3.9/site-packages/peft/mapping.py", line 23, in <module>
from .peft_model import (
File "/home/bingxing2/ailab/scxlab0069/.conda/envs/llm_test/lib/python3.9/site-packages/peft/peft_model.py", line 32, in <module>
from transformers import PreTrainedModel
File "<frozen importlib._bootstrap>", line 1055, in _handle_fromlist
File "/home/bingxing2/ailab/scxlab0069/.conda/envs/llm_test/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 1174, in __getattr__
module = self._get_module(self._class_to_module[name])
File "/home/bingxing2/ailab/scxlab0069/.conda/envs/llm_test/lib/python3.9/site-packages/transformers/utils/import_utils.py", line 1186, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):
Failed to import transformers.generation.utils 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

欢迎来到由智源人工智能研究院发起的Triton中文社区,这里是一个汇聚了AI开发者、数据科学家、机器学习爱好者以及业界专家的活力平台。我们致力于成为业内领先的Triton技术交流与应用分享的殿堂,为推动人工智能技术的普及与深化应用贡献力量。
更多推荐
所有评论(0)