SEEChat
SEEChat copied to clipboard
ValueError: You passed `inputs_embeds` to `.generate()`
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 chatGLM自带的modeling_chatglm.py会报这个错吧。 需要使用仓库自带的,修改过的modeling_chatglm.py才可以。