-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 T5 model #916
Merged
Merged
Add T5 model #916
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c08df30
add t5 model
JunnYu b67cf7b
Merge branch 'develop' into a_T5
JunnYu 573af0a
update
JunnYu f712f67
add glue demo
JunnYu 73fcd86
Merge branch 'develop' into a_T5
JunnYu 3e27bd0
update
JunnYu be7338f
Merge branch 'a_T5' of https://github.com/JunnYu/PaddleNLP into a_T5
JunnYu eefda44
rename PreTrained -> Pretrained
JunnYu 923e6fd
Merge branch 'develop' into a_T5
JunnYu ffcffc4
tokenizer return token_type_ids=False attention_mask=True
JunnYu 4d9dded
Merge branch 'develop' into a_T5
yingyibiao 132e334
Merge branch 'develop' into a_T5
yingyibiao a37abe9
update
JunnYu 707242b
update T5EncoderModel
JunnYu c0123c8
rm t5encoderblock
JunnYu c27684d
Merge branch 'develop' into a_T5
yingyibiao 5bba6c4
Update modeling.py
yingyibiao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
T5EncoderModel还是参考hf的实现来写;目前这种写法会存在一个显存占用的脉冲,容易造成oom。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在换成了这种写法,可以吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个类建议按照参考T5Model的方式来初始化(传入构造T5EncoderModel的具体参数)