ONNX Model Zoo

tonibirat/MinerU2.5-2509-1.2B_8GB_Optiomation_VM_Azure

By tonibirat · ↓ 0 · ♥ 0 · Updated 2026-01-21

What's in this repo

This page lists the files in tonibirat/MinerU2.5-2509-1.2B_8GB_Optiomation_VM_Azure, including doclayout_yolo_docstructbench_imgsz1280_2501.onnx, yolo_v8_ft.onnx.

  • 2 ONNX models (.onnx files)
  • 33 files, including 18 .pth, 9 .json, 2 .onnx, 1 .md, 1 .txt, 1 .safetensors
  • Last updated 2026-01-21

ONNX files

File Size Download
ONNX/Layout/doclayout_yolo_docstructbench_imgsz1280_2501.onnx — Download
ONNX/MFD/yolo_v8_ft.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README


license: apache-2.0 language:

  • ne
  • en tags:
  • ocr
  • devanagari
  • qwen2-vl
  • bitsandbytes
  • 4-bit
  • onnx
  • cpu-optimized metrics:
  • latency
  • memory-usage pipeline_tag: visual-question-answering

SynapOCR MinerU-Hybrid-8GB Optimization

This repository contains optimized models for the SynapOCR MinerU Hybrid Auto Engine, specifically tailored for low-resource CPU-only environments (e.g., 8GB RAM Cloud VMs / Azure VM).

🚀 Key Optimizations

1. VLM Quantization (VLM_4bit/)

  • Base Model: Qwen2-VL-1.2B (part of MinerU 2.5)
  • Quantization: 4-bit NormalFloat (NF4) via bitsandbytes with Double Quantization.
  • RAM Footprint: Reduced from ~2.3 GB to ~800 MB.
  • Performance: Optimized for CPU inference under tight memory constraints while maintaining high accuracy for Devanagari (Nepali) and English text.

2. Layout & Detection ONNX (ONNX/Layout/ & ONNX/MFD/)

  • Architecture: YOLO-based structural analysis models from PDF-Extract-Kit.
  • Optimization: Exported to ONNX Runtime format.
  • Benefits:
    • ~2x faster detection latency compared to PyTorch on CPU.
    • Reduced overhead and improved stability across different OS environments.

3. OCR Weights (ONNX/OCR/)

  • Engine: PaddleOCR-v3/v4 weights.
  • Format: ONNX-compatible weights for the detection and recognition heads.

💻 Hardware Requirements

Metric Minimum Requirement Recommended
RAM 8 GB 12 GB+
CPU 2 Cores 4 Cores+
Storage 5 GB 10 GB
GPU Not Required (CPU Optimized) -

🛠️ Usage with SynapOCR

This model is designed to be used with the SynapOCR MinerU Hybrid Auto Engine.

Installation

pip install bitsandbytes onnxruntime transformers accelerate

Loading the 4-bit VLM

from transformers import AutoModelForVision2Seq, BitsAndBytesConfig
import torch

# Configuration for 4-bit loading
bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.float16,
    bnb_4bit_use_double_quant=True
)

model = AutoModelForVision2Seq.from_pretrained(
    "tonibirat/MinerU2.5-2509-1.2B_8GB_Optiomation_VM_Azure",
    subfolder="VLM_4bit",
    quantization_config=bnb_config,
    device_map="cpu"
)

⚖️ License

The weights are distributed under the Apache 2.0 License, inherited from the original MinerU components and Qwen2-VL architecture.


Maintained by: ToniBirat7 Project: SynapOCR MinerU Hybrid Auto Engine

Model info

onnx safetensors ocr devanagari qwen2-vl bitsandbytes 4-bit cpu-optimized visual-question-answering ne en license:apache-2.0
↓ 0 ♥ 0

Created: 2026-01-21

Updated: 2026-01-21

View on Hugging Face

Files (33)

.gitattributes
ONNX/Layout/doclayout_yolo_docstructbench_imgsz1280_2501.onnx ONNX
ONNX/MFD/yolo_v8_ft.onnx ONNX
ONNX/OCR/paddleocr_torch/Multilingual_PP-OCRv3_det_infer.pth
ONNX/OCR/paddleocr_torch/arabic_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/ch_PP-OCRv4_rec_server_doc_infer.pth
ONNX/OCR/paddleocr_torch/ch_PP-OCRv5_det_infer.pth
ONNX/OCR/paddleocr_torch/ch_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/ch_PP-OCRv5_rec_server_infer.pth
ONNX/OCR/paddleocr_torch/ch_ptocr_mobile_v2.0_cls_infer.pth
ONNX/OCR/paddleocr_torch/cyrillic_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/devanagari_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/el_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/en_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/eslav_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/ka_PP-OCRv3_rec_infer.pth
ONNX/OCR/paddleocr_torch/korean_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/latin_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/ta_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/te_PP-OCRv5_rec_infer.pth
ONNX/OCR/paddleocr_torch/th_PP-OCRv5_rec_infer.pth
README.md
VLM_4bit/added_tokens.json
VLM_4bit/chat_template.json
VLM_4bit/config.json
VLM_4bit/generation_config.json
VLM_4bit/merges.txt
VLM_4bit/model.safetensors
VLM_4bit/preprocessor_config.json
VLM_4bit/special_tokens_map.json
VLM_4bit/tokenizer.json
VLM_4bit/tokenizer_config.json
VLM_4bit/vocab.json

Related models