Why GPU Utilization Stays Low When Running Local LLMs on Integrated Graphics (and How to Fix It)
Many developers running large language models on laptops or mini PCs with capable integrated GPUs notice the same frustrating pattern: inference speeds fall far below expectations, GPU usage fluctuates in Task Manager, and most of the computation still lands on the CPU. This article explains the root causes of low GPU utilization on integrated graphics and provides practical optimization steps, including shared memory configuration, framework and backend selection, quantization choices, and deployment tips for local knowledge base setups.
Running LLMs on Integrated Graphics: Why the GPU “Does Nothing”
Many developers deploy open-source large language models on laptops or mini PCs with reasonably capable integrated GPUs, only to discover a common pattern: despite the iGPU’s decent specs, inference speed is far below expectations, GPU usage in Task Manager fluctuates, and most of the computation still runs on the CPU. This article analyzes the causes of this problem from a general technical perspective and outlines practical solutions.
1. Understanding the “Shared Memory” Mechanism of Integrated GPUs
Unlike discrete graphics cards, integrated GPUs have no dedicated VRAM chips. Their available memory comes from two parts:
- Dedicated VRAM: A fixed memory region allocated in the BIOS, which the OS treats as real video memory;
- Shared memory: Memory dynamically borrowed from system RAM, subject to driver policies and OS scheduling.
By this design, the total memory available to the iGPU equals the sum of the two. For example, if the BIOS allocates 2GB of dedicated VRAM and the system has 64GB of physical RAM, then—with proper driver and inference framework support—the capacity available for loading model weights can far exceed the dedicated VRAM alone. This is the biggest advantage of iGPU platforms for running LLMs: as long as system RAM is large enough, models weighing tens of gigabytes can fit entirely into “video memory,” avoiding CPU fallback.
Additionally, desktop platforms offer more memory slots and higher capacity ceilings. Dual-channel memory and higher frequencies (e.g., 6400MT/s and above) effectively boost the iGPU’s memory bandwidth. Since bandwidth is often the bottleneck for iGPU inference, memory frequency directly affects generation speed—something to prioritize when choosing components.
2. Three Root Causes of Low GPU Utilization
1. The inference framework isn’t actually using the iGPU
Mainstream inference frameworks accelerate via GPU compute backends (such as ROCm, Vulkan, Metal, etc.), but some backends handle integrated GPUs poorly. Issues may include the device not being recognized, kernels not compiled for that support, or driver version mismatches. When the framework cannot find a usable GPU acceleration path, it silently falls back to CPU mode—the visible symptom being “GPU completely idle.”
What to do: Confirm that your inference framework version explicitly supports your iGPU architecture and the corresponding compute backend. If necessary, use a community build adapted for that iGPU, or switch to a more compatible graphics/compute backend (Vulkan-type backends tend to be more iGPU-friendly). After deployment, check the framework logs to verify that model layers were actually loaded onto the GPU.
2. Setting dedicated VRAM too high backfires
Counterintuitively, setting the BIOS dedicated VRAM very high (e.g., above 16GB) can cause model loading failures or layers being rejected from the GPU. The reason: some inference frameworks use dedicated VRAM as the basis for memory allocation decisions. When the model size exceeds that value, the framework’s layer allocation strategy can misbehave and simply give up on GPU loading.
Practical recommendations:
- Set dedicated VRAM to around 2GB and let the shared memory mechanism handle large capacity;
- Let the inference framework use both GPU and CPU when loading large models (hybrid layer offloading)—prioritize “getting the model running” over “fitting everything on the GPU”;
- If the framework supports it, manually adjust the number of GPU layers (e.g., the
n_gpu_layersparameter) and probe for the optimal split.
Example configuration:
# Example using generic inference framework parameters: gradually increase layers offloaded to the GPU./llama-server -m model.gguf --n-gpu-layers 99 --ctx-size 4096# If loading fails or speed drops sharply, reduce the layer count to find the turning point
3. Unreasonable quantization and context settings
Model size should match available memory. A Q4_K_M 4-bit quantization is generally recommended so the model weights fit as completely as possible into GPU-available memory. The larger the context length, the more VRAM the KV cache consumes, so leave extra headroom. As a rule of thumb, the model file size plus a 20%–30% buffer should not exceed total available memory—this is the basic condition for keeping the GPU fully utilized.
3. Setting Realistic Expectations for iGPU Inference
Take a current high-end iGPU platform with dual-channel high-frequency memory as an example:
- A roughly 27B model with 4-bit quantization, fully loaded onto the GPU, typically generates at single-digit to low-teens tokens/s—usable for local Q&A and knowledge base retrieval;
- 32B-class models can also fit entirely, provided RAM capacity is sufficient;
- If speed is clearly below this range, check first: whether computation fell back to the CPU, whether memory is running in dual-channel mode, and whether other processes are competing for memory bandwidth.
4. Deployment Tips for Local Knowledge Bases
If your goal is building a local knowledge base with an LLM (accessed via API through knowledge base clients), pay attention to the serving layer as well:
- Decouple the inference service from the knowledge base frontend: Serve the model through an OpenAI-compatible API and let the knowledge base tool handle retrieval and orchestration only, avoiding duplicated overhead;
- Benchmark different inference backends: With the same model and quantization, different compute backends (GPU-native vs. general graphics backends) can differ in throughput by several times. Test with a fixed evaluation set before choosing;
- Consider cloud options: When local hardware genuinely can’t meet concurrency and latency requirements, consider migrating inference to cloud GPU instances or calling hosted LLM APIs from cloud providers. Keeping only retrieval and business logic locally often yields better overall cost and stability.
5. Optimization Checklist
- Set BIOS dedicated VRAM to 2GB and rely on shared memory for expanded capacity;
- Choose an inference framework version and compute backend that explicitly support your iGPU, then verify the GPU is genuinely participating in computation;
- Use dual-channel memory at high frequency, with as much capacity as possible;
- Pick 4-bit quantized models and keep model size plus buffer within available memory;
- Manually tune the GPU layer count to find the optimal balance;
- For knowledge base scenarios, integrate via an API service, select backends based on real benchmarks, and move to the cloud when necessary.
The core principle for running LLMs on integrated graphics is “memory is VRAM, bandwidth is speed.” Understand the shared memory mechanism, pick the right inference backend, and configure quantization and layer offloading properly—your iGPU can then deliver inference performance well beyond expectations.
