docs: Update LayoutLMv3 model card with standardized format and impro…
Author: carrycooldude
Pull request: yes

# Update LayoutLMv3 Model Card Documentation

This PR updates the LayoutLMv3 model card documentation to follow the standardized format as requested in #36979. The changes improve the documentation's clarity and usability while maintaining consistency with other model cards in the repository.

# What does this PR do?

This PR enhances the LayoutLMv3 model card documentation by:
- Adding badges for framework support (PyTorch, TensorFlow, Flax) and optimizations (Flash Attention, SDPA)
- Reorganizing code examples into clear sections:
  - Quick Start (basic usage)
  - Pipeline API examples
  - AutoModel examples
  - transformers-cli examples
- Adding quantization examples for large models (8-bit and 4-bit)
- Adding attention visualization examples using AttentionMaskVisualizer
- Maintaining existing functionality while improving documentation structure

The changes make the documentation more accessible and provide ready-to-use examples for different use cases, following the standardized format used in other model cards like Gemma 3, PaliGemma, and ViT.

#36979

## Before submitting
- [x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [x] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [x] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [x] Did you write any new necessary tests?

## Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

Since this is a documentation update for a vision-language model, I would suggest tagging:
- @amyeroberts (vision models)
- @stevhliu (documentation)

Comments:
Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the `Ready for review` button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@stevhliu , have a look on this 

The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_37155). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Hey, it is still a bit off! For example:

- the badges look different and should be aligned on the right
- the code examples should be inside `<hfoption>` blocks so users can easily toggle between `Pipeline` and `AutoModel`
- the Resources section should be removed

I suggest taking a look at the [Gemma 3](https://github.com/huggingface/transformers/blob/main/docs/source/en/model_doc/gemma3.md?plain=1) model card again and trying to align your model card with it as much as possible!

We'll need to update the badges to include FlashAttention and the code examples to include SDPA once #35469 is merged!

> We'll need to update the badges to include FlashAttention and the code examples to include SDPA once #35469 is merged!

Sure , Will see to that too