You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- AGENTS.md: one canonical provenance-stamp convention (copy-block) —
'Produced on HF Jobs' gated on JOB_ID (set in-container by Jobs; a
local run must not claim it), hardware from ACCELERATOR, reproduce
command is 'hf jobs uv run', org-level credit, tags uv-script +
hf-jobs (when on Jobs) as the adoption meters.
- glm-ocr, nanonets-ocr, rolm-ocr: align existing card Reproduction
sections to the convention (bare 'uv run' -> 'hf jobs uv run',
conditional origin line, conditional hf-jobs tag, fold the footer
into the origin line).
- generate-embeddings: fix unconditional 'Produced on Hugging Face
Jobs' claim (false for local runs), add card frontmatter tags
(had none), add canonical Reproduction section.
Meter baseline 2026-07-08: 431 public datasets tagged uv-script
(280 davanstrien, 151 external across 40+ owners).
Claude-Session: https://claude.ai/code/session_01QyEUD557s6w9CaJoNQo1yY
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: ocr/glm-ocr.py
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -199,14 +199,23 @@ def create_dataset_card(
199
199
"table": "table recognition",
200
200
}
201
201
202
+
# Canonical provenance stamp (see AGENTS.md): Jobs claim gated on JOB_ID, set by HF Jobs in-container.
203
+
on_jobs=os.environ.get("JOB_ID") isnotNone
204
+
hw=os.environ.get("ACCELERATOR") or""
205
+
origin= (
206
+
"Produced on [Hugging Face Jobs](https://huggingface.co/docs/huggingface_hub/guides/jobs)"
207
+
+ (f" (`{hw}`)"ifhwelse"")
208
+
) ifon_jobselse"Generated"
209
+
jobs_tag="\n- hf-jobs"ifon_jobselse""
210
+
202
211
returnf"""---
203
212
tags:
204
213
- ocr
205
214
- document-processing
206
215
- glm-ocr
207
216
- markdown
208
217
- uv-script
209
-
- generated
218
+
- generated{jobs_tag}
210
219
---
211
220
212
221
# Document OCR using {model_name}
@@ -252,16 +261,16 @@ def create_dataset_card(
252
261
253
262
## Reproduction
254
263
264
+
{origin} 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:
265
+
255
266
```bash
256
-
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \\
267
+
hf jobs uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/glm-ocr.py \\
257
268
{source_dataset}\\
258
269
<output-dataset> \\
259
270
--image-column {image_column}\\
260
271
--batch-size {batch_size}\\
261
272
--task {task}
262
273
```
263
-
264
-
Generated with [UV Scripts](https://huggingface.co/uv-scripts)
Copy file name to clipboardExpand all lines: ocr/nanonets-ocr.py
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,15 @@ def create_dataset_card(
130
130
"""Create a dataset card documenting the OCR process."""
131
131
model_name=model.split("/")[-1]
132
132
133
+
# Canonical provenance stamp (see AGENTS.md): Jobs claim gated on JOB_ID, set by HF Jobs in-container.
134
+
on_jobs=os.environ.get("JOB_ID") isnotNone
135
+
hw=os.environ.get("ACCELERATOR") or""
136
+
origin= (
137
+
"Produced on [Hugging Face Jobs](https://huggingface.co/docs/huggingface_hub/guides/jobs)"
138
+
+ (f" (`{hw}`)"ifhwelse"")
139
+
) ifon_jobselse"Generated"
140
+
jobs_tag="\n- hf-jobs"ifon_jobselse""
141
+
133
142
returnf"""---
134
143
viewer: false
135
144
tags:
@@ -138,7 +147,7 @@ def create_dataset_card(
138
147
- nanonets
139
148
- markdown
140
149
- uv-script
141
-
- generated
150
+
- generated{jobs_tag}
142
151
---
143
152
144
153
# Document OCR using {model_name}
@@ -202,10 +211,10 @@ def create_dataset_card(
202
211
203
212
## Reproduction
204
213
205
-
This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) Nanonets OCR script:
214
+
{origin} with the [`nanonets-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/raw/main/nanonets-ocr.py) recipe from [uv-scripts](https://huggingface.co/uv-scripts). Run it yourself:
206
215
207
216
```bash
208
-
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/nanonets-ocr.py \\
217
+
hf jobs uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/nanonets-ocr.py \\
Copy file name to clipboardExpand all lines: ocr/rolm-ocr.py
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -131,14 +131,23 @@ def create_dataset_card(
131
131
"""Create a dataset card documenting the OCR process."""
132
132
model_name=model.split("/")[-1]
133
133
134
+
# Canonical provenance stamp (see AGENTS.md): Jobs claim gated on JOB_ID, set by HF Jobs in-container.
135
+
on_jobs=os.environ.get("JOB_ID") isnotNone
136
+
hw=os.environ.get("ACCELERATOR") or""
137
+
origin= (
138
+
"Produced on [Hugging Face Jobs](https://huggingface.co/docs/huggingface_hub/guides/jobs)"
139
+
+ (f" (`{hw}`)"ifhwelse"")
140
+
) ifon_jobselse"Generated"
141
+
jobs_tag="\n- hf-jobs"ifon_jobselse""
142
+
134
143
returnf"""---
135
144
viewer: false
136
145
tags:
137
146
- ocr
138
147
- text-extraction
139
148
- rolmocr
140
149
- uv-script
141
-
- generated
150
+
- generated{jobs_tag}
142
151
---
143
152
144
153
# OCR Text Extraction using {model_name}
@@ -195,10 +204,10 @@ def create_dataset_card(
195
204
196
205
## Reproduction
197
206
198
-
This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) RolmOCR script:
207
+
{origin} with the [`rolm-ocr.py`](https://huggingface.co/datasets/uv-scripts/ocr/raw/main/rolm-ocr.py) recipe from [uv-scripts](https://huggingface.co/uv-scripts). Run it yourself:
199
208
200
209
```bash
201
-
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/rolm-ocr.py \\
210
+
hf jobs uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/rolm-ocr.py \\
0 commit comments