What were the input shapes during training for this model?
Based on the error message you’ve posted, I assume you are running into a shape mismatch inside the model’s forward (maybe in a linear layer)?