Local Deployment of Large-Scale Multimodal Models on Non-NVIDIA GPUs

    This article walks through a practical path for deploying a 300B+ parameter multimodal model locally on non-NVIDIA accelerators. It covers choosing a runtime branch that already supports the model architecture, applying dynamic low-bit quantization, loading the separate vision projector (mmproj) module, calculating total VRAM usage, and switching from tensor parallelism to pipeline parallelism. It also includes a testing and tuning checklist plus an optional cloud-based transition path. Readers will learn how to get text and image inference working on domestic accelerator cards without relying on the CUDA ecosystem.

    1. Background: Why Run Very Large Models on Non-NVIDIA Hardware

    A phenomenon-level multimodal model recently appeared in the open-source community. It drew wide discussion while being tested anonymously on an aggregation routing platform, and after its official release it gained attention for native multimodal capabilities. With a total parameter count above 300 billion, it is a typical ultra-large sparse architecture, and it is the first member of its series to natively support unified text, image, and video input.

    Most users opt to call it through the official API, but the value of local deployment remains clear: data never leaves the internal network, it can run offline, per-inference cost is controllable, and it can be fine-tuned for specific business needs. The real difficulty is that when the hardware is outside the mainstream CUDA ecosystem, the model format, quantization scheme, operator support, and VRAM topology all have to be re-validated. Using a domestic accelerator card as an example, this article provides a practical, actionable path.

    2. Runtime Selection: Branch Fit Beats Version Freshness

    The early adaptation pattern for these frameworks is straightforward: the main branch pursues general stability, while the bleeding-edge branch tracks new model architectures. In the early days after an ultra-large model’s release, the main branch often has not yet merged the operators and graph definitions for the new architecture. In that case, you should prioritize a bleeding-edge branch that has already merged support for the model rather than waiting for the main branch to catch up.

    The minimal way to verify whether a branch is usable is a “smoke test” that loads a tiny model from the same architecture family:

    1. # Example: use a small same-architecture model to verify branch support
    2. ./main -m tiny-same-arch.gguf -p "hello" -n 8

    If the small model generates normally, the architecture parsing and operator scheduling chain are working. Running the ultra-large model afterward can significantly reduce troubleshooting costs.

    3. Quantization: The Real Trade-offs of Dynamic Quantization and Low Bit Widths

    Storing 300B+ weights in half precision produces a size on the order of 600 GB, which is hard for a single machine with multiple cards to hold. Quantization is the only realistic path, and the core idea of “dynamic quantization” is to assign different bit widths to different tensors according to their sensitivity: keeping higher precision for critical parts like attention and embeddings, and compressing high-redundancy parts like the feed-forward layers to extremely low bit widths.

    Three engineering facts need to be clear:

    • The lower the bit width, the greater the VRAM savings, but quality degradation is more pronounced on tasks like long-text retrieval and structured output;
    • The “usable length” of a low-bit model is usually shorter than its nominal context length, so the effective window must be measured;
    • The tier suffix in a quantized file’s name represents the tuning strategy of different vendors or teams, and cross-tier comparisons should fix the same evaluation set.

    In practice, a 2-bit dynamic quantization tier can compress 300B-class weights to around 100 GB, opening up room for a four-card setup.

    4. The Key to Multimodal: Separating Main Weights from the Vision Projector

    To run a multimodal model locally, you must understand that its weights come in two parts:

    1. Main model weights: responsible for language understanding, reasoning, and text generation;
    2. Vision projector module (usually named mmproj, i.e., multimodal projector): responsible for projecting image encoding results into visual embeddings the main model can accept. It is essentially the mapping weights that connect the vision encoder to the language backbone.

    This module is generally stored in half precision and is only about 1 GB in size, but if it is missing the model can still converse while being unable to read images. This is the most common beginner failure, “it runs but cannot understand images.” It must be explicitly mounted at startup:

    1. # Example: main weights and vision projector must be loaded together
    2. ./main -m model-ud-q2.gguf \
    3. --mmproj mmproj-f16.gguf \
    4. -ngl 99 -c 8192

    In addition, video capability depends on a working native video input pipeline. If the runtime branch has not connected it yet, you should proactively narrow the test scope rather than misjudging it as a hardware problem.

    5. VRAM Accounting and Parallelism Strategy

    Capacity accounting must cover the “total bill”: weight size + vision module + KV cache + runtime context overhead. Taking 2-bit dynamic quantization as an example, the weights are about 109 GB and the vision module about 1.1 GB. Four 32 GB accelerator cards provide roughly 119 GB of physical VRAM in total, which theoretically fits, but the headroom is very tight.

    At this point you should abandon tensor parallelism and adopt pipeline parallelism: split different layers across different cards, so only activations are passed between cards. This means low communication volume and low requirements on interconnect bandwidth, making it especially suitable for multi-card environments lacking high-speed interconnects. The cost is pipeline bubbles and higher single-request latency, but throughput is acceptable.

    1. # Example: split by layer across four cards (adjust values to the actual layer count)
    2. ./main -m model.gguf --split-mode layer \
    3. --tensor-split 1,1,1,1 -ngl 99

    If VRAM is still insufficient, try the following in order: shorten the context, quantize the KV cache, and offload the vision module and some layers to host memory.

    6. Test Design and Tuning Checklist

    • Short Q&A: verify basic generation, instruction following, and peak VRAM;
    • Long-text retrieval: embed fact points in a long document to test the effective context rather than the nominal length;
    • Image understanding: cover three categories—text recognition, chart reading, and multi-image comparison—to validate the projector chain;
    • Stability: observe VRAM fragmentation and throughput degradation under continuous requests.

    The suggested tuning priority is: context length → batching and concurrency → KV quantization → parallelism split granularity.

    7. A Cloud-Based Supplementary Path

    If local card resources are insufficient, you can use a general cloud-based approach as a transition: use a container platform to host the inference image, use object storage to distribute weights and the vision module, use monitoring and alerting to track VRAM and latency metrics, and use a logging service to consolidate troubleshooting information. Baidu AI Cloud can provide general-purpose container, storage, and monitoring capabilities in these scenarios, supporting a smooth migration from local validation to elastic deployment.

    8. Conclusion

    Deploying an ultra-large multimodal model on non-mainstream acceleration hardware is essentially the coordination of four things: choosing the right runtime branch, using the right quantization tier, completing the vision projector module, and accurately accounting for VRAM while splitting by layer. Once this chain is working, hardware selection is no longer bound by an ecosystem, and local multimodal capability gains engineering reproducibility.