Skip to content
WebAI

multimodal / document-understanding

Document Understanding

Answers questions about a page as a layout, not as a string: forms, receipts, invoices, tables. Layout-aware models read positions alongside text, which is why they beat an OCR-then-LLM pipeline on structured documents and cost more per page.

4 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

LayoutLMv3

Multimodal document understanding with text + layout + image.

Tasks: Document Understanding

ModelTransformers.js

fp32: 478.4 MiB

Code license: Apache-2.0

Weight license: Custom

Browser support unverified

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
microsoft/layoutlmv3-base
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Custom
Legacy license label (unverified)
Other

Deployment variants

fp32
Download size: 478.4 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: cfbbbff0762e6aab37086fdd4739ad14fe7d5db4
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Donut (DocVQA)

OCR-free document understanding transformer, DocVQA fine-tune with a Transformers.js ONNX build.

Tasks: Document Understanding

ModelTransformers.js

q8: 208.6 MiB

q4f16: 229.9 MiB

fp16: 391.7 MiB

fp32: 779.0 MiB

Code license: Apache-2.0

Weight license: MIT

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/donut-base-finetuned-docvqa
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
MIT
Legacy license label (unverified)
MIT

Deployment variants

q8
Download size: 208.6 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: d9f97a2fb22deb50fe6352f411703cff81cc4f1e
Weight artifact ↗
q4f16
Download size: 229.9 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: d9f97a2fb22deb50fe6352f411703cff81cc4f1e
Weight artifact ↗
fp16
Download size: 391.7 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: d9f97a2fb22deb50fe6352f411703cff81cc4f1e
Weight artifact ↗
fp32
Download size: 779.0 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: d9f97a2fb22deb50fe6352f411703cff81cc4f1e
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Nougat Small

Meta Nougat — scientific document parsing.

Tasks: Document Understanding

ModelTransformers.js

q8: 243.7 MiB

fp16: 477.2 MiB

fp32: 949.3 MiB

Code license: Apache-2.0

Weight license: CC-BY-4.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/nougat-small
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
CC-BY-4.0
Legacy license label (unverified)
Other

Deployment variants

q8
Download size: 243.7 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 92802ec430c01197dd4d135ba6e7e03e1f48ed63
Weight artifact ↗
fp16
Download size: 477.2 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 92802ec430c01197dd4d135ba6e7e03e1f48ed63
Weight artifact ↗
fp32
Download size: 949.3 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 92802ec430c01197dd4d135ba6e7e03e1f48ed63
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

SmolDocling 256M

Turns a full page image straight into structured text, keeping tables and formulas as markup. Fine-tuned from SmolVLM-256M with the same three-graph ONNX layout. CDLA-Permissive-2.0.

Tasks: Document Understanding

ModelTransformers.js

q4: 252.0 MiB

fp32: 981.2 MiB

Code license: Custom

Weight license: Custom

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
docling-project/SmolDocling-256M-preview
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Document to structured text, Table and formula markup
Package
Not verified
Runtime version
@huggingface/transformers@4.3.1
Execution backend
webgpu, wasm
Code license
Custom
Weight license
Custom

Deployment variants

q4
Download size: 252.0 MiB
Peak runtime memory: Not measured
Quantization / precision: q4
Weight revision: Not verified
fp32
Download size: 981.2 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Document Understanding

Document Understanding under Multimodal holds 4 catalogue entries: 4 models.

3 of them carry browser evidence, all from upstream browser examples. Another 1 are still waiting for verification.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
4 in total
Main runtime
Transformers.js
Smallest known weights
209 MiB
Browser evidence
3 of 4 verified

Document Understanding: common questions

Can Document Understanding run directly in a browser?
Yes. 3 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Document Understanding?
We verified the weight file sizes of 4 entries in this task; the smallest tier is 209 MiB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
Which devices suit Document Understanding?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Multimodal models →