LayoutLM (v1–v3, LayoutXLM)
Classic document understanding models: they take into account the text, its position on the page and the image. They are fine-tuned to extract fields from forms and receipts. Only the first version is free for commercial use.
The last open version came out in Jul 2022. The family has not been updated for a long time: the model still works, but do not expect fixes or new sizes.
- Developer
- Microsoft, USA
- First release
- Feb 2020
- Latest release
- Jul 2022
- Sizes
- about 110M – 370M
- License
- Commercial use with conditionsLayoutLM v1 is MIT; LayoutLMv2, LayoutXLM and LayoutLMv3 are CC BY-NC-SA 4.0 (non-commercial)
- Russian
- Not supported
- Running
- On your own serverAlso runs without a GPU
- Industries
- Documents and accounting, Finance, Legal
What it does
- Extracting fields from questionnaires, forms and receipts after fine-tuning
- Classifying document types
- Answering questions about a scanned page
Where it is used
Hardware requirements
Versions
- LayoutLMv3 для китайского
- LayoutLMv3
- LayoutLM cased
- LayoutXLM (многоязычная)
- LayoutLMv2
- LayoutLM
How to run it
I can set this up end to end: pick the model size, deploy it on your server and connect it to your systems.
Frequently asked questions
Can LayoutLM (v1–v3, LayoutXLM) be used in a commercial project?
With conditions. License: LayoutLM v1 is MIT; LayoutLMv2, LayoutXLM and LayoutLMv3 are CC BY-NC-SA 4.0 (non-commercial). Restrictions vary — region, company revenue, attribution requirements. Have a lawyer check the terms before a commercial launch.
What hardware does LayoutLM (v1–v3, LayoutXLM) need?
At minimum: Laptop or regular PC, up to 8 GB of VRAM — smaller versions. Some versions also run on an ordinary CPU, without a GPU. You can calculate the exact VRAM for your model size and context in the hardware calculator.
Does LayoutLM (v1–v3, LayoutXLM) support Russian?
No. The model card lists its languages and Russian is not among them.
Where can I download LayoutLM (v1–v3, LayoutXLM) and what does it cost?
The LayoutLM (v1–v3, LayoutXLM) weights are open and free to download. You only pay for the hardware it runs on and for the setup. Source links are at the bottom of this page.
How I deploy it for clients
- SelectionI pick the model size for your task and hardware and test it on your examples.
- DeploymentI deploy it on your server or in a closed network and provide an API.
- Fine-tuningI fine-tune it on your data (LoRA) or connect a knowledge base — whichever is cheaper for the task.
- IntegrationI connect it to your CRM, ERP, bot, website or team chat and set up monitoring.
Similar models
Models for template-based data extraction: give it a document or scan and a JSON field template, get a filled-in JSON back. NuExtract3 (4B) also converts scans to Markdown.
DetailsImage + textFlorence-2Microsoft · USACommercial use allowedA very small vision model: captions, object detection, segmentation and text reading from a single prompt. Runs even on a CPU.
DetailsDocuments and OCRSmolDocling и Granite-DoclingIBM and Hugging Face · USACommercial use allowedTiny models for the open Docling document converter: they turn a page into markup with tables, formulas and code. Run on an ordinary laptop.
DetailsSource: huggingface.co/api/models/microsoft/layoutlmv3-base. Data checked against the model card on 22 Sep 2026. Have a lawyer review the license before commercial launch.


