# ClientErro:400 when using batch transformer for inference

**URL:** <https://discuss.huggingface.co/t/clienterro-400-when-using-batch-transformer-for-inference/13476>\
**Category:** Amazon SageMaker\
**Created:** [January 7, 2022, 10:06pm UTC](https://discuss.huggingface.co/t/clienterro-400-when-using-batch-transformer-for-inference/13476 "2022-01-07T22:06:43Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![miOmiO](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@miOmiO](https://discuss.huggingface.co/u/miOmiO)\
**Post date:** [January 13, 2022, 4:52am UTC](https://discuss.huggingface.co/t/clienterro-400-when-using-batch-transformer-for-inference/13476/12 "2022-01-13T04:52:06Z")

</div>

Hi @philschmid , I got solution from another related post under your help as well :  
[How are the inputs tokenized when model deployment? - Amazon SageMaker - Hugging Face Forums](https://discuss.huggingface.co/t/how-are-the-inputs-tokenized-when-model-deployment/9692/12)

After I switch to another model and remodify the input json file format like this:  
{“inputs”: “long sentence 2”, “parameters”: {“trucation”: true}}, the new model works well for me ( as long as it has ‘max\_length’ attribute in tokenizer config file.)

---

_[View the full topic](https://discuss.huggingface.co/t/clienterro-400-when-using-batch-transformer-for-inference/13476)._
