---
title: 'running-llm-locally-on-a-dedicated-server-with-gpu'
description: 'How to choose a dedicated GPU server for local LLMs: VRAM calculation with quantization, Ollama vs vLLM vs llama.cpp comparison, and RAM, NVMe, and network checklist.'
image: 'https://cdn.zomro.com/uploads/blog/dmytro.shvetz%40zomro.org/2026/11/30/b3581d3b-5188-4681-bd7f-40c2021caf4e_q50.jpg'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [Useful articles](https://zomro.com/blog/articles/)
  * Running an LLM locally on a dedicated GPU server 



# Running an LLM locally on a dedicated GPU server

30-11-2026

![Running an LLM locally on a dedicated server with a GPU](https://cdn.zomro.com/uploads/blog/dmytro.shvetz%40zomro.org/2026/11/30/b3581d3b-5188-4681-bd7f-40c2021caf4e_q50.jpg)

While a project is still at the hypothesis-testing stage, sending requests to public APIs from OpenAI or Anthropic is quite convenient and inexpensive. But as soon as the product goes into production and starts processing thousands of documents, calls, or tickets every day, the situation changes dramatically. Bills for millions of input and output tokens grow faster than revenue, not to mention that European regulators and corporate clients ask uncomfortable questions: whose servers do personal data and trade secrets end up on?

For this reason, fintech companies and product teams in Europe are switching to local inference of open models: Llama, Qwen, DeepSeek, and Mistral. A suitable dedicated server with a GPU for LLMs provides a predictable budget, keeps data isolated within the EU in line with GDPR requirements, and removes dependence on third-party AI providers.

Next, together with the ZOMRO team, we will look at how much video memory different models need, which software to choose for inference, and what to pay attention to in the server configuration besides the GPU.

## Why a dedicated GPU server is more cost-effective than public AI APIs and hourly cloud

Moving language models to your own physical hardware solves four problems at once that a growing AI product faces. In particular:

  * A fixed bill instead of paying for every token. When a model analyzes large PDF contracts or keeps a long correspondence thread in memory, a single request can easily consume tens of thousands of tokens. On your own hardware, the price does not change no matter how many gigabytes of text the neural network processed in a month.
  * Data does not leave the EU. In fintech, healthcare, and law, legal teams often explicitly prohibit sending the customer base to external APIs. On a server in a European data center, the model weights, logs, and user requests stay within your perimeter, so there will be no problems with GDPR.
  * No rate limits. If you need to run a hundred thousand product cards through the model overnight, a cloud service will quickly stop the script with a 429 Too Many Requests error, simply because public APIs limit the number of requests and tokens per minute (RPM/TPM). Your own GPU server solves this problem.
  * Cost-effectiveness for 24/7 operation. Hourly rental in clouds (AWS, GCP, or GPU marketplaces) is certainly convenient if you need to test a hypothesis for a couple of hours. But if the model runs constantly and answers users around the clock, a monthly [_dedicated server with GPU rental_](https://zomro.com/dedicated-gpu) comes out 40–60% cheaper.



Besides, public AI tools regularly become targets of attacks. We have already covered high-profile incidents in our article on [_protecting AI API keys on a server_](https://zomro.com/blog/articles/747-stolen-ai-keys-how-litellm-railway-and-opencode-let-developers-down): local inference inside a closed network completely eliminates the risk of paid tokens leaking out.

## Calculating video memory (VRAM): choosing a GPU for the size of the language model

![videomemory](https://cdn.zomro.com/uploads/blog/dmytro.shvetz%40zomro.org/2026/11/30/98dcd381-ec54-4bde-8c04-e5165be0da13_q50.jpg)

The model must fit entirely into the video memory (VRAM) of the graphics card. If it lacks even a couple of gigabytes, some of the layers will be offloaded to system memory (RAM), which slows generation from 50–80 tokens per second down to 2–4.

In the base FP16 precision (16 bits per parameter), one billion parameters take exactly 2 GB of VRAM. To run large models on affordable hardware, quantization is used (for example, the GGUF, AWQ, or GPTQ formats with 4-bit precision), which compresses the weights by 3–4 times with almost no loss in answer quality.

Below you can see the video memory (VRAM) requirements depending on the LLM size and quantization:

Model size (parameters) |  VRAM for FP16 |  VRAM for 4-bit quantization (GGUF / AWQ) |  Recommended server configuration  
---|---|---|---  
7B – 8B (Llama 3.1 8B, Qwen 2.5 7B) |  ~16 GB |  ~5 – 6 GB |  1× GPU with 12–16 GB VRAM (for example, RTX 4000 Ada / A4000)  
14B – 32B (Qwen 2.5 32B, DeepSeek-R1 32B) |  ~28 – 64 GB |  ~10 – 20 GB |  1× GPU with 24 GB VRAM (RTX 4090 / L4 / A5000)  
70B+ (Llama 3.3 70B, Qwen 2.5 72B) |  ~140+ GB |  ~40 – 48 GB |  2× GPUs with 24 GB VRAM each or 1× A100 / H100 (80 GB VRAM)  
  
Separately, reserve some video memory for the context window (KV-cache). The table above shows the amount needed only for loading the model weights themselves. If you plan to feed the neural network long documents of 32,000 or 128,000 tokens, the KV-cache will consume an additional 4 to 16 GB of VRAM. Therefore, how much VRAM an LLM needs in a real project is always calculated with the formula: model weights + 20–30% on top for context and parallel requests.

You can check the current [_dedicated server with GPU plans_](https://zomro.com/blog/news/641-introducing-a-new-dedicated-server-with-gpu-for-only-92month) in our configuration overview.

## Choosing an inference stack: Ollama vs. vLLM and llama.cpp

![Choosing an Inference Stack: Ollama vs. vLLM and llama.cpp](https://cdn.zomro.com/uploads/blog/dmytro.shvetz%40zomro.org/2026/11/30/122_q50.jpg)

The Linux server is ready, and the question of software arises. To prepare the environment and helper scripts, you will first need the standard [_Python installation on Linux_](https://zomro.com/blog/articles/507-installing-python-on-linux-several-ways), after which you can deploy one of the three main inference engines.

  1. ### Ollama: quick start and prototyping




The simplest tool to get started. It installs with a single command, downloads quantized models from its own repository by itself, and immediately brings up a local REST API. It is great for internal tools, pet projects, and one or two users. The downside is that performance drops when there is a simultaneous stream of 20–50 requests.

  2. ### vLLM: the production standard for high loads




An industrial engine with PagedAttention technology and continuous batching. It can efficiently allocate the KV-cache in video memory and handle dozens of parallel user sessions at once without a drop in speed. If you are building a commercial SaaS service or a public chatbot, the Ollama vs. vLLM question on a server is decided unambiguously in favor of vLLM.

  3. ### llama.cpp: maximum control and hybrid mode




A low-level C++ engine that lets you flexibly split the model layers between the graphics card and the central processor. It is indispensable if the model is slightly larger than your VRAM (for example, you run a 32B model on a card with 16 GB of memory and offload the remaining layers to fast DDR5 RAM).

## Hardware checklist beyond the graphics card (CPU, RAM, NVMe, and network)

![Running an LLM locally on a dedicated server](https://cdn.zomro.com/uploads/blog/dmytro.shvetz%40zomro.org/2026/11/30/221_q50.jpg)

Beginners often look only at the graphics card model and save on the rest of the hardware. This creates a bottleneck when loading weights or processing requests. To make sure that running local LLMs on a server goes without surprises, check four components:

  1. System memory (RAM) no smaller than the VRAM. When the service starts, the model weights are first read from disk into system memory, and only then transferred to the graphics card. If you have a 24 GB GPU but only 16 GB of system RAM, the loading process will crash with an out-of-memory error (OOM Killer). The optimal choice is 64 GB or more of DDR4/DDR5.
  2. Fast NVMe drives. Weight files of modern models range from 15 to 150 GB. On a SATA SSD, a cold start or switching between two models takes minutes. NVMe drives load them into memory in a matter of seconds.
  3. A fault-tolerant disk array. Vector databases (Qdrant, pgvector) and conversation logs must be protected from drive failure. It is worth learning about the [_types of RAID and their advantages_](https://zomro.com/blog/articles/505-what-is-raid-types-features-advantages-and-disadvantages) before deploying a production environment: for AI servers, mirrored RAID 1 or fast RAID 10 is usually chosen.
  4. A wide network channel with no traffic limits. Streaming responses to users, synchronizing vector indexes, and downloading fresh checkpoints from Hugging Face require a stable port of 1 Gbps or more.



In the end, renting a GPU server for neural networks addresses three pain points of a growing project at once: it fixes AI costs, speeds up model responses, and keeps all your data within your own perimeter.

You can pick a suitable configuration with NVMe drives and graphics cards for your models in the ZOMRO dedicated server catalog. We are always ready to suggest the most optimal solution for your tasks and projects.

## FAQ

### How much video memory (VRAM) is needed to run a local language model with 7B or 32B parameters?

With 4-bit quantization (GGUF/AWQ), a model with 7B–8B parameters takes 5–6 GB of VRAM, so a 12–16 GB graphics card is enough with a reserve for context. A 32B model needs 18–20 GB for the weights alone, so you will need a 24 GB GPU.

### What is the difference between Ollama and vLLM when deploying an LLM on a dedicated GPU server?

Ollama installs with a single command and is convenient for personal scripts or testing models, but it quickly chokes under a stream of requests. vLLM is built for production and, thanks to batching, comfortably serves dozens of users at once.

### When is monthly rental of a dedicated GPU server more cost-effective than an hourly cloud GPU?

An hourly cloud is cost-effective only for short tests and model training of 2–4 hours a day. If your AI service or API runs around the clock (24/7), monthly rental of a dedicated server with a GPU is 40–60% cheaper and spares you from hidden surcharges for traffic.

### Why are fast NVMe drives needed when hosting local neural networks?

The weights of large models range from 20 to 100 GB. With an NVMe drive, a cold start or switching between models takes seconds instead of several minutes, and searching vector databases in RAG pipelines is also noticeably faster.

### Can a local LLM on a GPU server be connected as an OpenAI-compatible API?

Yes, both popular engines, Ollama and vLLM, bring up a local REST API out of the box that is fully compatible with the OpenAI standard. To switch your code or n8n agent to a local model, it is enough to simply replace the base endpoint URL in the settings.

Table of contents

  * Why a dedicated GPU server is more cost-effective than public AI APIs and hourly cloud
  * Calculating video memory (VRAM): choosing a GPU for the size of the language model
  * Choosing an inference stack: Ollama vs. vLLM and llama.cpp
  * Hardware checklist beyond the graphics card (CPU, RAM, NVMe, and network)
  * FAQ



Similar articles:

[What is the purpose of a Samba server?](https://zomro.com/blog/articles/528-what-is-a-samba-server-for) [API - Interaction with Rescue](https://zomro.com/blog/articles/485-api-interacting-with-rescue) [API - Operation Delete](https://zomro.com/blog/articles/467-api-operation-delete) [Integration of MySQL with monitoring systems Zabbix and Grafana](https://zomro.com/blog/articles/579-integration-of-mysql-with-zabbix-and-grafana-monitoring-systems) [Creating a strong and secure password](https://zomro.com/blog/articles/27-sozdaem-nadezhnyy-i-bezopasnyy-parol)

[ Virtual hosting from €3.59/mon ](/virtual)
