java.lang.IllegalArgumentException in SageMaker

0

I'm unable to invoke the my SageMaker endpoint. I'm seeing this error in the endpoint logs

java.lang.IllegalArgumentException: reasonPhrase contains one of the following prohibited characters: \r\n: tokenizers>=0.10.1,<0.11 is required for a normal functioning of this module, but found tokenizers==0.11.2.

Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git

My Sagemaker endpoint is invoked through a lambda function. The code that calls the sagemaker endpoint is:

SM_ENDPOINT_NAME = "pytorch-inference-2021-xx-xx"
sm_runtime= boto3.client('runtime.sagemaker')
txt = "Canon SELPHY CP1300 Compact Photo Printer"
response = sm_runtime.invoke_endpoint(EndpointName=SM_ENDPOINT_NAME, ContentType='text/plain', Body=txt)

The response is supposed to contain a vector.

It's been working fine previously but I started seeing this exception today.

Is this a bug in SageMaker? If not, how do I fix it?

preguntada hace 2 años105 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas