mms.service.PredictionException: Content type application/jsonlines is not supported by this framework.
Please implement input_fn to to deserialize the request data or an output_fn to
serialize the response. For more information, see the SageMaker Python SDK README. 400
Is there a straightforward way to do this with an existing model trained using HuggingFaceEstimator.fit()?
I'm looking at this example: https://github.com/huggingface/notebooks/blob/main/sagemaker/12_batch_transform_inference/sagemaker-notebook.ipynb
I am trying to get something similar working, but with the
MultiRecord
BatchStrategy.Attempt No. 1:
This gets the following error:
This error seems consistent with the behavior described here,
where two distinct JSON documents are passed to
json.loads
(or equivalent).Attempt No. 2:
(note
content_type='application/jsonlines'
)Error:
Is there a straightforward way to do this with an existing model trained using
HuggingFaceEstimator.fit()
?