Model reference · open weights

LightOnOCR-3

LLMs lightonai Vision + text 3 builds Open weights 15 dl/mo

LightOnOCR-3 is an open-weight language model from lightonai. LightOnOCR-3-0.8B (BF16) weighs 1.7 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • LightOnOCR-3-0.8B is a lightweight image-text-to-text model developed by lightonai for document understanding and optical character recognition.
  • It features 853M parameters, supports a context length of 262144 tokens, and is designed for English text.
  • The model is released under the Apache 2.0 license.

Summary of the lightonai/LightOnOCR-3-0.8B model card, 2026-10-09

What it is

Released bylightonai
Released2026-10-07
Parameters853M
VRAM1.7 GB for the weights

What it runs on

Memory and cards for LightOnOCR-3-0.8B (BF16)

1.7 GBweights, file size
12 MBcache per 1K tokens
39 MBfixed state per request
2.0 GBruntime overhead, at least
262,144 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB5617all 256K11.6 GB
RTX 4060 Ti 16 GB8326all 256K15.4 GB
RTX 3090 24 GB14044all 256K23.4 GB
RTX 4090 24 GB14044all 256K23.4 GB
RTX 5090 32 GB19561all 256K31.0 GB
L40S 48 GB28791all 256K44.0 GB
A100 80 GB532168all 256K78.2 GB
H100 80 GB496156all 256K78.1 GB
RTX PRO 6000 Blackwell 96 GB608192all 256K93.8 GB
DGX Spark (GB10) 128 GB unified705223all 256K107 GB
H200 141 GB924292all 256K138 GB
B200 180 GB1000+378all 256K176 GB
Memory needed at each load
Requests at once8K tokens each32K tokens each
13.9 GB4.2 GB
54.4 GB5.9 GB
84.8 GB7.3 GB
166.0 GB10.8 GB
328.2 GB17.9 GB
6412.7 GB32.0 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
LightOnOCR-3-0.8B (above) ↗ 853MBF16 1.7 GBRTX 3060 12 GB
LightOnOCR-3-4B ↗ 4.5BBF16 9.1 GBRTX 3060 12 GB
LightOnOCR-3-1B ↗ 1.0BBF16 2.0 GBRTX 3060 12 GB

From the model card

What lightonai says about LightOnOCR-3

Read the model card

📄 Paper | 📝 Blog | 🚀 Demo | 💻 GitHub | 🤗 LightOnOCR-2-1B

LightOnOCR-3-0.8B

Smallest model. LightOnOCR-3-0.8B is the lightest model of LightOn's LightOnOCR-3 family, with the same layout and visual understanding features.

About LightOnOCR-3

LightOnOCR-3 is a new family of highly performant lightweight OCR models. Compared to the previous generation, they bring significant improvements in speed and transcription quality and introduce new visual understanding features: the models now output bounding box coordinates with labels for all visual elements of a document, short descriptions of images, and the numerical data of figures and charts. With these capabilities, they offer a ready-to-use, easier-to-maintain alternative to complex document understanding pipelines.

The models come in three sizes. The 1B keeps the LightOnOCR-2-1B architecture, while the 0.8B and 4B adopt the Qwen3.5 vision-language architecture, which simplifies integration with existing tools and brings a significant speed-up. All models are released under the Apache 2.0 license for research and commercial use.

Highlights

  • 📝 Transcription mode: call the model with an empty prompt and get the full page text, as before. Switching from LightOnOCR-2 requires no change
  • 📍 Grounding mode: call it with the grounding prompt and every block comes back with a label and a bounding box
  • 🖼️ Visual understanding: images get a short description, charts become a table of their data points
  • 🧠 End-to-End: one model instead of a document understanding pipeline, easier to deploy and maintain
  • 🧾 Versatile: handles tables, receipts, forms, charts, multi-column layouts, and math notation

Model Variants

VariantDescription
LightOnOCR-3-4BBest OCR model, recommended for most tasks
LightOnOCR-3-1BLightOnOCR-2 architecture, drop-in upgrade for existing deployments
LightOnOCR-3-0.8BFast and Efficient model

Prompt Modes

The models can be used as before in a transcription-only mode: called with an empty prompt (the image only), they output all textual elements of the page as markdown. If you are currently using our previous models, switching to LightOnOCR-3 requires no change, as this is the default behavior.

The new usage mode is to call the models with the grounding prompt. They then output the new vision features alongside the transcribed text. Each block of content is prepended with a placeholder giving its type and its bounding box, in page coordinates normalized to 0–1000:

# Company report 2025

Revenue rose 20%.

A solar-powered factory.

  • Text blocks contain the transcribed content of paragraphs, titles and other text elements.
  • Image blocks pair a bounding box with a short description, making visual content accessible to retrieval and question-answering pipelines.
  • Chart blocks contain an HTML table of the data points extracted from the figure, turning visual information into structured data.

The placeholder label is one of:

LabelDefinition
textOrdinary body text and paragraphs.
titleDocument, section, or paragraph headings.
listBulleted or numbered-list content.
headerText in the page header.
footerText in the page footer.
page_numberPage-number regions.
footnoteFootnote text.
captionCaptions associated with figures, tables, or other visual elements.
formulaMathematical formulas and equations.
codeCode blocks or code-like text.
tableTable regions and their content.
imageIllustrations, photographs, and other image regions.
chartCharts, graphs, and plotted visual data.
header_imageImage regions in page headers, such as logos.
footer_imageImage regions in page footers.
aside_textMarginal or side text outside the main text flow.
+ suffixMarks a continuation block, not a separate semantic class.

Grounding adds about 25% output tokens over plain transcription (1,433 vs 1,158 tokens per page on average for the 4B). Other instructions are out of distribution: use the empty prompt or grounding.


Usage with Transformers

Note: LightOnOCR-3-0.8B loads with the Qwen3.5 classes (Transformers ≥ 5.2, saved with 5.5.4). It is trained and evaluated with thinking disabled, which is the chat template default.

uv pip install "transformers>=5.5.4" pillow pypdfium2
import torch
from transformers import AutoProcessor, Qwen3_5ForConditionalGeneration

model_id = "lightonai/LightOnOCR-3-0.8B"
model = Qwen3_5ForConditionalGeneration.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
processor = AutoProcessor.from_pretrained(model_id)

url = "https://huggingface.co/datasets/hf-internal-testing/fixtures_ocr/resolve/main/SROIE-receipt.jpeg"
mode = "grounding"  # or "plain"

content = [{"type": "image", "url": url}]
if mode == "grounding":
    content.append({"type": "text", "text": "grounding"})
conversation = [{"role": "user", "content": content}]

inputs = processor.apply_chat_template(
    conversation,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    enable_thinking=False,
).to(model.device)

output_ids = model.generate(**inputs, max_new_tokens=1024, do_sample=True, temperature=0.2)
generated_ids = output_ids[0, i

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms