Image-to-Text
Transformers
Safetensors
mistral3
text-generation
ocr
document-understanding
vision-language
pdf
tables
forms
Eval Results
🇪🇺 Region: EU
Run this model with HF Jobs
Run lightonai/LightOnOCR-1B-1025 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/lightonai/LightOnOCR-1B-1025. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/lightonai/LightOnOCR-1B-1025 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use lightonai/LightOnOCR-1B-1025 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lightonai/LightOnOCR-1B-1025 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="lightonai/LightOnOCR-1B-1025")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSeq2SeqLM processor = AutoProcessor.from_pretrained("lightonai/LightOnOCR-1B-1025") model = AutoModelForSeq2SeqLM.from_pretrained("lightonai/LightOnOCR-1B-1025", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download notebook.ipynb from lightonai/LightOnOCR-1B-1025: direct link, hf CLI and curl.
- Browser
- Download file 107 kB
-
https://huggingface.co/lightonai/LightOnOCR-1B-1025/resolve/main/notebook.ipynb
- Command line
-
hf download hf://lightonai/LightOnOCR-1B-1025/notebook.ipynb
-
curl -L -o notebook.ipynb https://huggingface.co/lightonai/LightOnOCR-1B-1025/resolve/main/notebook.ipynb
107 kB