39 Downloads Updated 1 week ago
ollama run STELLARRSTUDIO/moon-ocr
Updated 1 week ago
1 week ago
ae96d402bf47 · 1.7GB

Lire des pages de documents sur votre propre machine. Une page scannée ou photographiée devient du texte en Markdown, tableaux en HTML.
Moon OCR est LightOnOCR-3-0.8B de LightOn, publié pour Ollama par Stellarr Studio, l’éditeur de Moon AI.
| Tag | Modèle | Taille | Mémoire |
|---|---|---|---|
moon-ocr, moon-ocr:lightonocr3-0.8b |
LightOnOCR-3-0.8B (architecture Qwen3.5, 0,8 milliard de paramètres), BF16, projecteur de vision F16 | 1,7 Go | environ 2 Go une fois chargé |
Ollama 0.40.16 ou plus récent : c’est la version essayée.
Moon OCR lit une image par demande. Envoyez l’image seule, sans texte : il rend tout le texte de la page.
ollama run ne convient pas à ce mode : sans texte à côté de l’image, il n’envoie rien. Passez par l’API locale d’Ollama :
ollama pull STELLARRSTUDIO/moon-ocr
curl -s http://localhost:11434/api/chat -d @- <<EOF | jq -r .message.content
{"model": "STELLARRSTUDIO/moon-ocr", "stream": false,
"messages": [{"role": "user", "content": "",
"images": ["$(base64 < page.png | tr -d '\n')"]}]}
EOF
L’image passe par l’entrée standard : en argument de commande, une vraie page dépasse la limite du système (« Argument list too long »).
Le point compatible OpenAI marche aussi : http://localhost:11434/v1/chat/completions, avec l’image en image_url (data:image/png;base64,…) et sans texte.
Pour un PDF, une demande par page :
Le mode repérage (consigne grounding) marche aussi en ligne de commande :
ollama run STELLARRSTUDIO/moon-ocr "grounding ./page.png"
grounding) : chaque bloc est précédé de son type (titre, texte, tableau, image, en-tête, pied de page…) et de sa boîte, en coordonnées de 0 à 1 000. Les images reçoivent une courte description, les graphiques un tableau de leurs données.Toute autre consigne sort de ce que le modèle a appris : gardez l’une de ces deux.
Mesures internes de novembre 2026, sur la version publiée ici, servie par Ollama 0.40.16.
Le banc :
| Part des tests réussis | Moon OCR (Ollama) | LightOnOCR-3-0.8B d’origine (transformers) |
|---|---|---|
| Toutes les pages | 45,7 % | 46,1 % |
| Formulaires | 37,7 % | 37,1 % |
| Manuscrit court | 34,1 % | 40,9 % |
| Manuscrit | 21,1 % | 21,1 % |
| Tableaux longs | 46,7 % | 45,3 % |
| Pages en colonnes | 87,5 % | 87,5 % |
| Petits caractères | 86,2 % | 87,9 % |
Ces chiffres vérifient que la version Ollama lit comme le modèle d’origine. L’écart de −0,4 point reste dans le bruit de la mesure. Ils ne remplacent pas les scores publiés par LightOn, mesurés dans d’autres conditions.
Temps, sur un NVIDIA DGX Spark (GB10), une page à la fois :
done_reason vaut alors length).Apache 2.0, comme le modèle d’origine.
ollama show STELLARRSTUDIO/moon-ocr --license.Stellarr Studio est une société française qui conçoit Moon AI, une plateforme d’IA qui réunit les meilleurs modèles du marché dans une seule application, avec Moon Blur pour masquer les données sensibles avant l’envoi aux modèles.
realmoon.ai · stellarrstudio.com · contact@stellarrstudio.com
Read document pages on your own machine. A scanned or photographed page becomes Markdown text, with tables in HTML.
Moon OCR is LightOnOCR-3-0.8B by LightOn, published for Ollama by Stellarr Studio, the company behind Moon AI.
| Tag | Model | Size | Memory |
|---|---|---|---|
moon-ocr, moon-ocr:lightonocr3-0.8b |
LightOnOCR-3-0.8B (Qwen3.5 architecture, 0.8B parameters), BF16, F16 vision projector | 1.7 GB | about 2 GB once loaded |
Requires Ollama 0.40.16 or newer (the version tested).
Send one image per request, with no text, and you get the whole page. ollama run cannot do this, since it sends nothing without text: use the local API.
ollama pull STELLARRSTUDIO/moon-ocr
curl -s http://localhost:11434/api/chat -d @- <<EOF | jq -r .message.content
{"model": "STELLARRSTUDIO/moon-ocr", "stream": false,
"messages": [{"role": "user", "content": "",
"images": ["$(base64 < page.png | tr -d '\n')"]}]}
EOF
The image goes through standard input: passed as a command argument, a real page exceeds the system limit (“Argument list too long”).
For a PDF, render each page as an image (for example at 200 dpi), with the longest side at 2,048 pixels, and send one request per page.
The grounding prompt returns each block with its type and box, in 0 to 1,000 coordinates. It also works from the command line: ollama run STELLARRSTUDIO/moon-ocr "grounding ./page.png". Other prompts are out of what the model was trained on.
Internal measurement, November 2026, on the build published here, served by Ollama 0.40.16:
Handwriting is much weaker than print. Like any generative model, it may write a plausible word or figure over an unreadable area: check amounts, IBANs, dates and names.
Licensed under Apache 2.0, like the original model. “LightOn” and “LightOnOCR” are names of LightOn. This Ollama build is not published, endorsed or supported by LightOn. With our thanks to LightOn and to the Qwen team.
Please cite LightOn’s work:
@misc{lightonocr2_2026,
title = {LightOnOCR: A 1B End-to-End Multilingual Vision-Language Model for State-of-the-Art OCR},
author = {Said Taghadouini and Adrien Cavaill\`{e}s and Baptiste Aubertin},
year = {2026},
howpublished = {\url{https://arxiv.org/abs/2601.14251}}
}