aitextgen icon indicating copy to clipboard operation
aitextgen copied to clipboard

Stepwise Generation

Open minimaxir opened this issue 5 years ago • 3 comments

A stepwise implementation of generation (instead of using generate() wholesale) is necessary for:

  • Generating text beyond max_length of the model (infinite generation via sliding windows
  • Returning partial generated text to generate in "real time".

Should be similar to the Huggingface implementation using the past parameter.

minimaxir avatar May 17 '20 01:05 minimaxir

Yes! I think this is what I was trying to describe on Patreon.

PaulBellow avatar May 19 '20 02:05 PaulBellow

This implementation will be conditional on https://github.com/huggingface/transformers/pull/4581 (good timing!)

minimaxir avatar May 26 '20 17:05 minimaxir

The patch has been merged on huggingface! Is this feature planned in the near future?

redthing1 avatar Apr 22 '21 23:04 redthing1