Model type

Language model

9 Downloads

Capabilities

Vision Input

Minimum system memory

Tags

1B
hunyuan-vl

README


license: other license_name: tencent-hunyuan-community license_link: https://huggingface.co/tencent/HunyuanOCR/blob/main/LICENSE language:

  • multilingual pipeline_tag: image-text-to-text library_name: llama.cpp tags:
  • ocr
  • hunyuan
  • vision-language
  • image-to-text
  • 1B
  • gguf
  • llama.cpp base_model: tencent/HunyuanOCR

HunyuanOCR GGUF

HunyuanOCR converted to GGUF format for inference with llama.cpp.

This is a quantization of Tencent's HunyuanOCR — a 1B parameter OCR expert Vision-Language Model. Native support was added in llama.cpp build b8670 (April 2026).

Model Architecture

ComponentSpec
TypeVision-Language Model (VLM)
Parameters~1.12B
Text Modelhunyuan-dense, 24-layer decoder, 1024 dim, GQA (16Q/8KV)
Vision Encoder27-layer ViT, 1152 dim, perceiver-based projector
Featuresxdrope RoPE, QK normalization, RMS norm, SiLU SwiGLU

Files

FileSizeDescription
HunyuanOCR-Q4_K_M.gguf339 MBText model — Q4_K_M quantized
HunyuanOCR-Q8_0.gguf551 MBText model — Q8_0 quantized
HunyuanOCR-F16.gguf1.0 GBText model — F16 (full precision)
mmproj-HunyuanOCR-F16.gguf909 MBVision encoder (mmproj) — F16 required

Usage

# Via Hugging Face (easiest)
llama-server -hf AnandSingh/hunyuanocr-GGUF

# Or locally
llama-server \
  -m HunyuanOCR-Q4_K_M.gguf \
  --mmproj mmproj-HunyuanOCR-F16.gguf

API request:

{
  "messages": [
    {
      "role": "user",
      "content": [
        { "type": "text", "text": "OCR" },
        { "type": "image_url", "image_url": { "url": "data:image/jpeg;base64,..." } }
      ]
    }
  ]
}

Prompt Examples

TaskPrompt
Text Spotting检测并识别图片中的文字,将文本坐标格式化输出。
Document Parsing提取文档图片中正文的所有信息用markdown格式表示,其中页眉、页脚部分忽略,表格用html格式表达,文档中公式用latex格式表示,按照阅读顺序组织进行解析。
Formula Recognition识别图片中的公式,用LaTeX格式表示。
Table Extraction把图中的表格解析为 HTML。
Translation先提取文字,再将文字内容翻译为英文。

Requirements

  • llama.cpp build b8670 or later
  • macOS, Linux, or Windows

License

Licensed under the Tencent Hunyuan Community License Agreement.

Attribution

Original model by Tencent Hunyuan Vision Team. GGUF conversion is not affiliated with or endorsed by Tencent.

Parameters

Custom configuration options included with this model

Temperature
0
Top K Sampling
1

Sources

The underlying model files this model uses