You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: You are trying to save a non contiguous tensor: bert.encoder.layer.0.attention.self.query.weight which is not allowed. It either means you are trying to save tensors which are reference of each other in which case it's recommended to save only the full tensors, and reslice at load time, or simply call .contiguous() on your tensor to pack it before saving.
The text was updated successfully, but these errors were encountered:
model.save_pretrained("waimai_10k_bert")
ValueError: You are trying to save a non contiguous tensor:
bert.encoder.layer.0.attention.self.query.weight
which is not allowed. It either means you are trying to save tensors which are reference of each other in which case it's recommended to save only the full tensors, and reslice at load time, or simply call.contiguous()
on your tensor to pack it before saving.The text was updated successfully, but these errors were encountered: