A Practical Guide to Deploying Native Multimodal Large Models on Heterogeneous Accelerator Cards
This article explores the practical steps for deploying native multimodal large language models (LLMs) on non-mainstream or heterogeneous accelerator cards. It covers key aspects such as software stack compatibility, weight capacity planning, quantization precision, multimodal projection layers, and multi-card parallel strategies. Using a generic scenario of deploying a model on four 32GB accelerator cards, the guide outlines hardware and software selection principles, capacity estimation, deployment workflows, and testing methodologies to help developers achieve reliable local inference verification in constrained environments.
When implementing native multimodal large models, compute hardware options extend beyond mainstream accelerators. Many teams face a common challenge: can a viable local inference verification be achieved using only non-mainstream accelerator cards, multiple professional cards with moderate memory, or by reducing reliance on a single hardware ecosystem? The answer is yes, but the problem must be broken down into software stack compatibility, weight capacity, quantization precision, multimodal projection layers, parallel strategies, and testing methodologies. This article uses a generic practice of “deploying a native multimodal large model on four 32GB accelerator cards” to illustrate the selection logic and deployment process, without referencing specific brands or products.
1. Background and Goal Definition
The key difference between native multimodal models and text-only models is that the former must process language tokens and image/video inputs, projecting visual features into the language model’s embedding space. Therefore, deployment is not simply running a single weight file; it involves at least two components:
- Main model weights: Responsible for language understanding, reasoning, and text generation.
- Multimodal projection module: Responsible for projecting image encodings into visual embeddings that the main model can receive.
Multimodal support in open-source inference frameworks is evolving rapidly. Often, the main branch may lack full support for new models, while cutting-edge branches already offer basic capabilities. Before deployment, verify that the framework branch, model structure, quantized weights, and projection layers match. If only verifying text capabilities, visual projection can be ignored; if verifying image input, both the main weights and the accompanying projection weights must be prepared.
The goal here is not to pursue maximum throughput, but to complete three types of verification under limited memory: basic short-answer functionality, long-text retrieval performance, and image input usability. Video input is excluded from the first round because some inference framework frontends have not yet integrated native video processing pipelines; forcing this verification can easily misattribute framework issues as model capability issues.
2. Hardware and Software Selection Principles
Hardware-wise, four 32GB accelerator cards provide a combined physical memory of about 119.4GB. The original weights are around 320B parameters. After dynamic 2-bit quantization, the main weights are roughly 108.7GB. Adding the ~1.13GB FP16 visual projection layer brings the total to about 110GB. Theoretically, this fits into memory, but actual inference requires space for KV cache, intermediate activations, framework runtime, and batch processing, leaving a tight margin. The deployment principle should be “feasible capacity first, performance second.”
Software-wise, focus on three points:
- Whether the inference framework supports the target model structure.
- Whether the quantization scheme matches the framework branch.
- Whether the multi-card parallel mode suits cross-card memory-constrained scenarios.
On non-mainstream accelerator cards, the graphics API path usually offers better cross-hardware compatibility than vendor-specific compute stacks. The reason is straightforward: vendor-specific stacks often lag in adapting to new models, drivers, and operating systems, leading to high deployment costs. Although the graphics API path might sacrifice some peak performance, it is easier to get the model running initially. For proof-of-concept projects, getting it running first and optimizing later is more realistic than chasing peak performance from the start.
3. Capacity and Quantization Planning
Capacity estimation cannot rely solely on the weight file size. A practical VRAM budget can be expressed as:
Total VRAM Requirement ≈ Main Weights + Visual Projection Layer + KV Cache + Intermediate Activations + Framework Overhead + Batch Margin
KV cache correlates with context length, batch size, number of layers, and hidden dimensions. Long-text retrieval tests will significantly increase KV cache usage, so do not use peak memory from short Q&A to infer long-context feasibility. It is recommended to start with a smaller context and a single batch, then gradually increase the context length while observing peak memory changes.
For quantization, the dynamic 2-bit tier compresses size while retaining precision in critical layers, but it is not “lossless.” During deployment, ensure that the quantized files match the operator support of the framework branch to avoid situations where weights load successfully but inference results are abnormal. The visual projection layer should be kept in FP16 precision, as this module is relatively small, directly impacts multimodal alignment, and offers limited compression benefits at a higher risk.
The schematic configuration below illustrates parameter relationships and does not represent a specific framework API:
model:main_weights: /models/main-dynamic-2bit.weightsvision_projection: /models/vision-projection-fp16.weightsruntime:backend: graphics_apiparallel_mode: pipelinedevices: [0, 1, 2, 3]context_size: 8192batch_size: 1kv_cache_dtype: fp16enable_vision: true
4. Deployment Process and Pre-checks
Complete the following checks before deployment:
- Confirm that the operating system, drivers, and graphics API runtime versions meet framework requirements.
- Ensure all four cards are correctly recognized by the runtime and not occupied by other processes.
- Verify the integrity of the main weights and visual projection layer files, and confirm that the quantization tier matches the framework branch.
- Ensure the framework’s cutting-edge branch includes support for the target model structure.
- Perform a loading test with an extremely small context and a single card or single process before switching to multi-card pipeline parallelism.
The core of multi-card pipeline parallelism is splitting the model by layers across different devices, where the output of the previous segment becomes the input for the next. It is more suitable for cross-card memory splicing than tensor parallelism because its communication pattern is relatively simple, though it introduces pipeline bubbles and increased first-token latency. For verification deployments, this is an acceptable trade-off.
After launch, observe whether issues like excessive memory peaks, unsupported operators, or missing projection layers occur during the loading phase. If loading succeeds but the output is garbled, prioritize checking whether the quantized weights match the framework version. If image inputs cause errors, check the visual projection layer path and image preprocessing pipeline first. If memory overflows during the long-text phase, reduce the context length or batch size instead of blindly adding devices.
5. Test Design and Observation Metrics
The first round of testing should be divided into three groups:
- Short-answer basic functionality: Verify if the model loads normally, generates coherent text, and stops output correctly.
- Long-text retrieval: Input longer documents, ask the model to locate key information, and observe context truncation, position bias, and KV cache growth.
- Image input: Use images of different resolutions to verify if the visual projection layer is effective, and record peak memory and preprocessing time.
Video input is not included in the first round because some framework frontends have not yet integrated native video processing pipelines. In this case, clearly document it as “unverified” rather than “unavailable” to avoid mistaking framework limitations for model capability issues.
6. Common Issues and Troubleshooting Suggestions
Common pitfalls include: the framework’s main branch not supporting the new model structure; quantized files mismatching the cutting-edge branch operators; visual projection layer failing to load, causing image input degradation; uneven multi-card splitting causing single-card memory overflow; excessive context length causing KV cache spikes; and overly large batch sizes causing intermediate activations to exceed limits. When troubleshooting, follow the “minimum runnable unit” principle: start with a single card and small context, then move to multiple cards with a small context, and finally gradually add long-text and image inputs. Change only one variable at a time and record peak memory, first-token latency, and generation speed.
7. Conclusion
Deploying native multimodal large models on non-mainstream accelerator cards is feasible, provided there is a correct understanding of the complete chain: “main weights + visual projection layer + multi-card parallelism + VRAM budget.” For memory-constrained environments, a combination of dynamic low-bit quantization, FP16 visual projection layers, and pipeline parallelism is a relatively safe approach. Deployment should first get the text running, then verify images, and finally evaluate long-text. Ensure version matching and capacity feasibility first, then optimize throughput and latency. This approach yields reproducible and explainable inference verification results on heterogeneous hardware.
