GPU Inference - Why Local Language Models Need Graphics Processors
GPU inference means running language models on graphics processors. Sizing, utilization, quantization, and batching decide the speed and cost of local operation.
GPU inference means running a trained language model - that is, answer generation, the so-called inference - on graphics processors (GPUs) instead of ordinary CPUs. For operating an on-premise LLM, it is usually the decisive building block: without a GPU, modern models respond so slowly that interactive use is hardly possible.
Why LLM Inference Needs GPUs
A language model produces its answer token by token, and each step requires many matrix multiplications over the model weights. Exactly this kind of operation can be massively parallelized - and that is what GPUs, with their thousands of cores, are built for. A CPU processes such computations comparatively sequentially and thus becomes the bottleneck. Besides raw compute, GPU memory (VRAM) is often the limiting factor: the model weights must fit in, otherwise inference does not run at all or only heavily throttled.
Sizing: The Right GPU for the Model
Sizing is about matching hardware and model. The central question is how much memory the weights occupy and whether they fit, together with the working context, into the VRAM of one or several GPUs. A larger model needs more memory; if it does not fit on one card, it must be distributed across several. Sizing also includes the expected load: how many concurrent requests should be served, and how fast should the answer appear?
Utilization and Batching
A single request usually does not saturate a GPU. That is why several requests are combined into one batch and processed together - this is called batching. Many requests then share the same compute work on the model weights, throughput rises, and the per-request cost drops. The trade-off: larger batches raise throughput but can lengthen the response time of an individual request. Good utilization means keeping the GPU busy as evenly as possible without letting requests wait too long.
Quantization: Making Models Smaller and Faster
Quantization reduces the precision with which the model weights are stored - for example from high-resolution floating-point numbers to more compact integer formats. The model then occupies noticeably less memory and computes faster, while answer quality usually drops only slightly under moderate quantization. For self-hosting this is an important lever: quantization makes it possible to run capable models even on hardware with limited VRAM. Often open-source models are used in quantized form.
Cost Aspect: Self-Hosting vs. API
In-house GPU inference incurs different costs than using a third-party API. With self-hosting, buying or renting the GPUs plus power and operations apply - these costs are largely fixed and amortize better the higher and steadier the utilization. With an API you pay per request, without your own hardware. Which path is cheaper depends on volume: with high, steady demand, self-hosting can lower the per-request cost, while with low or fluctuating demand the API is often more economical. How this calculation breaks down in detail is covered in our glossary under inference costs.
GPU Inference at Elasticbrains
At Elasticbrains we size the hardware to match the model and the expected load - from GPU selection and quantization to batching for efficient operation. See how we build this into a local AI solution on our service page Running On-Premise AI.