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

No module named 'Sunsimiao.configuration_baichuan'; 'Sunsimiao' is not a package #11

Open
javailoveyouthreek opened this issue Jul 15, 2024 · 0 comments

Comments

@javailoveyouthreek
Copy link

使用示例代码执行后,报
Traceback (most recent call last):
File "E:\anaconda\anaconda\lib\site-packages\modelscope\utils\plugins.py", line 454, in register_modelhub_repo
import_module_from_model_dir(model_dir)
File "E:\anaconda\anaconda\lib\site-packages\modelscope\utils\plugins.py", line 399, in import_module_from_model_dir
importlib.import_module(submodule)
File "E:\anaconda\anaconda\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in call_with_frames_removed
File "E:\pyCharm\project\aiBySky\nlp\Sunsimiao.py", line 7, in
pipe = pipeline(task=Tasks.text_generation, model='AI-ModelScope/Sunsimiao', model_revision='v1.0.0')
File "E:\anaconda\anaconda\lib\site-packages\modelscope\pipelines\builder.py", line 135, in pipeline
register_modelhub_repo(model, cfg.get('allow_remote', False))
File "E:\anaconda\anaconda\lib\site-packages\modelscope\utils\plugins.py", line 454, in register_modelhub_repo
import_module_from_model_dir(model_dir)
File "E:\anaconda\anaconda\lib\site-packages\modelscope\utils\plugins.py", line 399, in import_module_from_model_dir
importlib.import_module(submodule)
File "E:\anaconda\anaconda\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 981, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'Sunsimiao.configuration_baichuan'; 'Sunsimiao' is not a package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant