Drishti-2B - a compact and powerful multimodal model for documents and OCR
2 min readupdated
The new Drishti-2B model from Welltech-AI is an open Vision-Language Model (a model that understands images and text) based on the Qwen3.5-2B architecture. The 2.21B parameter model is built for document visual question answering (DocVQA), complex handwritten mathematical text recognition (HME), local tool-calling, and high-quality text recognition across 22 Indian scripts. Thanks to a linear weight merging method (weight soup) and a set of plug-in LoRA adapters (small adjustments on top of the base model), it often outperforms much larger counterparts and proprietary APIs with minimal system requirements.
Key features
- Apache-2.0 license: a completely clean commercial license without restrictive datasets like GPL.
- Advanced OCR: high accuracy in recognizing text, formulas, and tables in documents.
- llama.cpp integration: ships with 4 hot-swappable LoRA cartridges for local execution.
- Efficient footprint: just 2.21B parameters with quality comparable to models many times larger.
What you can do
- Data extraction from receipts and invoices: automated structuring of invoice scans and documents into JSON format.
- Mathematical formula recognition: conversion of handwritten formulas from images into LaTeX.
- Local OCR and VQA: running document recognition on local hardware using GGUF and llama.cpp.
- Agent integration: using the model for GUI navigation tasks and local tool-calling.
Example
import torch
from transformers import AutoProcessor, Qwen3_5ForConditionalGeneration
model_id = "Welltech-AI/Drishti-2B"
processor = AutoProcessor.from_pretrained(model_id)
model = Qwen3_5ForConditionalGeneration.from_pretrained(
model_id, torch_dtype=torch.bfloat16, device_map="auto"
)
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": "invoice.png"},
{"type": "text", "text": "Extract vendor, invoice_id, and total_due as JSON."},
],
}
]
text = processor.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = processor(text=[text], images=["invoice.png"], return_tensors="pt").to(model.device)
with torch.inference_mode():
out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))Read more
Details• Architecture: 24-layer Qwen3.5-2B with frozen ViT.
• Benchmarks: DocVQA - 95.69% (with LoRA), OCRBench - 86.1%.
• Formats: Hugging Face transformers, GGUF (1.20 GiB Q4_K_M / 1.87 GiB Q8_0), PEFT BF16 LoRAs.
• Limitations: trails 4B-9B models on general STEM tasks and long multimodal context.










Comments