What should I do if an error occurs when a model is loaded?

#9
by zucan - opened

What should I do if an error occurs when a model is loaded?

OSError: Unable to load weights from pytorch checkpoint file for '/mnt/workspace/sqlcoder-model/model/1/pytorch_model-00028.bin' at '/mnt/workspace/sqlcoder-model/model/1/pytorch_model-00028.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.

Another error appeared,When I set from_tf=True.

AttributeError: 'list' object has no attribute 'endswith'

Sign up or log in to comment