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

    This article walks through a practical path for deploying a native multimodal ultra-large model locally on four general-purpose GPUs with 32GB of memory each, using an open-source inference framework. It covers pipeline parallelism versus tensor parallelism, memory budget calculations, aggressive quantization and the multimodal projector (mmproj) module, a pre-flight environment checklist, layered testing methods for text, image, and video, and common pitfalls with workarounds. The focus is not just on getting the model running, but on systematically reducing troubleshooting costs when the ecosystem support lags behind the model architecture.

    1. Background: Why Run Ultra-Large Models on Non-Mainstream Accelerators

    Over the past two years, the capability boundary of open-source large models has kept expanding. Parameter counts have grown rapidly from the tens of billions to the hundreds of billions, and the models have moved from pure text to native multimodal modeling that unifies text, images, and video. The stronger the capability, the higher the deployment barrier: a model at the 300-billion-parameter level still occupies roughly hundreds of gigabytes after aggressive quantization, which a single GPU’s memory simply cannot hold.

    Most developers’ first instinct is to pick the accelerator with the most mature ecosystem and the broadest operator coverage. In practice, however, hardware supply, cost structure, existing data center assets, and localization requirements often force teams to deploy on other types of accelerator hardware. This article describes a general path: deploying a native multimodal ultra-large model with an open-source inference framework on four general-purpose GPUs with 32GB of memory each, and getting both text and image tasks working.

    The conclusion up front: this path works, but it is “frontier exploration” rather than “stable production.” Open-source frameworks clearly lag behind the latest model architectures, and the available choices for quantization schemes and parallelism strategies are far more limited than in a mature ecosystem, so hitting problems is the norm. That is why the focus here is not only on “how to get it running,” but more on “how to systematically reduce the cost of troubleshooting.”

    2. Overall Solution Design

    2.1 Hardware and Parallelism Strategy

    The final configuration uses four general-purpose accelerator cards with 32GB of memory each, for about 119.4GB of physical memory in total. On the model side, tensor parallelism is not used; instead, pipeline parallelism is applied: several layers of the model are split across different cards, and only activations are passed between cards.

    There are three reasons for choosing pipeline parallelism over tensor parallelism:

    • Better compatibility. Tensor parallelism requires operators to perform high-frequency reduction communication across cards, which places extremely high demands on the communication library support of non-mainstream hardware; pipeline parallelism performs a single data transfer at layer boundaries, which is far less demanding on the communication backend.
    • Higher memory utilization. Under pipeline parallelism, each card holds “several complete layers,” so there is no uneven sharding or redundant caching as commonly seen with tensor parallelism.
    • Simpler implementation. Open-source frameworks usually only require specifying the number of layers per card, with no complex topology configuration.

    The cost is the pipeline bubble: when only one request is flowing through the pipeline, some cards sit idle. The mitigation is to raise concurrency so that multiple requests fill the pipeline; in single-machine offline batch processing scenarios, this cost is usually acceptable.

    2.2 Memory Budget Calculation

    A memory budget must be calculated before deployment; this is the key to avoiding “failure at 90% loaded.” The formula can be simplified as:

    1. Total demand ≈ quantized main model weights + vision projection module weights + KV Cache + runtime context overhead
    2. Available = memory per card × number of cards × safety factor (0.85–0.9 recommended)

    In the scenario of this article: the aggressively quantized main model weights are about 108.7GB, and the vision projection module is about 1.13GB, for roughly 110GB in total; after applying the safety factor, available memory is about 101–107GB. This means the framework’s layer offloading capability must be relied on to place a small number of layers and the KV Cache into host memory, or the context length must be compressed further. In practice, it is advisable to reserve more than 10% headroom; otherwise, long-context scenarios can easily trigger memory overflow.

    3. Two Key Components: Quantized Weights and the Vision Projection Module

    3.1 Dynamic Quantization: Why the “2-bit Tier” Is Not Simple Truncation

    The core of aggressive quantization (commonly called the 2-bit tier in the industry) is not uniformly truncating every weight to 2 bits, but dynamically selecting different effective bit widths and grouping granularity for different layers and tensors: keeping higher precision for sensitive attention layers, pushing highly redundant feed-forward layers to extremely low bit widths, and using group scaling factors and zero-point correction to suppress error accumulation.

    A direct consequence is that the same “2-bit tier” can differ significantly in size and quality across quantization schemes. Three points matter when choosing: whether it has been specifically calibrated for the target model architecture, whether intermediate tiers (such as 3-bit or 4-bit) are available for fallback, and whether reproducible evaluation data is provided. Using the lowest tier directly in production is not recommended; quality loss should first be validated on the business’s own evaluation set.

    3.2 The Role of the Multimodal Projection Module

    A native multimodal model requires two weight packages during inference:

    • Main model weights: responsible for language understanding, reasoning, and text generation;
    • Multimodal projector weights (commonly called mmproj): responsible for mapping the features output by the vision encoder into embedding vectors the main model can accept. This is essentially a set of connector/projection layer parameters, usually released at half precision and only around 1GB in size.

    A common misconception is that “the main model alone can read images.” In fact, without the projection module, the framework either refuses to load image input outright or degrades into a pure text model. Another misconception is version mismatch: the projection module must come from the same model family and the same architecture version as the main model; mixing across versions leads to embedding dimension mismatch and a load failure.

    4. Environment and Pre-Flight Checklist

    Before formally loading, it is advisable to confirm the following items in order, which can filter out more than 80% of low-level failures:

    1. Framework branch capability: confirm whether the current mainline of the inference framework in use already supports the target model architecture; if not, switch to a frontier branch that includes support for the model, and accept its instability.
    2. Driver and runtime stack: confirm that the accelerator driver, the general compute runtime, and the compiler toolchain versions are mutually compatible, and that the framework’s prebuilt artifacts match the target hardware architecture.
    3. Weight integrity: verify the file sizes, shard counts, and checksums of the main model and the projection module to avoid silent corruption caused by interrupted downloads.
    4. Quantization format compatibility: confirm that the specific quantization format variant is recognized by the current branch, and prepare a higher-bit-width fallback version if necessary.
    5. Context and batch size: start with a minimal context (such as 2048) and a single concurrency, verify the pipeline works, then scale up gradually.

    Illustrative launch parameters (only expressing the meaning of the parameters, not representing any specific product interface):

    1. inference framework executable
    2. --model path to quantized main model weights
    3. --mmproj path to multimodal projection module
    4. --tensor-split layer allocation ratio per card
    5. --ctx-size 2048
    6. --batch-size 1
    7. --n-gpu-layers number of layers offloaded to the accelerator

    5. Testing Method and Observations

    5.1 Text Capability

    Testing falls into two categories. The first is short Q&A, used to verify the basic pipeline: whether instruction following, format constraints, and multi-turn context retention work properly, while observing first-token latency and decode throughput. The second is long-text retrieval, locating a specific fact within material of tens of thousands of words or more and summarizing it, used to verify attention effectiveness under long context and KV Cache pressure. In experience, aggressive quantization has limited impact on short Q&A but degrades more noticeably on precise long-text retrieval, numerical computation, and multi-step reasoning, so long-context scenarios should keep a higher-precision version as a reference.

    5.2 Image Capability

    Image testing should cover three levels of difficulty: recognition and description of a single clear object, document understanding containing text and charts, and multi-image comparison with fine-grained counting. Also record image preprocessing time—on non-mainstream hardware, the vision encoding stage is often the main source of latency rather than the language decoding stage.

    5.3 Video Capability

    As of the writing of this article, the frontier branch in use has not yet connected the native video input pipeline, so video testing is deferred. This is a typical state of the current open-source ecosystem: model capability, framework support, and quantization artifacts are not in sync. When designing an evaluation plan, first confirm “whether the framework has already enabled that modality,” otherwise the test conclusions are invalid.

    6. Common Pitfalls and Workarounds

    • Renaming without re-architecting: directly reusing deployment scripts from a mature ecosystem while ignoring missing operators and memory layout differences is the most common starting point of failure.
    • Ignoring the projection module version: this leads to successful loading but image input being silently ignored.
    • Zero memory headroom: overflow under long context or high concurrency, manifesting as the process being forcibly terminated rather than a clear error.
    • Offloading everything to host memory: it can run, but throughput drops by an order of magnitude, which requires a trade-off.
    • No reference baseline: without a higher-precision version and cloud API results for comparison, it is impossible to tell whether the quality degradation comes from quantization or from the prompt.

    7. Conclusion and Selection Advice

    Deploying ultra-large-scale multimodal models on non-mainstream accelerator hardware is entirely feasible from an engineering standpoint. The key is three things: first, do a memory budget and leave enough headroom; then confirm the framework branch and quantization artifacts support the target architecture; finally, use layered testing to locate whether the bottleneck is in vision encoding or language decoding.

    For teams pursuing stable delivery, a hybrid strategy is recommended: route sensitive workloads to cloud model services or managed inference capabilities, and use local deployment for workloads where data cannot leave the domain, offline batch processing, and cost-controlled always-on loads. At the same time, version-manage model weights and quantization artifacts in object storage, use a container platform to unify the runtime environment, and use logging services and a monitoring and alerting system to track first-token latency, throughput, and memory usage. If domestic compute is involved, the general capabilities of Baidu AI Cloud in heterogeneous compute scheduling and model servitization can be considered first to reduce adaptation costs.