Local Deployment of Large Multimodal Models on Non-NVIDIA GPUs
This article walks through deploying a large open-weight multimodal model in a multi-GPU environment that does not use NVIDIA hardware. It explains how to choose a runtime and branch, how to balance quantization bit-width against quality, why the projection module must be loaded separately, how to budget GPU memory with a practical formula, and how to validate text and image behavior. Readers will also find guidance on pipeline parallelism and on standardizing environment reproducibility, observability, and rollback.
1. Background: Why Move Inference Off a Single Hardware Ecosystem
Open-weight models released in the past year or two often have tens of billions to hundreds of billions of parameters, and native multimodality is increasingly standard: text, images, and even video can be accepted as a unified input. The capability gains are obvious, but so are the barriers to adoption. Most users rely on hosted APIs, and the moment inference has to run in their own environment, they hit three walls: whether the runtime supports the architecture, whether accuracy after quantization is acceptable, and whether the weights fit in memory.
The first wall is the software stack. It takes time for a new architecture to land in open-source runtimes, and the mainline branch often lags behind the model release, so you need a branch that has already merged support or a community-maintained fork. The second wall is weight size. For a model in the roughly 320-billion-parameter class, half-precision weights are enormous and low-bit quantization is mandatory. The third wall is hardware choice. Beyond mainstream NVIDIA accelerators, there are accelerators from other vendors and unified-memory processor platforms. They share a common trait: large memory capacity and friendly cost per unit, but uneven software ecosystem maturity, so operator coverage and quantization format support must be verified item by item.
This article addresses a general problem: how to run a natively multimodal open-source model in a non-NVIDIA multi-GPU environment and perform basic text and image validation.
2. Runtime and Branch Selection: Confirm “Can It Run” Before “How Fast”
Reverse the deployment order: pick the runtime first, then the weights, then size up the hardware.
Three things determine whether a runtime is usable: whether the target model architecture has been merged, whether the required quantization format is implemented, and whether the multimodal input path is wired up. Missing any one of them means rework later. A common situation is that the mainline branch does not yet support a new architecture while a cutting-edge development branch does; in that case, prefer the branch that contains the support and pin a reproducible commit to avoid “worked yesterday, broken today.”
A schematic check flow can be written as pseudocode:
1. Pull the runtime branch that contains support for the target architecture and pin the version2. Run one forward pass on a tiny sample: load only the config and vocabulary to confirm the architecture parses correctly3. Load the quantized weights and record load time and peak GPU memory4. Load the multimodal projection module separately and run a small image5. Only after all of the above pass, move on to full load testing
The more cutting-edge the branch, the higher the regression risk. Production environments should put the branch version, the quantization file hash, and the driver version into configuration management together so the setup can be rolled back.
3. Choosing a Quantization Tier: Balancing Size, Accuracy, and Decode Speed
Low-bit quantization trades accuracy for space. A 2-bit tier can compress weights to roughly one third of the original size, but activation outliers get amplified, and long-text inference and structured output degrade more easily. Dynamic quantization schemes apply different bit widths and grouping strategies to different tensors, keeping higher precision for sensitive layers and thus reducing quality loss at the same size. Quantized artifacts with suffixes like “dynamic” and “XL tier” are typically the result of the community making one round of trade-offs between size and quality, and they are worth trying first when memory is tight.
Recommendations:
- Ample memory: prefer the 4-bit to 8-bit tiers, which stay closest to the original weights;
- Borderline memory: choose a dynamic 2-bit tier and plan a small-scale quality regression;
- At any tier, run the same fixed set of questions before and after, and watch three metrics: factuality, instruction following, and long-context retrieval.
4. The Multimodal Path: Why the Projection Module Must Load Separately
Open-source runtimes usually split the multimodal design into two parts: the main model weights handle language understanding and generation, while a small projection module (on the order of 1GB) maps image encoding results into the main model’s embedding space. It only “translates” and does not participate in language reasoning, so it can stay in half precision without quantization.
Three pitfalls to watch for:
- A projection module whose version does not match the main model: loading succeeds but the output is garbage;
- Image preprocessing sizes that do not match the model’s expected tiling strategy, causing an abnormal number of visual tokens and a memory spike;
- The video path is not connected yet, so passing in video produces an unsupported error; narrow validation to text and images.
5. Memory Budget: Turning “It Fits” into “It Runs Stably”
Take roughly 110GB of weights plus the projection module on four 32GB accelerators (about 128GB total). The paper margin is about 18GB, but real usage also stacks on the KV cache, intermediate tensors in the compute graph, communication buffers, and runtime overhead. The KV cache grows linearly with context length and concurrency, and long-context scenarios can easily consume the entire margin.
A practical budgeting method:
Available memory = physical memory × 0.9 (reserve for fragmentation and driver overhead)Weight usage = quantized main model size + projection module sizeKV cache ≈ layers × 2 × hidden dimension × context length × concurrency × bytes per elementSafety condition: if weight usage + KV cache + reserve ≥ available memory does not hold, reduce context or concurrency first
When a single machine cannot hold everything, pipeline parallelism is the natural choice: split different layers across devices so that only activations pass between them. The communication volume is far smaller than with tensor parallelism, and the requirement on inter-device interconnect bandwidth is lower, which suits scenarios that stack capacity across multiple cards. The cost is utilization loss from pipeline bubbles and higher single-request latency, so it fits throughput-first batch scenarios better.
6. Validation Plan: Retrieval for Text, Reference Resolution for Images
On the text side, use two kinds of cases: short Q&A to verify instruction following and format stability; long-document retrieval to verify the ability to locate details within a long context, for example by embedding several unrelated facts and then asking targeted questions. On the image side, use three kinds: single-image attribute recognition, text extraction from an image, and multi-image comparison with reference resolution. Prepare 5 to 10 fixed samples for each kind, record outputs and peak memory to form a baseline, and regress directly against it whenever the quantization or branch changes.
7. Practical Recommendations
If an enterprise wants to host this kind of multimodal inference in its own environment, it can offload the complex parts to platform capabilities: use a container platform to pin runtime and driver versions, object storage to host weights and quantized artifacts, monitoring and alerting to track memory and latency metrics, and a logging service to accumulate failure samples. The general capabilities Baidu AI Cloud provides in such scenarios standardize three things: reproducible environments, observable resources, and rollbackable versions, so teams can focus on model quality and business integration instead of repeatedly resolving environment conflicts.
