Running Multimodal LLMs on Non-NVIDIA GPUs: A VRAM Budgeting Guide
A hands-on account of deploying a large multimodal model on four non-NVIDIA GPUs using a feature-branch inference engine, 2-bit dynamic quantization, and pipeline parallelism. Covers memory budgeting, KV cache estimation, and the practical limits of local multimodal inference.
Why Deploy Multimodal LLMs Locally
Newer natively multimodal models process text, images, and video in a single input, offering better reasoning coherence than earlier generations. Many teams start by validating business logic through API aggregation platforms. But as usage scales, data privacy, inference latency, and long-term cost become hard constraints — and local deployment becomes necessary.
The general-purpose compute ecosystem on non-NVIDIA hardware is still relatively young, so issues with model loading, operator support, and VRAM management are common. This article documents a practice run on a multi-GPU, non-NVIDIA setup. “Non-NVIDIA” here generally refers to GPUs with non-NVIDIA architectures. The original write-up does not disclose the specific accelerator model, driver version, or operating system, so treat this as a methodology reference rather than a copy-paste installation guide.
Choosing the Inference Branch and Quantization Scheme
1. The Inference Engine Requires a Feature Branch
Most open-source lightweight C++ inference engines prioritize mainstream hardware on their main branches. At the time of this exercise, the main branch did not yet fully support this generation of multimodal models, so it was necessary to build from a feature branch. That branch already includes the new models’ operator implementations and computation graph construction logic, making basic inference possible — but it is still in early development, and interfaces and behavior may change at any time.
Recommended practices:
- Pull the feature branch from the official repository and record the commit hash.
- Record the compiler version, build flags, dependency library versions, and driver version.
- Repeatedly verify outputs against the same inputs to confirm consistency after version changes.
2. 2-bit Dynamic Quantization
The original weights of the latest multimodal models exceed 300GB, which a typical workstation cannot load directly, so aggressive quantization is required. This exercise used community-published dynamic quantized weights at 2-bit precision.
The difference between dynamic and static quantization is that dynamic quantization assigns different precision levels based on each layer’s importance. Projection layers in the attention mechanism are precision-sensitive, so they retain higher precision. Feed-forward network layers take up the most space and have a relatively smaller impact on output, so they are compressed more aggressively. With this approach, the main model weights shrink to roughly 108.7GB.
When using third-party quantized weights, note two things. First, verify the weight source and check the file checksum. Second, confirm that the model license permits your intended use. The original write-up does not disclose the calibration data or specific parameters used for quantization. To reproduce the results, validate the quantization workflow on a small model or small dataset first.
3. Loading the Vision Projection Module Separately
Beyond the language model, a multimodal model needs a vision module to process images. In this engine’s multimodal scheme, two weight files are typically required:
- Main model weights (GGUF format): handles language understanding, logical reasoning, and text generation.
- Multimodal projection module weights (usually FP16 half precision): encodes images and projects them into visual embeddings the main model can accept. The file is about 1.1GB — small, but without it the model cannot process images.
Both files must be loaded together, and their versions must match. A version mismatch commonly manifests as image inputs being silently ignored, or clearly abnormal outputs.
The VRAM Budget: Enough Capacity, Tight Headroom
1. Capacity Calculation
This setup used four 32GB accelerators, for a nominal total of 128GB. After deducting driver and framework runtime overhead, usable memory was estimated at about 29.85GB per card, or roughly 119.4GB total. This is an estimate based on the assumptions above, not a measured figure under a unified methodology. You can use your vendor’s memory query tools to read per-card usage before and after model loading to get the actual usable amount in your own environment.
The main model at 108.7GB plus the 1.1GB projection module totals about 109.8GB. Subtracting from the usable total leaves roughly 9.6GB.
2. KV Cache and Activations
Weights are only the static portion. During autoregressive generation, the model must maintain a KV cache for the context. Its size can be roughly estimated with:
KV Cache size ≈ 2 × number of layers × number of KV heads × head dimension × sequence length × batch size × bytes per element
The factor of 2 accounts for the K and V caches. KV cache grows linearly with sequence length and batch size. For example, assuming a model with 48 layers, 8 KV heads, and a head dimension of 128, stored in FP16, with a single sequence length of 4096, the KV cache comes to about 805MB. This number is only for demonstrating the calculation; the actual values should come from your model’s configuration file.
In addition, intermediate activations and temporary tensors during forward passes also consume VRAM. The remaining 9.6GB is therefore tight for long-context workloads. When deploying, limit the maximum context length, reduce batch size, and leave a safety margin in VRAM to avoid out-of-memory (OOM) errors.
3. Pipeline Parallelism
To leverage all four cards and overcome the single-card VRAM ceiling, this exercise used pipeline parallelism. This approach splits the model’s layers sequentially across cards. As a token passes through several layers on the first card, the hidden states are sent to the second card for further computation, and so on.
This introduces inter-card communication, which increases time-to-first-token (TTFT). Pipeline parallelism was this exercise’s choice, but it is not the only viable option. Other common approaches include:
- Tensor parallelism: splits a single layer’s matrix operations across multiple cards. Communication is more frequent and demands higher interconnect bandwidth.
- Memory or disk offloading: keeps some weights in CPU memory or on NVMe storage, trading speed for capacity.
- Layered loading: loads layers on demand, better suited to low-concurrency scenarios.
Which approach to choose depends on whether the goal is lower TTFT, higher throughput, or lower hardware cost.
Test Results and Limitations
1. Text Capabilities
Text testing covered short-question instruction following and long-context retrieval. Pipeline parallelism made short-question latency relatively high. In long-context scenarios, the model performed well at context compression and information extraction. With a properly configured context window, the model could complete inference at the several-thousand-token scale within the roughly 119GB of usable VRAM.
2. Image Understanding
Image inputs first pass through the projection module to generate visual embeddings, which are then fed into the main model together with the text prompt. In testing, the model could identify objects and scenes in images and perform simple image-text reasoning based on questions. This shows that the FP16 projection module and the 2-bit main model can work together. No systematic image benchmarking was provided, so these conclusions apply only to the sampled tests.
3. Video Modality
The inference engine’s feature branch does not yet have a native video processing pipeline, so batch frame extraction and temporal feature encoding cannot be completed within the local framework. Video testing was therefore paused, pending community updates to the relevant operators.
If your workload needs to handle video temporarily, you can extract frames first and feed them into the model as images. This loses temporal information between frames. It works for generating content summaries or identifying key frames, but not for judgments that depend on the order of actions.
