-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
AttributeError: 'str' object has no attribute 'shape' #31678
Comments
I think it may be related to #31679 |
Hi @MARD1NO, thanks for opening a PR! So that we can best help you, could you:
It does look like the error is similar to the one in #31679. As the code in the description looks like it's custom, rather than from the transformers library, that code might need to be updated to handle this |
Hi @amyeroberts, thanks for your quick reply :D env is:
The minimal code snippet is when using chatglm3 to generate like that:
And I test success in transformers==4.40.1, I thinks there exist some bug |
Hi @MARD1NO, thanks for sharing! As the modeling code is defined in https://huggingface.co/THUDM/chatglm3-6b/blob/main/modeling_chatglm.py, I'd suggest opening a discussion on the THUDM/chatglm3-6b repo to report this error |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
transformers version 4.42.1
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Run chatglm3 generation
Expected behavior
raise Error like:
The text was updated successfully, but these errors were encountered: