gpt-2 icon indicating copy to clipboard operation
gpt-2 copied to clipboard

InvalidArgumentError error message during conditioned text generation

Open negacy opened this issue 5 years ago • 2 comments

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)]]

negacy avatar Mar 22 '19 20:03 negacy

same here

miguelrodriguezpro avatar Aug 21 '19 02:08 miguelrodriguezpro

BTW, this only happens on CPU.

lostmsu avatar Jun 18 '20 01:06 lostmsu