OceannTwT / era-cot

[ACL 2024] ERA-CoT: Improving Chain-of-Thought through Entity Relationship Analysis.
https://aclanthology.org/2024.acl-long.476.pdf
51 stars 3 forks source link

运行run_llama.sh后报错 #6

Open Twilightaaa opened 2 months ago

Twilightaaa commented 2 months ago

如题

报错信息为: ValueError: Input length of input_ids is 534, but max_length is set to 512. This can lead to unexpected behavior. You should consider increasing max_length or, better yet, setting max_new_tokens.

请问如何解决这个报错比较好

OceannTwT commented 2 months ago

看起来是长度太长了,你看看改一下max_length的值呢