Instructions to use Welltech-AI/Drishti-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Welltech-AI/Drishti-2B with Transformers:
# 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Welltech-AI/Drishti-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Welltech-AI/Drishti-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Welltech-AI/Drishti-2B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Welltech-AI/Drishti-2B
- SGLang
How to use Welltech-AI/Drishti-2B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Welltech-AI/Drishti-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Welltech-AI/Drishti-2B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Welltech-AI/Drishti-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Welltech-AI/Drishti-2B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Welltech-AI/Drishti-2B with Docker Model Runner:
docker model run hf.co/Welltech-AI/Drishti-2B
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.
- GitHub (Code, Scripts & Tech Report):
Welltech-AI/Drishti-2B - GGUF + Lossless LoRA Bundle:
Welltech-AI/Drishti-2B-GGUF(1.20 GiB Q4_K_M/1.87 GiB Q8_0) - Specialist LoRAs (PEFT BF16):
Welltech-AI/Drishti-2B-LoRAs - Interactive Demo Showcase:
Welltech-AI/Drishti-2B-Demo(plus Gradio app inhf_space/) - Release Collection:
Drishti-2B (Welltech AI)
Highlights: 2.21B vs. 2Bโ27B & Frontier Models
Evaluation Transparency: All
Drishti-2Bscores were measured directly on our evaluation harness. Competitor entries explicitly noteour(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โ9Bmodels still outperformDrishti-2Bon general STEM, chart-heavy reasoning, and long-context multi-image tasks (Qwen3.5-4BleadsMathVistaat77.1% our / 85.1% card,MMStarat78.3%,ChartQAat85.2%, andBFCL-v3at91.0%;Qwen3-VL-8B/Qwen3.5-9Bscore89.6%โ90.4%onOCRBench). Drishti-2BChartQA(78.8% OFF / 76.8% ON) deliberately stayed conservative because we excluded the GPL-3.0ChartQAtraining split to preserve clean Apache-2.0 commercial deployability.
Architecture & Engineering Lineage
- 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 a0.40 / 0.35 / 0.25soup 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%). - 100%-Lossless
114-Modulellama.cppLoRAs (228/228tensors,0dropped layers): Every LoRA targets strictly the114llama.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. - Zero-Training Rank-64 SVD Task-Vector Adapters:
Both
doc_mmstar_v7(+0.50DocVQA โ95.69%) andtool_bfcl_v7(+0.83BFCL 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 (
9Bdistilled CoT + multi-domain permissive VQA), permissive Indic OCR subsets (5,398balanced anchor+tail samples across 22 scripts), permissive mathematical formula recognition (hme100k+linxy/LaTeX_OCRApache-2.0), and permissive function-calling datasets. - Explicitly Excluded:
ChartQAtrain (GPL-3.0) andUGround(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
Model tree for Welltech-AI/Drishti-2B
Base model
Qwen/Qwen3.5-2B-Base
docker model run hf.co/Welltech-AI/Drishti-2B