All models

markuplm

A document model that reads text together with where it sits on the page.

Documents and OCR · 612 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (16 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
layoutlm
Parameters
120M
Operations
612
Framework
PyTorch
Recurrent
No
Published
2021
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m5725
Graph hash
c0846f84dbafa9ee2e14e195e28112e6c94e945203990071a29befe09e3ca5bd
Skeleton hash
a415e2aa72f0cb647410d2f1217c6ce54f6c17802c4a33f8722747f8da1942e6
Architecture hash
11287b76db67c035a467023c0e20f2283796f2c4e23677b6a63379b30c424d6a
Diagram SHA-256
5b7864201a42290fdb8f72de9f55ecee330f99acc0c8ba2fc52301e35e6a1fc0
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModel.from_config()

What it is

This model is MarkupLM, and its base model adds a pooling layer by default.

About this model's family

LayoutLM is a model for documents that learns the text and the layout of the page together, not the text alone. It incorporates positional layout information and visual features of words from the document images.

LayoutLM does not read a page image by itself: it expects words and their bounding boxes from an external OCR engine. Each bounding box is given in the format (x0, y0, x1, y1), the upper left and lower right corners. The boxes are normalized on a 0-1000 scale.

Key idea. LayoutLM jointly learns text and document layout, incorporating positional layout information and visual features of words from the document images.

  • LayoutLM
  • MarkupLM
  • document understanding
  • document layout
  • text and layout
  • bounding boxes
  • OCR
  • document question answering

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.