Inference Hyperparameters

I upgraded my sagemaker from2.48 to 2.59. I used the same code to redeploy my model and invoke the endpoint. This time I got a new error message -

ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from model with message "{
“code”: 400,
“type”: “InternalServerException”,
“message”: “invalid type: boolean true, expected struct TruncationParams at line 1 column 34”
}

here is the server side error -

fast_tokenizer = TokenizerFast.from_file(fast_tokenizer_file)
2021-09-24 17:22:01,699 [INFO ] W-model-1-stdout com.amazonaws.ml.mms.wlm.WorkerLifeCycle - fast_tokenizer = TokenizerFast.from_file(fast_tokenizer_file)

Exception: invalid type: boolean true, expected struct TruncationParams at line 1 column 34