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

OutOfRangeError

Open Star710355635 opened this issue 5 years ago • 3 comments

OutOfRangeError (see above for traceback): Read fewer bytes than requested [[node save/RestoreV2 (defined at F:/ex/gpt-2-master/gpt-2-master/src/interactive_conditional_samples.py:45) = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Star710355635 avatar Feb 27 '19 08:02 Star710355635

I have the same question. Any ideas? Thanks

JasonVann avatar Mar 08 '19 09:03 JasonVann

I am having the same problem when running both the generate_unconditional_samples and the interactive_conditional_samples modules.

The error trigger when trying to restore the model, here: https://github.com/openai/gpt-2/blob/master/src/generate_unconditional_samples.py#L62

I am not familiar with Tensorflow, but looks like some sort of incompatibility between the code and the downloaded models.

My models/117M/ dir contains the following files, am I missing any of the important ones?

checkpoint
encoder.json
hparams.json
model.ckpt.data-00000-of-00001
model.ckpt.index
model.ckpt.meta
vocab.bpe

ariera avatar Mar 11 '19 14:03 ariera

When I had this error before, the download was actually incomplete.

marciopuga avatar Nov 08 '19 13:11 marciopuga