davanstrien HF Staff commited on
Commit
a6ef431
·
verified ·
1 Parent(s): f9b3f80

Upload lighton-ocr2.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. lighton-ocr2.py +9 -3
lighton-ocr2.py CHANGED
@@ -6,12 +6,18 @@
6
  # "huggingface-hub",
7
  # "hf-xet",
8
  # "pillow",
9
- # "vllm>=0.15.0",
10
  # "transformers @ git+https://github.com/huggingface/transformers",
11
  # "tqdm",
12
  # "toolz",
13
  # "torch",
14
  # ]
 
 
 
 
 
 
15
  # ///
16
 
17
  """
@@ -21,7 +27,7 @@ LightOnOCR-2 is a compact 1B multilingual OCR model optimized for production spe
21
  Combines Pixtral ViT encoder with Qwen3 language model for efficient document parsing.
22
  Uses Reinforcement Learning with Verifiable Rewards (RLVR) for improved quality.
23
 
24
- NOTE: Requires transformers installed from source (included in dependencies).
25
  First run may take a few minutes to download and install dependencies.
26
 
27
  Features:
@@ -36,7 +42,7 @@ Features:
36
  - 💪 Production-ready: Outperforms models 9× larger
37
 
38
  Model: lightonai/LightOnOCR-2-1B
39
- vLLM: Requires vLLM >= 0.15.0 + transformers from source
40
  Performance: 83.2 ± 0.9% on OlmOCR-Bench
41
  """
42
 
 
6
  # "huggingface-hub",
7
  # "hf-xet",
8
  # "pillow",
9
+ # "vllm",
10
  # "transformers @ git+https://github.com/huggingface/transformers",
11
  # "tqdm",
12
  # "toolz",
13
  # "torch",
14
  # ]
15
+ #
16
+ # [[tool.uv.index]]
17
+ # url = "https://wheels.vllm.ai/nightly"
18
+ #
19
+ # [tool.uv]
20
+ # prerelease = "allow"
21
  # ///
22
 
23
  """
 
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 + transformers installed from source (both included in dependencies).
31
  First run may take a few minutes to download and install dependencies.
32
 
33
  Features:
 
42
  - 💪 Production-ready: Outperforms models 9× larger
43
 
44
  Model: lightonai/LightOnOCR-2-1B
45
+ vLLM: Requires vLLM nightly + transformers from source
46
  Performance: 83.2 ± 0.9% on OlmOCR-Bench
47
  """
48