Deploying a 320B Multimodal Model on Four Non-Mainstream GPUs: Framework, Quantization, and VRAM Planning
This article documents an experiment deploying a 320B multimodal model on four 32 GB non-mainstream GPUs. It covers framework branch selection, 2-bit dynamic quantization and GGUF size, the F16 multimodal projection module, VRAM budgeting for KV cache, pipeline parallelism, qualitative text and image test results, and common deployment issues. The goal is to provide a practical reference for teams considering alternative GPU hardware.
- Why Deploy a Multimodal Model on Non-Mainstream GPUs?
Local deployment is mainly driven by three requirements: keeping data on-premises, controlling long-term inference costs, and meeting low-latency scenarios that need local responses. Most local deployment options currently depend on one mainstream GPU vendor ecosystem, while software support for other hardware is relatively limited. Running large models on non-mainstream hardware therefore has practical value as an alternative.
- How Should the Inference Framework Be Selected?
This experiment used a mainstream C++ inference framework. Its stable main branch does not yet support this newer multimodal architecture, so the cutting-edge development branch was required. The development branch includes new operators and model structure adaptations. It is less stable, but it can parse the model structure and load the weights.
A recommended approach is to first confirm whether the stable branch already supports the target model. If it does not, use the development branch and pin it to a specific commit for reproducibility. This article does not disclose the branch name or commit number; readers should verify them in the framework’s release records.
- How Small Can a Hundred-Billion-Parameter Model Be Compressed?
The model in this experiment has 320B parameters. In FP16, each parameter takes 2 bytes, so the weights are about 640 GB, far beyond the VRAM of a single machine. After 2-bit-level dynamic quantization, the GGUF weight file is about 108.7 GB. On average, each parameter occupies about 2.7 bits.
Pure 2-bit quantization would theoretically be about 80 GB. The actual size is larger because dynamic quantization retains higher precision for important layers. Dynamic quantization allocates bit widths according to layer importance and parameter distribution rather than applying uniform compression across the whole model. This approach usually preserves reasoning capability better than uniform static quantization, but the exact accuracy loss needs to be measured with benchmarks. This article did not perform a systematic evaluation.
- What Is the Multimodal Projection Module (mmproj), and Why Use F16?
The main model handles language understanding and text generation. Visual capability depends on another file: the multimodal projection module. It maps image features from the visual encoder into the main model’s embedding space so that the main model can understand images.
In this experiment, the module uses F16 format and is about 1.13 GB, accounting for less than 1% of total VRAM. Visual features are relatively sensitive to numerical error, and low-bit quantization may degrade image descriptions, so half precision was retained. The main model and projection module together total about 109.8 GB.
- Is the VRAM on Four GPUs Sufficient?
Four GPUs with 32 GB each provide 128 GB of physical VRAM. After subtracting about 110 GB for weights, the theoretical margin is about 18 GB. This space must cover KV cache, activations, framework runtime buffers, and driver overhead.
KV cache size is determined by context length, batch size, layer count, and attention head configuration. With these parameters fixed, KV cache grows roughly linearly with context length and batch size. As context length increases, the margin tightens quickly, so maximum context length and concurrent request count must be limited.
The 18 GB figure is theoretical. Actual usable capacity depends on driver and framework overhead, and peak VRAM should be measured in the target environment.
- How Should Pipeline Parallelism Be Configured?
Pipeline parallelism splits the model’s layers sequentially across four GPUs, with the output of one GPU becoming the input of the next. This solves the problem of a single GPU being unable to hold the entire model, at the cost of latency from inter-GPU data transfer.
The number of layers assigned to each GPU should be adjusted according to its remaining VRAM rather than simply divided evenly. When the split is unbalanced, the GPU with the tightest VRAM will trigger OOM first.
- How Should the Test Results Be Interpreted?
Testing covered text and image modalities. Video modality was not tested because the development branch has not yet connected a native video processing path.
Text tests included short question answering and long-text information extraction. From the outputs, long-text retrieval and reasoning did not show obvious degradation, but no standard benchmark scores were provided.
In image tests, the model was able to recognize image content and provide descriptions based on text prompts. This indicates that the multimodal projection module loaded correctly and that the visual path is basically usable. However, the current conclusions are qualitative only; there are no quantitative data such as accuracy, throughput, or peak VRAM.
What Are Common Deployment Issues?
Insufficient VRAM (OOM): first reduce context length and batch size, then check whether other processes are occupying VRAM.
- Inter-GPU communication failure: check driver versions, inter-GPU links, and the framework’s support status for the hardware.
- Projection module load failure: confirm that mmproj and the main model come from the same release version.
- Context overflow: after exceeding the configured context length, output quality may degrade or an error may occur.
Quantized weight incompatibility: confirm that the framework branch in use supports the quantization format.
Conclusions and Recommendations
Deploying a hundred-billion-parameter multimodal model on non-mainstream GPUs depends on three key points: choosing the right framework branch, calculating the VRAM budget accurately, and leaving enough margin for KV cache. This experiment completed basic text and image inference on four 32 GB GPUs, but performance data, accuracy loss, and long-term stability still require more systematic testing.
Readers should first measure peak VRAM on the target hardware, then decide on context length and concurrency strategy.
