gpt-2
gpt-2 copied to clipboard
OutOfRangeError
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)]]
I have the same question. Any ideas? Thanks
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
When I had this error before, the download was actually incomplete.