Home / Knowledge Center / Articles / LLM Infrastructure Requirements: What You Need to Run Large Language Models

LLM Infrastructure Requirements: What You Need to Run Large Language Models

The Infrastructure Challenge of Large Language Models

Large language models (LLMs) have transformed the technology landscape, powering chatbots, code assistants, content generation, search engines, and thousands of other applications. But running them requires infrastructure that would have been considered extreme even a few years ago. Whether you are training a new model from scratch, fine-tuning an existing model for a specific domain, or serving inference at scale to millions of users, the infrastructure requirements are substantial, complex, and growing with each new model generation.

The scale of LLM infrastructure needs is difficult to overstate. Training GPT-4 reportedly required over 25,000 NVIDIA A100 GPUs running for approximately 100 days, consuming tens of megawatts of power. Even serving a moderately popular AI chatbot requires dozens of high-end GPUs running 24/7. This guide provides a practical framework for understanding and planning the infrastructure needed for LLM workloads at every scale, from a single GPU running a 7B parameter model to massive training clusters with thousands of GPUs.

Understanding LLM Resource Requirements

The resources required to run an LLM depend on three primary factors: the number of parameters in the model (which determines memory needs), the precision or data type used for computation (which trades accuracy for efficiency), and the specific task being performed (training requires far more resources than inference).

Model Size and GPU Memory Requirements

The most immediate constraint when running an LLM is GPU memory. Every parameter in the model must be loaded into GPU memory for computation, and the memory required scales linearly with both parameter count and numerical precision. A model with more parameters needs proportionally more memory, and higher precision representations (like FP32) use more memory per parameter than lower precision (like INT8 or FP4).

Model Size FP16 Memory (weights only) INT8 Memory FP4/INT4 Memory Minimum GPU Configuration
7B parameters 14 GB 7 GB 3.5 GB 1x GPU with 24GB+ VRAM
13B parameters 26 GB 13 GB 6.5 GB 1x A100-80GB or 1x H100-80GB
34B parameters 68 GB 34 GB 17 GB 1x H100-80GB or 2x A100-80GB
70B parameters 140 GB 70 GB 35 GB 2x H100-80GB or 2x H200-141GB
405B parameters 810 GB 405 GB ~200 GB 8+ H100-80GB with tensor parallelism

These figures represent minimum model weight memory only. Actual GPU memory usage during operation is significantly higher due to KV cache (which grows with context length and batch size), intermediate activations, framework overhead, and CUDA runtime requirements. Plan for 1.5-2x the model weight size for inference and 4-6x for training.

Training vs. Inference Memory Requirements

Training requires dramatically more GPU memory than inference because the training process must store not only the model weights but also optimizer states (like Adam's first and second moment estimates, which add 2x the model size), gradients (another 1x model size), and activations for backpropagation (variable, depends on batch size and sequence length):

  • Inference: Model weights + KV cache + framework overhead. Typically 1.2-2x model weight size depending on context length and batch size. A 70B FP16 model needs approximately 160-200 GB for inference.
  • Fine-tuning with LoRA: Model weights + small adapter weights + modest gradient buffer. Typically 1.5-2x model weight size. LoRA adapters add only 0.1-1% of model size, making fine-tuning dramatically more memory-efficient than full training.
  • Full Training (FP16 with Adam): Model weights + optimizer states + gradients + activations. Typically 16-20 bytes per parameter, meaning a 70B model requires approximately 1.1-1.4 TB of aggregate GPU memory just for the training state.

GPU Requirements by Workload Type

Inference Serving at Scale

The infrastructure for serving LLM inference at production scale depends on throughput requirements (tokens per second across all users), latency constraints (time to first token and inter-token latency), and concurrency needs (how many simultaneous requests must be served).

  • Low-volume inference (1-10 requests per second): Single GPU or small GPU group per model instance. Focus on GPU memory capacity to hold the model and sufficient KV cache for your maximum context length. A single H100 can serve a 70B INT8 model at this throughput level.
  • Medium-volume inference (10-100 requests per second): Multiple GPU instances with load balancing across replicas. Consider tensor parallelism within each replica for latency-sensitive applications where time-to-first-token matters. Typically 4-16 GPUs for a 70B model at this scale.
  • High-volume inference (100+ requests per second): Dedicated inference cluster with many model replicas, automated scaling, and sophisticated serving infrastructure. Techniques like continuous batching (processing multiple requests simultaneously), speculative decoding (using a smaller draft model to speed up generation), and PagedAttention (efficient KV cache memory management) are essential for cost-effective operation at this scale.

For comprehensive GPU specifications and selection guidance, see our NVIDIA GPU Guide for Data Center Operators: H100, A100, L40S, and Beyond.

Fine-Tuning Infrastructure

Fine-tuning adapts a pre-trained model to specific tasks, domains, or instruction-following behaviors. Modern parameter-efficient fine-tuning techniques have dramatically reduced the GPU requirements compared to full fine-tuning:

  • QLoRA fine-tuning (7B model): 1x GPU with 16-24GB VRAM. Consumer-grade GPUs like the RTX 4090 are viable, making this accessible to individual developers and small teams.
  • LoRA fine-tuning (70B model): 2-4x A100-80GB or equivalent. The base model weights are loaded in INT8 or INT4, and only the small LoRA adapter weights are trained in full precision.
  • Full fine-tuning (7B model): 4-8x A100-80GB with data parallelism. All model parameters are updated, requiring optimizer state and gradient storage for every parameter.
  • Full fine-tuning (70B model): 32+ H100 GPUs with model parallelism (splitting the model across GPUs) and data parallelism (splitting training data batches across GPU groups). This requires high-bandwidth inter-GPU networking.

Pre-Training from Scratch

Pre-training a new LLM from random initialization is the most resource-intensive AI workload in existence. The compute requirements scale with both model size and training data volume, and frontier models represent investments of hundreds of millions of dollars in compute alone:

  • 7B model on 1T tokens: Approximately 100,000 H100 GPU-hours, equivalent to ~12 H100s running continuously for 1 month, or ~100 H100s for 6 days
  • 70B model on 2T tokens: Approximately 1.7 million H100 GPU-hours, equivalent to ~2,000 H100s running for 1 month, consuming approximately 1.5 MW of power
  • 400B+ model on 15T tokens: Approximately 30+ million H100 GPU-hours, equivalent to ~25,000 H100s running for 3-4 months, consuming 20+ MW of power

Scale Perspective: Training a frontier model requires a dedicated AI supercomputer consuming megawatts of power for months. This is why the largest training runs are undertaken by organizations like Meta, OpenAI, Google, and Anthropic, who have access to GPU clusters at the 100MW+ scale. For most organizations, fine-tuning pre-trained models is far more practical and cost-effective than training from scratch.

Networking Requirements for LLM Workloads

Inference Networking

For inference deployments where each user request is served by a single model instance or a small tensor-parallel group, standard Ethernet networking (10-100 Gbps) is typically sufficient. The primary network consideration is external connectivity bandwidth for handling client API requests and responses. A single H100 serving a 70B model at 50 tokens per second generates relatively little network traffic (a few megabits per second), so the bottleneck is almost never inference network bandwidth.

Training and Fine-Tuning Networking

Distributed training, where a model is split across multiple GPUs on multiple servers, requires high-bandwidth, low-latency interconnects between GPU nodes. During training, GPUs must constantly exchange gradient updates and activation data, and any networking delay directly reduces GPU utilization and extends training time:

Network Technology Bandwidth Latency Best For
Standard Ethernet (25-100G) 25-100 Gbps ~10-50 microseconds Small-scale fine-tuning, inference serving
RoCE v2 (100-400G) 100-400 Gbps ~2-5 microseconds Medium-scale training, distributed fine-tuning
InfiniBand HDR/NDR 200-400 Gbps Sub-microsecond Large-scale pre-training, maximum GPU utilization

For training clusters larger than 8-16 GPUs across multiple servers, InfiniBand or high-speed RoCE is strongly recommended. The GPU utilization penalty from inadequate networking can be 20-40%, meaning you effectively waste 20-40% of your expensive GPU investment because GPUs are waiting for data instead of computing. At H100 prices, this networking penalty can cost more than the networking upgrade itself.

Storage Infrastructure for LLMs

LLM workloads have demanding storage requirements that span multiple tiers with different performance and capacity characteristics:

Training Data Storage

  • Capacity: Training datasets range from hundreds of gigabytes for fine-tuning to tens of terabytes for large-scale pre-training. The Llama 3 training dataset reportedly exceeded 15 trillion tokens.
  • Throughput: Data loading must keep GPUs fed without creating idle time. Plan for 1-10 GB/s aggregate throughput per GPU node depending on data pipeline design. Insufficient storage throughput is a common and expensive bottleneck.
  • Technology: Parallel file systems like Lustre, GPFS, or BeeGFS provide shared access across training nodes with the throughput needed for large-scale data loading.

Model Checkpoint Storage

  • Capacity: Each checkpoint saves the full model state (weights, optimizer states, scheduler state) and equals approximately 2-4x the model parameter size. Frequent checkpointing (every 1-4 hours of training) for a 70B model consumes 1-2 TB per checkpoint.
  • Throughput: Checkpoint saves should complete in minutes, not hours, to minimize training time overhead. NVMe SSD arrays are preferred for active checkpoints.
  • Retention: Keep several recent checkpoints on fast storage for rapid recovery, with older checkpoints archived to object storage.

Facility Infrastructure for LLM Operations

The physical facility housing LLM infrastructure must meet specific power, cooling, and connectivity requirements that go beyond what most traditional data centers provide:

Power Requirements

  • Density: 30-120+ kW per rack for GPU-dense deployments, depending on the GPU model and server configuration
  • Reliability: N+1 or 2N power redundancy for production inference serving. Training workloads can sometimes tolerate brief interruptions if checkpoint recovery is robust, allowing N+1 redundancy.
  • Cost: Power is the largest operating expense for LLM infrastructure. The strategies in Electricity Cost Optimization for Mining Operations: Strategies That Work apply equally to AI operations. Reducing power cost by $0.01/kWh saves approximately $87,600 per year per megawatt of capacity.

Cooling Requirements

  • Capacity: Must match electrical power density watt-for-watt, plus overhead for the cooling system's own energy consumption
  • Technology: Direct liquid cooling or immersion cooling for H100 SXM and Blackwell deployments. Air cooling remains viable for A100, L40S, and L4 inference deployments at moderate density. See Data Center Cooling Technologies Compared: Air, Liquid, and Immersion.
  • PUE Target: Below 1.2 for efficient operations. Advanced liquid cooling can achieve PUE below 1.1, meaning less than 10% of total facility power goes to cooling and overhead.

Software Stack Considerations

While this guide focuses on physical infrastructure, the software stack significantly impacts hardware requirements and should inform infrastructure planning:

  • Inference Frameworks: Optimized inference engines like vLLM, TensorRT-LLM, and SGLang can improve throughput by 2-5x over naive implementations through techniques like continuous batching, PagedAttention, and kernel fusion. This means 2-5x fewer GPUs needed for the same throughput.
  • Quantization: INT8 and INT4 quantization can reduce model memory requirements by 2-4x with minimal quality loss for most applications. Combined with FP4 support on Blackwell GPUs, quantization is one of the most powerful tools for reducing infrastructure requirements.
  • Training Frameworks: DeepSpeed, Megatron-LM, and PyTorch FSDP enable efficient distributed training with automatic memory optimization, model parallelism, and gradient checkpointing that dramatically reduce per-GPU memory requirements.
  • Orchestration: Kubernetes with NVIDIA's GPU Operator for cluster management, NVIDIA Triton Inference Server for production inference serving, and Ray for distributed computing and hyperparameter tuning.

Planning Your LLM Infrastructure

Start by clearly defining your workload requirements before selecting hardware or engaging with hosting providers:

  • What model(s) will you run? Model parameter count determines minimum GPU memory requirements.
  • Training, fine-tuning, or inference? Each has fundamentally different infrastructure profiles.
  • What throughput do you need? Tokens per second for inference workloads, time-to-train for training projects.
  • What are your latency requirements? Real-time conversational AI requires sub-second time-to-first-token; batch document processing has no latency constraint.
  • What is your total budget? This determines whether cloud, colocation, or dedicated infrastructure is most appropriate.
  • What are your data security requirements? Regulated industries may require on-premises or dedicated infrastructure rather than shared cloud environments.

RAX Data & Energy provides infrastructure solutions for every LLM deployment scale. From GPU Colocation: Everything You Need to Know in 2026 for organizations with their own GPU hardware to fully managed What Is AI Hosting? Complete Guide to AI Infrastructure Services for those who want turnkey solutions, our facilities are engineered to support the demanding power, cooling, and networking requirements of modern LLM workloads at any scale. Our engineering team works closely with each client to right-size infrastructure for current needs while ensuring the flexibility to scale as models grow and workloads evolve.

LLMlarge language modelAI infrastructureGPU memoryAI traininginferencemodel deployment

Need Expert Guidance?

Our team can help you implement the strategies discussed in this article. Contact us for a free consultation.

Get in Touch