-
Notifications
You must be signed in to change notification settings - Fork 251
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
GPT2 Text Generation APIs #592
GPT2 Text Generation APIs #592
Conversation
8cd580c
to
e3a82a6
Compare
e3a82a6
to
0eb68f6
Compare
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.
Looks very clean, thanks for sharing! I would love to understand the CasualLMPreprocessor
better.
The samplers/
code should be moved to a different PR.
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.
Not a full review, but left some quick comments!
18fe549
to
8206103
Compare
4d9a9b7
to
4fa8fc5
Compare
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.
Left some initial comments!
ac24a04
to
cb12604
Compare
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.
A lot of progress here! Left some comments.
Can you add a link to the demo colab? Would love to play around with this a bit.
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.
LGTM! Let's consider a out of box option to prepend an "end of text" token to input sequences. I believe this is standard practice, but we can check.
Since this is a big one, probably good to wait for an ack from @jbischof too!
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.
The colab needs some updating but the PR is great. Thank you!
You can view the demo via this link