The most common mistake in GPU rental is picking a graphics card by its name instead of by the model you plan to run. When you want to host a large language model (LLM) yourself, gaming benchmarks barely matter. What decides everything is VRAM: if the model does not fit in graphics memory, it either refuses to load or spills into system RAM and crawls along at a few words per second. This guide shows you how to estimate the VRAM a model needs, how quantization and context length change that number, which class of card makes sense for which job, and how to get a rented GPU server up and running step by step.
A VRAM estimate has three parts. Once you understand each of them, you can size almost any model in a couple of minutes.
On top of that, the CUDA runtime, the inference engine's own buffers and concurrent requests need anywhere from a few hundred MB to a few GB of headroom.
A rough but reliable formula looks like this:
Required VRAM ≈ (Parameters × Bytes per weight) + KV cache + 10-20% headroom
Example: 14B model, 4-bit (≈ 0.55 bytes per weight)
Weights : 14 × 0.55 ≈ 7.7 GB
KV cache : ≈ 1.5 GB for 8K context
Headroom : ≈ 1 GB
Total : ≈ 10-11 GB → a 12 GB card is tight, 16 GB is comfortable
We use 0.55-0.6 rather than 0.5 for 4-bit because popular formats such as Q4_K_M in GGUF keep some layers at higher precision. Real file sizes usually land in that range.
The figures below cover the weights only and are approximate; architectures vary slightly. The last column is the card memory we suggest for comfortable use with 4K to 8K tokens of context.
| Model size | FP16 | 8-bit | 4-bit | Suggested VRAM (4-bit) |
|---|---|---|---|---|
| 3-4B | ≈ 7-8 GB | ≈ 4 GB | ≈ 2.5 GB | 6-8 GB |
| 7-8B | ≈ 15-16 GB | ≈ 8 GB | ≈ 5 GB | 8 GB (12-16 GB for long context) |
| 12-14B | ≈ 26-28 GB | ≈ 14-15 GB | ≈ 8-9 GB | 12-16 GB |
| 24-32B | ≈ 50-64 GB | ≈ 26-34 GB | ≈ 15-20 GB | 24-32 GB |
| 70B | ≈ 140 GB | ≈ 70-75 GB | ≈ 40-43 GB | 48 GB or more (multi-GPU) |
If you plan to summarize long documents, ask questions over a codebase or run RAG (retrieval plus generation), calculate the KV cache separately:
KV cache (bytes) = 2 × layers × KV heads × head dim × context (tokens) × bytes
Example: 8B-class model (32 layers, 8 KV heads, dim 128, FP16 = 2 bytes)
Per token : 2 × 32 × 8 × 128 × 2 = 131,072 bytes ≈ 128 KB
8K context : ≈ 1 GB
32K context : ≈ 4 GB
128K context : ≈ 16 GB
You can find the layer and head counts in the model's config.json on Hugging Face. The takeaway: even though an 8B model is only about 5 GB at 4-bit, opening a 128K context can fill a 16 GB card. Most inference engines let you store the KV cache in 8-bit, which roughly halves context memory.
If you serve several users at once, every concurrent request needs its own KV cache. Five users with 8K of context each means setting aside around 5 GB on top of the weights in the example above.
Thinking in VRAM classes makes a GPU rental decision much simpler:
| VRAM class | Models that fit | Typical use |
|---|---|---|
| 8 GB | 3-8B, 4-bit | Experiments, personal assistant, classification, short text generation, small embedding models |
| 16 GB | 7-14B, 4/8-bit | Internal chatbot, RAG, coding assistant, Stable Diffusion style image generation |
| 24 GB | 24-32B, 4-bit | Stronger reasoning, long documents, LoRA fine-tuning experiments |
| 32 GB | 32B comfortably at 4/5-bit; 14B with long context | Production inference, multiple concurrent users, large image and video models |
| 48 GB and up (multi-GPU) | 70B, 4-bit | Enterprise scenarios that genuinely need a large model |
Look at the architecture, not just the memory size. Older data center cards such as the 24 GB NVIDIA Tesla P40 are attractive for fitting a big model into memory and work fine for quantized inference with llama.cpp, but their FP16 compute is limited compared to newer cards and some current frameworks may not support older architectures. Newer cards like the RTX 5090 with 32 GB of GDDR7 are far ahead in memory bandwidth and token generation speed. For card-specific details, see our Tesla P40 server rental guide and our RTX 5090 server rental guide.
Once a model fits in VRAM, token generation speed is mostly set by memory bandwidth, because nearly all weights are read from memory for every token. Of two cards with the same VRAM, the one with higher bandwidth feels noticeably snappier in chat-style use. In batch work, where many documents are processed at once, raw compute starts to matter as well.
Pick a GPU server that fits your model
GPU servers in several VRAM classes, hosted in Istanbul, with a free /64 IPv6 block.
Browse GPU server rental plansThere are two main routes when you rent a graphics card. These questions help you decide:
We cover how a GPU VDS works in our guide to GPU VDS. For RAID, remote console and bandwidth on the physical side, see our checklist for renting a dedicated server.
The steps below assume Ubuntu 24.04 LTS. The goal is to confirm the card is visible, download and run a model, and measure real VRAM usage.
nvidia-smi
# You should see the card model, total/used memory and driver version.
# If the command is missing, install the recommended driver:
sudo apt update
sudo ubuntu-drivers install
sudo reboot
curl -fsSL https://ollama.com/install.sh | sh
ollama run llama3.1:8b # pulls a 4-bit build by default
# In another terminal:
ollama ps # shows whether the model runs on GPU or CPU
nvidia-smi # shows actual VRAM usage
You want to see "100% GPU" in the ollama ps output. A split such as "CPU/GPU" means the model did not fit and part of it moved to system RAM; choose a smaller quantization or a shorter context.
If you want to set the context length, the number of layers offloaded to the GPU and the KV cache precision yourself, the llama.cpp server is a good fit:
# -ngl 99 : offload all layers to the GPU
# -c 16384: 16K context
./llama-server -m models/model-Q4_K_M.gguf -ngl 99 -c 16384 \
--host 127.0.0.1 --port 8080
If the model does not fit, lower -ngl to keep some layers on the CPU, keeping in mind that every layer you move slows generation down.
nvidia-smi --query-gpu=memory.used,memory.total,utilization.gpu --format=csv -l 5
Watch this while running a typical workload, such as summarizing a long document. Keeping peak usage below 90% of total VRAM is a good threshold for avoiding out-of-memory errors under load.
One of the biggest benefits of a self-hosted model is that your data stays on your own server. That benefit disappears if the inference service is left unprotected.
127.0.0.1:11434 by default and has no authentication. Think twice before exposing it with OLLAMA_HOST=0.0.0.0.sudo ufw default deny incoming
sudo ufw allow 22/tcp
sudo ufw allow from 203.0.113.10 to any port 443 proto tcp
sudo ufw enable
When you feed internal documents, customer conversations or employee records into an AI model, that data may well include personal data. Running the model on a server you rent in Türkiye keeps prompts away from third-party AI services and avoids transferring them abroad, which reduces risk. It does not make you compliant on its own: access authorization, processing logs, encryption, retention periods and transparency duties remain the organization's responsibility, and the server is only one part of the technical measures. For the broader picture, read our guide to data protection and in-country hosting. This section is general information, not legal advice.
Answer these questions before you order:
Once you have filled in this list, the VRAM class you need is usually obvious. If you are torn between two, testing one class down and measuring real usage is smarter than renting a bigger card than you need.
Not sure which VRAM class you need?
Tell us which model and context length you plan to use and we will help you pick the right GPU server. Support requests are accepted 24/7.
See GPU server optionsHow much VRAM is enough for a 7B or 8B model?
A 4-bit quantized 7-8B model takes roughly 5 GB, so an 8 GB card handles it comfortably with short to medium context. If you want 8-bit weights or long context, 12-16 GB is the safer choice.
Can a 70B model run on a single graphics card?
Even at 4-bit, a 70B model needs well over 40 GB. On a single 24 or 32 GB card part of the model spills into system RAM and generation slows down noticeably. For smooth use you need multiple GPUs with 48 GB or more in total.
Does quantization reduce model quality?
Somewhat, but with 8-bit and well-made 4-bit quantizations such as Q4_K_M the difference is small for most chat and summarization work. For code generation and math, 5-bit, 6-bit or 8-bit usually gives better results.
Why does context length increase VRAM usage?
For every token the model stores key and value vectors in each layer, known as the KV cache. It grows linearly with context. For an 8B-class model, 8K tokens of context costs about 1 GB extra and 32K tokens about 4 GB.
Should I choose a GPU VDS or a physical GPU server?
A GPU VDS is enough for testing, small models and a handful of concurrent users. For sustained production load, large models, several cards or full control over the hardware, a physical GPU server is the better fit.
Does running a local LLM make me compliant with data protection law?
Not on its own. Keeping prompts away from third-party AI services lowers risk, but access control, logging, encryption and transparency duties remain the organization's responsibility. This article is not legal advice.
Is it safe to expose Ollama to the internet?
No. Ollama listens on 127.0.0.1 by default and has no built-in authentication. If you need remote access, put an authenticating reverse proxy in front of it and allow only your own IP addresses in the firewall.