openai / gpt-2

Code for the paper "Language Models are Unsupervised Multitask Learners"
https://openai.com/blog/better-language-models/
Other
21.98k stars 5.44k forks source link

InvalidArgumentError error message during conditioned text generation #106

Open negacy opened 5 years ago

negacy commented 5 years ago

Any thoughts for the following error message when running the conditioned text generation script on the 117M pre-trained model for a bit large input text? InvalidArgumentError (see above for traceback): indices[0,0] = 1024 is not in [0, 1024) [[Node: sample_sequence/while/model/GatherV2_1 = GatherV2[Taxis=DT_INT32, Tindices=DT_INT32, Tparams=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"](sample_sequence/while/model/GatherV2_1/Enter, sample_sequence/while/model/ExpandDims, sample_sequence/while/model/h11/attn/range/start, ^sample_sequence/while/model/h11/attn/strided_slice_8/stack_2)]]

miguelrodriguezpro commented 4 years ago

same here

lostmsu commented 4 years ago

BTW, this only happens on CPU.