How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="Welltech-AI/Drishti-2B")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("Welltech-AI/Drishti-2B")
model = AutoModelForMultimodalLM.from_pretrained("Welltech-AI/Drishti-2B", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Drishti-2B Hero Banner

Drishti-2B (by Welltech AI)

Authors: Shashank Rathore & Mayank Rathore (Welltech AI)

Drishti-2B (internal release tag: welltech-vlm-main-v7-soup) is a 2.21B Apache-2.0 open Vision-Language Model built on the standard 24-layer Qwen3.5-2B architecture that matches or beats 4Bโ€“27B models and proprietary frontier APIs across document VQA, OCR/handwritten math, offline 22-script Indic OCR, GUI screen grounding, and local tool-calling workflows โ€” packaged with 4 lossless hot-swappable llama.cpp LoRA cartridges.


Highlights: 2.21B vs. 2Bโ€“27B & Frontier Models

Drishti-2B Benchmark Comparison vs 2B-27B and Frontier

Parameter Efficiency Frontier: DocVQA & OCRBench

Evaluation Transparency: All Drishti-2B scores were measured directly on our evaluation harness. Competitor entries explicitly note our (identical harness & hardware) vs. card (official model card / technical report).

Benchmark Drishti-2B Base Drishti-2B + LoRA Qwen3.5-2B Qwen3.5-4B (our/card) InternVL3.5-4B (card) Qwen2.5-VL-7B (card) GPT-4o (card) Larger Peers
Sarvam IndicOCR (587, 22 scripts) 79.12% (36 loops) 79.39% (21 loops, indic_ocr_v7) 43.1% โ€” โ€” โ€” โ€” Qwen3.8-27B: 49.6% (our, 12ร— larger) ยท LFM3-VL-2B: 24.65% (our)
DocVQA (250, ANLS %) 95.19% 95.69% (doc_mmstar_v7) 93.0% 95.2% / 97.1% 90.9% 95.7% 92.8% Pixtral-12B: 90.7% ยท Gemma 3 27B: 86.6%
OCRBench_full (1,000) 85.5% (855) 86.1% (861, formula_hme_v7) 85.8% 81.8% / 85.0% 83.5% 86.4% (864) 73.6% InternVL3.5-8B: 84.0% ยท Claude 3.5 Sonnet: 78.8%
OCRBench HME (100 math) 78.0% 83.0% (formula_hme_v7) 81.0% โ€” โ€” โ€” โ€” +6.0 pts over Base (77.0% on LoRA re-eval)
MathVista (testmini 1,000) 74.00% (74.60% near) โ€” 70.0% 77.1% / 85.1% 72.7% 68.2% 63.8% Gemma 3 27B: 67.6% ยท Pixtral-12B: 58.0%
ScreenSpot-v2 GUI (318) 88.05% (88.68% v6-p3) โ€” 81.8% 88.6% / 91.2% 84.1% 84.7% โ€” Gemma 4 E2B: 58.7%
MMStar Core (250) 69.20% ON (64.8% OFF) โ€” 71.5% card 78.3% card 65.3% 63.9% 63.9% Ties InternVL3.5-8B: 69.3%
BFCL-v3 Tools (200ร—3: S/M/I) 82.0 / 85.0 / 91.5 (86.17%) 83.0 / 87.0 / 91.0 (87.00%, tool_bfcl_v7) 73.5 / 86.0 / 83.0 87.5 / 93.5 / 92.0 โ€” โ€” โ€” Delivered via zero-training Rank-64 SVD LoRA
Local Pi Coding + Vision (Q8_0, 6 tasks) 94.4% (5/6 OFF, 30.2s) doc 1.0 / hme 1.0 โ€” โ€” โ€” โ€” โ€” Beats LFM3-VL-2B (66.7% OFF / 53.1% MED) by +27.7โ€“+30.2 pts

Honest Limitations (Where Larger Reasoning VLMs Lead)

  • Newer 4Bโ€“9B models still outperform Drishti-2B on general STEM, chart-heavy reasoning, and long-context multi-image tasks (Qwen3.5-4B leads MathVista at 77.1% our / 85.1% card, MMStar at 78.3%, ChartQA at 85.2%, and BFCL-v3 at 91.0%; Qwen3-VL-8B / Qwen3.5-9B score 89.6%โ€“90.4% on OCRBench).
  • Drishti-2B ChartQA (78.8% OFF / 76.8% ON) deliberately stayed conservative because we excluded the GPL-3.0 ChartQA training split to preserve clean Apache-2.0 commercial deployability.

Architecture & Engineering Lineage

  1. Frozen-ViT 3-Way Linear Basin Weight Soup (Welltech v7-soup): $$W_{\text{Drishti-2B}} = 0.40 \cdot W_{\text{v7-p3}} + 0.35 \cdot W_{\text{v7-p2}} + 0.25 \cdot W_{\text{v6-p4}}$$ Training within an identical frozen vision-encoder (ViT 0..15) linear basin lets a 0.40 / 0.35 / 0.25 soup win across all benchmarks simultaneously โ€” eliminating short-prompt regressions (DocVQA 91.62% โ†’ 95.19%) while keeping full reasoning (MathVista 74.0%, MMStar-ON 69.2%, OCRBench HME 78.0%).
  2. 100%-Lossless 114-Module llama.cpp LoRAs (228/228 tensors, 0 dropped layers): Every LoRA targets strictly the 114 llama.cpp-native LM linear layers (self_attn.{q,k,v,o}_proj, mlp.{gate,up,down}_proj, linear_attn.out_proj), avoiding visual/embed/lm_head/fused-DeltaNet layers that trigger dropped tensors during GGUF conversion.
  3. Zero-Training Rank-64 SVD Task-Vector Adapters: Both doc_mmstar_v7 (+0.50 DocVQA โ†’ 95.69%) and tool_bfcl_v7 (+0.83 BFCL mean โ†’ 87.00%) were distilled in seconds with zero gradient steps via Rank-64 SVD on checkpoint task vectors.

Data Provenance & Clean Commercial License Hygiene

Drishti-2B is released under Apache-2.0 and uses strictly permissive data sources (Apache-2.0, MIT, CC BY 4.0, CC BY-SA 4.0, OFL):

  • Included training sources: Permissive STEM/RFT traces (9B distilled CoT + multi-domain permissive VQA), permissive Indic OCR subsets (5,398 balanced anchor+tail samples across 22 scripts), permissive mathematical formula recognition (hme100k + linxy/LaTeX_OCR Apache-2.0), and permissive function-calling datasets.
  • Explicitly Excluded: ChartQA train (GPL-3.0) and UGround (CC-BY-NC).

Quickstart (transformers)

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))

(For local laptop / desktop GPU deployment in 1.20 GiB with sub-millisecond adapter hot-swapping, see Welltech-AI/Drishti-2B-GGUF.)

Downloads last month
19
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Welltech-AI/Drishti-2B

Finetuned
Qwen/Qwen3.5-2B
Finetuned
(786)
this model
Adapters
1 model
Quantizations
1 model

Spaces using Welltech-AI/Drishti-2B 2

Collection including Welltech-AI/Drishti-2B