← all repositories
Tencent-Hunyuan/HunyuanOCR

An OCR model that uses a rough draft to write faster

HunyuanOCR-1.5 speeds up lightweight OCR vision-language models by drafting tokens with a block-diffusion model and closing capability gaps with an agent-driven data pipeline.

HunyuanOCR
Collecting fresh signals — velocity needs a few days of history.
collecting data…
star history

What it does HunyuanOCR-1.5 is a lightweight, end-to-end vision-language model built for OCR. It unifies document parsing, text spotting, information extraction, and text-image translation in a single model, and open-sources the training pipeline, inference backends, and a speculative-decoding draft model that can also run on consumer hardware via llama.cpp.

The interesting bit Rather than redesign the backbone, the team attacked latency and coverage from the edges. A lightweight block-diffusion draft model generates candidate tokens in parallel, which the main model verifies in one pass—cutting decoding time for long structured outputs while keeping the target distribution intact. On the data side, an Agentic Data Flow turns model weaknesses into executable requirements, letting agents search materials, verify with tools, and clean samples in a loop with engineers to plug long-tail gaps like low-resource and ancient-script OCR.

Key highlights

  • DFlash speculative decoding: a block-diffusion draft predicts multiple tokens ahead, reducing latency on dense documents, tables, and formulas without altering the target model’s output distribution.
  • PC-side deployment via llama.cpp with GGUF weights and an OpenAI-compatible server, plus a DFlash-adapted fork for speculative decoding on CPUs and consumer GPUs.
  • Agentic Data Flow: an agent-driven pipeline that converts model weaknesses into data requirements, targeting long-tail capabilities such as low-resource OCR, ancient-script OCR, and multi-image text-centric QA.
  • Training recipe upgrades include 4K image resolution, 128K context windows, and reinforcement learning across OCR tasks.
  • A unified inference environment supports vLLM autoregressive, DFlash speculative, and native transformers backends with verified accuracy alignment.

Caveats

  • The unified inference environment requires CUDA 13; users on older hardware or needing only one backend must use lighter per-configuration recipes.

Verdict Worth a look if you need an open, end-to-end OCR VLM that you can fine-tune, accelerate with speculative decoding, or deploy on a laptop. Skip it if you want a general-purpose vision model or a managed service without self-hosting.

Frequently asked

What is Tencent-Hunyuan/HunyuanOCR?
HunyuanOCR-1.5 speeds up lightweight OCR vision-language models by drafting tokens with a block-diffusion model and closing capability gaps with an agent-driven data pipeline.
Is HunyuanOCR open source?
Yes — Tencent-Hunyuan/HunyuanOCR is an open-source project tracked on heatdrop.
What language is HunyuanOCR written in?
Tencent-Hunyuan/HunyuanOCR is primarily written in Python.
How popular is HunyuanOCR?
Tencent-Hunyuan/HunyuanOCR has 1.9k stars on GitHub.
Where can I find HunyuanOCR?
Tencent-Hunyuan/HunyuanOCR is on GitHub at https://github.com/Tencent-Hunyuan/HunyuanOCR.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.