RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback):
No module named 'triton.ops'
原因:是因為在導入?transformers.integrations.bitsandbytes?時缺少必要的依賴項?triton.ops。
?解決方法:先驗證安裝的cuda和torch對不對。5090要用cuda12.8和torch2.6.0+cu128(我裝成124了,所以報錯)
pip uninstall torch torchvision torchaudio
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
?
pip install -U bitsandbytes?
就解決了?