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")# 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
Update notebook.ipynb
Browse files- notebook.ipynb +1 -1
notebook.ipynb
CHANGED
|
@@ -39,7 +39,7 @@
|
|
| 39 |
],
|
| 40 |
"source": [
|
| 41 |
"# Install transformers from the PR branch until it's merged!\n",
|
| 42 |
-
"!pip install
|
| 43 |
]
|
| 44 |
},
|
| 45 |
{
|
|
|
|
| 39 |
],
|
| 40 |
"source": [
|
| 41 |
"# Install transformers from the PR branch until it's merged!\n",
|
| 42 |
+
"!pip install git+https://github.com/baptiste-aubertin/transformers.git@83d01ff90112ea3a0d8a6679aa9383e80f31c1db"
|
| 43 |
]
|
| 44 |
},
|
| 45 |
{
|