I’m using a SageMaker endpoint with cardiffnlp/twitter-roberta-base-sentiment-latest.
When I Invoke the endpoint my input is:
input = {
"inputs": texts, #It's a List of texts
"parameters": {
"truncation": True
}
}
It was running smoothly for days… and then I received:
The expanded size of the tensor (679) must match the existing size (514) at non-singleton dimension 1. Target sizes: [1, 679]. Tensor sizes: [1, 514]
How can I fix?