The World's Smallest Document-Specialist VLM โ 256M parameters, runs on a Raspberry Pi, open-source.
SigLIP-B/16 vision encoder + Pixel-Shuffle compressor + SmolLM2-135M decoder. Optimized for edge.
Runs on Raspberry Pi 5, MacBook Air, or any CPU with ONNX export. Over 100 tok/s on CPU.
JSON extraction, key-value pairs, table parsing, OCR, and VQA โ all from a single unified model.
Layout pretrain โ Document understanding โ Instruction tuning on 10K+ synthetic documents.
pip install tinydoc โ Python SDK with Pydantic-typed results. PyTorch and ONNX backends.
Pre-trained weights on HuggingFace Hub. Apache 2.0 license โ free for commercial use.
Image (384ร384)
โ
SigLIP Vision Encoder (93M) โ 576 patches ร 768 dim
โ
Pixel-Shuffle Compressor (scale=3) โ 9ร compression โ 64 tokens
โ
Visual Position Embeddings
โ
SmolLM2 Decoder (135M) โ 30 layers, GQA (9:3 heads), 8192 ctx
โ
Multi-Task Output Heads
โ
JSON / KV Extraction / Table / OCR / QA
| Benchmark | Metric | Score | Status |
|---|---|---|---|
| DocVQA | ANLS | โ | โณ Running |
| FUNSD | F1 | โ | โณ Running |
| CORD | F1 | โ | โณ Running |
| SROIE | F1 | โ | โณ Running |
| PubTabNet | TEDS | โ | โณ Running |
pip install tinydoc โ pypi.org/project/tinydoc
Pre-trained weights โ eulogik/TinyDoc-VLM-256M
Try it live โ eulogik/TinyDoc-VLM Space
Full docs โ GitHub README
Technical report โ coming soon
Follow โ @eulogik