We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如何增加模型输入的最大长度,直接在微调命令中修改max_seq_length训练会直接报错
The text was updated successfully, but these errors were encountered:
uie-base的默认最大长度是512,如果需要延长最大长度,需要修改max_position_embeddings,但这样的话超出512长度的position embeddings会被随机初始化,会影响效果。
https://github.com/PaddlePaddle/PaddleNLP/blob/ae0bea9e8580bbedea96b45d4153be7a8b884d74/paddlenlp/transformers/ernie/modeling.py#L71C20-L71C43
Sorry, something went wrong.
wawltor
No branches or pull requests
请提出你的问题
如何增加模型输入的最大长度,直接在微调命令中修改max_seq_length训练会直接报错
The text was updated successfully, but these errors were encountered: