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
bitsandbyteswith 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
Created: 2026-01-21
Updated: 2026-01-21
View on Hugging FaceFiles (33)
Related models
More from tonibirat
No other models by this author.