Deploying Multimodal LLMs Locally on Non-NVIDIA GPUs: A Practical Guide

    This article walks through a reproducible workflow for deploying native multimodal large models on non-NVIDIA hardware. It covers runtime selection and version alignment, low-bit dynamic quantization for trillion-scale parameter models, loading the mmproj vision projector, VRAM budgeting beyond weight size, pipeline-first parallelism, and a verification and tuning checklist.

    1. Background: Why Deploy Multimodal LLMs on Non-NVIDIA Hardware

    Native multimodal models are becoming a focal point in the industry. “Native multimodal” means the model learns text, image, video, and other modalities in a unified representation space during pretraining, rather than bolting a separate vision branch onto a pure language model. These models typically offer strong joint reasoning over text and images, but their parameter counts often reach the hundreds of billions, which makes local deployment a high bar.

    Most users rely on cloud APIs to call such models, yet local deployment still offers value that is hard to replace: data never leaves the internal network, the inference path stays controllable, the setup can run offline, and fine-tuning and evaluation are easier to perform. The real difficulty is that inference frameworks optimized for these models usually target mainstream accelerator cards first, so support for other hardware and open-source runtimes tends to lag behind. This article discusses how to complete a reproducible deployment on general-purpose GPUs during this window when support is still immature.

    2. Choosing the Runtime: Branches, Backends, and Version Alignment

    In the early days after a new model is released, the most common pitfall is not insufficient VRAM but a runtime version mismatch. The typical symptoms are that the main branch has not merged the new model architecture, and loading fails with errors such as “unknown architecture,” “missing tensors,” or unsupported operators.

    The pragmatic approach is a three-step alignment:

    1. Confirm whether the runtime recognizes the model architecture. If the main branch does not support it, pick a leading development branch that has already merged support for the model instead of retrying repeatedly on an older version.
    2. Confirm whether the backend covers the target hardware. General-purpose GPUs usually require an open compute backend, and the driver, runtime libraries, and framework build options must be consistent.
    3. Pin the version and record the commit hash to avoid situations where “it ran yesterday but not today.”

    A schematic preparation flow is shown below (it only expresses the steps and is not tied to specific tool names):

    1. # 1. Clone the branch that includes support for the new model and pin the version
    2. git clone <runtime-repo>
    3. git checkout <feature-branch>
    4. git submodule update --init --recursive
    5. # 2. Build for the target backend with the corresponding acceleration options enabled
    6. cmake -B build -DGGML_BACKEND=<open-gpu-backend>
    7. cmake --build build --config Release -j

    3. Quantization Choice: Why Low-Bit Dynamic Quantization Is the Only Viable Option

    A model with hundreds of billions of parameters usually exceeds 600GB in FP16, which neither consumer-grade hardware nor a single data center card can accommodate. Quantization is the only realistic path, but “2-bit” does not mean “just squeeze it down to 2-bit.”

    Take a common dynamic quantization scheme as an example; its name can be broken down as follows: the prefix indicates that this is dynamic quantization (the scaling factor is determined adaptively from per-tensor statistics rather than a globally fixed scale), the middle indicates the approximate bit level, and the suffix indicates a custom quality tier defined by that scheme. In practice:

    • The 2-bit tier can compress weights to roughly one third of the original size, which is the starting point for running very large models locally.
    • Dynamic quantization keeps higher precision for sensitive layers (such as attention output, embeddings, and areas near normalization), which can significantly mitigate the perplexity increase caused by low bits.
    • Differences between “quality suffixes” at the same tier usually come down to whether key layers are protected, so in testing you should prefer versions that include protected layers.

    A capacity example you can check: a model in the 320-billion-parameter class takes roughly 108GB for the main weights after 2-bit dynamic quantization, which a machine with 4×32GB of VRAM can theoretically hold.

    4. Loading the Vision Capability: The mmproj Vision Projection Module

    In open-source runtimes, multimodal capability is typically implemented by two sets of weights:

    • Main model weights: responsible for language understanding, reasoning, and text generation.
    • The vision projection module (commonly called mmproj, short for multimodal projector): responsible for projecting the image encoding output into visual embeddings that the main model can accept. It is essentially the projection layer weights connecting the vision encoder to the language model.

    This file is usually in FP16 precision and on the order of 1GB, but it cannot be omitted: without it the model can still hold a conversation but cannot understand images. It must be specified explicitly when loading, as shown below:

    1. ./build/bin/llama-mtmd-cli \
    2. -m <model-ud-q2.gguf> \
    3. --mmproj <mmproj-f16.gguf> \
    4. -ngl 99 -c 8192 \
    5. --image ./demo.png

    Note that video input depends on whether the runtime has a native video pipeline connected. If the current branch does not support it yet, forcing a video through will usually either treat it as a few image frames or reject it outright. In that case, verify the pipeline end to end with image-text tasks first.

    5. VRAM Budget: Do Not Look at Weight Size Alone

    With 110GB of weights and about 119GB of physical VRAM, there appears to be headroom, but it is actually very tight, because space must also be reserved for:

    • KV cache: proportional to context length, number of layers, and number of KV heads; long-text scenarios can easily consume several GB to over ten GB.
    • Intermediate activations of visual encoding: high-resolution images produce a large number of visual tokens.
    • Compute and communication buffers: temporary tensors under parallel deployment.
    • Runtime and driver overhead.

    A recommended budgeting method:

    1. Available VRAM = physical VRAM × 0.9 (keeping a safety margin)
    2. Demand = quantized weights + vision projection weights + KV cache + activation buffers + runtime overhead

    If demand exceeds what is available, first reduce the context length, cap the image resolution and the number of visual tokens, and then consider offloading some layers to memory (at the cost of throughput).

    6. Parallelism Strategy: Pipeline Parallelism Before Tensor Parallelism

    In a 4-card, 32GB scenario, tensor parallelism requires high-frequency cross-card communication and is sensitive to interconnect bandwidth. Pipeline parallelism splits the model by layers, needs little communication, and is simple to implement, which makes it better suited to deployments that “just barely fit.” The cost is pipeline bubbles and slightly higher single-request latency.

    1. ./build/bin/llama-server \
    2. -m <model-ud-q2.gguf> --mmproj <mmproj-f16.gguf> \
    3. -ngl 99 -c 8192 --parallel 1 \
    4. --device <dev0>,<dev1>,<dev2>,<dev3> \
    5. --split-mode layer --tensor-split 1,1,1,1

    7. Verification and Tuning Checklist

    1. Smoke test: check whether short question-answer exchanges are coherent and whether garbled output or repetition appears, to judge whether quantization quality is acceptable.
    2. Image-text test: switch to three kinds of images containing text, charts, and natural scenes, and check for “describing what it sees” style hallucinations.
    3. Long-text retrieval: plant several facts in a long document and ask questions to test recall, while observing KV cache usage and peak VRAM.
    4. Throughput and latency: record time to first token and output tokens per second separately, and note that concurrency gains are limited under pipeline parallelism.
    5. Stability: run continuously for several hours and watch for allocation failures caused by VRAM fragmentation.

    8. Conclusion

    Deploying native multimodal models on non-NVIDIA hardware is essentially a combination of four engineering tasks: version alignment, quantization choice, VRAM budgeting, and parallelism strategy. Early on, information asymmetry leads to a great deal of trial and error, but as long as you verify each item in the order above, general-purpose GPUs can stably serve multimodal inference for models with hundreds of billions of parameters. If you want to reduce operational complexity, you can also build a unified inference environment on Baidu AI Cloud’s container platform and GPU cloud servers, using object storage to manage weights and monitoring and alerting services to track VRAM and latency metrics.