aitextgen icon indicating copy to clipboard operation
aitextgen copied to clipboard

Bypassing 1024 max length in sample size

Open aletote opened this issue 5 years ago • 1 comments

Is there a way to do it? If so, what is it?

In your notebook example to create gpt-2 from scratch there's a line: config = build_gpt2_config(vocab_size=5000, max_length=32, dropout=0.0, n_embd=256, n_layer=8, n_head=8)

Can I change max_length to 4096 for example?

aletote avatar Jul 29 '20 00:07 aletote

This isn't a change to the max length but you can always use the prompt and put part of the previously generated text back into a new one. A bit clunky but might work okay.

possibly-not avatar Aug 04 '20 14:08 possibly-not