Skip to content

Allowing non-fixed length generation (again)#199

Open
dhlanm wants to merge 10 commits into
minimaxir:masterfrom
dhlanm:master
Open

Allowing non-fixed length generation (again)#199
dhlanm wants to merge 10 commits into
minimaxir:masterfrom
dhlanm:master

Conversation

@dhlanm

@dhlanm dhlanm commented Apr 18, 2020

Copy link
Copy Markdown

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