Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

lightonai
/
LightOnOCR-1B-1025

Image-to-Text
Transformers
Safetensors
mistral3
text-generation
ocr
document-understanding
vision-language
pdf
tables
forms
Eval Results
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community
16

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")
  • Notebooks
  • Google Colab
  • Kaggle
LightOnOCR-1B-1025
2.34 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 39 commits
staghado's picture
staghado
davanstrien's picture
davanstrien HF Staff
add new model metadata (#16)
a8a4a06 3 months ago
  • .eval_results
    Update .eval_results/olmocrbench.yaml 3 months ago
  • .gitattributes
    1.63 kB
    Upload lightonocr-banner.png 7 months ago
  • README.md
    7.59 kB
    add new model metadata (#16) 3 months ago
  • added_tokens.json
    707 Bytes
    Upload folder using huggingface_hub 7 months ago
  • chat_template.jinja
    720 Bytes
    Update chat_template.jinja 6 months ago
  • config.json
    2.09 kB
    Fix config default for LM (#12) 5 months ago
  • generation_config.json
    238 Bytes
    Upload folder using huggingface_hub 7 months ago
  • lightonocr-banner.png
    1.07 MB
    xet
    Upload lightonocr-banner.png 7 months ago
  • merges.txt
    1.67 MB
    Upload folder using huggingface_hub 7 months ago
  • model.safetensors
    2.32 GB
    xet
    Upload folder using huggingface_hub 7 months ago
  • notebook.ipynb
    107 kB
    Update notebook.ipynb 5 months ago
  • preprocessor_config.json
    703 Bytes
    Upload folder using huggingface_hub 7 months ago
  • processor_config.json
    208 Bytes
    Upload folder using huggingface_hub 7 months ago
  • special_tokens_map.json
    613 Bytes
    Upload folder using huggingface_hub 7 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload folder using huggingface_hub 7 months ago
  • tokenizer_config.json
    5.56 kB
    Update tokenizer_config.json 6 months ago
  • vocab.json
    2.78 MB
    Upload folder using huggingface_hub 7 months ago