Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -7,25 +7,6 @@ tags:
|
|
| 7 |
- markdown
|
| 8 |
- uv-script
|
| 9 |
- generated
|
| 10 |
-
configs:
|
| 11 |
-
- config_name: default
|
| 12 |
-
data_files:
|
| 13 |
-
- split: train
|
| 14 |
-
path: data/train-*
|
| 15 |
-
dataset_info:
|
| 16 |
-
features:
|
| 17 |
-
- name: image
|
| 18 |
-
dtype: image
|
| 19 |
-
- name: markdown
|
| 20 |
-
dtype: string
|
| 21 |
-
- name: inference_info
|
| 22 |
-
dtype: string
|
| 23 |
-
splits:
|
| 24 |
-
- name: train
|
| 25 |
-
num_bytes: 153756
|
| 26 |
-
num_examples: 1
|
| 27 |
-
download_size: 150762
|
| 28 |
-
dataset_size: 153756
|
| 29 |
---
|
| 30 |
|
| 31 |
# Document OCR using DeepSeek-OCR
|
|
@@ -37,18 +18,22 @@ This dataset contains markdown-formatted OCR results from images in [Alysonhower
|
|
| 37 |
- **Source Dataset**: [Alysonhower/test](https://huggingface.co/datasets/Alysonhower/test)
|
| 38 |
- **Model**: [deepseek-ai/DeepSeek-OCR](https://huggingface.co/deepseek-ai/DeepSeek-OCR)
|
| 39 |
- **Number of Samples**: 1
|
| 40 |
-
- **Processing Time**: 1.
|
| 41 |
-
- **Processing Date**: 2025-10-23 02:
|
| 42 |
|
| 43 |
### Configuration
|
| 44 |
|
| 45 |
- **Image Column**: `image`
|
| 46 |
- **Output Column**: `markdown`
|
| 47 |
- **Dataset Split**: `train`
|
| 48 |
-
- **
|
| 49 |
-
- **
|
| 50 |
-
- **
|
| 51 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
## Model Information
|
| 54 |
|
|
@@ -96,22 +81,19 @@ for info in inference_info:
|
|
| 96 |
|
| 97 |
## Reproduction
|
| 98 |
|
| 99 |
-
This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) DeepSeek OCR script:
|
| 100 |
|
| 101 |
```bash
|
| 102 |
-
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/deepseek-ocr.py
|
| 103 |
-
Alysonhower/test
|
| 104 |
-
<output-dataset>
|
| 105 |
-
--resolution-mode
|
| 106 |
--image-column image
|
| 107 |
```
|
| 108 |
|
| 109 |
## Performance
|
| 110 |
|
| 111 |
- **Processing Speed**: ~0.0 images/second
|
| 112 |
-
- **Processing Method**:
|
| 113 |
-
|
| 114 |
-
Note: This uses the official Transformers implementation. For faster batch processing,
|
| 115 |
-
consider using the vLLM version once DeepSeek-OCR is officially supported by vLLM.
|
| 116 |
|
| 117 |
Generated with 🤖 [UV Scripts](https://huggingface.co/uv-scripts)
|
|
|
|
| 7 |
- markdown
|
| 8 |
- uv-script
|
| 9 |
- generated
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Document OCR using DeepSeek-OCR
|
|
|
|
| 18 |
- **Source Dataset**: [Alysonhower/test](https://huggingface.co/datasets/Alysonhower/test)
|
| 19 |
- **Model**: [deepseek-ai/DeepSeek-OCR](https://huggingface.co/deepseek-ai/DeepSeek-OCR)
|
| 20 |
- **Number of Samples**: 1
|
| 21 |
+
- **Processing Time**: 1.4 min
|
| 22 |
+
- **Processing Date**: 2025-10-23 02:04 UTC
|
| 23 |
|
| 24 |
### Configuration
|
| 25 |
|
| 26 |
- **Image Column**: `image`
|
| 27 |
- **Output Column**: `markdown`
|
| 28 |
- **Dataset Split**: `train`
|
| 29 |
+
- **Batch Size**: 8
|
| 30 |
+
- **Resolution Mode**: large
|
| 31 |
+
- **Base Size**: 1280
|
| 32 |
+
- **Image Size**: 1280
|
| 33 |
+
- **Crop Mode**: False
|
| 34 |
+
- **Max Model Length**: 8,192 tokens
|
| 35 |
+
- **Max Output Tokens**: 8,192
|
| 36 |
+
- **GPU Memory Utilization**: 80.0%
|
| 37 |
|
| 38 |
## Model Information
|
| 39 |
|
|
|
|
| 81 |
|
| 82 |
## Reproduction
|
| 83 |
|
| 84 |
+
This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) DeepSeek OCR vLLM script:
|
| 85 |
|
| 86 |
```bash
|
| 87 |
+
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/deepseek-ocr-vllm.py \\
|
| 88 |
+
Alysonhower/test \\
|
| 89 |
+
<output-dataset> \\
|
| 90 |
+
--resolution-mode large \\
|
| 91 |
--image-column image
|
| 92 |
```
|
| 93 |
|
| 94 |
## Performance
|
| 95 |
|
| 96 |
- **Processing Speed**: ~0.0 images/second
|
| 97 |
+
- **Processing Method**: Batch processing with vLLM (2-3x speedup over sequential)
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
Generated with 🤖 [UV Scripts](https://huggingface.co/uv-scripts)
|