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

self.tokenizer is none, how to solve this problem. #328

Open
lzj-r opened this issue Jun 26, 2024 · 4 comments
Open

self.tokenizer is none, how to solve this problem. #328

lzj-r opened this issue Jun 26, 2024 · 4 comments

Comments

@lzj-r
Copy link

lzj-r commented Jun 26, 2024

when submit the content by pressing the button,(run web-demo.py), the fault occur。

error content:
File "c:\Users\lzj_r\chatglm.cpp\chatglm_cpp_init_.py", line 68, in chat
input_ids = self.tokenizer.apply_chat_template(messages, max_context_length)
AttributeError: 'NoneType' object has no attribute 'apply_chat_template'

@lzj-r
Copy link
Author

lzj-r commented Jul 3, 2024

奇怪的很,cpp 的 pipline 里有 tokenizer的定义,为啥运行后就显示为 None

@lzj-r
Copy link
Author

lzj-r commented Jul 4, 2024

import chatglm_cpp 必须把文件夹名改成 chatglmcpp,否则不认。

@lzj-r
Copy link
Author

lzj-r commented Jul 4, 2024

完美解决,自己爬坑

@99-song
Copy link

99-song commented Oct 28, 2024

完美解决,自己爬坑

哥怎么解决的啊

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