EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

UVLM: A Modular Python Package for Unified Vision–Language Model Loading, Inference and Comparison

Joan Perez, Giovanni Fusco

Software · 2026-07-09 · 5 (3) · 30

DOI: 10.3390/software5030030 ↗

At a glance

Journal article in Software, published online on 2026-07-09. Written by Joan Perez and 1 co-authors. 15 references. The full text is freely available (open access, CC BY 4.0). Funded by: Agence Nationale de la Recherche.

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Vision–Language Models (VLMs) have emerged as powerful tools for image understanding tasks, yet their practical deployment remains hindered by significant architectural heterogeneity across model families. This paper introduces UVLM (Unified Vision–Language Model), a pip-installable Python (v3.9+) package that provides a unified interface for loading, configuring, and running multiple VLM architectures on custom image analysis tasks. UVLM currently supports two major model families which differ fundamentally in their vision encoding, tokenization, and decoding strategies: LLaVA-NeXT and Qwen2.5-VL. The package abstracts these differences behind a single inference function and eliminates all architecture-specific code from the user’s workflow. UVLM is organized as eight modular Python components (model loading, dual-backend inference, response parsing, consensus validation, batch processing, prompt assembly, model registry, and utilities) and can be deployed in three modes: Google Colab for zero-install cloud access, local Jupyter notebooks for on-premises GPU use, and as a programmatic API for integration into automated pipelines. Key features include a multi-task prompt builder supporting four response types (numeric, category, boolean, text), a consensus validation mechanism based on majority voting, a flexible token budget (up to 1500 tokens) for custom reasoning strategies, and built-in truncation detection. The package is designed for extensibility: adding a new VLM family requires implementing one backend-specific inference section and adding entries to the model registry, without modifying any other module. An illustrative example on 120 street-view images across 16 model configurations is provided to demonstrate the software’s evaluation workflow.

Funding

  • Agence Nationale de la Recherche

Cite

APA

Perez, J., & Fusco, G. (2026). UVLM: A Modular Python Package for Unified Vision–Language Model Loading, Inference and Comparison. Software, 5(3), 30. https://doi.org/10.3390/software5030030

Vancouver

Perez J, Fusco G. UVLM: A Modular Python Package for Unified Vision–Language Model Loading, Inference and Comparison. Software. 2026;5(3):30. doi:10.3390/software5030030

BibTeX
@article{Perez2026,
  author = {Perez, Joan and Fusco, Giovanni},
  title = {UVLM: A Modular Python Package for Unified Vision–Language Model Loading, Inference and Comparison},
  journal = {Software},
  year = {2026},
  volume = {5},
  number = {3},
  pages = {30},
  doi = {10.3390/software5030030}
}
Start for free →