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?

질문됨 2년 전105회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠