SEEChat icon indicating copy to clipboard operation
SEEChat copied to clipboard

ValueError: You passed `inputs_embeds` to `.generate()`

Open Youngon opened this issue 2 years ago • 1 comments

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 (https://github.com/huggingface/transformers/pull/21405), and feel free to open a PR with it! Could you please give me some insight.

Youngon avatar Jul 04 '23 07:07 Youngon

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

zhyj3038 avatar Jul 07 '23 06:07 zhyj3038