LightOnOCR-2-1B
LightOn · lightonai/LightOnOCR-2-1B
Weights license: Apache 2.0 · code and components may use other terms
Quality
No comparable score
We track no public, comparable benchmark that covers this model yet. No score is inferred.
Reported by the publisher
Runs on
Fast memory holds it 119
The planning estimate fits the memory the model can use quickly: graphics card VRAM, or unified memory within the macOS GPU share.
Show all 119
Hardware profiles grouped by the Q4 planning estimate on each machine (dedicated GPUs reserve 2 GB; unified and system memory 25%, 2 to 8 GB): the fast memory holds it, it is within memory but outside the fast part (layers offloaded to PC RAM, or above the macOS GPU share), or the machine is one memory tier short. Not a measured fit or speed.
LightOn released LightOnOCR-2-1B on 2026-01-20: a vision-language model that answers about images, with 1.01B parameters on the Hugging Face count and the Apache 2.0 license. Languages the publisher declares: en, fr, de, es, it, nl, pt, sv, da, zh, ja.
License: commercial use allowed. At Q4 the weights load about 0.8 GB before each machine's reserve; image resolution, video frames and context add memory, and the vision encoder needs support in the runtime you pick.
Measured speed
No published measurement for this checkpoint
Tokens per second are shown only when a source publishes them with hardware, build and setup. They are never estimated.
How to run
Runtime compatibility and tokens per second have not been measured for this entry. Published metadata and a memory estimate do not prove a successful local run.
Library in source: transformers
Documented ways to run it
Copied as printed in the linked source (read 2026-10-18); not run by this site.
uv pip install transformers # => 5.0.0
uv pip install pillow pypdfium2import torch
from transformers import LightOnOcrForConditionalGeneration, LightOnOcrProcessor
device = "mps" if torch.backends.mps.is_available() else "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.float32 if device == "mps" else torch.bfloat16
model = LightOnOcrForConditionalGeneration.from_pretrained("lightonai/LightOnOCR-2-1B", torch_dtype=dtype).to(device)
processor = LightOnOcrProcessor.from_pretrained("lightonai/LightOnOCR-2-1B")
url = "https://huggingface.co/datasets/hf-internal-testing/fixtures_ocr/resolve/main/SROIE-receipt.jpeg"
conversation = [{"role": "user", "content": [{"type": "image", "url": url}]}]
inputs = processor.apply_chat_template(
conversation,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
)
inputs = {k: v.to(device=device, dtype=dtype) if v.is_floating_point() else v.to(device) for k, v in inputs.items()}
output_ids = model.generate(**inputs, max_new_tokens=1024)
generated_ids = output_ids[0, inputs["input_ids"].shape[1]:]
output_text = processor.decode(generated_ids, skip_special_tokens=True)
print(output_text)vllm serve lightonai/LightOnOCR-2-1B \
--limit-mm-per-prompt '{"image": 1}' --mm-processor-cache-gb 0 --no-enable-prefix-cachingTechnical details
What the source and the catalog store for this checkpoint. Missing fields are left out, never zero.
- Checkpoint / source
- lightonai/LightOnOCR-2-1B
- Task
- image-text-to-text
- Architecture
- LightOnOCRForConditionalGeneration
- Library in source
- transformers
- Weight license
- Apache 2.0lightonai/LightOnOCR-2-1B model card (Hugging Face) · read 2026-10-18source
- Commercial use
- Allowed Apache License 2.0 text (SPDX) · read 2026-10-18license text
- Languages
- en, fr, de, es, it, nl, pt, sv, da, zh, jaModel card metadata · read 2026-10-25source
- Released
- LightOnOCR: A 1B End-to-End Multilingual Vision-Language Model for State-of-the-Art OCR (arXiv 2601.14251 v1, LightOn) · read 2026-10-18source
Every stored field
- Revision checked
- be7c41313c30e940fe5571de59e5fabc779e00c8
- Architecture
- LightOnOCRForConditionalGeneration
- Library
- transformers
- Hub task tag
- image-text-to-text
- Formats
- transformers, safetensors
- Access
- Open download
- Publisher kind
- Official
- Hub parameter count
- 1,005,647,872safetensors.total
- Repository created
- 2026-01-16creation is not the model's release
- Repository updated
- 2026-10-08a commit is not a release date
- Hub downloads (30 days) · likes
- 576,587 · 846this repository only · read 2026-10-25
- Catalog state
- Hub config or weights found; no inventory benchmark link
Sources
Identity and published specifications come from the checkpoint page. Benchmark scores belong to the named release and do not measure speed on your computer.
- Publisher model card
- License: lightonai/LightOnOCR-2-1B model card (Hugging Face)
- Release date: LightOnOCR: A 1B End-to-End Multilingual Vision-Language Model for State-of-the-Art OCR (arXiv 2601.14251 v1, LightOn)
Curated facts checked: 2026-10-18. The license and release date cite the publisher's sources; parameters, files and task come from the Hugging Face record, and memory is a labelled estimate from its parameter count. A value no source states stays empty; a repository commit is not a model release date.






























































