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

Allowing non-fixed length generation (again) #199

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

dhlanm
Copy link

@dhlanm dhlanm commented Apr 18, 2020

I wanted to use #87 for a project, but had to make a lot of changes to it.
Same structure as that PR using the split_context variable. I've tested this a good amount with different batch sizes and split contexts.
It might generate infinitely if no length limit is given and the truncation token is never generated. This seems pretty unlikely, but a default length limit could be in order.

You can see a version of this working here :)

Should close #2

(sorry about the slightly messy commits!)

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.

Allow users to generate texts longer than 1024 tokens
1 participant