# Sagemaker Serverless Inference for LayoutLMv2 model

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsagemaker-serverless-inference-for-layoutlmv2-model%2F14186%3E%5C
**Category:** Amazon SageMaker\
**Created:** [January 28, 2022, 3:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsagemaker-serverless-inference-for-layoutlmv2-model%2F14186 "2022-01-28T03:07:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![marshmellow77](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/marshmellow77/32/3279_2.png) [@marshmellow77](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmarshmellow77)%5C
**Post date:** [January 28, 2022, 6:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsagemaker-serverless-inference-for-layoutlmv2-model%2F14186%2F3 "2022-01-28T06:41:35Z")

</div>

One caveat I forgot to mention: At the moment it seems that deploying a model \>512MB to a serverless endpoint can lead to an error. Fortunately there seems to be a workaround: [Sagemaker Serverless Inference - #7 by philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsagemaker-serverless-inference%2F13246%2F7)

Just something to be aware of!

Cheers  
Heiko

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsagemaker-serverless-inference-for-layoutlmv2-model%2F14186)._
