Image-to-Text
Transformers
Safetensors
mistral3
text-generation
ocr
document-understanding
vision-language
pdf
tables
forms
Eval Results
🇪🇺 Region: EU
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 generation_config.json from lightonai/LightOnOCR-1B-1025: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/lightonai/LightOnOCR-1B-1025/resolve/main/generation_config.json
- Command line
-
hf download hf://lightonai/LightOnOCR-1B-1025/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/lightonai/LightOnOCR-1B-1025/resolve/main/generation_config.json
238 Bytes
| { | |
| "bos_token_id": 151643, | |
| "do_sample": true, | |
| "eos_token_id": [ | |
| 151645, | |
| 151643 | |
| ], | |
| "pad_token_id": 151643, | |
| "temperature": 0.2, | |
| "top_k": 0, | |
| "top_p": 0.9, | |
| "transformers_version": "4.55.3" | |
| } | |