Local Multimodal LLMs Compared: Testing Four Models with a Vision Projector

    A missing vision projector configuration can leave a locally deployed multimodal model operating in text-only mode. This article explains how to enable image input and compares four models across printed OCR, handwriting recognition, chart interpretation, and screenshot-to-HTML generation, with practical observations on accuracy, GPU memory use, and inference latency.

    1. The Overlooked Vision Projector Configuration

    Many developers deploying large language models locally follow a familiar text-only workflow: start an inference server, load the language model weights, and begin coding, translating, or summarizing. It works well enough that another file in the model directory can easily go unnoticed: the vision projector weights.

    I had been using a mid-sized, 27-billion-parameter model for coding assistance and was happy with its text performance. Yet one question remained: why could my local inference server not recognize images?

    The answer turned up in the inference engine’s documentation—a startup argument I had overlooked:

    1. --mmproj ./model-mmproj-F16.gguf

    The multimodal projector connects the vision encoder to the language model. Without the required weights loaded, the server runs only the language component, leaving the visual input path inactive. The capability was there; the configuration was not.

    Once I discovered the missing setting, I tested all four multimodal models I had available. The comparison covered tasks ranging from text recognition to generating a web page from a screenshot.

    2. How Multimodal Inference Fits Together

    To understand the role of that argument, it helps to look at the three main components of a vision-language model (VLM):

    1. Vision encoder: Processes the input image, typically dividing it into patches and extracting visual features through a Transformer-based vision tower.
    2. Vision projection layer: Maps those visual features into the language model’s representation space so that it can interpret image content. The --mmproj argument specifies the associated weights.
    3. Language model backbone: Receives the combined representations and generates the text response.

    In the deployment setup described here, the weights are distributed across separate files: one for the language model and another for the vision-side projector. Many quick-start tutorials demonstrate only how to load the language model, which can leave users—including me for several months—running a multimodal model in text-only mode.

    A multimodal server launch looks roughly like this:

    1. # Start the multimodal inference server
    2. llm-server \
    3. --model ./chat-model-Q4_K_M.gguf \
    4. --mmproj ./chat-model-mmproj-F16.gguf \
    5. --host 0.0.0.0 --port 8080

    Once the server is running, messages containing image_url can be submitted through an OpenAI-compatible API to provide image input.

    3. Test Design: Four Models, Four Tasks

    The comparison used four representative tasks spanning visual perception and content generation:

    • Task 1: Printed-text OCR. A document screenshot containing mixed Chinese and English text, a table, and a page header tested recognition accuracy and formatting preservation.
    • Task 2: Handwriting recognition. A messy handwritten note tested tolerance for unclear input and the handling of ambiguous characters.
    • Task 3: Chart interpretation. A bar chart with multiple data series required the models to read values, identify trends, and write an analytical conclusion.
    • Task 4: Screenshot-to-web-page generation. A web design screenshot served as input, with runnable HTML and CSS as the required output. This was the most demanding task, combining visual interpretation with code generation.

    The evaluation considered recognition accuracy, instruction following, output stability across repeated runs with the same input, GPU memory consumption, and inference speed.

    All four models ran on the same machine with a consumer GPU, with quantization levels kept as consistent as possible.

    4. Results and Observations

    Printed OCR and Handwriting: Clear Differences Between Models

    The larger models made almost no errors on printed text and generally reconstructed table structures well. Smaller models occasionally returned lines in the wrong order.

    The gap widened on handwriting. Larger models were better at interpreting connected strokes and corrections, but they also sometimes overinterpreted the image, filling in plausible characters that were not actually present.

    Chart Interpretation: Seeing Is Not the Same as Understanding

    All four models could describe the chart’s subject. However, only the two larger models accurately read specific data points and produced logically consistent trend analyses.

    The smaller models frequently hallucinated numerical values, producing descriptions that did not match the image. In this comparison, the results suggested a close relationship between model size and the ability to interpret fine-grained information represented by visual tokens.

    Screenshot-to-HTML: The Most Demanding Task

    Reconstructing a web page from a screenshot requires several connected steps: visual parsing, layout inference, style reconstruction, and code organization.

    The strongest model reproduced the overall layout closely, although spacing, font sizes, and other details still needed manual adjustment. The weakest model generated structurally valid code, but its visual layout differed substantially from the reference.

    One useful approach was to split the task into two stages: first ask the model to describe the layout in terms of a grid, then ask it to generate the code. This noticeably improved visual fidelity.

    Resource Use: More GPU Memory and Higher Initial Latency

    Enabling multimodal inference increased GPU memory consumption by approximately 1–2 GB in these tests.

    Image encoding also noticeably increased time to first token, particularly for higher-resolution inputs. When throughput matters, reducing image resolution or limiting the number of images per request is worth considering.

    5. Practical Recommendations

    The comparison led to four practical takeaways:

    1. Check the documentation before assuming a feature is unsupported. Local inference engines evolve quickly. An apparent lack of multimodal support may be a configuration issue rather than a missing capability.

    2. Match the vision projector weights to the language model version. Mixing incompatible files can produce garbled output or cause the server to fail.

    3. Choose the model for the task. Mid-sized models can be a cost-effective choice for OCR. For chart interpretation and screenshot-based code generation, the larger models delivered more substantial benefits in this comparison.

    4. Treat image preprocessing as part of production deployment. Compression, cropping, and input-resolution limits can be important controls for latency and GPU memory use.

    6. Conclusion

    A single overlooked startup argument was the difference between text-only inference and access to a model’s visual capabilities.

    These four-model tests also showed that enabling image input is only the first step. Printed OCR was relatively forgiving, while handwriting, numerical chart interpretation, and screenshot-to-code generation exposed larger differences in model capability.

    Before dismissing a local model’s image support, check that its vision projector is loaded correctly. Then evaluate it against the tasks you actually need, balancing output quality against memory consumption and latency.