LightOnOCR-3-4B GGUF

LightOnOCR-3-4B is an end-to-end OCR model developed by LightOn. It converts document images into structured markdown with layout and visual understanding, so it can replace a multi-step document processing pipeline with a single model. LightOn recommends it as the most accurate model in the LightOnOCR-3 family for most OCR tasks.

The model outputs transcribed text in transcription mode and, in grounding mode, adds a label and bounding box for each block, a short description of images, and the data points of charts as tables.

This repository provides GGUF quantized versions of LightOnOCR-3-4B for local inference. The available quantizations reduce the storage footprint of the F16 conversion so document OCR can run on everyday hardware.


Model Overview

  • Model Name: LightOnOCR-3-4B
  • Base Model: lightonai/LightOnOCR-3-4B
  • Architecture: Vision-language model based on the Qwen3.5 architecture
  • Parameter Count: Approximately 4B (listed as 5B parameters on the original model page)
  • Modalities: Image, Text
  • Primary Focus: Document OCR, layout understanding, tables, forms, charts, and math notation
  • Developer: LightOn
  • License: Apache 2.0

Quantization Formats

This repository provides multiple GGUF quantized versions of LightOnOCR-3-4B designed to reduce storage and memory requirements compared to the 16-bit conversion. The available formats offer different trade-offs between size and numerical precision.

IQ3_M

  • Size reduction of approx. 73.89% (2.05 GB) compared to 16-bit (7.85 GB)
  • Aggressive 3-bit quantization providing the smallest GGUF representation among the supplied conversions
  • Suitable for constrained devices and high-volume preprocessing where footprint is the primary consideration
  • The lower numerical precision introduces a greater risk of errors in dense tables, small numbers, and complex formulas

IQ4_NL

  • Size reduction of approx. 68.54% (2.47 GB) compared to 16-bit (7.85 GB)
  • 4-bit non-linear quantization that retains more weight information than the 3-bit variant
  • Suitable for general document OCR, offering a practical balance between size and transcription quality
  • A good default choice for batch processing of invoices, reports, and forms on local hardware

IQ4_XS

  • Size reduction of approx. 69.55% (2.39 GB) compared to 16-bit (7.85 GB)
  • Compact 4-bit representation, slightly smaller than IQ4_NL
  • Suitable for memory-conscious deployments while keeping a 4-bit weight format

Q6_K

  • Size reduction of approx. 58.85% (3.23 GB) compared to 16-bit (7.85 GB)
  • Higher-precision 6-bit K-Quant representation that retains more numerical information than the 4-bit and 3-bit variants
  • Provides the largest GGUF file among the supplied quantized versions
  • Suitable for high-accuracy transcription of tables, forms, receipts, and math notation

Training Background (Original Model)

LightOnOCR-3 is designed as an end-to-end OCR model rather than a pipeline of separate layout detection, OCR, and table extraction components. The 4B model is the largest and most accurate member of the family.

Design

  • End-to-end architecture that outputs text, layout, and visual data in one pass
  • Transcription mode outputs the full page text as markdown, with no change needed from LightOnOCR-2
  • Grounding mode outputs each block with a label and a bounding box in page coordinates normalized to 0–1000
  • Image blocks include a short description, and chart blocks include the extracted data points as an HTML table

Key Capabilities

  • Transcription Mode
    Outputs all textual elements of a page as markdown when called with an empty prompt, with no change needed from LightOnOCR-2.

  • Grounding Mode
    Returns each block with its type and bounding box, so downstream systems can locate text, tables, images, and charts on the page.

  • Visual Understanding
    Describes images in a short sentence and converts charts into structured tables of their data points.

  • Tables, Forms, and Receipts
    Handles tables, receipts, forms, and multi-column layouts in a single pass.

  • Math and Code Notation
    Recognizes formulas and code blocks and returns them with their block labels.

  • Single-Model Pipeline
    Replaces a document understanding pipeline with one model that is easier to deploy and maintain.


Usage Example

Using llama.cpp

./llama-mtmd-cli \
  -m SandlogicTechnologies\LightOnOCR-3-4B-Q6_K.gguf \
  --mmproj SandlogicTechnologies\mmproj-LightOnOCR-3-4B-F16.gguf \
  --image page.png \
  -p "grounding" \
  --temp 0.2

Recommended Usecases

  • Invoice and Receipt Processing
    Extract line items, totals, and fields from scanned receipts and invoices.

  • Document Digitization
    Convert scanned reports, contracts, and forms into searchable markdown.

  • Retrieval-Augmented Generation Pipelines
    Turn document pages into text with layout labels, image descriptions, and chart data for retrieval and question answering.

  • Table and Chart Extraction
    Pull structured data from tables and charts into HTML tables for analysis.

  • Accessibility
    Generate text and image descriptions from visual documents for screen readers and other assistive tools.

  • High-Volume Local OCR
    Run document OCR on local machines or on-premise servers without sending documents to external APIs.

LightOnOCR-3-4B is intended for document OCR. Review outputs for dense tables, small numbers, and financial or legal figures before using them in decisions.


Acknowledgments

These quantized models are based on the original work by the LightOn team.

Special thanks to:

  • The LightOn team for developing and releasing LightOnOCR-3 and its paper, blog post, and evaluation results.

  • Georgi Gerganov and the llama.cpp open-source community for enabling efficient local inference and GGUF-based model deployment.


Contact

For questions, feedback, or support, please reach out at support@sandlogic.com or visit https://www.sandlogic.com/.

Downloads last month
867
GGUF
Model size
4B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

3-bit

4-bit

6-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for SandLogicTechnologies/LightOnOCR-3-4B-GGUF

Quantized
(18)
this model