wenda-LLM / wenda

闻达:一个LLM调用平台。目标为针对特定环境的高效内容生成,同时考虑个人和中小企业的计算资源局限性,以及知识安全和私密性问题
GNU Affero General Public License v3.0
6.23k stars 810 forks source link

ModuleNotFoundError: No module named 'transformers_modules.model/chatglm2-6b' #448

Closed jackaihfia2334 closed 1 year ago

jackaihfia2334 commented 1 year ago

[['cuda', 'fp16']] Exception in thread Thread-1 (load_model): Traceback (most recent call last): File "D:\data\wenda\wd-git主程序加知识库模型\WPy64-31110\python-3.11.1.amd64\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "D:\data\wenda\wd-git主程序加知识库模型\WPy64-31110\python-3.11.1.amd64\Lib\threading.py", line 975, in run self._target(*self._args, self._kwargs) File "D:\data\wenda\wd-git主程序加知识库模型\wenda\wenda.py", line 49, in load_model LLM.load_model() File "D:\data\wenda\wd-git主程序加知识库模型\wenda\llms\llm_glm6b.py", line 66, in load_model tokenizer = AutoTokenizer.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\data\wenda\wd-git主程序加知识库模型\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\transformers\models\auto\tokenization_auto.py", line 676, in from_pretrained tokenizer_class = get_class_from_dynamic_module(class_ref, pretrained_model_name_or_path, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\data\wenda\wd-git主程序加知识库模型\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\transformers\dynamic_module_utils.py", line 443, in get_class_from_dynamic_module return get_class_in_module(class_name, final_module.replace(".py", "")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\data\wenda\wd-git主程序加知识库模型\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\transformers\dynamic_module_utils.py", line 164, in get_class_in_module module = importlib.import_module(module_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\data\wenda\wd-git主程序加知识库模型\WPy64-31110\python-3.11.1.amd64\Lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1128, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1142, in _find_and_load_unlocked ModuleNotFoundError: No module named 'transformers_modules.model/chatglm2-6b' No sentence-transformers model found with name model/m3e-base. Creating a new one with MEAN pooling. 知识库加载完成

l15y commented 1 year ago

目录斜杠错了