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

ImportError: dynamic module does not define module export function #33

Closed
muzi0111 opened this issue Jul 23, 2024 · 2 comments
Closed

Comments

@muzi0111
Copy link

11
使用项目下面的support编译完了cpython的so文件之后,在pipline.py里面导包总是出现这个错误,是因为版本不对的问题吗,使用的父文件是Qwen-7B的

@chuxiaoyi2023
Copy link
Collaborator

#31

您好,请按照标准提问格式来提问~不然这样很难确定原因

另外我看是chat_vision,是多模态的模型么

@chuxiaoyi2023
Copy link
Collaborator

可能是因为你改了import chat的原因,改成了import chat_vision

猜测你可能是修改了库名称,但是没修改全

如果你想修改库名字,你还需要同时修改chat.cpp中pybind的代码

以及CMakeLists.txt的文件,不然很容易报错

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

2 participants