Skip to content

Commit 75f7af8

Browse files
davanstrienclaude
andauthored
surya-ocr.py: cap surya-ocr below 0.24 so --task table works (#214)
* surya-ocr.py: cap surya-ocr below 0.24 so --task table works surya 0.24 (2026-11-13) removed the mode= argument from TableRecPredictor.__call__. The script passes mode=table_mode, so every table batch failed with a TypeError, was stored as an error row, and the Job still exited 0. 0.23.0 still has mode= and was the version in use at the last passing smoke test (2026-11-06). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016isSPo9kUNVE79vUKWm9i7 * Record surya-ocr.py smoke tests: table fails on main, table and OCR pass with the cap Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016isSPo9kUNVE79vUKWm9i7 --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6e041ec commit 75f7af8

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎maintenance/STATUS.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Generated by `python3 tools/recipe-status.py --write`. Do not edit by hand.
44
Tiers and rules: [MAINTAINING.md](../MAINTAINING.md).
55

6-
Tiered: 5 of 58 recipes with a header.
6+
Tiered: 5 of 59 recipes with a header.
77

88
| Recipe | Tier | Image | Packages | Last smoke test | Result |
99
|---|---|---|---|---|---|
10-
| `classification/train-timm.py` | active | default | latest | 2026-11-18 | [pass](https://huggingface.co/jobs/davanstrien/6afdef48e41aae15936cb8ff) |
10+
| `classification/train-timm.py` | active | default | latest | 2026-11-19 | [pass](https://huggingface.co/jobs/davanstrien/6afecf7a545f95df1c07363e) |
1111
| `ocr/falcon-ocr-1.5.py` | active | default | latest | 2026-11-18 | [pass](https://huggingface.co/jobs/davanstrien/6afdde06e41aae15936ca99f) |
1212
| `transcription/rumble-transcribe.py` | active | `vllm/vllm-openai:v0.32.0` | latest | 2026-11-18 | [pass](https://huggingface.co/jobs/davanstrien/6afde071e41aae15936cacce) |
1313
| `ocr/falcon-ocr.py` | frozen (→ falcon-ocr-1.5.py) | `ghcr.io/astral-sh/uv@85d4cb1afa76` | as of 2026-11-18 | 2026-11-18 | [pass](https://huggingface.co/jobs/davanstrien/6afddf1c545f95df1c066eda) |
@@ -40,6 +40,7 @@ Tiered: 5 of 58 recipes with a header.
4040
| `ocr/minicpm-ocr.py` | — | `cr.hf.co/davanstrien/minicpm-ocr:1.0-vllm-5d35ce3` | latest | never | |
4141
| `ocr/nuextract3.py` | — | `vllm/vllm-openai:v0.29.0` | latest | never | |
4242
| `ocr/ocr-vllm-judge.py` | — | `vllm/vllm-openai:v0.29.0` | latest | never | |
43+
| `ocr/ocria-nano.py` | — | default | latest | never | |
4344
| `ocr/olmocr2-vllm.py` | — | `vllm/vllm-openai:v0.29.0` | latest | never | |
4445
| `ocr/ovis-ocr2-saturate.py` | — | `vllm/vllm-openai:v0.22.1` | latest | never | |
4546
| `ocr/ovis-ocr2.py` | — | `vllm/vllm-openai:v0.29.0` | latest | 2026-11-06 | [pass](https://huggingface.co/jobs/davanstrien/6aedd70cc78863f9c6346083) |
@@ -48,7 +49,7 @@ Tiered: 5 of 58 recipes with a header.
4849
| `ocr/pp-ocrv6.py` | — | default | latest | never | |
4950
| `ocr/qianfan-ocr.py` | — | `vllm/vllm-openai:v0.29.0` | latest | never | |
5051
| `ocr/surya-ocr-bucket.py` | — | `vllm/vllm-openai:v0.20.1` | latest | never | |
51-
| `ocr/surya-ocr.py` | — | `vllm/vllm-openai:v0.20.1` | latest | 2026-11-06 | [pass](https://huggingface.co/jobs/davanstrien/6aedd7010e0338d1bb815cc5) |
52+
| `ocr/surya-ocr.py` | — | `vllm/vllm-openai:v0.20.1` | latest | 2026-11-26 | [pass](https://huggingface.co/jobs/davanstrien/6b07e7fad91f621b930a2e44) |
5253
| `ocr/tesseract-ocr.py` | — | default | latest | never | |
5354
| `ocr/unlimited-ocr-vllm.py` | — | `vllm/vllm-openai:unlimited-ocr` | latest | 2026-11-06 | [pass](https://huggingface.co/jobs/davanstrien/6aede17e0e0338d1bb817171) |
5455
| `ocr/unlimited-ocr2-live.py` | — | `lmsysorg/sglang:v0.5.20-cu130` | latest | never | |

‎maintenance/verifications.jsonl‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@
3737
{"date": "2026-11-19", "script": "classification/train-timm.py", "commit": "712caf2", "image": "ghcr.io/astral-sh/uv:python3.12-bookworm", "exclude_newer": "", "model_revision": "main", "flavor": "a10g-small", "input": "timm/bee-dataset (multi-label, 4 labels; 400 train / 100 val rows)", "rows": 100, "outcome": "pass", "job_url": "https://huggingface.co/jobs/davanstrien/6afeb677e41aae15936d36f2", "notes": "Capped rows (local-copy path). -- --multilabel-threshold 0.6 --model-ema --model-ema-force-cpu: config.json, card and usage snippet carry 0.6; regular weights pushed. Reload logit diff 0."}
3838
{"date": "2026-11-19", "script": "classification/train-timm.py", "commit": "d6f27db", "image": "ghcr.io/astral-sh/uv:python3.12-bookworm", "exclude_newer": "", "model_revision": "main", "flavor": "a10g-small", "input": "AI-Lab-Makerere/beans (3 classes, val 133)", "rows": 133, "outcome": "pass", "job_url": "https://huggingface.co/jobs/davanstrien/6afeb72a545f95df1c0719a4", "notes": "Default path after the review fixes (repo created before training, batch guard, channels from data config). 1 epoch top-1 92.5. Reload logit diff 0."}
3939
{"date": "2026-11-19", "script": "classification/train-timm.py", "commit": "134f9fe", "image": "ghcr.io/astral-sh/uv:python3.12-bookworm", "exclude_newer": "", "model_revision": "main", "flavor": "a10g-small", "input": "cansa/Describable-Textures-Dataset-DTD (train split only, 47 classes)", "rows": 564, "outcome": "pass", "job_url": "https://huggingface.co/jobs/davanstrien/6afecf7a545f95df1c07363e", "notes": "Carve path: no validation split, stratified 10% carved (5076/564), local parquet copy read by train.py. 2 epochs top-1 77.5, top-5 96.1. Reload logit diff 0. 2.8 min."}
40+
{"date": "2026-11-26", "script": "ocr/surya-ocr.py", "commit": "6e041ec", "image": "vllm/vllm-openai:v0.20.1", "exclude_newer": "", "model_revision": "main", "flavor": "a10g-small", "input": "cognaize/table-image-html-pairs (split train_00005), --task table", "rows": 3, "outcome": "fail", "job_url": "https://huggingface.co/jobs/davanstrien/6b07e809d91f621b930a2e66", "notes": "surya-ocr resolved to 0.24.0: TableRecPredictor.__call__() got an unexpected keyword argument 'mode'. All 3 rows [SURYA GENERATE ERROR]; the Job still exited 0 and pushed."}
41+
{"date": "2026-11-26", "script": "ocr/surya-ocr.py", "commit": "43118ef", "image": "vllm/vllm-openai:v0.20.1", "exclude_newer": "", "model_revision": "main", "flavor": "a10g-small", "input": "cognaize/table-image-html-pairs (split train_00005), --task table (mode full)", "rows": 3, "outcome": "pass", "job_url": "https://huggingface.co/jobs/davanstrien/6b07e7f7b6a90bbe997f935a", "notes": "surya-ocr<0.24 (0.23.0). 3/3 rows, HTML tables match the ground-truth headers and row labels; no error rows. --table-mode simple not run."}
42+
{"date": "2026-11-26", "script": "ocr/surya-ocr.py", "commit": "43118ef", "image": "vllm/vllm-openai:v0.20.1", "exclude_newer": "", "model_revision": "main", "flavor": "a10g-small", "input": "uv-scripts/ocr-demo (train), --task ocr", "rows": 3, "outcome": "pass", "job_url": "https://huggingface.co/jobs/davanstrien/6b07e7fad91f621b930a2e44", "notes": "Regression check for the surya-ocr<0.24 cap. 3/3 rows, text read (2.3-3.0k chars per page), no error rows."}

‎ocr/surya-ocr.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# /// script
22
# requires-python = ">=3.10"
33
# dependencies = [
4-
# "surya-ocr",
4+
# "surya-ocr<0.24", # 0.24 dropped TableRecPredictor's mode= ('simple'/'full'), which --task table passes
55
# "datasets>=3.1.0,<5.1", # 5.1 needs huggingface_hub>=1.31; the image ships an older 1.x on PYTHONPATH, which wins
66
# "huggingface-hub",
77
# "pillow",

0 commit comments

Comments
 (0)