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

ValueError: You passed inputs_embeds to .generate() #5

Open
Youngon opened this issue Jul 4, 2023 · 1 comment
Open

ValueError: You passed inputs_embeds to .generate() #5

Youngon opened this issue Jul 4, 2023 · 1 comment

Comments

@Youngon
Copy link

Youngon commented Jul 4, 2023

when I run 'sh demo_stage2.sh', I meet the error below:
ValueError: You passed inputs_embeds to .generate(), but the model class ChatGLMForConditionalGeneration doesn't have its forwarding implemented. See the GPT2 implementation for an
example (huggingface/transformers#21405), and feel free to open a PR with it!
Could you please give me some insight.

@zhyj3038
Copy link
Member

zhyj3038 commented Jul 7, 2023

@Youngon chatGLM自带的modeling_chatglm.py会报这个错吧。 需要使用仓库自带的,修改过的modeling_chatglm.py才可以。

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