Upload lighton-ocr2.py with huggingface_hub
Browse files- lighton-ocr2.py +3 -4
lighton-ocr2.py
CHANGED
|
@@ -7,7 +7,6 @@
|
|
| 7 |
# "hf-xet",
|
| 8 |
# "pillow",
|
| 9 |
# "vllm",
|
| 10 |
-
# "transformers @ git+https://github.com/huggingface/transformers",
|
| 11 |
# "tqdm",
|
| 12 |
# "toolz",
|
| 13 |
# "torch",
|
|
@@ -27,8 +26,8 @@ LightOnOCR-2 is a compact 1B multilingual OCR model optimized for production spe
|
|
| 27 |
Combines Pixtral ViT encoder with Qwen3 language model for efficient document parsing.
|
| 28 |
Uses Reinforcement Learning with Verifiable Rewards (RLVR) for improved quality.
|
| 29 |
|
| 30 |
-
NOTE: Requires vLLM nightly
|
| 31 |
-
|
| 32 |
|
| 33 |
Features:
|
| 34 |
- ⚡ Fastest: 42.8 pages/sec on H100 GPU (7× faster than v1)
|
|
@@ -42,7 +41,7 @@ Features:
|
|
| 42 |
- 💪 Production-ready: Outperforms models 9× larger
|
| 43 |
|
| 44 |
Model: lightonai/LightOnOCR-2-1B
|
| 45 |
-
vLLM: Requires vLLM nightly
|
| 46 |
Performance: 83.2 ± 0.9% on OlmOCR-Bench
|
| 47 |
"""
|
| 48 |
|
|
|
|
| 7 |
# "hf-xet",
|
| 8 |
# "pillow",
|
| 9 |
# "vllm",
|
|
|
|
| 10 |
# "tqdm",
|
| 11 |
# "toolz",
|
| 12 |
# "torch",
|
|
|
|
| 26 |
Combines Pixtral ViT encoder with Qwen3 language model for efficient document parsing.
|
| 27 |
Uses Reinforcement Learning with Verifiable Rewards (RLVR) for improved quality.
|
| 28 |
|
| 29 |
+
NOTE: Requires vLLM nightly wheels for LightOnOCR-2 support. First run may take
|
| 30 |
+
a few minutes to download and install dependencies.
|
| 31 |
|
| 32 |
Features:
|
| 33 |
- ⚡ Fastest: 42.8 pages/sec on H100 GPU (7× faster than v1)
|
|
|
|
| 41 |
- 💪 Production-ready: Outperforms models 9× larger
|
| 42 |
|
| 43 |
Model: lightonai/LightOnOCR-2-1B
|
| 44 |
+
vLLM: Requires vLLM nightly build
|
| 45 |
Performance: 83.2 ± 0.9% on OlmOCR-Bench
|
| 46 |
"""
|
| 47 |
|