Home / Blog / GPU server sizing

GPU server sizing: how much GPU memory does on-premise AI need?

Short answer: Four factors set the GPU memory needed by a language model running inside your organisation: the model's parameter count, the number of bits used to store its weights, the context length kept for each request and the number of requests processed at the same time. The first two reserve a fixed share for the weights; the last two grow through the KV cache. Zylon turns this calculation into ready-made presets chosen by GPU memory; its hardware documentation currently recommends 80 to 96 GB of GPU memory or more as the baseline.

The first question when buying an AI server is usually "Which GPU?". A better question is which model will run, with what context length and how many concurrent requests. This article explains where GPU memory goes, how to make a rough estimate and how Zylon's documented presets map onto that estimate.

Where does GPU memory go?

Zylon's advanced customisation guide divides the GPU memory allocated to a model into three parts: model weights, the KV cache and temporary space used during computation. The weights stay fixed while the model is served; the KV cache grows with each request and is released when the request ends. The PagedAttention paper shows that when a 13 billion parameter model is served on an A100 with 40 GB of memory, roughly 65 per cent of memory holds the weights and close to 30 per cent holds the dynamic state of requests. Fitting the model is therefore only half the job; the remaining memory decides how many requests can be served and with how much context.

Model size and quantisation

A rough estimate of weight memory is the parameter count multiplied by the bytes per parameter. Storing weights in 16 bits takes 2 bytes per parameter; 8 bits take 1 byte and 4 bits about half a byte. Zylon's estimation table gives 140 to 150 GB in 16 bits, 70 to 75 GB in 8 bits and 40 to 45 GB in 4 bits for a 70 billion parameter model.

Quantisation brings that number down. The GPTQ paper reports reducing 175 billion parameter models to 3 or 4 bits per weight with negligible loss of accuracy. AWQ is a weight-only method that shows protecting the most important 1 per cent of weights greatly reduces quantisation error. NVFP4, the 4-bit format NVIDIA introduced with its Blackwell architecture, cuts the model memory footprint by about 3.5 times compared with 16 bits and about 1.8 times compared with 8 bits. Zylon's documentation notes that 4-bit formats may bring a slight drop in quality.

Mixture of experts (MoE) models add one more detail: only some parameters work on each token, yet every expert stays in memory. The Mixtral paper states that serving memory costs are proportional to the total parameter count while compute cost follows the active parameter count. The model card of Qwen3.5 35B A3B lists 35 billion total and 3 billion active parameters, so memory is sized for 35 billion.

Context length and concurrent requests: estimating the KV cache

The KV cache holds the key and value vectors that attention layers keep for every token the model has processed. Its size per token is 2 × number of layers × number of KV heads × head dimension × bytes. The PagedAttention paper works this out for the 13 billion parameter OPT model: 800 KB per token and up to 1.6 GB for a single request of 2,048 tokens.

Total KV memory is the per-token size multiplied by the context length and by the number of concurrent requests. Doubling the context or the number of concurrent requests doubles the cache requirement.

Newer architectures reduce this load. Grouped-query attention (GQA) uses fewer KV heads than query heads. According to its model card, 10 of the 40 layers in Qwen3.5 35B A3B are standard attention layers with 2 KV heads for 16 query heads and a head dimension of 256; the other layers use linear attention. Applying the formula to the standard attention layers gives about 20 KB per token with a 16-bit cache, so a full context of 32,768 tokens takes about 640 MB. The same length would take about 25 GB with an architecture that needs 800 KB per token.

What happens when memory runs out? The vLLM documentation explains that when KV cache space is insufficient, the inference engine preempts some requests and recomputes them once space frees up, which increases end-to-end latency. Zylon's documentation likewise warns that a context window set too high for the allocated memory causes out-of-memory errors, especially in long conversations and with large documents.

Zylon presets: the documented mappings

In Zylon, models and memory allocation are configured through ready-made presets chosen by GPU memory. The system does not detect GPU capacity automatically and an incorrect preset prevents the inference engine from starting. The rule is to choose a preset that matches or is lower than the available memory.

PresetGPU memoryHardware examples in the documentationLanguage model
`baseline-32g`32 GBRTX 5090Qwen3.5 9B, 4-bit AWQ
`baseline-48g`48 GBRTX A6000, A40, L40, L40SQwen3.5 35B A3B, NVFP4
`baseline-96g`96 GBA100 80 GB, H100, two A6000Qwen3.8 27B, NVFP4
`baseline-throughput-96g` (alternative)96 GBSame as aboveQwen3.5 35B A3B, NVFP4
`baseline-large-96g` (alternative)96 GBSame as aboveQwen3.5 122B A10B, 4-bit AWQ

The throughput alternative uses a smaller, lighter model that generates tokens noticeably faster; it may fall short of the standard model in quality and reasoning depth and is intended for many concurrent users. The large model alternative offers more intrinsic knowledge in exchange for a smaller context window.

With several GPUs, memory is added together; the documentation maps four 24 GB cards to the 96 GB tier. The one strict requirement in Zylon's hardware documentation, however, is a GPU with NVIDIA CUDA support and enough memory to run the `baseline-96g` tier, which in practice means planning for 80 to 96 GB or more. Memory capacity decides whether a model fits, while bandwidth drives speed, so two GPUs with the same memory may not perform the same. According to NVIDIA's product pages, the L40S offers 48 GB at 864 GB per second, the H100 80 GB at 3.35 TB per second and the H200 141 GB at 4.8 TB per second.

Sizing step by step

  1. Estimate concurrent requests. What matters is the number of requests waiting for an answer at the same moment, not the number of registered users. Include batch jobs that will run through the API.
  2. Define the context you need. Short questions and answers need far less KV memory than summarising long documents. In the default table of Zylon's documentation, the 96 GB preset has a context window of 32,768 tokens.
  3. Match the preset. In our GPU sizing tool, choose the GPU model and the number of cards to see the matching preset according to Zylon's documentation.
  4. Size everything beyond the GPU. Zylon recommends a CPU with at least 12 cores (16 preferred), at least 64 GB of RAM (128 GB preferred) and at least 4 TB of fast storage (8 TB preferred).
  5. Measure under load. Zylon provides a benchmark script that simulates concurrent requests to measure time to first token, latency and throughput. According to the documentation, resources are allocated to keep response times consistent with 8 to 10 simultaneous users.

For large organisations, Zylon does not provide a reference configuration until the number of users and the work that will run in parallel through the API are understood. Deployment options are described on our on-premise deployment page.

Frequently asked questions

Is the GPU chosen by the number of registered users?
No. What counts is the number of requests processed at the same time and their context length. A single batch job running through the API can generate more concurrent requests than many users.
Does 4-bit quantisation reduce quality?
It depends on the method and the model. The GPTQ and AWQ papers report small accuracy losses at 4 bits; Zylon's table also expects a slight drop in quality. The result is best measured with the organisation's own evaluation set.
Can two smaller GPUs replace one large GPU?
In terms of memory, yes: Zylon chooses the preset by total memory and tensor parallelism splits the model across cards. The documentation recommends GPUs of the same model, adequate PCIe bandwidth between them and NVLink where available.
What can be done to support longer contexts?
Storing the KV cache in the 8-bit FP8 format significantly reduces its memory footprint; according to the vLLM documentation, this lets more tokens fit in memory, which improves throughput and supports longer context windows.

Related glossary terms

GPU memory, Key-value cache, Quantisation, AWQ, Context window, Mixture of experts, Active parameters, Grouped-query attention, PagedAttention, Tensor parallelism, KV cache quantisation, Throughput, AI capacity planning

Sources

Let's do the sizing together before you buy the server

Tell us about your user profile, your document types and the context length you expect; we will work out the right preset, the number of GPUs and a load test plan with you.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.