davanstrien HF Staff Claude Opus 4.5 commited on
Commit
7162b0e
·
1 Parent(s): 7b5ba6c

Add hf-jobs tag to README frontmatter

Browse files

Standardizing metadata tags across uv-scripts organization
for better discoverability of HF Jobs-compatible scripts.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. README.md +60 -5
README.md CHANGED
@@ -31,6 +31,54 @@ That's it! The script will:
31
 
32
  ## 📋 Available Scripts
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  ### PaddleOCR-VL (`paddleocr-vl.py`) 🎯 Smallest model with task-specific modes!
35
 
36
  Ultra-compact OCR using [PaddlePaddle/PaddleOCR-VL](https://huggingface.co/PaddlePaddle/PaddleOCR-VL) with only 0.9B parameters:
@@ -93,21 +141,21 @@ Compact high-performance OCR using [zai-org/GLM-OCR](https://huggingface.co/zai-
93
 
94
  ```bash
95
  # Basic OCR
96
- hf jobs uv run --flavor a100-large \
97
  -s HF_TOKEN \
98
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
99
  your-input-dataset your-output-dataset \
100
  --max-samples 100
101
 
102
  # Formula recognition
103
- hf jobs uv run --flavor a100-large \
104
  -s HF_TOKEN \
105
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
106
  scientific-papers formulas-extracted \
107
  --task formula
108
 
109
  # Table extraction
110
- hf jobs uv run --flavor a100-large \
111
  -s HF_TOKEN \
112
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
113
  documents tables-extracted \
@@ -364,7 +412,7 @@ hf jobs uv run --flavor l4x1 \
364
  --batch-size 32
365
 
366
  # GLM-OCR - SOTA 0.9B model (94.62% OmniDocBench)
367
- hf jobs uv run --flavor a100-large \
368
  -s HF_TOKEN \
369
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
370
  your-input-dataset your-output-dataset \
@@ -527,6 +575,13 @@ Any HuggingFace dataset containing images - documents, forms, receipts, books, h
527
 
528
  ### Script-Specific Options
529
 
 
 
 
 
 
 
 
530
  **PaddleOCR-VL**:
531
 
532
  - `--task-mode`: Task type - `ocr` (default), `table`, `formula`, or `chart`
@@ -539,7 +594,7 @@ Any HuggingFace dataset containing images - documents, forms, receipts, books, h
539
  - `--task`: Task type - `ocr` (default), `formula`, or `table`
540
  - `--repetition-penalty`: Repetition penalty (default: 1.1, from official SDK)
541
  - Near-greedy sampling by default (temperature=0.01, top_p=0.00001) matching official SDK
542
- - Requires vLLM nightly + transformers from git (handled automatically)
543
 
544
  **DeepSeek-OCR**:
545
 
 
31
 
32
  ## 📋 Available Scripts
33
 
34
+ ### PaddleOCR-VL-1.5 (`paddleocr-vl-1.5.py`) 🏆 SOTA with 6 task modes!
35
+
36
+ Ultra-compact SOTA OCR using [PaddlePaddle/PaddleOCR-VL-1.5](https://huggingface.co/PaddlePaddle/PaddleOCR-VL-1.5) with 94.5% accuracy:
37
+
38
+ - 🏆 **SOTA Performance** - 94.5% on OmniDocBench v1.5
39
+ - 🧩 **Ultra-compact** - Only 0.9B parameters
40
+ - 📝 **OCR mode** - General text extraction to markdown
41
+ - 📊 **Table mode** - HTML table recognition
42
+ - 📐 **Formula mode** - LaTeX mathematical notation
43
+ - 📈 **Chart mode** - Chart and diagram analysis
44
+ - 🔍 **Spotting mode** - Text spotting with localization (higher resolution)
45
+ - 🔖 **Seal mode** - Seal and stamp recognition
46
+ - 🌍 **Multilingual** - Support for multiple languages
47
+
48
+ **Task Modes:**
49
+
50
+ - `ocr`: General text extraction (default)
51
+ - `table`: Table extraction to HTML
52
+ - `formula`: Mathematical formula to LaTeX
53
+ - `chart`: Chart and diagram analysis
54
+ - `spotting`: Text spotting with localization
55
+ - `seal`: Seal and stamp recognition
56
+
57
+ **Quick start:**
58
+
59
+ ```bash
60
+ # Basic OCR mode
61
+ hf jobs uv run --flavor l4x1 \
62
+ -s HF_TOKEN \
63
+ https://huggingface.co/datasets/uv-scripts/ocr/raw/main/paddleocr-vl-1.5.py \
64
+ your-input-dataset your-output-dataset \
65
+ --max-samples 100
66
+
67
+ # Table extraction
68
+ hf jobs uv run --flavor l4x1 \
69
+ -s HF_TOKEN \
70
+ https://huggingface.co/datasets/uv-scripts/ocr/raw/main/paddleocr-vl-1.5.py \
71
+ documents tables-extracted \
72
+ --task-mode table
73
+
74
+ # Seal recognition
75
+ hf jobs uv run --flavor l4x1 \
76
+ -s HF_TOKEN \
77
+ https://huggingface.co/datasets/uv-scripts/ocr/raw/main/paddleocr-vl-1.5.py \
78
+ documents seals-extracted \
79
+ --task-mode seal
80
+ ```
81
+
82
  ### PaddleOCR-VL (`paddleocr-vl.py`) 🎯 Smallest model with task-specific modes!
83
 
84
  Ultra-compact OCR using [PaddlePaddle/PaddleOCR-VL](https://huggingface.co/PaddlePaddle/PaddleOCR-VL) with only 0.9B parameters:
 
141
 
142
  ```bash
143
  # Basic OCR
144
+ hf jobs uv run --flavor l4x1 \
145
  -s HF_TOKEN \
146
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
147
  your-input-dataset your-output-dataset \
148
  --max-samples 100
149
 
150
  # Formula recognition
151
+ hf jobs uv run --flavor l4x1 \
152
  -s HF_TOKEN \
153
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
154
  scientific-papers formulas-extracted \
155
  --task formula
156
 
157
  # Table extraction
158
+ hf jobs uv run --flavor l4x1 \
159
  -s HF_TOKEN \
160
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
161
  documents tables-extracted \
 
412
  --batch-size 32
413
 
414
  # GLM-OCR - SOTA 0.9B model (94.62% OmniDocBench)
415
+ hf jobs uv run --flavor l4x1 \
416
  -s HF_TOKEN \
417
  https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \
418
  your-input-dataset your-output-dataset \
 
575
 
576
  ### Script-Specific Options
577
 
578
+ **PaddleOCR-VL-1.5**:
579
+
580
+ - `--task-mode`: Task type - `ocr` (default), `table`, `formula`, `chart`, `spotting`, or `seal`
581
+ - `--output-column`: Override default column name (default: `paddleocr_1.5_[task_mode]`)
582
+ - SOTA 94.5% accuracy on OmniDocBench v1.5
583
+ - Uses transformers backend (single image processing for stability)
584
+
585
  **PaddleOCR-VL**:
586
 
587
  - `--task-mode`: Task type - `ocr` (default), `table`, `formula`, or `chart`
 
594
  - `--task`: Task type - `ocr` (default), `formula`, or `table`
595
  - `--repetition-penalty`: Repetition penalty (default: 1.1, from official SDK)
596
  - Near-greedy sampling by default (temperature=0.01, top_p=0.00001) matching official SDK
597
+ - Requires vLLM nightly + transformers>=5.1.0 (handled automatically)
598
 
599
  **DeepSeek-OCR**:
600