Local LLM Deployment on Non-NVIDIA GPUs: A Practical Guide
This article walks through deploying a large multimodal model locally on non-NVIDIA hardware using an open-source inference runtime. It covers runtime branch selection, dynamic low-bit quantization, splitting the main model from the multimodal projector, multi-GPU parallelism, layered acceptance testing, and common pitfalls, with emphasis on peak VRAM budgeting and software stack compatibility.
1. Why Move LLMs from Cloud APIs Back to Local Hardware
Most developers try a new model by calling a vendor-hosted online endpoint. It is fast to start and requires no operations work, but it comes with three practical constraints: compliance pressure when data leaves your environment, unpredictable costs from usage-based billing, and latency jitter caused by network conditions and rate limits. For teams with sensitive data, offline requirements, or plans to build on top of the inference pipeline, local deployment remains unavoidable.
Hardware options are also expanding. Beyond mainstream NVIDIA GPUs, general-purpose accelerator cards, professional graphics accelerators, and domestic accelerator hardware all have the potential to run LLM inference. The hard part is not whether a model can run at all, but software stack maturity: drivers, runtime backends, operator coverage, quantization format support, and multi-GPU communication. A gap in any one of these stops deployment at the error stage.
This article uses “loading an open-source inference runtime with a roughly 320B-parameter, natively multimodal model on a non-NVIDIA platform” as its thread, and abstracts a transferable deployment methodology from it.
2. Runtime Selection: Confirm Branch Support Before Performance
A typical dilemma in the open-source LLM ecosystem: the main branch prioritizes stability and often lags in supporting the newest model architectures, while the “frontier branches” maintained by model publishers and the community do support new structures but may lack complete testing.
So the first selection principle is capability over version number:
- First confirm whether the target model’s network structure (attention variants, positional encoding scheme, expert routing structure, and so on) is implemented in some runtime branch;
- Then confirm whether that branch provides baseline capabilities such as multi-GPU inference, memory mapping, tensor parallelism, or pipeline parallelism;
- Only then compare throughput, time-to-first-token, and other performance metrics.
A schematic check flow can be written as a script, using “did it load successfully” as the only acceptance criterion:
# Pseudocode: minimal viability checkrun_backend --model main-model.gguf \--mmproj projector-f16.gguf \--devices 0,1,2,3 \--parallel pipeline \--ctx 8192 \--prompt "Say in one sentence that you are ready"
If this command returns coherent text, structure implementation, quantization and dequantization, and device mapping have all passed, and further tuning is meaningful.
3. Quantization: Low-Bit Tiers vs. Dynamic Quantization
The gap between raw weight size and available VRAM is usually filled by quantization. Lower quantization tiers give higher compression but more visible accuracy loss. A common industry practice is dynamic quantization: keep higher bit widths for more sensitive layers (attention output, embedding layers, normalization layers) and use lower bit widths for the feed-forward layers that make up the largest share of parameters. At the same total size, this usually retains more capability than uniform low-bit quantization applied across the board.
Naming commonly combines a “scheme prefix + tier + vendor custom suffix”, for example a 2-bit tier of a dynamic quantization scheme plus a custom level suffix. Readers only need to understand the meaning: this is a mixed-bit-width, per-layer customized low-bit weight package, without getting stuck on the specific name.
A rule-of-thumb formula for size estimation:
Final footprint ≈ quantized main model weights + vision projector weights + KV cache + runtime context overhead
Take a 320B-parameter model with a 2-bit mixed quantization as an example: the main weights can be compressed to roughly 110GB, and the vision projector module is a little over 1GB. Four 32GB cards (about 128GB total) look more than enough, but KV cache grows linearly with context length and concurrency, and intermediate activations need extra space, so the real headroom is often only single-digit GB. The conclusion: budget VRAM by peak, not by average.
4. Splitting Multimodal Weights: Main Model and Projector
Natively multimodal models are usually loaded in two parts in open-source runtimes:
- Main model weights: handle language understanding, reasoning, and text generation;
- Multimodal projector (often shortened to mmproj): maps image encoding results into an embedding space the main model accepts. It is essentially a cross-modal alignment layer, typically distributed separately in half precision.
This split has two practical benefits: text-only scenarios can skip loading the projector, saving VRAM and load time; and the projector is small and updated frequently, so replacing it alone is far cheaper than swapping the whole weight set.
Note that video input depends on temporal modeling and frame sampling strategies, and many frontier branches have not yet wired up a native video path. During evaluation, treat “text + image” as the baseline capability and video as an item to watch later, so unverified capabilities do not end up in your commitments.
5. Parallelism: Two Routes for Multi-GPU Deployment
Multi-GPU inference commonly follows two routes:
- Tensor parallelism: splits a single layer’s matrices across GPUs, with frequent communication and sensitivity to inter-card interconnect bandwidth;
- Pipeline parallelism: splits layer segments across different GPUs, with low communication volume and simple implementation, but pipeline bubbles, and load balance depends on whether layer segments are divided evenly.
On consumer-grade or professional graphics card clusters without high-speed interconnect, pipeline parallelism is often the safer starting point. Segment division should follow “balanced VRAM usage” rather than “equal number of layers”, because embedding layers, output layers, and the projector differ noticeably in footprint from intermediate layers.
6. Testing and Acceptance: Layered Test Cases
Break acceptance into three layers and converge on problems layer by layer:
- Functional layer: short Q&A, instruction following, format-constrained output, to confirm tokenization and templates are correct;
- Long-context layer: long-document retrieval, cross-paragraph coreference, summary consistency, while observing KV cache growth and peak VRAM;
- Multimodal layer: single-image description, chart reading, multi-image comparison, to confirm the projector and main model are aligned properly.
Record three metrics at every layer: peak VRAM, time-to-first-token, and output tokens per unit time. Missing any one of them distorts later capacity planning.
7. Common Pitfalls
- Quantization format does not match the runtime branch, and loading fails outright;
- Forgetting to specify the projector module at the same time, so image input is ignored or errors out;
- Setting context length too large, so KV cache crowds out weight space and causes overflow;
- Multi-GPU device enumeration order does not match the physical topology, so pipeline segments land on the wrong devices;
- Chat template does not match what the model expects, showing up as “it generates, but answers the wrong question”.
8. Conclusion
Deploying LLMs on non-NVIDIA hardware is fundamentally an engineering problem of VRAM budgeting plus software stack adaptation. The path can be summarized as: confirm branch capability, choose mixed-bit-width dynamic quantization, split the main model from the projector, plan VRAM by peak, prefer pipeline parallelism, and accept in layers. If a team wants to avoid the cost of driver and runtime adaptation, it can also evaluate general containerized inference and monitoring/alerting capabilities on cloud platforms such as Baidu AI Cloud, and focus its energy on model quality and business integration.
