We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
macOS运行报错未知平台解决方法:
elif sys.platform.startswith("darwin"): lib_path = unix_find_lib(self.__name) self.__lib_path = lib_path if lib_path is not None: self.__lib = ctypes.cdll.LoadLibrary(lib_path)
最终效果双击运行:
The text was updated successfully, but these errors were encountered:
谢谢你提供的方法。在#6 (comment) 中我给出了报错的原因和解决方法。其实只要先把仓库clone的本地就可以了。
Sorry, something went wrong.
No branches or pull requests
macOS运行报错未知平台解决方法:
model = AutoModel.from_pretrained("THUDM/chatglm-6b", trust_remote_code=True).float()
修改/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cpm_kernels/library/base.py(具体路径因人而异)

添加elif darwin:最终效果双击运行:

The text was updated successfully, but these errors were encountered: