Deploying Multimodal LLMs Locally: Hardware Options Beyond Dedicated Accelerators

    This article explains how to deploy multimodal large language models on local hardware without relying solely on dedicated accelerator cards. It covers how to estimate model weight sizes, the importance of both the main model and the vision projection module, a comparison of four hardware approaches (consumer GPUs, professional compute cards, unified memory devices, and multi-socket CPU servers), and practical guidance on multi-card parallelism, VRAM planning, compute backend selection, and step-by-step deployment validation. The goal is to help readers verify compatibility before optimizing performance and to avoid common pitfalls in local multimodal inference.

    1. Background: Deployment Is No Longer About a Single GPU Type

    Native multimodal models are moving from cloud APIs to local execution. Compared with text-only models, they require not only the language model core but also an image encoder and a vision projection module, placing higher demands on VRAM capacity, memory bandwidth, operator support, and runtime compatibility.

    Before deployment, check five conditions:

    1. Whether the total VRAM or unified memory is large enough to hold the weights.
    2. Whether the compute backend supports the operators required by the target model.
    3. Whether activations can be efficiently passed between multiple cards.
    4. Whether the runtime can load the vision module.
    5. Whether there is remaining space for KV cache and intermediate tensors.

    If any of these conditions is not met, the model may fail to start, or its speed and stability may be unacceptable.

    2. Calculate Weight Size First

    Weight size is determined by parameter count and quantization bit width. The formula is:

    1. Weight size (GB) ≈ Parameters (billions) × Bits per parameter ÷ 8

    For a 32 billion (32B) parameter model:

    Quantization Bits per parameter Approximate weight size
    FP16 16 64 GB
    8-bit 8 32 GB
    4-bit 4 16 GB
    3-bit 3 12 GB
    2-bit 2 8 GB

    Real quantized files often mix different bit widths and include metadata and a few unquantized layers, so the actual file will be slightly larger than the theoretical value. Always use the actual file size, not just the formula.

    The same formula applies to larger models. For example, a 320 billion (320B) parameter model at 4-bit quantization is roughly 160 GB, which typically exceeds the capacity of a single consumer-grade GPU, forcing multi-card splitting or host memory offloading.

    3. Two Files Are Required

    Local multimodal inference usually relies on two files.

    Main model weights handle text understanding, context modeling, reasoning, and text generation. File size decreases significantly with quantization.

    Vision projection module maps the visual features from the image encoder into the input space of the language model. Without it, the model can usually only process text.

    1. Image
    2. ↓
    3. Vision encoder
    4. ↓
    5. Visual features
    6. ↓
    7. Vision projection module
    8. ↓
    9. Language model input sequence
    10. ↓
    11. Text output

    Both files must come from the same model version. Mixing projection modules from different versions can lead to dimension mismatches, input parsing failures, or a noticeable drop in output quality.

    4. Comparison of Four Hardware Approaches

    Approach VRAM or memory Inter-card or memory bandwidth Backend support Suitable workload Main risks
    Multiple consumer GPUs Per-card VRAM accumulates, but cannot be directly merged Inter-card mostly relies on PCIe, limited bandwidth Wide community experience, broad driver compatibility Personal research, experimental deployment High communication overhead; power and cooling requirements
    Professional compute accelerators Large per-card VRAM, high-speed interconnect possible with multiple cards High, good inter-card interconnect Must verify target framework and operator support Long-running, enterprise internal testing High procurement cost; drivers must match the framework
    Unified memory devices Large system memory can be allocated to the model Usually lower than high-end discrete GPUs Depends on the device’s built-in compute stack Low concurrency, functional validation Inference speed may be significantly slower
    Multi-socket CPU server Large system memory capacity Memory bandwidth is the main bottleneck Vectorized instructions, mature framework support Offline batch processing, compatibility validation Image encoding and long-context overhead are high; not suitable for high-concurrency online services

    When choosing a solution, first check whether the weights fit into memory, then whether bandwidth can support throughput needs, and finally whether the backend covers vision encoding and multi-card pipelines.

    5. Multi-Card Parallelism: Number of Cards and Splitting

    There are two common approaches for multi-card deployment, with different inter-card interconnect requirements.

    Tensor parallelism splits computation within the same layer. Every layer requires inter-card synchronization, leading to frequent communication and high interconnect bandwidth demands.

    Pipeline parallelism assigns different layers to different cards. Each stage only passes intermediate activations to the next stage, resulting in lower communication volume. However, latency for a single request increases with the number of stages.

    The minimum number of cards can be estimated as:

    1. Minimum cards ≥ Total requirement ÷ Available VRAM per card

    “Aailable VRAM per card” should subtract operating system and driver overhead. When splitting, keep memory usage across stages as balanced as possible. If one card fills up first, the entire pipeline slows down.

    More cards does not always mean faster. When inter-card transfer time exceeds the computational benefit, adding cards can actually reduce speed.

    6. VRAM Planning: Weights Are Only Part of the Story

    Total inference memory demand is:

    1. Total demand =
    2. Model weights
    3. + Vision module
    4. + KV cache
    5. + Intermediate activations
    6. + Communication buffers
    7. + Runtime reserved space

    For a 32B parameter model at 4-bit quantization: weights are about 16 GB, and the vision module adds roughly 1 GB, totaling about 17 GB. KV cache size depends on the number of layers, KV heads, head dimension, context length, and data precision. You need to read these parameters from the model configuration file. The longer the context, the larger the KV cache. For long texts and multi-turn conversations, it often becomes the dominant memory consumer.

    Recommended practice:

    • Start with a short context and small batch size.
    • Record the peak VRAM usage.
    • Reserve a margin above the peak, based on measured variability.
    • Gradually increase context length and batch size.

    Do not assume that a model can run just because total VRAM exceeds the weight file size.

    7. Choosing the Compute Backend

    The same hardware can perform very differently across backends. A backend is the interface through which an inference framework accesses the device, including generic GPU APIs, cross-platform compute APIs, vendor-specific driver APIs, and CPU vectorized instructions.

    When selecting a backend, verify the following six items in order:

    1. Whether it supports the target model architecture.
    2. Whether it supports matrix operations for the quantized weights.
    3. Whether it supports the vision encoder.
    4. Whether it supports multi-card pipelines.
    5. Whether it handles long contexts correctly.
    6. Whether memory management is stable.

    Cross-platform graphics compute backends often start more easily on less mainstream hardware ecosystems because they cover a wide range of devices. The trade-off is limited operator optimization, and memory reuse and multi-card communication may be less efficient than dedicated backends. Being able to start is only the first step; performance must be measured.

    During testing, record the following metrics:

    • First load time.
    • Time to first token.
    • Per-token generation speed.
    • Image encoding time.
    • Long-text processing speed.
    • Peak VRAM usage.
    • Stability after multi-turn conversations.

    Step 1: Verify Configuration

    Before running, confirm the following:

    • Quantization bit width and scheme.
    • Actual file size of the main model.
    • Vision module version, matching the main model.
    • Inference framework version.
    • Compute backend and its driver version.
    • Number of cards, per-card VRAM, and inter-card interconnect method.

    Step 2: Text-Only Test

    Disable image input. Verify that the weights load, short answers are correct, multi-card splitting works, VRAM does not grow continuously, and output contains no garbled text.

    Step 3: Image Test

    Use moderately sized images. Test object recognition, text reading, image question answering, and simple descriptions. Avoid extremely large images or complex batch processing at this stage.

    Step 4: Long-Context Test

    Gradually increase input length. Monitor KV cache growth and changes in generation speed. If sudden crashes occur, they are often related to insufficient VRAM, overly large context settings, or an incompatible operator.

    Step 5: Record Reproducible Configuration

    Save the operating system version, driver version, framework commit version, backend, quantization scheme, number of cards and VRAM, context length, parallelism method, and test inputs/output speeds. When moving to different hardware, these records help determine whether the problem lies in the model, the runtime, or device adaptation.

    9. Common Issue Troubleshooting Order

    Follow these steps sequentially, and record the relevant metric at each step.

    “Out of memory” at startup. Check the peak VRAM first. Then reduce context length, reduce batch size, disable unnecessary caches, and finally offload some layers to host memory. Offloading will significantly reduce speed and should be a last resort.

    Text works, but image processing fails. Check the vision module path, file version, image format, and visual operator support. Use one standard test image for verification and record the image encoding time.

    Single-card works, multi-card fails. Check device IDs, inter-card communication, pipeline split ratios, and VRAM usage per stage. Observe utilization of each card to find the slowest stage.

    Output is generated but too slow. Measure model loading, image encoding, time to first token, and steady-state generation speed separately, not just total time. If weights are not fully loaded onto the accelerator device, or if the backend lacks quantization operator optimization, address those two issues first.

    10. Risk Notes

    • The VRAM numbers in this article are estimates from formulas. Actual usage must be measured in the target environment.
    • Different model licenses may restrict commercial use or redistribution. Confirm before deployment.
    • Multi-card and high-power devices require adequate power supply, chassis cooling, and motherboard slots. Verify before purchase.
    • Do not mix vision modules from different versions. Output may look normal but actual quality may have degraded.

    11. Conclusion: Verify Compatibility First, Then Performance

    Besides dedicated accelerator cards, multiple consumer GPUs, unified memory devices, and CPU servers can all host multimodal models under certain conditions. What determines deployment success is whether VRAM size, memory bandwidth, compute backend, model file format, and parallelization scheme match each other.

    For personal research, multi-card solutions with lower cost and abundant community resources are a good starting point. For long-term stable operation, focus on driver maturity, VRAM margin, and cooling requirements. For simple functional verification, unified memory devices or CPU servers offer a low-cost entry point.

    Following the order “verify compatibility first, then evaluate performance, and finally optimize concurrency” generally avoids unnecessary detours. With proper quantization, separation of the vision module, and multi-card parallelism, local text and image inference is feasible even without exclusive reliance on a single hardware ecosystem.