← All models · DiT document classification

use case · multi-model

Multi-model: classify → route → extract

A classifier is the cheap dispatcher in front of expensive extraction. Here DiT names the document type (it reads layout, so it's fast and robust), and that type decides which question to ask next — an invoice gets "what is the total?", a memo gets "what is the subject?". Then Donut, a document-VQA model, reads the same page and answers. Two models, one drop, all on your device.

Stage 1 — document classifier (DiT, ~88 MB)

Stage 2 — document-VQA reader (Donut, ~215 MB)

Drop a document image, or click to choose
An invoice An office memo A printed email A scientific paper
Selected document

1 · Document type (DiT)

2 · Answer (Donut)

Why chain them? Running a heavy VQA model on every page and every possible question is wasteful. The classifier triages first, so you only ask the questions that make sense for the type in front of you — the pattern behind real document-understanding pipelines.

← Wild · Back to DiT