Dominic28 commited on
Commit
1026bcf
·
verified ·
1 Parent(s): 4504d80

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +62 -25
README.md CHANGED
@@ -1,27 +1,64 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: image
5
- dtype: image
6
- - name: source
7
- dtype: string
8
- - name: page
9
- dtype: int64
10
- - name: markdown_glm_ocr
11
- dtype: string
12
- - name: inference_info
13
- dtype: string
14
- - name: markdown
15
- dtype: string
16
- splits:
17
- - name: train
18
- num_bytes: 2446240.0
19
- num_examples: 6
20
- download_size: 2444021
21
- dataset_size: 2446240.0
22
- configs:
23
- - config_name: default
24
- data_files:
25
- - split: train
26
- path: data/train-*
27
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - ocr
4
+ - document-processing
5
+ - glm-ocr
6
+ - markdown
7
+ - uv-script
8
+ - generated
9
+ - hf-jobs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
+
12
+ # Document OCR using GLM-OCR
13
+
14
+ This dataset contains OCR results from images in [divinity-library/thg-test-01](https://huggingface.co/datasets/divinity-library/thg-test-01) using GLM-OCR, a compact 0.9B OCR model achieving SOTA performance.
15
+
16
+ ## Processing Details
17
+
18
+ - **Source Dataset**: [divinity-library/thg-test-01](https://huggingface.co/datasets/divinity-library/thg-test-01)
19
+ - **Model**: [zai-org/GLM-OCR](https://huggingface.co/zai-org/GLM-OCR)
20
+ - **Task**: text recognition
21
+ - **Number of Samples**: 6
22
+ - **Processing Time**: 1.9 min
23
+ - **Processing Date**: 2026-10-28 02:23 UTC
24
+
25
+ ### Configuration
26
+
27
+ - **Image Column**: `image`
28
+ - **Output Column**: `markdown`
29
+ - **Dataset Split**: `train`
30
+ - **Batch Size**: 16
31
+ - **Max Model Length**: 8,192 tokens
32
+ - **Max Output Tokens**: 8,192
33
+ - **Temperature**: 0.01
34
+ - **Top P**: 1e-05
35
+ - **GPU Memory Utilization**: 80.0%
36
+
37
+ ## Model Information
38
+
39
+ GLM-OCR is a compact, high-performance OCR model:
40
+ - 0.9B parameters
41
+ - 94.62% on OmniDocBench V1.5
42
+ - CogViT visual encoder + GLM-0.5B language decoder
43
+ - Multi-Token Prediction (MTP) loss for efficiency
44
+ - Multilingual: zh, en, fr, es, ru, de, ja, ko
45
+ - MIT licensed
46
+
47
+ ## Dataset Structure
48
+
49
+ The dataset contains all original columns plus:
50
+ - `markdown`: The extracted text in markdown format
51
+ - `inference_info`: JSON list tracking all OCR models applied to this dataset
52
+
53
+ ## Reproduction
54
+
55
+ Produced on [Hugging Face Jobs](https://huggingface.co/docs/huggingface_hub/guides/jobs) (`a10g-small`) 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:
56
+
57
+ ```bash
58
+ hf jobs uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
59
+ divinity-library/thg-test-01 \
60
+ <output-dataset> \
61
+ --image-column image \
62
+ --batch-size 16 \
63
+ --task ocr
64
+ ```