1 Answer
- Newest
- Most votes
- Most comments
0
Hi Siddharth,
There's not a whole lot of information for us to go off from here. It's a general error, but I've faced it before when passing the inputs to the model incorrectly. What type of data are you trying pass through?
A suggestion is to try run Sagemaker in local mode. If you run locally, do you experience a similar error?
To help more, I'd need to see any further tracebacks, cloudwatch logs or more information on what you're trying to achieve.
Let me know how you get on.
Cheers James
answered 3 years ago

Hi James, I'm trying to pass in a json, and I've used json.dumps during my InvokeEndpoint calls as well as json.loads within the inference code when processing input data. I haven't tried local mode, but I'll certainly give it a try!
I think it's worth noting that I haven't used a pytorch container, and instead have only defined dependencies that my code runs upon. Would this cause issues? If so, would it be possible to point me towards some sort of documentation on creating a dockerfile/image/pytorch container since I've been struggling to learn about it online. Thanks so much.