A Practical Guide to Deploying Multimodal LLMs on Non-Mainstream Accelerator Hardware

    This guide walks through deploying multimodal large language models on non-mainstream AI accelerators. It covers how to verify three levels of compatibility before deployment, how to budget per-GPU memory using consistent capacity units, why low-bit quantization is more than file compression, how to approach multi-GPU tensor and layer sharding, and how to validate deployments in staged tests covering text, long-context retrieval, image pipelines, and sustained operation. The article concludes with a framework for recording reproducible deployment configurations and emphasizes that compatibility determines whether a model can run, per-card peak memory determines whether it can run stably, and quality and performance tests determine whether it is worth putting into production.

    1. Verify It Can Run Before Calculating How Many Cards You Need

    Deploying the same multimodal model on a different vendor’s accelerator is not as simple as swapping out the devices in an existing setup. Feasibility depends on three levels of compatibility:

    1. Runtime compatibility — the runtime must recognize the devices and execute computations on them.
    2. Framework compatibility — the inference framework must be able to load the model structure and its quantized weight format.
    3. Multimodal pipeline compatibility — multimodal inputs must flow correctly from preprocessing all the way through to the main model.

    If any one of these layers is missing, you may encounter situations such as “the device is visible but the model fails to load” or “text generation works but image inputs do not.”

    When selecting a configuration, record the device driver and runtime versions, the inference framework version, the model weight format, the quantization type, the vision module version, and the multi-GPU sharding strategy as a single configuration set. This matters especially while model support is still evolving: a development build that recognizes a given weight format does not mean the stable release does, and a runtime that can load a low-bit weight format does not guarantee that the target device has an efficient implementation for it. Validate against the actual backend and actual workload rather than relying on format support lists.

    Input capabilities must also be verified item by item. Just because the model itself can accept video does not mean the local inference pipeline has implemented video decoding, frame sampling, temporal information processing, and the corresponding input assembly. If you have only verified text and single-image inputs so far, limit your deployment conclusions to those two task types. Frame-by-frame description can be treated as a separate experiment, but it cannot substitute for native video understanding validation.

    2. Use Consistent Capacity Units and Budget Against Per-Card Peaks

    Suppose a deployment configuration has a low-bit main model whose files total about 108.7 GB, plus a roughly 1.13 GB half-precision vision module file. Added together with the same accounting convention, the on-disk weights amount to about 109.83 GB. This figure is useful for estimating storage requirements and for judging whether loading the full weights onto the device is even worth attempting, but it cannot be treated as the runtime VRAM footprint.

    First, be clear about units. 1 GB equals 1 billion bytes, while 1 GiB equals 2^30 bytes. Only if each card’s 32 GB is a decimal capacity do four cards’ 128 GB equal approximately 119.2 GiB; if the monitoring tool reports 32 GiB per card, you cannot convert using decimal units. In practice, convert file sizes, total device capacity, and available capacity before startup into a single unit — bytes or GiB — and treat the device’s measured values as authoritative.

    Second, memory budgeting must be done per card, not against the total device capacity. Use the following relationship for a preliminary estimate:

    Per-card peak requirement ≈ weights resident on that card + that card’s KV cache + vision-related usage + temporary computation buffers + runtime and communication overhead

    This is an estimation formula for troubleshooting; it does not mean all of these components peak at the same moment. Model loading, long-prompt prefill, image encoding, and token-by-token generation each have different memory distributions, so record the peak for each stage separately. The vision module, input/output layers, or portions of the cache may also be concentrated on a single card, causing one card to run out of memory first while other cards still have headroom.

    When capacity is tight, establish a baseline with a single request, short context, and a single image, then gradually increase input length, image size, and concurrency. Do not treat “the model loaded successfully” as the endpoint of capacity validation: the first long-prompt prefill or image request after loading may still fail due to growth in temporary buffers.

    3. Low-Bit Quantization Is Not Simple File Compression

    Low-bit quantization reduces the storage and resident-memory cost of model weights, but a so-called “2-bit tier” does not usually mean that every tensor is stored at exactly 2 bits per parameter. Quantization blocks also store auxiliary data such as scaling coefficients, and some tensors may use higher precision. Therefore, you cannot infer the final file size simply by multiplying the parameter count by the nominal bit width, and you certainly cannot use that to estimate total on-device memory consumption.

    When choosing a quantization configuration, evaluate capacity, speed, and quality together:

    • Backend support: First confirm that the target backend can directly execute the corresponding quantized format. If some operators fall back to the host, or the runtime needs to convert weights, a smaller file does not necessarily mean faster inference.
    • Quality validation on your own data: Short-question answering behaving normally does not mean the low-bit version will also meet requirements on long-document retrieval, chart reading, or strict structured output. Compare different quantization configurations only with fixed prompts, input samples, and generation settings; where possible, use a higher-precision configuration as the reference.

    Multimodal deployments require a separate check of the vision weights. In common architectures, images are first converted into visual features, which are then mapped into a representation the main model can accept through a projection layer. In practice, a separate vision weight file may contain the vision encoder, the projection layer, or both — you cannot judge its internal structure from the filename alone. Confirm that it matches the main model, the image preprocessing method, and the inference framework version. Successful loading does not mean correct pairing: if preprocessing or input assembly is wrong, the system can still return answers that are well-formed but unrelated to the image.

    4. Multi-GPU Sharding: Solve Placement First, Then Optimize Communication

    When a single card cannot hold the model, layer-wise sharding is a good first approach to validate: place consecutive model layers on different devices, and pass intermediate activations to the next device when computation reaches the sharding boundary. Layer placement alone does not equal a fully parallel pipeline. During single-request token-by-token decoding, dependencies still exist between stages; pipelined scheduling can only improve device utilization when the implementation supports it and there is overlappable workload.

    Another approach is to split the computation of the same layer across multiple cards. This allows more devices to participate in a single layer’s computation simultaneously, but it typically requires more frequent cross-card communication, making it more dependent on device interconnects and backend implementation. In a local multi-GPU environment, you cannot infer speedup from card count alone. Confirm whether data can be transferred directly between cards or must transit through host memory, and observe the actual communication overhead.

    For the initial deployment, allocate weights according to each card’s available capacity, then adjust based on measured peaks. If the card handling vision runs out of memory first on image requests, prioritize reserving space for that card instead of continuing to distribute model layers evenly. If all cards have headroom but generation speed is low, check for host fallback, cross-card transfer waits, device utilization, and sharding boundaries — do not blindly increase the memory reservation.

    Stage 1: Text smoke test. Use short prompts and a small output-token limit to confirm that the model can load, generate, and finish. Cover short Q&A, format-constrained output, and several consecutive requests. Record the wait time for the first output token, generation speed, and peak memory on each card. Consecutive requests help distinguish one-off initialization overhead from recurring problems.

    Stage 2: Long-context retrieval test. Place verifiable facts in a fixed document, positioning the target information at the beginning, middle, and end, and include a no-answer sample. Require the model to provide both the answer and the source snippet supporting it, and separately record correct answers, missed answers, and unsupported answers. Also verify that requests actually reached the expected length, so that truncated input is not misdiagnosed as a model reasoning failure. For long-context tests, record prefill latency and token-by-token generation speed separately; otherwise it is impossible to tell whether the bottleneck is long input or decoding.

    Stage 3: Image pipeline test. Start with screenshots containing clear text, simple charts with definitive answers, and easily recognizable objects. For the same question, submit the correct image, an unrelated image, and no image, and check whether the answer changes according to the visual evidence. Then gradually increase image size, count, or text density — changing only one variable at a time. If an image request fails with out-of-memory while a text request of the same token length succeeds, prioritize investigating the image encoding process, the sequence length after image conversion, and the remaining capacity on the card hosting the vision module.

    Stage 4: Sustained operation test. Distinguish cold start from warmed-up behavior, and alternate text and image requests at the target concurrency. Continuously monitor memory peaks, failure rates, and latency percentiles; do not replace stability validation with a single successful generation. If throughput rises but tail latency degrades sharply, adjust concurrency based on business deadlines rather than blindly pursuing higher device utilization.

    6. Turn Experimental Results into a Reproducible Deployment Configuration

    After validation, record the minimal reproducible configuration: the number of devices and each card’s available capacity, runtime and inference framework versions, model and vision weight checksums, quantization type, actual sharding strategy, and the input lengths, image scales, and concurrency ranges already validated. Also mark which capabilities have passed testing and which have not — for example, do not write “single-image works” as “images and video both work.”

    The core of this methodology is to split deployment conclusions into three layers: compatibility determines whether the model can run, per-card peak memory determines whether it can run stably, and quality and performance testing determine whether it is worth putting into production. Converging through these three layers is more reliable than judging by weight file size or total device capacity alone, and it makes it easier to migrate the solution across different accelerator hardware.