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

add resize_token_embeddings to Class PretrainedModel #2423

Merged
merged 4 commits into from
Jun 20, 2022

Conversation

westfish
Copy link
Contributor

@westfish westfish commented Jun 6, 2022

PR types

New features

PR changes

Others

Description

为PretrainedModel类增加resize_token_embeddings函数,从而让预训练模型支持词表扩充

@CLAassistant
Copy link

CLAassistant commented Jun 6, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@guoshengCS guoshengCS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

也还请完善下 PR 的描述信息~

paddlenlp/transformers/model_utils.py Show resolved Hide resolved
paddlenlp/transformers/model_utils.py Outdated Show resolved Hide resolved
paddlenlp/transformers/model_utils.py Show resolved Hide resolved
paddlenlp/transformers/model_utils.py Show resolved Hide resolved
paddlenlp/transformers/model_utils.py Outdated Show resolved Hide resolved
paddlenlp/transformers/model_utils.py Outdated Show resolved Hide resolved
@guoshengCS
Copy link
Contributor

还请看下是否操作上有什么问题,会有这些commit呢
image

@westfish
Copy link
Contributor Author

还请看下是否操作上有什么问题,会有这些commit呢 image

已通过版本回退解决问题

Copy link
Contributor

@guoshengCS guoshengCS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@guoshengCS guoshengCS merged commit 156b676 into PaddlePaddle:develop Jun 20, 2022
@ZHUI ZHUI mentioned this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants