Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问这个报错是什么问题,运行seq2seq_model.py的时候 #45

Open
JM0011 opened this issue Jan 20, 2023 · 0 comments
Open

请问这个报错是什么问题,运行seq2seq_model.py的时候 #45

JM0011 opened this issue Jan 20, 2023 · 0 comments

Comments

@JM0011
Copy link

JM0011 commented Jan 20, 2023

File "seq2seq_model.py", line 181, in
compound_tokens=compound_tokens,
File "/root/.virtualenvs/torch36/lib/python3.6/site-packages/bert4keras/models.py", line 2297, in build_transformer_model
transformer.load_weights_from_checkpoint(checkpoint_path)
File "/root/.virtualenvs/torch36/lib/python3.6/site-packages/bert4keras/models.py", line 255, in load_weights_from_checkpoint
values = [self.load_variable(checkpoint, v) for v in variables]
File "/root/.virtualenvs/torch36/lib/python3.6/site-packages/bert4keras/models.py", line 255, in
values = [self.load_variable(checkpoint, v) for v in variables]
File "/root/.virtualenvs/torch36/lib/python3.6/site-packages/bert4keras/models.py", line 649, in load_variable
variable = super(BERT, self).load_variable(checkpoint, name)
File "/root/.virtualenvs/torch36/lib/python3.6/site-packages/bert4keras/models.py", line 232, in load_variable
return tf.train.load_variable(checkpoint, name)
File "/root/.virtualenvs/torch36/lib/python3.6/site-packages/tensorflow_core/python/training/checkpoint_utils.py", line 84, in load_variable
return reader.get_tensor(name)
File "/root/.virtualenvs/torch36/lib/python3.6/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 915, in get_tensor
return CheckpointReader_GetTensor(self, compat.as_bytes(tensor_str))
tensorflow.python.framework.errors_impl.OutOfRangeError: Read less bytes than requested

@JM0011 JM0011 changed the title 请问这个报错是什么问题 请问这个报错是什么问题,运行seq2seq_model.py的时候 Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant