transformers
TF: GPT-2 generation supports left-padding
#17426
Merged

TF: GPT-2 generation supports left-padding #17426

gante merged 8 commits into huggingface:main from gante:xla_gpt2
gante
gante gante requested a review from Rocketknight1 Rocketknight1 4 years ago
gante gante requested a review from patrickvonplaten patrickvonplaten 4 years ago
gante
gante commented on 2022-05-25
gante
gante commented on 2022-05-25
gante
gante commented on 2022-05-25
HuggingFaceDocBuilderDev
Rocketknight1
Rocketknight1 commented on 2022-05-26
Rocketknight1
Rocketknight1 commented on 2022-05-26
Rocketknight1
Rocketknight1 approved these changes on 2022-05-26
gante
gante commented on 2022-05-26
patrickvonplaten
patrickvonplaten commented on 2022-05-26
gante
gante tmp commit
e1bf8660
gante TF GPT-2 now properly works with left padding
819d4a19
gante only pre-write pad token when it is non zero and non None
744c4857
gante Fix tf generate attention mask where eos token == pad token
2bf64a14
gante fix the case in the previous commit where left padding is also present
05b8192c
gante throw a warning instead
73dad3ba
gante make fixup
a5ee75c6
gante attention mask has to stay as arg
ed266959
gante gante force pushed to ed266959 4 years ago
patrickvonplaten
patrickvonplaten approved these changes on 2022-05-30
patrickvonplaten
patrickvonplaten patrickvonplaten requested a review from sgugger sgugger 4 years ago
patrickvonplaten
patrickvonplaten
sgugger
patrickvonplaten
gante gante merged 975dd2bb into main 4 years ago
gante gante deleted the xla_gpt2 branch 4 years ago
ydshieh
ydshieh
ydshieh commented on 2022-06-05
ydshieh
ydshieh commented on 2022-06-05
ydshieh
ydshieh commented on 2022-06-05

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone