Low-Cost Local LLM Inference: Integrated GPU, Unified Memory, and a Vulkan Backend
This article explains how to run quantized 20B–35B-level MoE models locally on low-cost mini PCs by combining an integrated GPU, unified memory architecture, and a Vulkan inference backend. It covers why traditional video memory limits block iGPU deployment, how UMA and Vulkan allow the iGPU to access system memory for model weights, practical configuration and quantization guidance, empirical performance ranges, and how local inference at around 20 tok/s can support agent workflows. It also outlines the main limitations, including long-context prompt processing, dense large models, and memory bandwidth ceilings.
1. Background: The Real Barrier to Local LLM Deployment
As the weight sizes of open-source large models continue to grow, many developers assume that local deployment necessarily requires a high-end discrete GPU. That assumption was largely valid in the era of dense models, but the growing adoption of sparse mixture-of-experts (MoE) architectures is changing the conclusion.
A typical 35B-level MoE model may have a large total parameter count, but the number of parameters actually activated per token is often only around 3B. This leads to two key implications:
- Compute demand is substantially reduced, so inference speed is no longer limited by the absolute level of compute power.
- Video memory or system memory capacity becomes the main bottleneck, because all expert weights must remain resident in memory even though most of them will not be activated.
Therefore, the decisive question becomes whether a low-cost setup can “fit” the full weights and “read” the activated portions at an acceptable speed.
2. Core Idea: Let the Integrated GPU Access System Memory Directly
2.1 Why Traditional Setups Hit the “4GB VRAM” Limit
Under traditional driver architectures, most integrated GPUs have a relatively small upper limit on allocatable video memory, commonly in the 2GB–8GB range with limited configurability. Even if the host machine has 32GB or even 64GB of system memory, the integrated GPU cannot treat that memory as its own video memory for managing model weights. This creates an awkward situation: the hardware is sufficient, but the software layer cannot “see” it.
2.2 The Breakthrough: Unified Memory Architecture + Vulkan Backend
The solution depends on two technical elements working together:
Unified Memory Architecture (UMA): The integrated GPU and CPU share the same physical memory, avoiding the physical copy overhead of dedicated video memory. In theory, as long as the inference framework can let the GPU access system memory in a zero-copy or near-zero-copy manner, memory capacity becomes the real upper bound for model size.
Vulkan graphics and compute API: Compared with closed compute APIs from individual vendors, Vulkan provides cross-vendor, cross-platform general-purpose GPU compute capability. Many mainstream open-source inference engines provide a Vulkan backend, allowing an integrated GPU to participate in matrix operations through compute shaders without going through the traditional 3D driver path, and to access memory regions marked as GPU-accessible.
When the two are combined, the practical effect is that most of the system memory can be “allocated” to model weights. On a mini PC with 32GB of memory, after subtracting the operating system and resident applications, it is theoretically possible to allocate more than 20GB of storage space for the model—enough to hold a quantized 20B–35B-level MoE model.
2.3 Key Configuration Example
Using a common open-source inference framework as an example, typical runtime parameters are as follows (for illustration only; refer to the documentation of the framework you use):
# Load a quantized model with the Vulkan backend# The -ngl parameter controls how many layers are offloaded to the GPU;# in an integrated-GPU setup, all layers can be offloaded.# Model weights remain in system memory and are read directly by the iGPU via UMA.inference-engine \--model qwen-moe-35b-q4.gguf \--backend vulkan \--ngl 999 \--context-size 8192 \--threads 8
System-level settings also matter: increase the upper limit of memory accessible to the integrated GPU in the BIOS or GPU driver panel (UMA Frame Buffer Size) to avoid a kernel-level limitation on GPU-available memory.
3. Hardware and Software Selection Logic
3.1 Why an Integrated GPU Can Be Advantageous on a Low Budget
Dedicated GPU video memory is expensive, and cards with 12GB or more of VRAM often take up a large share of the total system budget. In contrast, memory expansion for an integrated-GPU setup is very cheap—ordinary laptop-class DDR5 memory modules are sufficient. For MoE inference workloads that are bandwidth-sensitive but compute-light, the bandwidth between the integrated GPU and system memory—typically in the range of tens of GB/s to over a hundred GB/s, depending on memory generation and channel count—is already enough to support generation speeds close to 20 tokens per second.
3.2 Empirical Performance Reference
In community practice, typical results for similar configurations running MoE models are roughly as follows:
- 20B–30B-level MoE models (Q4 quantization): about 18–21 tok/s generation speed;
- 35B-level MoE models (Q4 quantization): around 20 tok/s;
- Dense models of the same scale: usually only a fraction of the MoE speed, with a clear difference in user experience.
It is important to emphasize that these numbers are empirical reference ranges, not precise guarantees. Actual speed is affected by memory frequency, channel count, quantization format, context length, and other factors.
3.3 Quantization Strategy Recommendations
- Prefer Q4_K_M: it offers a good balance between quality and size, and a 35B model can be compressed to around 20GB;
- Avoid over-quantization: the impact of quantization below Q3 on expert networks is harder to predict than with dense models, so testing and comparison are recommended;
- Budget separately for context cache: KV Cache consumes additional memory, and long-context scenarios require several GB of reserved space.
4. From “It Runs” to “It Is Useful”: Local Agent Workflows
Simple chat-based question answering is only the starting point. When local inference speed reaches the level of around 20 tok/s, it is already sufficient to support complete multi-step agent workflows: tool calling, multi-round reflection, code generation and execution, document retrieval augmentation, and similar patterns can all complete within acceptable latency.
The unique value of local deployment in this scenario includes:
- Zero marginal cost: when repeatedly debugging Agent prompts and workflows, there is no need to worry about per-token billing;
- Data does not leave the local environment: processing involving sensitive code or private documents is completed entirely on the local machine;
- Offline availability: there are no network or quota restrictions.
A common combination is: a local inference service provides an OpenAI-compatible interface, and the upper-layer Agent framework connects through standard HTTP calls. The two are decoupled and can be switched to a stronger cloud model at any time for cross-validation.
5. Limitations and a Clear-Eyed View
This approach is not without shortcomings:
- Long-context performance degrades noticeably: prompt processing speed is much lower than token generation speed, and feeding very long documents in one pass will cause obvious waiting;
- Not suitable for large dense models: even if a 70B+ dense model can fit, its speed is difficult to make practical;
- Bandwidth is the ceiling: there is an order-of-magnitude gap between integrated GPU memory bandwidth and high-end discrete GPUs, and compute-intensive workloads such as batched concurrency will quickly hit the limit.
6. Conclusion
The combination of sparse expert architectures + unified memory + Vulkan + mature inference frameworks lowers the barrier to “running a 35B model locally” from high-cost discrete-GPU systems to low-cost mini PCs. For individual developers doing prototype validation, offline inference in privacy-sensitive scenarios, and high-frequency iteration on Agent workflows, this is a highly cost-effective and fully self-controlled path. Understanding the underlying principles—“MoE reduces compute demand, and UMA removes the memory ceiling”—is more important than remembering any specific configuration numbers, because this logic will continue to apply to lighter model architectures in the future.
