# LayoutLMv3 For Token Classification does not support Gradient\_checkpointing

**URL:** <https://discuss.huggingface.co/t/layoutlmv3-for-token-classification-does-not-support-gradient-checkpointing/25486>\
**Category:** 🤗Transformers\
**Created:** [November 3, 2022, 4:27pm UTC](https://discuss.huggingface.co/t/layoutlmv3-for-token-classification-does-not-support-gradient-checkpointing/25486 "2022-11-03T16:27:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![purnasai](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@purnasai](https://discuss.huggingface.co/u/purnasai)\
**Post date:** [November 3, 2022, 4:27pm UTC](https://discuss.huggingface.co/t/layoutlmv3-for-token-classification-does-not-support-gradient-checkpointing/25486/1 "2022-11-03T16:27:12Z")

</div>

Hi @nielsr, How to add Gradient Checkpointing to LMV3. It says that it is not supported for now. So how can I add Checkpointing to it.

Thanks.

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [November 4, 2022, 7:59am UTC](https://discuss.huggingface.co/t/layoutlmv3-for-token-classification-does-not-support-gradient-checkpointing/25486/2 "2022-11-04T07:59:36Z")

</div>

Hi,

Please open an issue on Github, we’ll add it
