Deploying Native Multimodal LLMs on Non-Mainstream GPU Ecosystems
This article explains how to deploy native multimodal LLMs on non-mainstream GPU ecosystems. It covers framework and branch selection, quantization and VRAM budgeting, the multimodal projection module, parallelism choices, environment preflight checks, layered testing, common pitfalls, and enterprise deployment practices. The goal is a reproducible deployment baseline that keeps data local, controls cost, and preserves stack portability.
1. Background: Why Move Multimodal LLMs to Non-Mainstream Cards
Over the past year, the open-source community has seen a notable shift: a new generation of open-source large models is beginning to treat native multimodality as a default capability, rather than attaching a separate vision branch. Native multimodality means that during pretraining, text, images, video, and other modalities are unified into the same representation space, so inference no longer requires a separate pipeline for each modality. Such models have previously been made available for testing anonymously on several aggregator API platforms, and community feedback has generally focused on improvements in multimodal understanding quality.
However, most users can only access these models through hosted APIs. For teams that cannot let data leave their domain, need stable throughput with long contexts, or want to push single-inference cost to the minimum, local deployment remains a hard requirement. The difficulty is that mainstream open-source inference frameworks have long built their operator libraries and backend optimizations around the general-purpose GPU compute ecosystem. Once you switch to another class of general-purpose accelerator cards, including Chinese accelerator cards and general-purpose compute cards from another vendor, gaps may appear in operator coverage, quantization kernels, and communication libraries. This article uses an open-source multimodal model as a sample and presents a reusable implementation path.
2. Framework and Branch Selection: Confirm It Runs Before Optimizing Speed
For local deployment, the first question is not performance but whether the model architecture is recognized by the parser. A practical approach is to validate in three layers:
- Main branch: Confirm whether the stable main branch has merged the model’s architecture definition, including attention variants, positional encoding, expert routing, and so on. If it has not, you must switch to a frontier development branch and accept that its interfaces may be unstable.
- Multimodal support: Confirm whether that branch has connected the visual encoding path and whether it supports video input. Many branches complete only the image path at this stage, while the video path is not yet connected. This must be explicitly written into the scope during solution design to avoid rework later.
- Quantization format compatibility: Confirm that the list of quantization types supported by the framework matches the quantized artifacts you plan to use.
A pragmatic rule is to choose the intersection of “branch already supports it” and “quantized artifact already released”, rather than the latest main branch. The benefit of a frontier branch is availability; the cost is regression risk. Therefore, always pin the branch commit hash instead of using a floating tag:
# Record and pin the version for reproducible environmentsgit rev-parse HEAD > baseline.commit
3. Quantization and VRAM Budget: Do the Math Before Deployment
Low-bit quantization is the only realistic path to running very large models locally. For example, a common community dynamic quantization scheme can usually be broken down into three parts in its name: the prefix indicates “dynamic quantization” (bit width is selected adaptively based on tensor sensitivity rather than using a uniform bit width across all layers), the middle indicates the approximate bit-width tier (such as the 2-bit tier), and the suffix indicates the publisher’s tier identifier.
The key is budget accounting. Assume the original weights are about 320B parameters. After 2-bit-tier dynamic quantization, the main weight volume can be compressed to roughly 108.7 GB. Add a vision projection weight of about 1.13 GB, and the total footprint is about 110 GB. If you use four accelerator cards with 32 GB VRAM each, the total physical VRAM is about 119.4 GB, which may look sufficient. But you must deduct the following hidden overheads:
- KV Cache: grows linearly with context length and concurrency; long-text scenarios can consume several GB to more than ten GB;
- Compute buffers and graph memory: temporary operator tensors and communication buffers;
- Framework and driver residency: each card usually has a fixed baseline footprint;
- Fragmentation and alignment overhead: after multi-card splitting, layers may not divide evenly, leaving idle gaps.
Therefore, it is advisable to estimate “usable VRAM” as 80% to 85% of physical VRAM, then work backward to the maximum context length and concurrency.
4. Multimodal Projection Module: The Second Weight File That Is Easy to Overlook
Multimodal inference in this type of framework usually requires two weight sets working together:
- Main model weights: responsible for language understanding, reasoning, and text generation;
- Companion projection module weights (commonly named with an mmproj prefix in the community, where F16 denotes half precision): responsible for projecting image encoding results into visual embeddings that the main model can accept, i.e., the “translation layer” that aligns visual representations with language representations.
This file is small, on the order of about 1 GB, but without it, image input will fail directly or degrade to a text-only model. In practice, three pitfalls are most common: first, version mismatch, where the projection module and main model come from different generations and dimensions do not match; second, incorrect loading order, as some implementations require the projection module to be loaded after the main model; third, implicit conversion overhead caused by inconsistent precision. It is recommended to manage both as a single indivisible “deployment unit” with version binding.
5. Parallelism Strategy: Choosing a Splitting Method for Multiple Cards
In a single-machine multi-card scenario with limited inter-card interconnect bandwidth, pipeline parallelism (splitting by layer, with each card handling a continuous set of layers) is usually better than tensor parallelism. The latter has high requirements for inter-card bandwidth and the maturity of collective communication libraries, and on non-mainstream ecosystems it is more likely to encounter missing communication backends or performance collapse. The cost of pipeline parallelism is bubbles, which need to be filled with sufficient batching and continuous requests.
When splitting, try to balance the number of layers on each card and account for bursty workloads such as visual encoding, so that one card does not become a hot spot.
6. Environment Preparation and Preflight Checklist
# 1) Accelerator card and driver visibilityaccel-smi # Check card count, VRAM, temperatureaccel-smi topo # Check inter-card interconnect topology# 2) Align runtime and operator library versionsldd ./infer-server | grep -i runtime# 3) Minimal single-card validation (run a small model first, then the large model)./infer-server --model tiny.gguf -ngl 99 -c 2048# 4) Formal launch: main weights + projection module + pipeline parallelism./infer-server \--model main-ud-q2.gguf \--mmproj mmproj-f16.gguf \-ngl 99 \-c 32768 \--split-mode layer \--host 0.0.0.0 --port 8080
The core principle of preflight checks is to scale up step by step: driver → single-card small model → multi-card small model → full model. Skipping any level will multiply the cost of fault isolation.
7. Layered Testing: Breaking “Quality” into Attributable Metrics
It is advisable to design test cases in four layers, changing only one variable at each layer:
- Short text answers: Verify basic functionality and format following, with attention to time to first token and decoding stability.
- Long-text retrieval: Bury several facts in a long document and check mid-context recall. This is the real differentiator for long-context capability.
- Image understanding: Single-image description, chart reading, and multi-image comparison to verify the alignment quality of the projection module.
- Stress and stability: Increase concurrency at fixed increments and observe whether the VRAM curve rises monotonically (to detect cache leaks) and where the throughput inflection point appears.
If the video path is not yet connected in the frontier branch, it should be explicitly excluded and marked as “out of scope” in the test report rather than left blank.
8. Common Pitfalls and Tuning Priorities
- VRAM overflow: Lower the context length first, then concurrency, and only then consider lower-bit-width quantization.
- Throughput far below expectations: First check whether inference has degraded to CPU-only (
-nglnot effective) and whether batching is not enabled. - Image errors: Most often caused by a missing projection module or a version mismatch.
- Accuracy anomalies: Low-bit quantization is more sensitive to math and code tasks; keep a higher bit-width tier for such scenarios.
- Reproducibility: Pin the branch commit, quantization artifact hash, and driver and runtime versions to form a deployment baseline.
9. Enterprise Deployment Recommendations
For teams with strict data compliance requirements and elastic scaling needs, a combination of “local inference + general cloud capabilities” can be adopted: keep model weights and business data on-premises or in a private environment, use object storage to archive model versions, use logging and monitoring/alerting to track latency, throughput, and VRAM headroom, and use a container platform to pin environments and support canary releases. On cloud platforms that offer heterogeneous compute, object storage, container platforms, logging, and monitoring, these generic capabilities can usually be combined on demand, so the inference stack remains portable without binding to a specific hardware ecosystem.
10. Summary
Deploying native multimodal LLMs on non-mainstream GPU ecosystems can be summarized in four points: choose the intersection of branches, leave budget headroom, bind the projection module to the main weights, and prefer pipeline parallelism. Hardware differences mainly add adaptation cost at the operator and communication layers, while the engineering benefits are clear: data stays in domain, cost is controllable, and the stack is portable. As the community continues to adapt heterogeneous backends, this path will mature quickly and is worth starting to build deployment baselines for now.
