DeepMount00 / Smol-OCR-preview

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: May 18 2025
text-generation

Introduction of Smol-OCR-preview

Model Details of Smol-OCR-preview

SmolVLM Base - OCR Fine-tuned

This is a merged version of SmolVLM-Base fine-tuned for OCR tasks. The model was trained using QLoRA on the DeepMount00/ner_training dataset.

Model Details
  • Base Model : HuggingFaceTB/SmolVLM-Base
  • Task : Optical Character Recognition (OCR)
  • Training Method : QLoRA with 4-bit quantization
  • Target Modules : down_proj, o_proj, k_proj, q_proj, gate_proj, up_proj, v_proj
Usage
from transformers import AutoProcessor, Idefics3ForConditionalGeneration
import torch
from PIL import Image

model_id = "DeepMount00/SmolVLM-Base-ocr_base"
processor = AutoProcessor.from_pretrained(model_id)
model = Idefics3ForConditionalGeneration.from_pretrained(model_id)

# Load your image
image = Image.open("path_to_your_image.jpg").convert("RGB")

# Prepare the prompt
messages = [
    {
        "role": "user",
        "content": [
            {"type": "text", "text": "You are a model specialized in OCR"},
            {"type": "image"},
            {"type": "text", "text": "Extract the text from this image"}
        ]
    }
]

# Process inputs
inputs = processor(text=messages, images=[image], return_tensors="pt")

# Generate
with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=512)
    
# Decode and print the response
print(processor.decode(outputs[0], skip_special_tokens=True))

Runs of DeepMount00 Smol-OCR-preview on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About Smol-OCR-preview huggingface.co Model

More Smol-OCR-preview license Visit here:

https://choosealicense.com/licenses/other

Smol-OCR-preview huggingface.co

Smol-OCR-preview huggingface.co is an AI model on huggingface.co that provides Smol-OCR-preview's model effect (), which can be used instantly with this DeepMount00 Smol-OCR-preview model. huggingface.co supports a free trial of the Smol-OCR-preview model, and also provides paid use of the Smol-OCR-preview. Support call Smol-OCR-preview model through api, including Node.js, Python, http.

DeepMount00 Smol-OCR-preview online free

Smol-OCR-preview huggingface.co is an online trial and call api platform, which integrates Smol-OCR-preview's modeling effects, including api services, and provides a free online trial of Smol-OCR-preview, you can try Smol-OCR-preview online for free by clicking the link below.

DeepMount00 Smol-OCR-preview online free url in huggingface.co:

https://huggingface.co/DeepMount00/Smol-OCR-preview

Smol-OCR-preview install

Smol-OCR-preview is an open source model from GitHub that offers a free installation service, and any user can find Smol-OCR-preview on GitHub to install. At the same time, huggingface.co provides the effect of Smol-OCR-preview install, users can directly use Smol-OCR-preview installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Smol-OCR-preview install url in huggingface.co:

https://huggingface.co/DeepMount00/Smol-OCR-preview

Url of Smol-OCR-preview

Smol-OCR-preview huggingface.co Url

Provider of Smol-OCR-preview huggingface.co

DeepMount00
ORGANIZATIONS

Other API from DeepMount00

huggingface.co

Total runs: 1.2K
Run Growth: 870
Growth Rate: 72.99%
Updated:April 25 2024