---
license: apache-2.0
base_model:
- Qwen/Qwen3.5-2B
pipeline_tag: image-text-to-text
tags:
- drishti
- vision
- multimodal
- vlm
- ocr
- indic-ocr
- docvqa
- gui-grounding
- qwen3_5
- apache-2.0
- weight-soup
library_name: transformers
---
# 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`](https://github.com/Welltech-AI/Drishti-2B)
- **GGUF + Lossless LoRA Bundle:** [`Welltech-AI/Drishti-2B-GGUF`](https://huggingface.co/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`](https://huggingface.co/Welltech-AI/Drishti-2B-LoRAs)
- **Interactive Demo Showcase:** [`Welltech-AI/Drishti-2B-Demo`](https://huggingface.co/spaces/Welltech-AI/Drishti-2B-Demo) *(plus Gradio app in `hf_space/`)*
- **Release Collection:** [`Drishti-2B (Welltech AI)`](https://huggingface.co/collections/Welltech-AI/drishti-2b-welltech-ai-6b0dd0d45fbfa1be10e41592)
---
## Highlights: `2.21B` vs. `2B–27B` & Frontier Models
> **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`)
```python
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`](https://huggingface.co/Welltech-AI/Drishti-2B-GGUF).)*