Deploying a 320B Open-Source Multimodal LLM on Non-CUDA GPUs: A Practical Field Guide
This article provides a hands-on guide to locally deploying a 320B-parameter open-source native multimodal model on a cluster of four 32GB non-CUDA GPUs using a community-supported inference engine branch. It covers model selection, quantization strategy (dynamic 2-bit GGUF), the critical mmproj weight file for multimodal input, hardware memory planning including KV cache overhead, and tensor/pipeline parallelism choices. The post also shares practical pitfalls—such as checking framework branch support before compilation, budgeting KV cache memory, and preparing for early-stage software limitations—and offers actionable recommendations for developers running large models on non-CUDA hardware.
Introduction: Why Run Large Models on Non-CUDA GPUs?
When developers think about local LLM deployment, the first thing that comes to mind is usually CUDA-based GPUs. However, due to cost constraints, procurement channels, compliance requirements, or the reuse of existing assets, many teams and individual developers own graphics cards that do not support CUDA. As mainstream inference frameworks have gradually improved support for heterogeneous hardware backends, running large open-source models on these devices has evolved from “it runs at all” to “it can be seriously considered for real work.”
This article documents a concrete case: running a 320B-parameter open-source native multimodal model (accepting text and image inputs) on a set of GPUs with a combined ~120GB of VRAM, using a general-purpose inference engine. We’ll walk through the key decisions and pitfalls encountered along the way. Note that, at the time of writing, official inference support for this model was still in an early stage—the main branch of the inference engine had not yet merged the necessary code, so we relied on a community development branch. This is one of the most important background contexts of the article.
1. Understanding the Model and Deployment Options
1.1 Model Characteristics
The target model is an open-weights, native multimodal model. “Native multimodal” means that during pre-training, the model jointly models text and visual signals, rather than attaching a visual adapter to a pure language model. It accepts both text and images as input, and in principle also supports video, but the video processing path in the inference framework is not fully functional yet. Therefore, our tests focus on text and image inputs.
1.2 Choosing Between API and Local Deployment
There are two common ways to use a large model: calling a cloud API or deploying open-source weights locally. API-based approaches require zero maintenance and are billed per usage, making them ideal for quick validation. Local deployment suits scenarios with data privacy requirements, offline needs, or when you want to deeply customize inference behavior. This article falls into the latter category. Choosing local deployment means you must address three core issues:
- Framework selection: Which inference engine and which branch support the target model?
- Weight format: How do you convert raw weights into a format usable by the inference engine, and which quantization level should you pick?
- Hardware and parallelism strategy: Is the VRAM sufficient, and which multi-GPU parallelism approach should you adopt?
2. Inference Framework and Branch Selection
2.1 The Main Branch Is Not Ready (Yet)
The first critical decision is branch selection. After a new model is released, the main branch of a community inference engine often takes time to merge support for the new architecture. If you compile the main branch directly, loading the model will produce an “architecture not recognized” error. At that point, you should check the project’s development branches or pull request list for an unmerged frontier branch. In our case, we compiled a development branch that already supported the model’s architecture.
General advice to readers: Before deploying a newly released model, check the inference engine’s repository to confirm support status—don’t assume that the newest model works out-of-the-box. This is one of the most common mistakes beginners make.
2.2 Choosing Quantized Weights
A 320B model deployed in FP16 or BF16 requires hundreds of GB of VRAM, which is impossible for most consumer or multi-GPU workstation configurations—so quantization is almost mandatory. Common dynamic quantization schemes preserve higher precision for critical layers (e.g., attention outputs, certain feed-forward layers) while using lower bit-widths for the rest, aiming to balance compression and quality. These are usually named with something like “dynamic quantization + a bit-level suffix.”
For our deployment, we used a dynamic quantization version at approximately 2-bit, compressing the original 320B weights to about 108.7 GB, plus an auxiliary file of about 1.1 GB (detailed below), for a total of roughly 110 GB. The reasoning behind the quantization level:
- If VRAM is severely limited, choose the 2-bit level and accept some quality loss.
- If VRAM is ample (e.g., eight 48GB GPUs), consider 3-bit or 4-bit levels for noticeably better quality.
- At the same bit level, prefer versions with dynamic quantization rather than uniform quantization.
3. The Second Weight File for Multimodal Models
This is a common source of confusion when deploying multimodal models: besides the main model weights, you need an additional file named mmproj (multimodal projector). In our case, we used the FP16 half-precision version (about 1.1 GB).
Here’s what it does: in the inference engine’s multimodal pipeline, the inference chain is split into two parts:
- Main model weights: Responsible for language understanding, reasoning, and text generation.
- Visual projection weights: The visual encoder encodes the image into feature vectors, and a projection layer maps these vectors into the same embedding space as text, allowing the main model to “comprehend” image information. The
mmprojfile contains exactly these projection weights.
Therefore, when loading the model, you must specify both the main weight file and the mmproj file. If you load only the main weights, the model behaves as a pure language model and will reject or mishandle image inputs.
4. Hardware Configuration and VRAM Planning
4.1 Capacity Estimation
The original weights plus the visual module total about 110 GB. We used four professional GPUs with 32 GB VRAM each, giving a combined physical VRAM of about 119.4 GB. On paper, that leaves less than 10 GB of headroom. However, it’s important to note: during inference, KV caches and intermediate activations can consume an additional several GB or even a dozen GB. In long-context scenarios, the KV cache grows linearly with sequence length. So, when planning VRAM, use the following empirical formula:
Required VRAM ≈ model weights × 1.05 (loading overhead) + KV cache + activation bufferKV cache ≈ 2 × num_layers × num_KV_heads × head_dim × sequence_length × batch_size × bytes_per_element
If the headroom is too tight, consider reducing context length, using KV cache quantization, or lowering concurrency.
4.2 Parallelism Strategy
General-purpose inference engines typically offer two multi-GPU splitting methods: tensor parallelism (each GPU handles a part of each layer, with GPUs communicating per layer) and pipeline parallelism (each GPU handles a subset of layers, with sequential forward passes). When total VRAM is tight and a single GPU cannot hold the full model, you must use pipeline parallelism. If a single GPU can fit a smaller model and you care about throughput, pipeline parallelism may be more suitable. In our case, since a single 32GB GPU is far smaller than the 110GB model, we deployed the model across four GPUs using pipeline parallelism.
5. Test Content and Initial Conclusions
Due to framework support limitations, video input was not tested. For text, we verified two capabilities: basic conversational responses to short questions, and retrieval performance on long text (e.g., “needle-in-a-haystack” style tests). For images, we tested mixed text-image input understanding. Overall, the 2-bit quantized model was usable for common Q&A and image-text understanding, but we could perceive quantization loss in detail-dense long-document retrieval and fine-grained reasoning—consistent with expectations at that bit level.
6. Summary and Recommendations
The core challenge of deploying the latest open-source large models on non-CUDA hardware is not the hardware itself, but the lag in the software ecosystem. Four recommendations for developers facing similar tasks:
- Check support status before you start: Confirm the inference engine’s branch and merge status to avoid wasted compilation efforts.
- Plan quantization level and VRAM together: Include KV cache in your memory budget—don’t just look at the weight file size.
- Remember the mmproj file for multimodal models: Both the main weights and the visual projection weights are required.
- Accept the rough edges of early-stage support: Video pipelines may be incomplete, and occasional operator compatibility issues are inevitable—keep tracking community updates.
As the heterogeneous computing ecosystem matures, running large models on non-CUDA GPUs will become increasingly smooth. Teams with the resources should consider validating this path early.
