ocr-bench-moh / README.md
davanstrien's picture
davanstrien HF Staff
Add PaddlePaddle/PaddleOCR-VL-1.6 OCR results (50 samples) [paddleocr-vl-1.6]
1753361 verified
|
Raw
History Blame
2.46 kB
---
tags:
- ocr
- document-processing
- glm-ocr
- markdown
- uv-script
- generated
- hf-jobs
dataset_info:
config_name: paddleocr-vl-1.6
features:
- name: image
dtype: image
- name: b_number
dtype: string
- name: page_index
dtype: int64
- name: source_row
dtype: int64
- name: markdown
dtype: string
- name: inference_info
dtype: string
splits:
- name: train
num_bytes: 20447073
num_examples: 50
download_size: 20332200
dataset_size: 20447073
configs:
- config_name: paddleocr-vl-1.6
data_files:
- split: train
path: paddleocr-vl-1.6/train-*
---
# Document OCR using GLM-OCR
This dataset contains OCR results from images in [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample) using GLM-OCR, a compact 0.9B OCR model achieving SOTA performance.
## Processing Details
- **Source Dataset**: [davanstrien/moh-bench-sample](https://huggingface.co/datasets/davanstrien/moh-bench-sample)
- **Model**: [zai-org/GLM-OCR](https://huggingface.co/zai-org/GLM-OCR)
- **Task**: text recognition
- **Number of Samples**: 50
- **Processing Time**: 6.2 min
- **Processing Date**: 2026-07-08 16:45 UTC
### Configuration
- **Image Column**: `image`
- **Output Column**: `markdown`
- **Dataset Split**: `train`
- **Batch Size**: 16
- **Max Model Length**: 8,192 tokens
- **Max Output Tokens**: 8,192
- **Temperature**: 0.01
- **Top P**: 1e-05
- **GPU Memory Utilization**: 80.0%
## Model Information
GLM-OCR is a compact, high-performance OCR model:
- 0.9B parameters
- 94.62% on OmniDocBench V1.5
- CogViT visual encoder + GLM-0.5B language decoder
- Multi-Token Prediction (MTP) loss for efficiency
- Multilingual: zh, en, fr, es, ru, de, ja, ko
- MIT licensed
## Dataset Structure
The dataset contains all original columns plus:
- `markdown`: The extracted text in markdown format
- `inference_info`: JSON list tracking all OCR models applied to this dataset
## Reproduction
Produced on [Hugging Face Jobs](https://huggingface.co/docs/huggingface_hub/guides/jobs) (`gpu`) with the [`glm-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py) recipe from [uv-scripts](https://huggingface.co/uv-scripts). Run it yourself:
```bash
hf jobs uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
davanstrien/moh-bench-sample \
<output-dataset> \
--image-column image \
--batch-size 16 \
--task ocr
```