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 Reformer Model #870

Merged
merged 17 commits into from
Dec 7, 2021
Merged

Add Reformer Model #870

merged 17 commits into from
Dec 7, 2021

Conversation

JunnYu
Copy link
Member

@JunnYu JunnYu commented Aug 10, 2021

飞桨论文复现挑战赛(第四期)Reformer: The Efficient Transformer 论文复现提交。

@JunnYu JunnYu changed the title add reformer add Reformer Model Aug 10, 2021
@JunnYu JunnYu changed the title add Reformer Model Add Reformer Model Aug 10, 2021
@yingyibiao yingyibiao self-assigned this Aug 10, 2021
@yingyibiao

This comment has been minimized.

@yingyibiao yingyibiao assigned joey12300 and unassigned yingyibiao Nov 2, 2021
paddlenlp/transformers/reformer/modeling.py Show resolved Hide resolved
paddlenlp/transformers/reformer/modeling.py Outdated Show resolved Hide resolved
paddlenlp/transformers/reformer/modeling.py Show resolved Hide resolved
paddlenlp/transformers/reformer/modeling.py Outdated Show resolved Hide resolved
paddlenlp/transformers/reformer/modeling.py Outdated Show resolved Hide resolved
paddlenlp/transformers/reformer/modeling.py Outdated Show resolved Hide resolved
@JunnYu JunnYu requested a review from joey12300 November 8, 2021 05:48
@JunnYu
Copy link
Member Author

JunnYu commented Nov 8, 2021

模型权重链接。
链接:https://pan.baidu.com/s/1ZUxfged0lUavaCBb_uSZHw
提取码:byg9
--来自百度网盘超级会员V5的分享

joey12300
joey12300 previously approved these changes Nov 8, 2021
Copy link
Contributor

@joey12300 joey12300 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +51 to +63
resource_files_names = {"sentencepiece_model_file": "spiece.model", }
pretrained_resource_files_map = {
"sentencepiece_model_file": {
"reformer-crime-and-punishment":
"http://paddlenlp.bj.bcebos.com/models/transformers/reformer/reformer-crime-and-punishment/spiece.model",
},
}

pretrained_init_configuration = {
"reformer-crime-and-punishment": {
"do_lower_case": False
},
}
Copy link
Contributor

Choose a reason for hiding this comment

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

这里缺少reformer-enwik8权重加载的tokenizer

Copy link
Member Author

Choose a reason for hiding this comment

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

reformer-enwik8 不使用tokenizer

@yingyibiao
Copy link
Contributor

权重已上传

Copy link
Contributor

@yingyibiao yingyibiao left a comment

Choose a reason for hiding this comment

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

LGTM

@yingyibiao yingyibiao merged commit 794b116 into PaddlePaddle:develop Dec 7, 2021
@JunnYu JunnYu deleted the add_reformer branch December 10, 2021 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants