HunyuanOCR puts end-to-end document parsing in a 1B model
- Source
- huggingface.co
- Author
- Tencent Hy
- Date

Context
Optical character recognition has traditionally run as a cascade: one stage analyzes the page layout, another reads the characters, and later steps rebuild tables and formulas. Tencent's HunyuanOCR replaces that chain with a single vision- of about 1 billion parameters that looks at the page image and writes the structured result directly, for example Markdown with tables in HTML and formulas in LaTeX. The model card lists twelve task types for its , from document and chart parsing to translating the text in an image.
The cost of that design is speed. The model writes its output one token at a time, so a dense page of tables or formulas becomes a long sequence of steps. Version 1.5, described in a July 2026 paper, keeps the 1.0 architecture and adds DFlash : a small draft model proposes a block of tokens in parallel, and the main model checks them in a single pass, which Tencent says preserves the main model's output distribution. The paper reports a 6.37x speedup under Hugging Face Transformers and 2.14x under vLLM. The two figures use different baselines. vLLM is already an optimized serving engine, so 2.14x is the more relevant number for anyone serving the model that way.
According to the GitHub README, 1.5 also raises the maximum image resolution to 4K and the to 128K tokens, adds a llama.cpp path for laptops and consumer GPUs, and uses what Tencent calls Agentic Data Flow, in which agents search for and verify training material aimed at weak areas such as ancient scripts and low-resource languages. It keeps the Tencent Hunyuan Community License used for 1.0.
Accuracy is harder to check. The original 1.0 announcement claimed 860 on OCRBench among models under 3B parameters and 94.1 on OmniDocBench. The 1.5 abstract says only that the model ranks among the top-tier end-to-end OCR solutions on OmniDocBench v1.6. The full 1.5 paper could not be retrieved and the 1.0 technical report link returned an error, so the benchmark tables were not checked for this explanation. On the Hugging Face paper page, a commenter asked why different tables compare against different versions of PaddleOCR-VL, and why two-stage pipelines were left out of the OmniDocBench comparison but kept in others. PaddleOCR-VL is a 0.9B document-parsing model aimed at the same job, so those choices affect how the comparison should be read.
- Large language model — A model trained on large amounts of data to process and generate language.
- Client — The program that sends a request to a server and receives its response.
- speculative decoding — A speed trick where a small model drafts several tokens ahead and the big model verifies them in one pass, often doubling generation speed.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.






