Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -6,39 +6,6 @@ tags:
|
|
| 6 |
- markdown
|
| 7 |
- uv-script
|
| 8 |
- generated
|
| 9 |
-
configs:
|
| 10 |
-
- config_name: default
|
| 11 |
-
data_files:
|
| 12 |
-
- split: train
|
| 13 |
-
path: data/train-*
|
| 14 |
-
dataset_info:
|
| 15 |
-
features:
|
| 16 |
-
- name: document_id
|
| 17 |
-
dtype: string
|
| 18 |
-
- name: page_number
|
| 19 |
-
dtype: string
|
| 20 |
-
- name: image
|
| 21 |
-
dtype: image
|
| 22 |
-
- name: text
|
| 23 |
-
dtype: string
|
| 24 |
-
- name: alto_xml
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: has_image
|
| 27 |
-
dtype: bool
|
| 28 |
-
- name: has_alto
|
| 29 |
-
dtype: bool
|
| 30 |
-
- name: markdown
|
| 31 |
-
dtype: string
|
| 32 |
-
- name: inference_info
|
| 33 |
-
dtype: string
|
| 34 |
-
- name: fix-size
|
| 35 |
-
dtype: string
|
| 36 |
-
splits:
|
| 37 |
-
- name: train
|
| 38 |
-
num_bytes: 115623205
|
| 39 |
-
num_examples: 512
|
| 40 |
-
download_size: 84896742
|
| 41 |
-
dataset_size: 115623205
|
| 42 |
---
|
| 43 |
|
| 44 |
# Document OCR using LightOnOCR-1B-1025
|
|
@@ -51,21 +18,21 @@ This dataset contains OCR results from images in [davanstrien/handbooks-lighton-
|
|
| 51 |
- **Model**: [lightonai/LightOnOCR-1B-1025](https://huggingface.co/lightonai/LightOnOCR-1B-1025)
|
| 52 |
- **Vocabulary Size**: 151k tokens
|
| 53 |
- **Number of Samples**: 512
|
| 54 |
-
- **Processing Time**: 2
|
| 55 |
-
- **Processing Date**: 2025-10-27 11
|
| 56 |
|
| 57 |
### Configuration
|
| 58 |
|
| 59 |
- **Image Column**: `image`
|
| 60 |
- **Output Column**: `markdown`
|
| 61 |
- **Dataset Split**: `train`
|
| 62 |
-
- **Batch Size**:
|
| 63 |
- **Target Image Size**: 1540px (longest dimension)
|
| 64 |
- **Max Model Length**: 8,192 tokens
|
| 65 |
- **Max Output Tokens**: 6,500
|
| 66 |
- **Temperature**: 0.2
|
| 67 |
- **Top P**: 0.9
|
| 68 |
-
- **GPU Memory Utilization**:
|
| 69 |
|
| 70 |
## Model Information
|
| 71 |
|
|
@@ -120,12 +87,12 @@ uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/lighton-ocr.py \
|
|
| 120 |
<output-dataset> \
|
| 121 |
--vocab-size 151k \
|
| 122 |
--image-column image \
|
| 123 |
-
--batch-size
|
| 124 |
```
|
| 125 |
|
| 126 |
## Performance
|
| 127 |
|
| 128 |
-
- **Processing Speed**: ~
|
| 129 |
- **Benchmark Score**: 76.1% overall (across diverse document types)
|
| 130 |
- **Optimization**: Native resolution ViT + lightweight decoder
|
| 131 |
|
|
|
|
| 6 |
- markdown
|
| 7 |
- uv-script
|
| 8 |
- generated
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# Document OCR using LightOnOCR-1B-1025
|
|
|
|
| 18 |
- **Model**: [lightonai/LightOnOCR-1B-1025](https://huggingface.co/lightonai/LightOnOCR-1B-1025)
|
| 19 |
- **Vocabulary Size**: 151k tokens
|
| 20 |
- **Number of Samples**: 512
|
| 21 |
+
- **Processing Time**: 9.2 min
|
| 22 |
+
- **Processing Date**: 2025-10-27 12:11 UTC
|
| 23 |
|
| 24 |
### Configuration
|
| 25 |
|
| 26 |
- **Image Column**: `image`
|
| 27 |
- **Output Column**: `markdown`
|
| 28 |
- **Dataset Split**: `train`
|
| 29 |
+
- **Batch Size**: 32
|
| 30 |
- **Target Image Size**: 1540px (longest dimension)
|
| 31 |
- **Max Model Length**: 8,192 tokens
|
| 32 |
- **Max Output Tokens**: 6,500
|
| 33 |
- **Temperature**: 0.2
|
| 34 |
- **Top P**: 0.9
|
| 35 |
+
- **GPU Memory Utilization**: 80.0%
|
| 36 |
|
| 37 |
## Model Information
|
| 38 |
|
|
|
|
| 87 |
<output-dataset> \
|
| 88 |
--vocab-size 151k \
|
| 89 |
--image-column image \
|
| 90 |
+
--batch-size 32
|
| 91 |
```
|
| 92 |
|
| 93 |
## Performance
|
| 94 |
|
| 95 |
+
- **Processing Speed**: ~0.93 images/second
|
| 96 |
- **Benchmark Score**: 76.1% overall (across diverse document types)
|
| 97 |
- **Optimization**: Native resolution ViT + lightweight decoder
|
| 98 |
|