Commit ·
0b77b50
1
Parent(s): d0a2ced
Fix volume mount syntax in falcon-ocr-bucket.py examples
Browse filesThe hf jobs CLI expects 'hf://buckets/' (plural) not 'bucket/'.
Verified working end-to-end: 376 PDF pages OCR'd in 11.9 min on L4.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- falcon-ocr-bucket.py +4 -4
falcon-ocr-bucket.py
CHANGED
|
@@ -32,8 +32,8 @@ Examples:
|
|
| 32 |
# HF Jobs with bucket volumes
|
| 33 |
hf jobs uv run --flavor l4x1 \\
|
| 34 |
-s HF_TOKEN \\
|
| 35 |
-
-v
|
| 36 |
-
-v
|
| 37 |
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/falcon-ocr-bucket.py \\
|
| 38 |
/input /output
|
| 39 |
|
|
@@ -265,8 +265,8 @@ if __name__ == "__main__":
|
|
| 265 |
print()
|
| 266 |
print("HF Jobs with bucket volumes:")
|
| 267 |
print(" hf jobs uv run --flavor l4x1 -s HF_TOKEN \\")
|
| 268 |
-
print(" -v
|
| 269 |
-
print(" -v
|
| 270 |
print(
|
| 271 |
" https://huggingface.co/datasets/uv-scripts/ocr/raw/main/falcon-ocr-bucket.py \\"
|
| 272 |
)
|
|
|
|
| 32 |
# HF Jobs with bucket volumes
|
| 33 |
hf jobs uv run --flavor l4x1 \\
|
| 34 |
-s HF_TOKEN \\
|
| 35 |
+
-v hf://buckets/user/ocr-input:/input:ro \\
|
| 36 |
+
-v hf://buckets/user/ocr-output:/output \\
|
| 37 |
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/falcon-ocr-bucket.py \\
|
| 38 |
/input /output
|
| 39 |
|
|
|
|
| 265 |
print()
|
| 266 |
print("HF Jobs with bucket volumes:")
|
| 267 |
print(" hf jobs uv run --flavor l4x1 -s HF_TOKEN \\")
|
| 268 |
+
print(" -v hf://buckets/user/ocr-input:/input:ro \\")
|
| 269 |
+
print(" -v hf://buckets/user/ocr-output:/output \\")
|
| 270 |
print(
|
| 271 |
" https://huggingface.co/datasets/uv-scripts/ocr/raw/main/falcon-ocr-bucket.py \\"
|
| 272 |
)
|