Instructions to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF", dtype="auto") - llama-cpp-python
How to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF", filename="LightOnOCR-1B-1025.BF16.gguf", )
llm.create_chat_completion( messages = "\"cats.jpg\"" )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16 # Run inference directly in the terminal: llama-cli -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16 # Run inference directly in the terminal: llama-cli -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16 # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
Use Docker
docker model run hf.co/prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
- LM Studio
- Jan
- Ollama
How to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with Ollama:
ollama run hf.co/prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
- Unsloth Studio
How to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF to start chatting
- Docker Model Runner
How to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
- Lemonade
How to use prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF:BF16
Run and chat with the model
lemonade run user.LightOnOCR-1B-1025-AIO-GGUF-BF16
List all available models
lemonade list
LightOnOCR-1B-1025-AIO-GGUF
The LightOnOCR-1B-1025 from lightonai is a compact 1B-parameter end-to-end vision-language model optimized for Optical Character Recognition (OCR) and document understanding, combining a Pixtral-based Vision Transformer encoder with a lightweight Qwen3-based text decoder distilled from high-quality VLMs, achieving state-of-the-art accuracy in its class on Olmo-Bench (76.1% overall, with 81.4% on ArXiv papers, 71.6% on old scans, and strong math/table handling) while processing 5.71 pages/second on a single H100 GPU—5× faster than dots.ocr, 2× faster than PaddleOCR-VL-0.9B, and 1.73× faster than DeepSeekOCR at under $0.01 per 1,000 pages. Fully differentiable without external OCR pipelines, it excels at layout-aware extraction from high-resolution PDFs (rendered at ~1540px longest dimension), handling tables, receipts, forms, multi-column layouts, math notation, and multilingual text (Latin-dominant) under Apache 2.0 license, with compact 32k/16k vocab variants for European languages and vLLM/Transformers support for efficient inference and LoRA fine-tuning.
LightOnOCR-1B-1025 [GGUF]
| File Name | Quant Type | File Size | File Link |
|---|---|---|---|
| LightOnOCR-1B-1025.BF16.gguf | BF16 | 1.51 GB | Download |
| LightOnOCR-1B-1025.F16.gguf | F16 | 1.51 GB | Download |
| LightOnOCR-1B-1025.F32.gguf | F32 | 3.01 GB | Download |
| LightOnOCR-1B-1025.Q8_0.gguf | Q8_0 | 805 MB | Download |
| LightOnOCR-1B-1025.mmproj-bf16.gguf | mmproj-bf16 | 821 MB | Download |
| LightOnOCR-1B-1025.mmproj-f16.gguf | mmproj-f16 | 819 MB | Download |
| LightOnOCR-1B-1025.mmproj-f32.gguf | mmproj-f32 | 1.64 GB | Download |
| LightOnOCR-1B-1025.mmproj-q8_0.gguf | mmproj-q8_0 | 437 MB | Download |
Quants Usage
(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)
Here is a handy graph by ikawrakow comparing some lower-quality quant types (lower is better):
- Downloads last month
- 187
8-bit
16-bit
32-bit
Model tree for prithivMLmods/LightOnOCR-1B-1025-AIO-GGUF
Base model
lightonai/LightOnOCR-1B-1025