Great read on the local-first architecture! One thing I'm wondering about though: doesn't shifting to locally hosted OCR VLMs and serving models locally significantly increase your infrastructure and inference costs compared to lightweight APIs, especially if you have to provision dedicated GPUs?
That trade-off is real, especially at low volume. I would not provision a dedicated GPU for every pipeline, though. The cost-effective pattern is a cascade: run lightweight CPU OCR first, route only low-confidence or layout-heavy pages to the local VLM, batch requests, quantize the model, and share one inference server across workloads. For sporadic traffic, an API is usually cheaper; for sustained volume, strict data residency, or predictable latency, the amortized local stack can win. Local-first is a control and privacy choice, not automatically the cheapest choice in every workload.
So basically, it boils down to a trade-off between cost and security. Fair enough.
That said, I feel like teams often default to massive models without evaluating whether a 3B or 7B parameter model can easily handle the workload. Since open-source models are built with general purpose scopes to chase benchmarks against top AI labs, businesses can dramatically right-size them by fine-tuning on their specific domain.
Yes, right-sizing is usually the highest-leverage step. I would benchmark the smallest model that passes field-level accuracy and latency SLOs on a domain test set, then try quantization or distillation before adding complexity. Fine-tuning can improve task accuracy, but it does not automatically make inference cheaper; model selection still matters. I would also keep the VLM as an escalation path for layout-heavy or low-confidence pages rather than the default for every document.
Muhammad Azlaan Zubair
Software Engineer | Applied AI Researcher | AI Workflows & Automation
Great read on the local-first architecture! One thing I'm wondering about though: doesn't shifting to locally hosted OCR VLMs and serving models locally significantly increase your infrastructure and inference costs compared to lightweight APIs, especially if you have to provision dedicated GPUs?