bolt Valebyte VPS from $4/mo — NVMe, 60s deploy.

Get a VPS arrow_forward

Self-Hosted LLM Hardware: VRAM & RAM Requirements

calendar_month September 08, 2026 schedule 20 min read visibility 11 views
person
Valebyte Team
Self-Hosted LLM Hardware: VRAM & RAM Requirements
summarize

TL;DR

  • For self-hosted LLMs, a 7B (Q4) needs 8GB VRAM/16GB RAM; a 70B (Q8) needs 48-64GB VRAM/128GB RAM.
  • VRAM is crucial for LLMs as it stores model weights, directly impacting inference speed and feasibility.
  • Quantization (e.g., Q4, Q8) significantly reduces VRAM requirements by lowering model weight precision.
  • System RAM supports the OS, software, data caching, and large context windows, not direct GPU inference weights.
To run self-hosted LLM models in 2026, a 7B parameter model (Q4 quantization) requires a minimum of 8 GB VRAM and 16 GB RAM, while 70B models (Q8) need 48-64 GB VRAM and 128 GB RAM.

Why VRAM is Critical for Self-Hosted AI Servers and Local LLMs

At the core of any self-hosted AI server, especially when working with large language models (LLMs), lies the graphics processing unit (GPU) and its video memory (VRAM). VRAM determines whether a model can even fit into memory for inference and directly impacts performance. High-performance CPUs can take on some of the load or even the entire model in the absence of a GPU, but this always involves a compromise in speed, measured in seconds or even minutes per token instead of milliseconds.

Choosing the right server configuration for a neural network isn't just about picking "bigger and more expensive." It's a delicate balance between VRAM capacity, GPU speed, system RAM, and CPU performance, all dependent on specific tasks. Our goal is to help you understand the relevant server requirements for self-hosted applications for various AI scenarios, so you can effectively utilize your resources.

VRAM vs. RAM: Key Differences for LLMs

VRAM (Video Random Access Memory) is specialized, high-speed memory located directly on the graphics card. It is critically important for LLMs because this is where the model's weights (parameters) are loaded. The more parameters a model has, the more VRAM it requires. If a model doesn't fit into VRAM, the GPU either won't be able to process it, or inference will suffer a catastrophic performance loss due to constant data swapping with slower system RAM.

RAM (Random Access Memory) is the system's main memory. It's necessary for the operating system, software, data caching, and buffers. While RAM doesn't directly store LLM weights during GPU inference, it still plays an important role. For example, it's used when loading the model, processing input and output data, and handling large context windows (especially in RAG systems). If you plan to use the CPU for inference (which, as we'll see, is very slow), then RAM becomes the primary storage for the model's weights.

Model Quantization: How to Reduce VRAM Requirements

Quantization is the process of reducing the precision of a model's weights (e.g., from FP16 to Q8 or Q4), which significantly reduces the amount of VRAM needed to load it. This is a key technology that allows larger models to run on more modest hardware.

  • FP16 (Full Precision 16-bit): The standard format, providing maximum accuracy but requiring the most VRAM. A 7B model in FP16 will occupy about 14 GB VRAM.
  • Q8 (8-bit Quantization): A 7B model in Q8 will occupy approximately 8 GB VRAM. This offers a good compromise between accuracy and memory requirements.
  • Q4 (4-bit Quantization): The most aggressive level of quantization. A 7B model in Q4 can fit into 4-5 GB VRAM. However, this may lead to some loss in generation quality, though it's often unnoticeable for many tasks.

The choice of quantization level directly determines how much VRAM is needed for LLMs. For most self-hosted LLM hardware requirements projects, it's recommended to start with Q8 or Q4 to maximize accessibility and minimize GPU costs.

Self-Hosted LLM Hardware Requirements: How Much VRAM Do You Need?

Understanding how much VRAM is required for a specific LLM is the cornerstone of planning your self-hosted AI stack hardware. The figures below are approximate and may vary slightly depending on the specific model architecture and the framework used (e.g., llama.cpp, vLLM).

VRAM Requirements for 7B Models (e.g., Llama 3 8B, Mistral 7B)

7-billion parameter models are an excellent starting point for many local tasks, such as summarization, chatbots, or light text generation. They strike a good balance between performance and accessibility.

  • FP16: ~14-16 GB VRAM.
  • Q8: ~8-10 GB VRAM.
  • Q4: ~4-6 GB VRAM.

To run 7B models in Q4 or Q8, a GPU with 8 GB VRAM, such as an NVIDIA RTX 3050/3060 or older professional cards, is often sufficient. If you plan to use multiple models or an extended context window, it's better to aim for 12-16 GB VRAM.

VRAM Requirements for 13B Models (e.g., Llama 2 13B)

13-billion parameter models offer noticeably improved generation quality compared to 7B models, especially for more complex tasks requiring deeper contextual understanding.

  • FP16: ~26-28 GB VRAM.
  • Q8: ~13-15 GB VRAM.
  • Q4: ~7-8 GB VRAM.

For these models in Q4 or Q8, you'll already need a GPU with 12-16 GB VRAM, such as an NVIDIA RTX 4060 Ti 16GB, RTX 3080/3090, or professional solutions. If you're targeting FP16, you'll need a card with 24 GB VRAM, like an RTX 3090/4090, or server GPUs such as A10/A40. You can learn more about choosing the right graphics card for inference in our article GPU for LLM inference: which graphics card to rent for 7B/70B models.

VRAM Requirements for 70B Models (e.g., Llama 3 70B)

70-billion parameter models represent the pinnacle of available self-hosted LLMs, offering quality comparable to commercial solutions. However, their hardware requirements are significantly higher.

  • FP16: ~140-160 GB VRAM. This requires multiple high-performance GPUs (e.g., 2x A100 80GB or 4x A40 48GB).
  • Q8: ~70-80 GB VRAM. Achievable on a single A100 80GB or two A40 48GB.
  • Q4: ~35-40 GB VRAM. Can be run on a single A40 48GB or two RTX 3090/4090 (24GB each) using Multi-GPU technology (e.g., via vLLM with layer distribution).

Running 70B models is a task for specialized GPU servers. Renting such servers becomes more cost-effective than purchasing them. Valebyte offers a wide range of GPU servers suitable for these tasks. Find out more about where to buy or rent a GPU server.

Looking for a reliable server for your projects?

VPS from $10/month and dedicated servers from $9/month with NVMe, DDoS protection, and 24/7 support.

View offers →

CPU Inference: When RAM Replaces VRAM and Why It's Slow

If you don't have a suitable GPU or its VRAM is insufficient, you can run LLMs on a CPU. In this case, the model is fully loaded into system RAM. This makes RAM a critically important resource for local AI server requirements without a GPU.

How Much RAM is Needed for CPU Inference?

For CPU inference, RAM requirements are approximately twice as high as VRAM for the corresponding quantization, plus extra for the operating system and other processes. For example:

  • 7B model (Q4): ~8-10 GB RAM.
  • 7B model (Q8): ~16-20 GB RAM.
  • 13B model (Q4): ~16-20 GB RAM.
  • 13B model (Q8): ~32-40 GB RAM.
  • 70B model (Q4): ~80-100 GB RAM.

However, CPU inference speed will be significantly lower than on a GPU. While a GPU can generate tens or hundreds of tokens per second, a CPU might only produce 1-5 tokens per second, making it unsuitable for interactive applications or high-load scenarios.

CPU Inference Features and Optimization

Optimized libraries like llama.cpp, which are compiled with support for AVX2, AVX512, or ARM NEON instructions to accelerate computations, are often used for CPU inference. Even with these optimizations, CPU inference remains a "plan B" when a GPU is unavailable. It's suitable for testing, one-off tasks, or very undemanding applications where speed is not critical.

# Пример запуска LLM на CPU с llama.cpp
./main -m models/llama-2-7b-chat.Q4_K_M.gguf -p "Расскажи мне анекдот." -n 128 --temp 0.7

CPU performance for LLM inference heavily depends on the number of cores and their clock speed. Server CPUs, such as Intel Xeon E3/E5 or AMD EPYC, with a large number of cores and good single-thread performance, will perform better than typical desktop processors.

Quick pick
Need a dedicated server?
Bare metal with NVMe in 70+ locations — configure and order in minutes.
Browse servers

Self-Hosted AI Use Cases and Their Server Requirements

Let's examine specific AI use cases and determine their corresponding self-hosted AI server requirements. This table serves as a guide to help you choose the optimal configuration.

For most self-hosted AI scenarios requiring a GPU, renting a specialized server with an NVIDIA GPU is the optimal solution, offering a balance between VRAM, computational power, and cost.

AI Scenario Example Model Quantization Required GPU/VRAM Recommended RAM Recommended CPU Notes
Basic Chatbot / Summarization Llama 3 8B, Mistral 7B Q4/Q8 1x NVIDIA RTX (8-12 GB VRAM) 16-32 GB 4-6 vCPU For personal use or a small number of users.
RAG System / Advanced Chat Llama 2 13B, Mixtral 8x7B Q4/Q8 1x NVIDIA RTX (16-24 GB VRAM) 32-64 GB 6-8 vCPU More RAM is required for vectorization and document storage.
Advanced Text Generation / Code Llama 3 70B (Q4) Q4 1x NVIDIA A40 (48 GB VRAM) or 2x RTX 3090/4090 (24 GB) 64-128 GB 8-12 vCPU High VRAM and bandwidth requirements.
STT (Speech-to-Text) / TTS (Text-to-Speech) Whisper Large v3, VITS FP16/Q8 1x NVIDIA RTX (12-16 GB VRAM) 16-32 GB 4-6 vCPU Depends on audio/text length and number of streams.
Image Generation (Stable Diffusion) SDXL, Midjourney-style models FP16 1x NVIDIA RTX (12-24 GB VRAM) 32-64 GB 6-8 vCPU VRAM is critical for image resolution and complexity.
CPU-only Inference (experimental) Llama 3 8B Q4/Q8 No GPU 32-64 GB 8-16 vCPU (Xeon/EPYC) Very slow. Only for non-critical tasks.

Scenario 1: Basic Chatbot with a 7B Model

To run a simple chatbot based on a 7B model (e.g., Llama 3 8B Instruct or Mistral 7B) in a quantized form (Q4 or Q8), you'll need a relatively modest GPU. For instance, a GPU with 8-12 GB VRAM will be sufficient. 16-32 GB of system RAM will be enough to comfortably run the OS and other processes. A CPU with 4-6 vCPUs will be more than adequate. Such self-hosted AI server requirements are ideal for personal projects, experiments, or small internal applications.

Scenario 2: RAG System with a 13B Model

RAG (Retrieval Augmented Generation) systems, which combine LLMs with an external knowledge base, require more resources. In addition to the LLM itself (e.g., Llama 2 13B or Mixtral 8x7B in Q4/Q8), you need space for storing and processing document embeddings, as well as for running a vector database. For the GPU, 16-24 GB VRAM will be required. It's better to have ample RAM—32-64 GB—especially if you have a large document base. A CPU with 6-8 vCPUs will handle requests to the vector database and orchestration. This is a typical self-hosted LLM hardware requirement for corporate chatbots or decision support systems.

Scenario 3: Advanced Text and Code Generation with a 70B Model

If your task involves high-quality text generation, code development, or other complex tasks requiring maximum accuracy, 70B models (e.g., Llama 3 70B) are your choice. Here, VRAM requirements increase sharply. Even with Q4 quantization, you'll need a minimum of 35-40 GB VRAM. This means you'll either need a professional GPU with a large amount of VRAM (e.g., NVIDIA A40 with 48 GB) or multiple consumer-grade cards (e.g., two RTX 3090/4090 with 24 GB each) with Multi-GPU support. System RAM will require 64 GB to 128 GB. A CPU with 8-12 vCPUs will be necessary for handling parallel requests and managing the stack. Such local AI server requirements are most often met by dedicated GPU servers.

Scenario 4: STT/TTS and Image Generation

Models for speech processing (Speech-to-Text, Text-to-Speech) like Whisper Large v3 or for image generation (Stable Diffusion XL) also heavily depend on the GPU. For Whisper Large v3 (FP16), about 10-12 GB VRAM will be needed. For Stable Diffusion XL with high-resolution image generation, 12-24 GB VRAM. RAM in the 16-32 GB range will be sufficient, and a CPU with 4-6 vCPUs will be optimal. These tasks scale well on GPUs, and even a single powerful consumer card can provide good performance for a single user or a small stream of requests.

Recommendations for Choosing Your Self-Hosted AI Stack Hardware

The correct choice of components is critical for the stable and efficient operation of your AI server.

GPU: The Heart of Your AI Server

As mentioned, the GPU and its VRAM are the primary factors. When choosing a GPU for local LLM, pay attention to:

  1. VRAM Capacity: The main criterion. Aim for 8 GB for 7B (Q8/Q4), 16-24 GB for 13B (Q8/Q4) and 48+ GB for 70B (Q4).
  2. Memory Bandwidth: Important for the speed of data loading and processing. HBM (High Bandwidth Memory) in professional cards (A100, H100) significantly outperforms GDDR6X in consumer cards (RTX).
  3. CUDA Cores: The more, the better for parallel computations.
  4. Interface: PCIe Gen4 or Gen5 for maximum data transfer speed with the CPU.

For budget-friendly solutions, NVIDIA RTX 3060 12GB and RTX 4060 Ti 16GB are good choices. For more serious tasks, RTX 3090/4090 (24GB) or professional Quadro/Tesla/A-series cards are recommended. Valebyte offers a wide range of GPU servers with various NVIDIA GPU configurations.

CPU: Support for GPU and General Tasks

While the GPU performs the main inference work, the CPU is still important for:

  • Managing the operating system and applications.
  • Preprocessing and postprocessing data.
  • Loading models into VRAM.
  • Running vector databases.

It is recommended to choose a CPU with a sufficient number of cores (4 to 12 vCPUs) and good single-thread performance. For server solutions, Intel Xeon E3/E5 or AMD EPYC processors are excellent choices. For CPU inference, as noted earlier, the most powerful CPU with a large number of cores is required.

RAM: Data and OS Buffer

The amount of system RAM should be sufficient for all processes not directly related to LLM GPU inference, plus a small buffer. As a general rule, it's recommended to have at least twice as much RAM as the VRAM of your primary GPU, or a minimum of 32 GB for most scenarios. If you plan to actively use RAG systems or multi-threaded applications, 64-128 GB RAM will be an optimal choice. For CPU inference, as we've discussed, RAM becomes the primary storage for the model, so its capacity must match the model's size.

Disk: Speed and Capacity for Models

LLM models can occupy tens or hundreds of gigabytes. Disk subsystem speed affects model loading time and performance with large datasets. It is highly recommended to use NVMe SSDs for the operating system, temporary files, and model storage. Disk capacity should be sufficient to store multiple models, their versions, as well as logs and other data. A minimum of 240 GB NVMe, but 480 GB or 1 TB is better, depending on the number and size of models you plan to run.

# Пример проверки доступного дискового пространства
df -h

# Пример проверки скорости диска (только для тестирования, не в продакшене)
sudo apt install fio
fio --name=random-read-write --ioengine=posixaio --rw=randrw --bs=4k --size=1G --numjobs=1 --iodepth=1 --runtime=60 --time_based --group_reporting

Network: For Access and API

For a self-hosted AI server, network connection speed is important if you plan to provide access to your models via an API or interact with external services. A Gigabit (1 Gbps) port is standard. For high-load APIs or distributed systems, 10 Gbps or higher may be required.

Optimizing Your Self-Hosted AI Stack and Software

Choosing the hardware is only half the battle. Proper software configuration and stack optimization are also critically important for getting maximum performance from your neural network server.

Choosing an Operating System

For most self-hosted AI projects, Linux (Ubuntu Server, Debian) is the preferred choice due to its stability, flexibility, and broad support for AI frameworks. Configuring NVIDIA drivers and CUDA on Linux is well-documented.

# Пример установки драйверов NVIDIA и CUDA на Ubuntu
sudo apt update
sudo apt install ubuntu-drivers-common
sudo ubuntu-drivers autoinstall
sudo apt install nvidia-cuda-toolkit

Frameworks and Libraries

For working with LLMs, the following frameworks and libraries are most popular:

  • PyTorch / TensorFlow: Primary machine learning frameworks.
  • Hugging Face Transformers: A library for easily loading and using pre-trained LLMs.
  • llama.cpp: A highly optimized library for CPU and GPU LLM inference, especially good for quantized models (GGUF format).
  • vLLM: A high-performance library for GPU LLM inference, optimized for parallel requests and large context windows.
  • Ollama: A simple way to run LLMs locally with a convenient CLI and API.

Containerization (Docker/Podman)

Using Docker or Podman for containerizing your AI stack simplifies deployment, dependency management, and scaling. You can easily migrate your stack between different servers or update components without affecting the entire system.

# Пример Dockerfile для LLM-сервера
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "app.py"]

Resource Monitoring

Be sure to set up monitoring for GPU usage (VRAM, core load), CPU, RAM, and disk. This will help you identify bottlenecks and optimize the performance of your self-hosted AI server requirements.

# Проверка использования GPU
nvidia-smi

# Проверка использования RAM и CPU
htop
Quick pick
Need a dedicated server?
Bare metal with NVMe in 70+ locations — configure and order in minutes.
Browse servers

Frequently Asked Questions

How much VRAM do you need for a 7B LLM?

To run a 7-billion parameter LLM (e.g., Llama 3 8B) with quantization (Q4 or Q8), you'll need 4 to 8 GB of VRAM. Q4 models can fit into 4-5 GB, while Q8 models will require around 8 GB. For full precision (FP16), approximately 14-16 GB of VRAM is needed.

Can I run an LLM on a CPU without a GPU?

Yes, it is possible to run an LLM on a CPU, but it will be significantly slower. The model will be loaded into system RAM, and for a 7B model in Q4, approximately 8-10 GB of RAM will be needed, and for Q8, 16-20 GB of RAM. CPU token generation speed is typically 1-5 tokens per second, in contrast to tens or hundreds on a GPU.

How much RAM is needed for a self-hosted AI server?

The amount of RAM depends on the scenario. For GPU inference, it's recommended to have a minimum of 16-32 GB RAM for 7B/13B models, and 64-128 GB for 70B models, to ensure the OS, caching, and other processes run smoothly. For CPU inference, RAM becomes the primary storage for the model, so its capacity must match the model's size.

Which GPUs are best for local LLM inference?

For local LLM inference, NVIDIA graphics cards with large VRAM capacity are best. For smaller models (7B-13B), RTX 3060 12GB, RTX 4060 Ti 16GB, RTX 3080/3090/4090 (24GB) are suitable. For larger models (70B+), professional NVIDIA A40 (48GB) or A100 (80GB) cards are recommended.

What is the difference between FP16, Q8, and Q4 quantization?

FP16 (16-bit floating point) is the standard format with high precision but higher VRAM requirements. Q8 (8-bit) and Q4 (4-bit) quantization reduce the model size and VRAM requirements by lowering the precision of the weights. Q4 provides the greatest VRAM savings but may slightly degrade generation quality, although this is acceptable for most tasks.

Conclusion

Choosing the optimal server for self-hosted AI and LLMs in 2026 entirely depends on your tasks and budget. The key factor is the amount of VRAM on the GPU, which determines which model and at what quantization level can be run. System RAM plays a supportive role for GPU inference and becomes critical for CPU inference, which, however, is significantly slower. For most practical scenarios, it's recommended to target GPU servers with 12-24 GB VRAM, and for high-load or large-scale tasks, professional GPU solutions with 48 GB VRAM or more, which can be rented from Valebyte.

SSD NVMe
Ready to launch your VPS?

NVMe VPS with 60-second activation: full root access, 20+ locations, pay with card or crypto.

Choose your plan
support_agent
Valebyte Support
Usually replies within minutes
Hi there!
Send us a message and we'll reply as soon as possible.