Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install xtuner 完后,依然显示ModuleNotFoundError: No module named 'xtuner' #132

Closed
starkgao opened this issue Sep 21, 2023 · 2 comments
Assignees

Comments

@starkgao
Copy link

(venv) PS G:\ai\xtuner> xtuner list-cfg
G:\ai\xtuner\venv\lib\site-packages\bitsandbytes\cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
'NoneType' object has no attribute 'cadam32bit_grad_fp32'
Traceback (most recent call last):
File "G:\ai\xtuner\venv\lib\site-packages\xtuner\tools\list_cfg.py", line 4, in
from xtuner.configs import cfgs_name_path
ModuleNotFoundError: No module named 'xtuner'
(venv) PS G:\ai\xtuner>

@starkgao
Copy link
Author

(venv) PS G:\ai\Baichuan2> xtuner list-cfg

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues

binary_path: G:\ai\Baichuan2\venv\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll
CUDA SETUP: Loading binary G:\ai\Baichuan2\venv\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll...
Traceback (most recent call last):
File "G:\ai\Baichuan2\venv\lib\site-packages\xtuner\tools\list_cfg.py", line 4, in
from xtuner.configs import cfgs_name_path
ModuleNotFoundError: No module named 'xtuner'
(venv) PS G:\ai\Baichuan2>

@LZHgrla
Copy link
Collaborator

LZHgrla commented Sep 21, 2023

这是由bitsandbytes在windows上的不兼容导致的,具体复现方法可以使用bitsandbytes自检命令python -m bitsandbytes

为解决这一问题,社区有一些解决办法可以尝试,请参考 TimDettmers/bitsandbytes#30

@LZHgrla LZHgrla self-assigned this Sep 21, 2023
@LZHgrla LZHgrla closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants