Bookmarks
ReferenceData & AIDevOps & cloudVerified

AI infrastructure (GPU)

AI infrastructure is servers and GPU clusters for training and running models. In this reference: HGX and DGX, NVLink, InfiniBand, memory sizing, vLLM and operations.

checked 6 Nov · next check 13 Nov · 73 min read

Sections
13
Reading
73 min
Current version
13.5.0
Written from
docs.nvidia.com/dgx/index.html

Check status of the reference

Verified 6 Nov · next check 13 Nov

The sections were compared with the release notes, the check found nothing, and all source links respond.

  1. Verified
  2. Scheduled check

What AI infrastructure is and how it is built

AI infrastructure is the GPU servers, network, storage and software stack on which models are trained and run — inference. A GPU — a graphics processing unit — contains thousands of parallel cores and tensor cores for matrix operations; a CPU has few cores, but each one is general-purpose.

The same cluster can handle both, but the workloads on it differ:

  • What limits it: training — compute and node-to-node exchange; inference — memory capacity and bandwidth for model weights and the KV cache.
  • Scale: training — hundreds and thousands of GPUs for weeks; inference — from a single GPU around the clock.
  • Network: training — collective all-reduce exchange over InfiniBand or RoCE; inference — client requests over Ethernet.
  • Storage: training — datasets and checkpoints; inference — model weights.

The infrastructure layers stack up from the bottom:

  • GPU — the compute unit with its own HBM (High Bandwidth Memory) memory.
  • Node — a server with 8 GPUs linked by NVLink and NVSwitch, with CPUs, network cards and local NVMe drives.
  • Cluster — tens and hundreds of nodes: the east-west network connects GPUs on different nodes, north-south — the management and storage networks.
  • Storage — datasets, checkpoints and model weights.

The DGX SuperPOD reference architecture assembles a cluster from scale units (SU) of 32 DGX B200 nodes each, adds InfiniBand networks — separate ones for compute and for storage — plus management nodes and storage from certified partners. NVIDIA validates its own software on this same architecture before release.

Such clusters are built on HPC (High Performance Computing) principles — scientific and engineering computing with the Slurm scheduler and an InfiniBand network. DGX SuperPOD is designed for both AI and HPC.

The software stack reads from the bottom up: the kernel driver with the NVML library, the CUDA platform, the NCCL library of collective operations (NVIDIA Collective Communications Library), the PyTorch framework, an inference server and an API for applications.

CUDA is NVIDIA’s platform for computing on GPUs; the developer-facing part is the CUDA Toolkit, a set of libraries, headers and tools. What a particular GPU can do is set by its compute capability number.

The main takeaway: every layer depends on compatibility with the one below. The driver brings CUDA support, the framework is built against a CUDA version, the inference server against a framework version; that is why the stack is upgraded as a whole. How an upgrade goes is covered in the section “Operations: drivers, monitoring and MIG”.

CUDA is the central layer: between the driver and the framework.

The two bottom layers are visible to the nvidia-smi command — it queries the driver through NVML:

bashon the host
nvidia-smi \  --query-gpu=name,driver_version,memory.total \  --format=csv

NVIDIA or AMD Instinct

The table is compiled from each vendor’s documentation: if a fact is not in its documentation, it is not in the table.

FeatureNVIDIA B300AMD Instinct MI355X
Memory per GPU288 GB HBM3e288 GB HBM3e
Memory bandwidthup to 8 TB/sup to 8 TB/s
Form factorSXM on an HGX boardOAM
Compute unitsSM256 CU
Power and cooling—up to 1000 W with air cooling (MI350X), up to 1400 W with liquid cooling (MI355X)
Software stackCUDAROCm

What to know in advance

Sections of neighbouring references the material relies on:

  • Command line, files and services — the Linux reference.
  • Containers and images — the Docker reference.
  • Pods, nodes and scheduling — the Kubernetes reference.
  • Addressing, ports and TCP/IP — the TCP/IP and DNS reference.
  • Models, tokens and prompts — the LLM and RAG reference.

Section sources

the section is written from these pages

Cheat sheet: commands and formulas

Commands for inspecting GPUs, formulas for estimating memory and everyday guidance on choosing a launch scheme. Each topic has its own section of the reference: see “Sizing”, “Model serving”, “Operations”.

GPU status

TaskCommand
List GPUs with UUIDsnvidia-smi -L
Summary: memory, load, temperaturenvidia-smi
Memory and load in CSV for scriptsnvidia-smi --query-gpu=name,memory.used,memory.total,utilization.gpu --format=csv
ECC error countersnvidia-smi -q -d ECC
Reasons for clock throttlingnvidia-smi -q -d PERFORMANCE
Power limit and current drawnvidia-smi -q -d POWER
MIG instance profilesnvidia-smi mig -lgip
Created MIG instancesnvidia-smi mig -lgi
Continuous monitoringnvidia-smi -l 5

Topology and connectivity

Topology determines where to place parallel jobs: GPUs are connected fastest over NVLink, and slower over PCIe and across a neighbouring NUMA node.

TaskCommand
Matrix of GPU and NIC connections with CPU affinitynvidia-smi topo -m
PCIe connections only, without NVLinknvidia-smi topo -mp
P2P support over NVLink between all GPUsnvidia-smi topo -p2p n
NVLink link state and bandwidthnvidia-smi nvlink -s
NUMA node of the CPU closest to a GPUnvidia-smi topo -C -i 0
NCCL log when building a distributed jobNCCL_DEBUG=INFO python3 train.py

Diagnostics

The dcgmi utility runs the checks through the DCGM host engine: level 1 is a quick check before a job, level 3 is a long one after a failure. Each further level includes the tests of the previous one; according to NVIDIA, level 3 takes up to 10 minutes on 4 GPUs and up to 35 minutes on 8 GPUs.

TaskCommand
What is visible from this hostdcgmi discovery -l
Quick check before a jobdcgmi diag -r 1
Medium check, minutesdcgmi diag -r 2
Long diagnostics after a failuredcgmi diag -r 3
Results in JSON for processingdcgmi diag -r 3 --json

Memory formulas

Model memory consists of three parts: weights, the KV cache and headroom for activations. First estimate the weights and the KV cache with the formulas, then check the actual usage with nvidia-smi or the server log.

textback-of-the-envelope estimate
# bytes per parameter: FP16/BF16 = 2, FP8 = 1, FP4 = 0.5weights = parameters × bytes per parameter # KV cache per token, byteskv_token = 2 × layers × KV heads × head dimension × bytes # total before launchmemory = weights + kv_token × total_request_tokens + activation_reserve
ModelWeights in FP16Weights in FP8
8B16 GB8 GB
70B140 GB70 GB
405B810 GB405 GB

The KV cache depends not on the model size but on its depth and width: for a model with 80 layers and eight KV heads of 128, that is 2 × 80 × 8 × 128 × 2 ≈ 320 KiB per token in FP16, or about 305 GiB per million tokens. The longer the context and the more parallel requests, the less is left for the weights.

Launching a model

The lines below are a typical vLLM launch: the model is split by tensor parallelism, the context is capped, and a share of memory is set aside for the KV cache.

bashon a node with two GPUs
vllm serve meta-llama/Llama-3.1-70B-Instruct \  --tensor-parallel-size 2 \  --pipeline-parallel-size 1 \  --max-model-len 25.6k \  --gpu-memory-utilization 0.92 \  --quantization fp8 \  --served-model-name llama-70b
FlagWhat it sets
--tensor-parallel-sizenumber of tensor parallelism groups
--pipeline-parallel-sizenumber of pipeline groups
--max-model-lencontext: prompt and response together
--gpu-memory-utilizationshare of GPU memory per instance, default 0.92
--quantizationweight quantisation method, for example fp8

What to choose

TaskWhat to use
Model up to 70B in FP8one GPU with 141 GB or more
Model 70B in FP162–4 GPUs on one node with NVLink, tensor parallelism
Model larger than one nodetensor parallelism within a node and pipeline parallelism across nodes
Several small modelsMIG: the GPU is divided into instances, each with its own memory
Desk-side developmenta workstation or DGX Spark, see “Server platforms”

Section sources

the section is written from these pages

GPUs: architecture, memory and precision

A GPU for AI is a set of streaming multiprocessors (SM) grouped into clusters and connected to their own memory. Inside the SMs sit tensor cores — they carry out the matrix multiplication that makes up most of a model’s work.

A model processes data in millions of parallel threads: each thread is a copy of the program running on its own slice of the data. Threads are gathered into blocks that execute entirely on a single SM. This is why a GPU beats a CPU at matrix operations: a CPU optimises the speed of one thread, a GPU the number of threads per second.

How a GPU is built

The CUDA programming model describes a GPU as a collection of SMs grouped into graphics processing clusters (GPC). Each SM contains a local register file and compute blocks, including tensor cores. One data cache serves two purposes: it is shared by the shared memory and the L1 cache. All the threads of one block run on the same SM and exchange data through shared memory.

When it runs, a CUDA program divides the work into a grid of thread blocks; the launch code sets out this structure. A GPU generation is described by its compute capability (CC), the version of the architecture’s hardware features: it determines which instructions and functions are available to the code.

ArchitectureCCExample GPUs
Hopper9.0H100, H200, GH200
Blackwell10.0B200, GB200
Blackwell Ultra10.3B300, GB300
Blackwell (workstations)12.0RTX PRO 6000
Blackwell (desktop)12.1GB10 (DGX Spark)

Memory: HBM and GDDR

The whole model has to fit in GPU memory, so its capacity and bandwidth decide which models will run and how fast. Server GPUs use two kinds of memory. HBM is stacks of DRAM chips next to the GPU die on the same package, with a wide bus between them. GDDR is ordinary chips soldered onto the board around the GPU.

FeatureHBMGDDR
Where it sitsDRAM stacks on the GPU packagechips on the board
Capacity per GPUup to 141 GB (H200)up to 96 GB (RTX PRO 6000)
Memory bandwidth4.8 TB/s (H200)1,597 GB/s (RTX PRO 6000)
Busthe widest of any GPU512-bit (RTX PRO 6000)
Where it is usedserver GPUs for training and inferenceworkstations and entry-level servers

HBM is more expensive, so it goes into GPUs for training and inference of large models. The GDDR7 in the RTX PRO 6000 is cheaper and supports ECC — error-correcting code for memory. For inference of large models, memory bandwidth often matters more than FLOPS: every token requires reading all the model weights, and the KV cache grows with the context window (the LLM and RAG reference covers this in detail). That is why adding memory and bandwidth (H200 over H100) speeds up inference more than adding compute.

FLOPS and precision

FLOPS — floating-point operations per second — is the main measure of GPU performance. The figures are quoted in TFLOPS and PFLOPS. The same card delivers different numbers depending on the precision of the format: the shorter the format, the more operations per second. Matrix operations run on the tensor cores — each precision has its own peak.

Most of the figures in the table below include structured sparsity — weights kept sparse, with zero elements skipped; without it, the peak is half as high.

FormatH200 SXM, TFLOPS
FP6434 TFLOPS (67 with tensor cores)
FP3267 TFLOPS
TF32989 TFLOPS
BF16 and FP161,979 TFLOPS
FP83,958 TFLOPS

Precision formats

Precision determines how many bits go to the sign, exponent and mantissa of a number, and the range it lives in. The formats below are not steps on a “more precise — cruder” scale but tools: each is chosen to fit the task.

FormatBitsWhere it is used
FP6464scientific computing (HPC)
FP3232classic computation, sum accumulation
TF3219training and inference on tensor cores
BF16, FP1616model training and inference
FP8 E4M38range up to ±448 — forward passes, weights
FP8 E5M28range up to ±57,344 — gradients in training
NVFP4, MXFP84, 8block scaling with Blackwell

FP8 arrived with the Hopper and Ada Lovelace generations and comes in two variants: E4M3 is more precise but holds values only up to ±448; E5M2 holds up to ±57,344 but is cruder. E4M3 therefore usually stores activations and weights, E5M2 the gradients, which need the wider range. Blackwell brought NVFP4 and MXFP8 — formats with block scaling: a group of values shares a common scale factor, which preserves the usable range at a low bit width. The numbers for planning memory per format are in the section “Sizing”. What a format does to a model’s quality is covered in the AI models reference, the section “Number formats: FP32, BF16, FP8, FP4”.

SXM and PCIe

The same GPU chip ships in two form factors. They determine how many GPUs fit into a server and how the GPUs are connected to each other. An SXM module is soldered onto the HGX platform board and talks to its neighbours over NVLink. A PCIe card plugs into a regular server slot and connects to other GPUs over the PCIe bus or through an NVLink bridge.

Form factorGPU interconnectPowerWhere it is used
SXM (H200 SXM)NVLink, 900 GB/sup to 700 Wtraining and large clusters
PCIe (H200 NVL)NVLink bridge for 2 or 4 GPUsup to 600 Wair-cooled servers
PCIe (RTX PRO 6000 Server)PCIe Gen5up to 600 Wdual-slot card, general-purpose servers

Splitting a GPU into instances

MIG (multi-instance GPU) splits one GPU into several isolated instances, each with its own memory and compute blocks. An H200 divides into up to 7 instances of 18 GB each, an RTX PRO 6000 into up to 4: this way one expensive GPU serves several small jobs. How to enable the instances and hand them out in Kubernetes — in the section “Operations”.

Workstations and desktop systems

The RTX PRO 6000 Workstation Edition fits into a desk-side workstation: one GPU with 96 GB of GDDR7 for development and testing without a cluster. DGX Spark is a desktop system on chip (SoC): a CPU and a GPU in one case with shared memory. The GB10 superchip in DGX Spark combines up to 20 Arm cores, a Blackwell GPU and up to 128 GB of unified memory. The system is meant for developing and fine-tuning models of up to 70 billion parameters, not for a cluster.

For a comparison with the AMD Instinct architecture (MI350X and MI355X), see the table in the section “What AI infrastructure is and how it is built”.

Section sources

the section is written from these pages

Server platforms: HGX, DGX and MGX

HGX is an NVIDIA board with eight SXM GPUs, NVLink and NVSwitch, on which partners build their own servers. DGX is NVIDIA’s ready-made servers on the same board, assembled and validated by the manufacturer. MGX is an open modular architecture: a server is assembled from standard building blocks for a specific task.

The HGX board carries eight GPUs in SXM packages and NVSwitch chips; the HGX B300 board also carries ConnectX-8 network adapters, one per GPU. The rest of the node — CPUs, memory, drives and the chassis — is added by the integrator: NVIDIA-Certified systems on HGX B300 follow a common design, within which the vendor picks a configuration for the cluster’s tasks.

NICs connect the node to the cluster, DPUs — to storage and management.

HGX boards: H200, B200 and B300

The board is chosen by memory: it determines which model fits on a node and how much headroom is left for the KV cache (see the section “Sizing: memory and GPU count”).

BoardGPU memoryNode memoryNode memory bandwidth
HGX H200141 GB HBM3e1.1 TB38.4 TB/s
HGX B200180 GB HBM3e1.44 TBup to 64 TB/s
HGX B300288 GB HBM3e2.3 TBup to 64 TB/s

Node memory bandwidth is the sum of the bandwidth of all eight GPUs. The figures follow the NVIDIA HGX AI Factory reference architecture.

NVLink and NVSwitch

NVLink connects the GPUs of a node directly, bypassing PCIe and the CPUs. NVSwitch is a switch on the board: it connects every GPU to every other, and any pair exchanges data at the full bandwidth of the generation instead of sharing a link with its neighbours. In HGX B300 that is 1,800 GB/s per GPU pair and 14.4 TB/s across the board.

NVLink generationPlatformBandwidth per GPU
FourthHopper900 GB/s
FifthBlackwell1,800 GB/s
SixthVera Rubin3,000 GB/s

NVSwitch also links neighbouring nodes: in NVL72 systems one NVLink domain spans 72 GPUs with an aggregate bandwidth of 130 TB/s on Blackwell and 216 TB/s on Vera Rubin. Tensor parallelism, which usually stops at the limits of a single server, here works across the whole rack.

The rest of the server: CPUs, memory and drives

Besides the board, a node needs CPUs, memory and drives. The HGX B300 reference architecture requires two sockets with at least 48 physical cores each (56 recommended), at least 2 TB of system memory spread evenly across sockets and channels, and a PCIe Gen5 x16 link for every network adapter and DPU. The PCIe topology must be balanced: links are spread evenly across sockets and root ports. Training needs at least 2 TB of NVMe per socket, inference (serving a trained model) — at least 1 TB.

bashon a node
nvidia-smi topo -m

The command prints a matrix of GPU interconnects — NVLink, PCIe or a shared socket — and the affinity of each GPU to CPUs and NUMA nodes. Training processes are pinned to the nearest CPU, so that exchanges with GPUs and network adapters do not cross the inter-socket links between CPUs.

MGX: the modular alternative

MGX is an open modular reference architecture: a server is assembled from standard building blocks — compute, CPUs, networking, cooling and power. The blocks are compatible across generations; NVIDIA Grace and Vera CPUs, x86 and other Arm CPUs are supported. NVIDIA claims more than 100 combinations, from single-server systems to racks on the scale of an AI factory. The specifications are open to OEM and ODM manufacturers, which shortens their time to market.

An example: DGX B300

DGX is the same node on an HGX board, but assembled, validated and pre-installed by NVIDIA itself: the system ships with DGX OS and vendor support.

ComponentIn the DGX B300
GPU8 × B300 at 288 GB — 2.3 TB
CPU2 × Xeon Platinum 6776P
Memory2 TB (up to 4 TB)
East-west network8 × ConnectX-8 at 800 Gbit/s
North-south network2 × BlueField-3
Cache drives8 × NVMe E1.S at 3.84 TB
Boot drive2 × M.2 NVMe at 1.92 TB
Power draw14.5 kW

The cluster network behind such nodes — in the section “Cluster networking: InfiniBand and RoCE”, rack power and cooling — in the section “Power and cooling”. GPU passthrough to virtual machines is described in the virtualisation reference, the section on device passthrough.

Section sources

the section is written from these pages

Cluster networking: InfiniBand and RoCE

A cluster has several networks, but training speed is set by the compute fabric: GPUs on different nodes exchange gradients in all-reduce over it. It is built on InfiniBand or on RoCE over Ethernet, with a rail-optimised topology.

Cluster networks

The DGX SuperPOD reference architecture splits traffic into four fabrics. The compute fabric (east-west) connects GPUs on different nodes. The storage network carries data reads and checkpoint writes — see the section “Data and checkpoint storage”. The in-band management network is needed for access to nodes and cluster services, the out-of-band one — for the BMC. The last two run on ordinary Ethernet; in the reference design they are separated over one physical network via VXLAN and EVPN.

RDMA and GPUDirect

RDMA (remote direct memory access) is writing to the memory of another node and reading from it without the CPU and the OS kernel: the network card moves the data itself. GPUDirect RDMA adds to this a direct PCIe path between the network card and GPU memory, with no copy through host memory. The requirement: the devices sit under one PCIe root complex.

For InfiniBand cards, the host has the nvidia-peermem kernel module from the NVIDIA driver package: it requires RDMA peer memory support in the kernel or MLNX_OFED and is not loaded automatically. In CUDA 13.5 the module is deprecated and will be removed in the next release. The replacement is exporting GPU memory through dma_buf: the mechanism works from driver R515 onward with the open NVIDIA kernel module and a Linux kernel of 5.12 or newer, and the CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED attribute reports support.

bashLoading and checking the module
sudo modprobe nvidia-peermem && lsmod | grep peermem

InfiniBand

InfiniBand is an industry specification by the InfiniBand Trade Association: a switched network with RDMA built into the protocol. Generations differ in port speed: NDR — 400 Gbit/s, XDR — 800 Gbit/s. XDR runs on Quantum-X800 switches and ConnectX-8 network cards; a DGX B300 has one per GPU. The fabric is managed by UFM (Unified Fabric Manager); in the SuperPOD design with XDR — UFM 3.5 nodes.

RoCE and Spectrum-X

RoCE (RDMA over Converged Ethernet) moves RDMA onto Ethernet. RoCEv2 wraps RDMA in UDP/IP on port 4791, so packets can be routed (RoCEv1 used a separate ethertype, 0x8915, and worked within a single L2 segment). RoCE is designed for a lossless network: the main mechanism is Priority Flow Control (PFC), which is enabled on every endpoint node and every switch along the path. IP and UDP — in the TCP/IP and DNS reference.

Spectrum-X is NVIDIA’s Ethernet platform for AI. In the DGX B300 reference architecture with Spectrum-4, every GPU has two 400GbE ports in two independent planes: a switch, transceiver or cable failure does not stop the job, and the planes are not connected at the top level, so the two-tier fabric holds twice as many nodes.

ParameterInfiniBandRoCE (Spectrum-X)
MediumA dedicated InfiniBand fabricEthernet, RoCEv2 in UDP/IP
ManagementUFMEthernet tools; NetQ telemetry
Lossless operationCongestion control inside the fabric itselfPFC on every node and switch along the path
Data centre integrationA separate fabric with its own switchesEthernet, like the rest of the data centre network

Rail-optimised topology

A DGX B300 node has eight GPUs and a network card for each. GPUs with the same number in every node of the unit connect to one leaf switch: this is a rail. Exchange between same-numbered GPUs of different nodes takes one hop, across the rail. Traffic between rails or between units goes through the spine layer.

The number in a tile is the GPU number; rail 1 is highlighted, the other seven are built the same way.

A scale unit (SU) is a group of nodes whose rails stay inside the unit. In the reference architecture with InfiniBand XDR, an SU holds 72 DGX B300 nodes and a full SuperPOD — 576 nodes. In the Spectrum-X variant, an SU holds 64 nodes and a full one — 512. When fewer nodes are needed, the fabric is still built for a whole SU and some ports are left empty: this keeps routing and performance the same across the network. DGX SuperPOD is NVIDIA’s cluster reference architecture, assembled from SUs with defined networks and storage.

DPU and SuperNIC

BlueField-3 is a data processing unit (DPU) with Arm cores and speeds of up to 400 Gbit/s on Ethernet and InfiniBand. It takes over networking, storage and security and isolates them from the node’s CPU. The BlueField-3 SuperNIC is the same class of card for east-west: RoCE between GPU servers at up to 400 Gbit/s with multi-tenancy.

Section sources

the section is written from these pages

Data and checkpoint storage

A training cluster re-reads the datasets every epoch, writes checkpoints at intervals and loads model weights at startup. Jobs differ in speed and data volume, so each gets its own storage tier — from node memory to object storage.

Storage speed matters because data is read repeatedly. The first pass comes from the shared file system over the network; after that the dataset lives in cache — in memory or on the node’s local NVMe drives: reading from memory cache is an order of magnitude faster than reading from remote storage. Writes come from checkpoints: they reach terabytes in size and are written synchronously — training stalls while a write is in progress.

Storage tiers

Each tier has its own job: cache and active computation at the top, the archive at the bottom.

TierWhat it holdsSpeed
Node memorydataset cache after the first readan order of magnitude faster than remote storage
Local NVMedataset cache and stagingfaster than the shared file system
Shared file systemdatasets and checkpoints of all jobstens to hundreds of GB/s per cluster
Object storagedataset archive and model weightslower; large volumes are compensated with parallel streams

NVMe (NVM Express) is a protocol for exchanging data with SSDs over PCIe, with many parallel queues; the current specification set is NVM Express 2.4 (August 2026). NVMe over Fabrics carries the same protocol over RDMA and TCP: fast storage can be placed in a separate rack and connected over the networks from the section “Cluster networking”. In the DGX B300, internal storage is 8 NVMe E1.S drives of 3.84 TB each.

Speed requirements

NVIDIA describes two workload profiles for DGX SuperPOD. Standard — several concurrent LLM training or fine-tuning jobs with periodic checkpoints: compute matters more than I/O, the datasets are unimodal and fit into the nodes’ memory cache, and the models have millions of parameters. Enhanced — multimodal datasets that do not fit into the cache: for example, computer vision datasets easily exceed 30 TB, the models have billions of parameters, and I/O affects the overall training time.

ProfileRead, GB/sWrite, GB/s
Standard, 1 SU4020
Standard, 4 SU16080
Enhanced, 1 SU12562
Enhanced, 4 SU500250

An SU (scalability unit) is the unit a SuperPOD scales in. The numbers in the table are guidelines: for LLMs and large models NVIDIA recommends planning for a write speed of at least half the read speed, because a checkpoint write is synchronous and its speed determines how long training stops.

Parallel file systems and GPUDirect Storage

The shared file system for training is a parallel file system: files are spread across many storage servers, and clients read different parts of the same dataset at the same time. GPUDirect Storage is supported by DDN EXAScaler on Lustre, WekaFS, VAST and NFS over RDMA.

GPUDirect Storage (GDS) is a direct DMA path between GPU memory and storage. Without GDS, data travels through a bounce buffer in CPU memory: storage → CPU memory → GPU. GDS removes the extra copy, and on some platforms the direct path through the PCIe switch delivers at least twice the bandwidth of the path through the CPU. Applications work through the cuFile API; NVMe drives and network cards act as the DMA agents.

Checkpoints

The PyTorch distributed checkpoint is the torch.distributed.checkpoint module: all ranks write the checkpoint in parallel, each writes its own part — the result is several files, at least one per rank. Loading performs resharding: a checkpoint saved in one GPU topology is loaded into another — with a different number of accelerators. Data is written in place: the model first allocates the tensors, and the checkpoint fills the already allocated memory.

pythonin the training script
import torch.distributed.checkpoint as dcpfrom torch.distributed.checkpoint import FileSystemWriter state = {"model": model.state_dict()}# each rank writes its own part of the checkpointdcp.save(    state,    storage_writer=FileSystemWriter("checkpoints/step-4000"),)

Checkpoint frequency is a trade-off: synchronous writes stop training, whereas an infrequent checkpoint costs many hours of computation after a failure. Writes can be moved off the main path with dcp.async_save: data is first copied to CPU memory (staging), and the checkpoint is then written in a separate thread — training does not wait for the disk.

Model weights

Model weights in Safetensors format are kept in object storage: one copy per cluster, versions by prefix. Inference servers can read them straight from S3, Google Cloud Storage and Azure Blob Storage. vLLM reads the weights through the Run:ai Model Streamer — the library reads tensors in several threads and passes them straight to GPU memory, which speeds up loading from object storage and high-speed network file systems. The dependency is installed as vllm[runai].

bashon a server with vLLM
vllm serve s3://models/qwen3-32b \    --load-format runai_streamer

Block, file and object storage in general, not tied to AI workloads, is covered in the infrastructure-architecture reference, the section “Storage”. PersistentVolume and StorageClass are covered in the Kubernetes reference, and Linux disks and file systems in the Linux reference.

Section sources

the section is written from these pages

Sizing: memory and GPU count

GPU memory at inference is the model weights, the KV cache and headroom for activations. Weights are counted from the number of parameters, the KV cache from the context length and the number of parallel requests. Add the parts together to get the memory size; quantization shrinks each of them.

The three parts of memory

The TensorRT-LLM documentation divides the memory of a running model among three consumers: the weights, internal activations and I/O tensors, of which the largest is the KV cache. The weights are fixed until the model or the precision format changes; activations grow with the input length and the batch size; the KV cache grows with every token of every request. Inference engines set aside almost all free memory for the KV cache in advance: with no settings, TensorRT-LLM takes 90% of the remaining GPU memory, and vLLM by default gives 92% of GPU memory to the model executor (--gpu-memory-utilization 0.92).

Model weights

Memory for the weights is a multiplication: parameters × bytes per parameter. The bytes per parameter are set by the precision format (covered in detail in the section “GPUs: architecture, memory and precision”): FP16 and BF16 store a number in two bytes, FP8 in one, FP4 in half a byte. With tensor parallelism the weights are shared between the GPUs: with eight ranks, each holds an eighth of the weights.

ModelFP16, 2 bytesFP8, 1 byteFP4, 0.5 bytes
8B16 GB8 GB4 GB
70B140 GB70 GB35 GB
405B810 GB405 GB203 GB

The KV cache

A token is a piece of text the model computes with (what that is — in the LLM and RAG reference, the section “Tokenization”). The context window is how many tokens the model takes in at once: the prompt and the response together. The KV cache stores the attention keys and values for the tokens already processed, so they are not recomputed at every step of generation. The cache grows linearly with the context length and the number of requests.

textback-of-the-envelope estimate
# bytes for one tokenkv_token = 2 × layers × KV heads × head_dimension × bytes # bytes for all requestskv_total = kv_token × tokens_of_all_requests

The two is the key and the value for every token. The PagedAttention paper computes this for OPT-13B: 2 × 5,120 × 40 × 2 = 800 KiB per token in FP16; a context of 2,048 tokens takes 1.6 GB. The KV cache depends not on the size of the model but on its depth and width: in a 405B model with fewer KV heads, the per-token cache may be smaller than in a 13B model.

A worked example

A model of 70 billion parameters: 80 layers, 8 KV heads, head dimension 128. One token takes 2 × 80 × 8 × 128 × 2 = 327,680 bytes, that is 320 KiB in FP16. Thirty-two requests of 8K tokens each give 262,144 tokens and 80 GiB (about 86 GB) of cache.

ScenarioWeightsKV cacheTotalFits
FP16, 1 GPU140 GB86 GB226 GBno: 2 GPUs needed
FP16, 2 GPUs70 GB each43 GB each113 GB per GPUyes, H200 with headroom
FP8, 1 GPU70 GB43 GB113 GByes, H200 with headroom

One H200 carries 141 GB of HBM3e memory. In FP16 the model with its cache asks for 226 GB — a node with at least two GPUs connected by NVLink for tensor parallelism is needed: 113 GB per GPU, and the remainder goes to activations and engine buffers. In FP8 both the weights and the KV cache (with --kv-cache-dtype fp8) take half as much — 113 GB — and the model lives on one GPU. The same request, two different servers.

bashon a node with two GPUs
vllm serve meta-llama/Llama-3.1-70B-Instruct \  --tensor-parallel-size 2 \  --max-model-len 8k \  --kv-cache-dtype fp8

The flags cap what was computed above: --max-model-len holds the context at 8K tokens, --kv-cache-dtype fp8 stores the cache in eight bits. Weight quantisation methods come at the end of the section.

How many GPUs

If a model does not fit in one GPU, it is split by tensor parallelism (TP): the layers are cut into parts, and the GPUs exchange intermediate results at every layer, so they need an NVLink connection within one node. If a model does not fit in a node, pipeline parallelism (PP) is added: the nodes pass whole groups of layers to each other, and the links between nodes may be slower.

Take 405B in FP16: 810 GB of weights plus the cache — that is more than any single GPU and more than one rank can handle; an HGX H200 node with eight GPUs gives 1,128 GB in total. In FP4 the model takes about 203 GB, and it is split in two. Plan the headroom for activations on top of the calculation: in the example above 113 GB of 141 are taken, and the remaining 28 GB go to activations and engine buffers.

Speed: what to measure

Memory tells whether the model will run; the metrics tell how it serves the stream of requests. Time to first token (TTFT) adds up the queue, prefill and the network: a long prompt increases it, because attention builds the KV cache over the whole input before the first response. Inter-token latency (TPOT, time per output token) describes the speed of generation. Tokens per second are counted for the system and for a single user: as the number of requests grows, tokens for the system rise until GPU compute saturates, while tokens per user fall. Requests per second give the capacity of the server.

More requests in a batch — higher total tokens per second, but worse inter-token latency for each. If interface responsiveness matters to the reader, keep the batch smaller; if the server must be pushed to its maximum token count, let the batch grow. Continuous batching smooths the trade-off: new requests join the batch at every step, without waiting for the others to finish.

Quantization

Quantization stores the weights and the KV cache in coarser formats: FP8 and INT8 take 8 bits instead of 16, INT4 and FP4 take 4. vLLM supports FP8, INT8 and INT4, the GPTQ and AWQ calibration methods, and KV cache quantisation. The OCP Microscaling standard adds a block of 32 values with a shared eight-bit scale: the MXFP8 and MXFP4 formats keep the range of numbers that would be lost by plain rounding.

The price of quantization is quality: the model may answer worse on rare or specific tasks. Test it on your own data before it goes into production; how to do that — in the LLM and RAG reference, the section “Evaluating RAG”. The methods and where quality drops noticeably are covered in the AI models reference, the section “Quantisation: methods and losses”.

Section sources

the section is written from these pages

Serving models: inference servers

Inference is what a trained model does: a server accepts requests and produces a response token by token. A request passes through two phases: prefill, which processes the prompt as a whole and is compute-bound, and decode, which generates the response one token at a time and is bound by memory bandwidth. An inference server gathers requests into batches and maintains the KV cache.

GPU memory holds the model weights and the KV cache — the stored attention states for the tokens already processed. The cache grows with the length of each request and with the number of requests in a batch, so server throughput comes down to memory: the less memory is wasted, the more requests are served at once. Here a token is the smallest unit of text that the model splits the prompt and the response into; see the LLM and RAG reference for more on tokenisation and the context window.

Continuous batching

A static batch is assembled once: the requests start together, and memory slots remain reserved for them until the end of the longest request in the batch. Continuous batching works differently — the scheduler acts at the iteration level: after each step of the model the finished requests leave the batch and new ones join without waiting for the batch to finish. On the same memory and the same GPUs the server gets through more requests per second.

The batch is reassembled at every iteration: a freed slot is immediately taken by a new request.

PagedAttention

The KV cache is stored in fixed-size blocks, like pages of virtual memory. Blocks are allocated as the sequence grows, with no reserve for the maximum length: the loss from an underfilled block is limited to a single block, and there is no external fragmentation because all blocks are the same size. In earlier systems, which reserved memory for the maximum length, the actual token states took up, by the method authors’ measurements, only 20–38% of the KV cache memory.

Blocks are shared between sequences: requests with a common prefix — for example, the same system prompt — refer to the same blocks, and the prefix is not recomputed. Less fragmentation and duplication means more requests fit into a batch with the same memory: in the authors’ paper this increased throughput two- to fourfold over the systems of the time.

Inference engines

EngineWhat it is good atHow to run it
vLLMPagedAttention, continuous batching, more than 200 architecturesvllm serve
SGLanglarge MoE models: expert parallelism, all-to-all through DeepEPsglang serve
TensorRT-LLMan NVIDIA engine; in Dynamo — the disaggregated serving backendas part of Dynamo

All three expose an OpenAI-compatible API: the application sends requests to POST /v1/completions or /v1/chat/completions as it would to OpenAI, and a local model answers. vLLM’s server listens on port 8000 by default, SGLang’s on 30000.

bashchecking the server’s response
curl http://localhost:8000/v1/completions \  -H "Content-Type: application/json" \  -d '{"model": "facebook/opt-13b", "prompt": "San Francisco is a",       "max_tokens": 16}'

Parallelism across several GPUs

If a model does not fit on one GPU, it is split into parts. Tensor parallelism (TP) divides the weights of each layer across the node’s GPUs: the tensor_parallel_size parameter is the number of GPUs on the node. When the model does not fit on one node, pipeline parallelism (PP) is added: the pipeline_parallel_size parameter is the number of nodes, and the model’s layers are laid out across the nodes in a chain. PP also helps when the GPU count does not divide the model evenly: TP requires an even split, while PP splits the model by layers and tolerates unequal parts.

bashon a node with 4 GPUs
vllm serve facebook/opt-13b --tensor-parallel-size 4

Mixture of experts

In a mixture of experts (MoE), a set of experts stands in place of one dense layer. A router sends each token to several experts, so the active parameters per token are fewer than the total: the model scales up without a proportional growth in the compute per request.

The experts are spread across separate GPUs — expert parallelism: the expert weights are distributed between the devices, and the tokens travel between them in all-to-all exchanges. The attention layers, meanwhile, remain in data parallelism: vLLM combines data parallelism for attention with expert or tensor parallelism of the MoE layers.

bashon a node with 8 GPUs
python -m sglang.launch_server \  --model-path deepseek-ai/DeepSeek-V3 \  --moe-a2a-backend deepep \  --moe-runner-backend deep_gemm \  --tp 8 --ep 8

Dynamo: disaggregated serving

NVIDIA Dynamo separates the phases onto different GPUs: the prefill and decode pools run separately, because the phases need different configurations — prefill is compute-bound, decode is bound by memory and the size of the KV cache. The prefill worker computes the prompt’s KV cache and hands it to the decode worker directly, from VRAM to VRAM, through NIXL — over NVLink, InfiniBand or PCIe, with no shared storage; the transfer does not stop the processing of other requests. Routing is KV-cache-aware: a worker that already holds the request’s prefix saves the prefill work. The Dynamo frontend is an OpenAI-compatible server on port 8000; the engines beneath it are vLLM, SGLang and TensorRT-LLM.

Server metrics

MetricWhat it measures
TTFT (time to first token)from sending the request to the first token: the queue, prefill and the network
ITL (inter-token latency)the average pause between consecutive tokens of the response; the same as TPOT
TPS (tokens per second)output tokens per second across all requests of the system
e2e latencyfrom the request to the last token; equal to TTFT plus the generation time

The metrics are tied to the batch: the more concurrent requests, the higher the system’s TPS and the lower the speed per individual client. The batch size is limited by the memory for the KV cache, so PagedAttention and continuous batching reinforce each other: more requests in a batch with the same memory. For the formulas and the GPU count calculation, see the section “Sizing: memory and GPU count”.

Section sources

the section is written from these pages

Distributed training

Training on many GPUs combines three kinds of parallelism: data (DP), tensor (TP) and pipeline (PP). Each splits its own part of the work — the batch, the matrices of a layer or the layers of the model — and loads the network in its own way: from occasional gradient exchanges to an exchange after every layer.

The choice hinges on the cluster network: tensor parallelism needs the fastest links, so it stays within a node with NVLink, while data parallelism lives on the slower inter-node lines. The second constraint is memory: optimiser states are split by sharding — in PyTorch, this is FSDP.

Each kind splits its own part of the work: the batch, the matrices of a layer or the layers of the model.

Data parallelism

In data parallelism (DP, data parallelism) each GPU keeps a full copy of the model and receives its own slice of the batch. After a step, the ranks (rank) average their gradients with the collective operation all-reduce — this keeps the copies identical. The number of GPUs is almost unlimited, but each one’s memory must fit the whole model: with mixed precision and Adam that is about 16 bytes per parameter.

PyTorch offers two ready-made ways. DistributedDataParallel (DDP) replicates the model and reduces gradients with an all-reduce. FSDP2 (fully_shard) goes further: it shards the parameters, gradients and optimiser states as well, so a model that does not fit into a single GPU trains without tensor or pipeline splitting.

pythonFSDP2, a training step
import torchimport torch.distributed as distfrom torch.distributed.fsdp import fully_shard dist.init_process_group("nccl")model = build_model().cuda()fully_shard(model)optimizer = torch.optim.AdamW(model.parameters(), lr=1e-4)loss = model(batch).lossloss.backward()optimizer.step()

Tensor parallelism

Tensor parallelism (TP, tensor parallelism) splits the matrices of one layer between GPUs: the multiplications are cut into pieces, as in the Megatron-LM implementation. After every layer the ranks reduce their results with an all-reduce — twice each in the forward and backward pass, so the exchange volume per layer grows with the number of ranks. Such an exchange does not fit through slow inter-node lines: the Megatron-LM authors advise keeping TP within one server with NVLink links — no more than the number of GPUs in the server, usually eight.

TP exchanges stay within the node and go over NVLink — roughly an order of magnitude faster than the inter-node network. For how the kinds split the work and load the network, see the table.

Pipeline parallelism

Pipeline parallelism (PP, pipeline parallelism) splits the model by layers into stages (stage), each living on its own GPU or node. The batch is split into microbatches, and the stages work like an assembly line: while the first computes the forward pass of the next microbatch, the second is already processing the previous one. The exchange between stages is point-to-point: activations forward and gradients back.

While the pipeline is not yet full, some stages sit idle — this is the “bubble” (bubble). The idle fraction equals (p − 1) / m: the more microbatches m against the number of stages p, the smaller the loss. The interleaved schedule gives each rank several chunks of the model — in the Megatron-LM paper this yielded a throughput gain of up to 10% at the same memory.

Combining the three kinds

Megatron-LM combines the kinds into the PTD-P scheme: TP within a node, PP between nodes, DP on top. The authors’ rule: the model parallelism TP × PP is taken as the minimum at which the model and activations fit into memory, and the rest is made up with data parallelism.

CriterionDPTPPP
What is splitbatchmatrices of a layerlayers into stages
Exchangeall-reduce once per stepall-reduce on every layerpoint-to-point, at stage boundaries
Where it is fastinter-node networkwithin a node (NVLink)between nodes
Memory per GPUwhole modelpart of a layerpart of the layers
Riskmodel does not fitslow beyond the nodebubble with a small batch

A worked example from the paper: 1024 GPUs = TP 8 × PP 8 × DP 16 — eight TP ranks in one node with NVLink, eight PP stages spread over eight nodes, and 16 DP replicas that split the batch. With the same amount of data, the authors put a model with 175 billion parameters at 34 days on 1024 A100 GPUs.

Memory: ZeRO and FSDP

With mixed precision, Adam keeps per parameter: 2 bytes for the FP16 weight, 2 bytes for the FP16 gradient and 12 bytes of optimiser states in FP32 — a copy of the weights, the momentum and the squared momentum. That makes 16 bytes per parameter: a model with 7.5 billion parameters takes 120 GB in model states alone.

ZeRO removes the duplication between DP ranks in three stages: stage 1 shards the optimiser states, stage 2 the gradients as well, stage 3 the parameters too — on 64 ranks, the memory used for model states drops 64-fold. In PyTorch the same idea is implemented by FSDP2: before a layer, the ranks gather the parameters with an all-gather; after the backward pass the gradients go into a reduce-scatter — each GPU keeps its own shares.

What is shardedZeRO stageState memory per rank
optimiser states14Ψ + (12/64)Ψ ≈ 4Ψ bytes
plus gradients22Ψ + (14/64)Ψ ≈ 2Ψ bytes
plus parameters3(16/64)Ψ = 0.25Ψ bytes

Ψ is the number of parameters; the table shows the example for 64 ranks from the ZeRO paper: with 7.5 billion parameters, stage 1 takes 31.4 GB instead of the 120 GB of plain DP, and stage 2 16.6 GB.

NCCL collective operations

NCCL (NVIDIA Collective Communications Library) is a library of collective operations between GPUs. Training most often uses four of them: AllReduce reduces the gradients and delivers the result to all ranks, AllGather collects pieces from all ranks to each rank, ReduceScatter reduces and hands out one piece to each, and Broadcast sends data from the root rank to all ranks.

NCCL picks the path by topology: within a node — NVLink or PCIe, between nodes — InfiniBand or RoCE. A ring all-reduce over k ranks transfers 2·(k−1)/k·s bytes per rank for a buffer of s: the algorithm bandwidth is s/t, the bus bandwidth s·2·(k−1)/(k·t).

bashNVLink link state
nvidia-smi nvlink -s

Schedulers

Slurm sees GPUs as generic resources (GRES): the administrator enables AutoDetect=nvml in gres.conf — and Slurm finds the node’s GPUs on its own — and lists them in slurm.conf with the Gres line. A job requests GPUs with the --gpus flag in the form [type:]count (for example, --gpus=a100:2) or with --gres=gpu:a100:2.

bashSlurm configuration
# in gres.conf on a node with GPUsAutoDetect=nvml # in slurm.confGresTypes=gpuNodeName=gpu[1-4] Gres=gpu:a100:8

Training jobs are placed on whole nodes: sbatch --gpus=8 -N1 gathers the eight ranks of one server, so that TP runs over NVLink rather than the network. Kubernetes allocates GPUs through the GPU Operator and the device plugin — a pod requests nvidia.com/gpu; for details, see the section “Operations: drivers, monitoring and MIG”.

Section sources

the section is written from these pages

Operations: drivers, monitoring and MIG

Operating a GPU server means a compatible driver and CUDA, health monitoring through DCGM and dividing GPUs between jobs: MIG provides hardware isolation, time-slicing only takes turns. In Kubernetes, NVIDIA GPU Operator covers the same: it installs the driver with the full stack and sets up MIG.

Driver and CUDA compatibility

The driver is backwards compatible: an application built against an older CUDA runs on a newer driver as is. The reverse situation is handled by two mechanisms. Minor version compatibility works within one CUDA family: CUDA 13.x applications run on any driver no older than 580. Forward compatibility delivers the libraries of a newer CUDA to a driver of the previous family as the cuda-compat package.

CUDA familyMinimum driver
CUDA 13.xno older than 580
CUDA 12.xno older than 525
CUDA 11.xno older than 450

Under minor version compatibility the feature set is limited: if an application uses a feature added in a newer minor version of CUDA, the older driver returns the error cudaErrorCallRequiresNewerDriver.

The cuda-compat-13-5 package is built from the libraries of driver 620 and lets CUDA 13.5 applications run on a driver from an older branch. The package works only on data centre GPUs and selected RTX server models. The recommended approach is a single package for the whole system and its path in LD_LIBRARY_PATH.

bashon the host
# newer CUDA on top of an older driversudo apt install -y cuda-compat-13-5export LD_LIBRARY_PATH=/usr/local/cuda-13.5/compat

Driver branches

Install Production or LTSB on a live cluster; New Feature Branch is only for trying out new features. The numbers of the current branches and the end-of-support dates are in the section “Generations and versions”.

BranchReleasesSupport
New Feature Branchonce a quarterno fixed term
Production Branchtwo a year1 year
Long Term Support Brancha Production branch3 years

Monitoring and diagnostics: DCGM

DCGM (Data Center GPU Manager) is NVIDIA’s agent for data centre GPUs: metrics, health, diagnostics, job statistics. GPUs are combined into groups — usually one group per job. A policy links a condition — an uncorrectable ECC error, a PCIe error, a XID — with a response: a notification or an automated action, such as retiring a memory page after a double-bit ECC error (dcgmi policy).

CheckDurationWhen to run
backgroundcontinuouslywatches jobs without affecting them
prologuesecondsbefore a job is placed on the GPU
epilogueminutesafter a job fails or when there are suspicions
full checktens of minuteswhen investigating hardware problems
bashon the host
# enable memory, PCIe and InfoROM checksdcgmi health -g 1 -s mpi# current state of the groupdcgmi health -g 1 -c# full check with stress testsdcgmi diag -r 3

Diagnostics runs at three levels: dcgmi diag -r 1 checks settings and the environment in seconds; level 3 is the full check with memory and power stress tests, for a node taken out of service.

Metrics for Prometheus

DCGM Exporter polls DCGM every 30 seconds and serves the metrics on port 9400 at /metrics — Prometheus collects them from there. In Kubernetes, the exporter runs as a DaemonSet on every GPU node. Metric collection and alerting are covered in the Prometheus and Grafana reference.

bashon a GPU node
# is the exporter responding on the GPU nodecurl -s localhost:9400/metrics
MetricWhat it shows
DCGM_FI_PROF_GR_ENGINE_ACTIVEshare of the time the compute engines are busy
DCGM_FI_PROF_DRAM_ACTIVEshare of memory bandwidth in use
DCGM_FI_DEV_FB_USEDGPU memory in use
DCGM_FI_DEV_GPU_TEMPGPU temperature
DCGM_FI_DEV_POWER_USAGEpower draw
DCGM_FI_DEV_XID_ERRORScode of the latest driver error, XID

Error-correcting memory

Data centre GPU memory works with error correction (ECC, error correction code): single-bit errors are fixed by the hardware, double-bit ones are detected but not corrected. Counters are kept on two scales: volatile — since the last driver load, aggregate — over the card’s lifetime. The driver remaps a faulty memory row onto a spare one — row remapping; while the remapping is pending, the GPU waits for a reset. What to do when double-bit errors accumulate is covered in “Common errors and troubleshooting”.

bashon the host
# memory error countersnvidia-smi -q -d ECC# remapped memory rowsnvidia-smi -q -d ROW_REMAPPER

Splitting a GPU: MIG

MIG (Multi-Instance GPU) divides a single GPU into several isolated instances — from the Ampere architecture onwards, up to seven. Each instance gets its own streaming multiprocessors (SM) and dedicated paths to memory: a bank of L2 cache, memory controllers, DRAM buses. One tenant’s job cannot take the memory of another and cannot evict its neighbours.

A profile sets the size of an instance: the number of compute slices and the amount of memory. An SM slice is about one seventh of all SMs, a memory slice is one eighth of the memory. On an H200 with 141 GB, the 1g.18gb profile means 18 GB of memory and one seventh of the SMs; up to seven such instances fit on the card.

bashon the host
# enable MIG on GPU 0 (Ampere requires a GPU reset)sudo nvidia-smi -i 0 -mig 1# two instances with 20 GB of memory each on an A100 40 GBsudo nvidia-smi mig -cgi 9,3g.20gb -C# hand one instance to the application by UUIDCUDA_VISIBLE_DEVICES=MIG-c7384736-a75d-5afc-978f-d2f1294409fd ./app

MIG or time-slicing

The second way to divide a GPU is time-slicing: the driver’s scheduler alternates processes on the whole GPU. There is no hardware isolation: a process can exhaust memory and slow its neighbours. In return, the approach also works on GPUs without MIG support.

AspectMIGTime-slicing
Isolationhardware: memory, cache, failuresnone, only turns
Memorya fixed shareshared by all
Instances per GPUup to 7as many replicas as needed
CompatibilityAmpere and newerolder GPUs too
Per-tenant metricsyes, per MIG deviceno attribution to containers

For tenants choose MIG — it is the only option that gives hardware memory guarantees and fault isolation. Use time-slicing for GPUs without MIG and for packing density. The two combine: MIG instances can also be time-sliced.

GPU Operator in Kubernetes

NVIDIA GPU Operator automates the stack on Kubernetes nodes: the driver, Container Toolkit, device plugin, DCGM Exporter, MIG Manager and node labelling through GPU Feature Discovery. By default, all components are deployed as pods on every GPU node. The device plugin declares the GPU as the resource nvidia.com/gpu — the scheduler hands it to pods like any other limit.

basha client with helm
helm install --wait gpu-operator \  -n gpu-operator --create-namespace \  oci://nvcr.io/nvidia/cloud-native-charts/gpu-operator \  --version=v26.7.2

MIG Manager manages the MIG geometry through node labels. The single strategy exposes each MIG instance as an ordinary nvidia.com/gpu resource; the node then has all its GPUs in MIG mode with the same profile. The mixed strategy provides resources named after the profile, such as nvidia.com/mig-1g.10gb, while GPUs without MIG remain ordinary nvidia.com/gpu.

basha client with kubectl
# MIG strategy for the whole clusterkubectl patch clusterpolicies.nvidia.com/cluster-policy \  --type='json' \  -p='[{"op":"replace", "path":"/spec/mig/strategy", "value":"single"}]'# the 1g.10gb profile on a single nodekubectl label nodes gpu-node-1 nvidia.com/mig.config=all-1g.10gb \  --overwrite

A driver upgrade requires unloading the kernel modules: the operator drains the GPU clients, unloads the modules, starts a pod with the new driver and brings the clients back. Only containerised drivers are managed this way — a driver installed on the host you upgrade yourself. On the security side: tenant isolation means MIG; install driver and Container Toolkit updates following NVIDIA bulletins (the list is in “Generations and versions”); BMC access — from the management network only.

Section sources

the section is written from these pages

Power and cooling

What limits a GPU cluster is not the compute but three site resources: power, cooling and floor space. A shortfall in one raises the demand on the others: fewer systems per rack means more racks. So power and cooling are planned together with the site, before the systems are ordered.

Three site constraints

The three resources are interlinked: a cooling shortfall limits the power density of a rack, and the same cluster then occupies more racks — a cooling shortfall is paid for in floor space. A change in one domain affects the others: a new rack layout changes cable lengths and can add latency to the cluster network.

TDP and the air boundary

TDP (thermal design power) is the value used to size node cooling. NVIDIA GPU TDP figures by generation are collected in the section “GPUs: architecture, memory and precision”: for the H200 SXM it is up to 700 W.

The line between air and liquid is illustrated by the AMD Instinct MI350 family. The MI350P card, rated at 600 W (configurations up to 450 W), comes in a PCIe form factor for air-cooled servers — up to 8 cards per node. The 1000 W OAM MI350X module is designed for air cooling, while the 1400 W MI355X is meant for direct liquid cooling infrastructure.

Rack density

The DGX H100 draws up to 10.2 kW and weighs 130 kg. The optimal density is 4 systems per rack, 40.8 kW per rack. If the site cannot support that density, there are fewer systems per rack, and more racks and floor space.

Racks are grouped into a scalable unit (SU): up to 32 DGX H100 systems together with InfiniBand leaf switches. A full DGX SuperPOD is assembled from 4 SUs, and a pair of UFM management appliances takes the space of one system — 127 systems per SuperPOD at most.

SystemPowerCoolingPer rack
DGX H100up to 10.2 kW, 130 kgair4 systems — 40.8 kW
DGX B300 (MGX)over 50 kW per rackairpower shelves on a DC busbar
DGX GB200 NVL728 shelves of 33 kWliquid and air72 GPUs

Rack power: PDU or DC busbar

An NVL72 rack needs its own power infrastructure: the rack holds 8 power shelves, each carrying 6 modules of 5.5 kW in the N configuration and delivering up to 33 kW. A SuperPOD scalable unit on GB200 is 8 such racks.

A DGX SuperPOD built on DGX B300 systems is assembled in MGX racks with a DC busbar: rack consumption exceeds 50 kW, and the busbar replaces the PDU (power distribution unit) and AC-powered EIA racks. For sites where a DC busbar cannot be run, there is still the option of traditional PDUs and EIA racks.

Liquid cooling: direct-to-chip

Direct-to-chip liquid cooling delivers liquid to the hottest components — the GPUs and CPU; fans carry away the remaining heat. This is how the hybrid layout of a DGX GB200 NVL72 rack works. For planning purposes: NVL72-class racks require liquid, while systems such as the DGX H100 run on air.

Energy efficiency: PUE

How much a site spends beyond the IT load is shown by the PUE (power usage effectiveness) metric from The Green Grid: the total facility power is divided by the IT equipment power. The ideal is 1.0: all the electricity reaches the servers. Partial PUE computes the same ratio for an individual segment of the site. Liquid cooling reduces the share of fans and chillers in that remainder, so the ratio moves closer to one.

What to check on site

Before ordering systems, the following are agreed with the site:

  • power and cooling per rack — the figures from the table above against the site limits
  • weight and floor loading — 4 DGX H100 systems weigh over half a tonne, plus the rack, switches and cables
  • rack and aisle layout — in the SuperPOD design the InfiniBand cable is no longer than 50 m, and the layout is what determines this
  • temperature and humidity in the hall — the ASHRAE recommended range for class A is 18–27 °C, and up to 30 °C is allowed for the DGX H100
  • headroom on every point — a shortfall in one resource is paid for with another: lower density means more racks

Power, cooling and floor space are planned together: a change in one domain reshapes the others. The data centre as a whole — Tier levels, UPS and site redundancy — is covered in the reference “Infrastructure and cloud architecture”, section “Data centers and Tier levels”.

Section sources

the section is written from these pages

Common errors and troubleshooting

Start with three checks: nvidia-smi shows whether every GPU is visible, dmesg | grep -i xid names the Xid error code, and dcgmi diag -r 1 gives a quick verdict on the health of the cards. The Xid code points to where the problem sits — the job, the driver or the hardware; the frequent codes are covered below.

  1. nvidia-smi — whether every GPU is present; a shorter list or an error instead of output means a driver or bus problem.
  2. dmesg | grep -i xid — the Xid code: this is how the NVIDIA driver marks GPU errors in the kernel log.
  3. dcgmi diag -r 1 — a quick GPU health check from the DCGM suite, for when the log shows no explicit error.

GPU has fallen off the bus (Xid 79)

The driver tried to reach the GPU over the PCIe bus and could not find the card: it is missing from the nvidia-smi list. Check the card’s power and the node’s cooling, then how the card is seated in its slot; the lspci command shows whether the system itself sees the bus. Take the node out of service and reboot it; if the error comes back after the reboot, contact the hardware vendor — the card will probably have to be replaced.

bashon the node
# the card is in the GPU listnvidia-smi -L# the card is visible on the PCIe buslspci | grep -i nvidia

Memory errors (Xid 48, 63, 94 and 95)

Data-centre GPU memory corrects single-bit errors on its own, so only the uncorrectable ones are dangerous: a double-bit error corrupts the job’s data, and the GPU, for example, waits for a reset so that the faulty memory row can be moved to a spare. What differs is only how many jobs the failure touched. After 94 and 95 the log may show Xid 45 — clean-up after someone else’s error; on its own it is harmless.

Error textWhat it meansWhat to do
Double Bit ECC Error (Xid 48)an uncorrectable GPU memory errorreset the GPU or reboot the node
GPU memory remapping event (Xid 63)the driver has moved the memory row to a spareschedule a GPU reset for a convenient time
Contained memory error (Xid 94)the error stayed within one applicationrestart the job, reset the GPU when a convenient moment comes
Uncontained memory error (Xid 95)the error affected several applicationsreset the GPU, and only then start jobs
bashon the host
# reset one GPU by indexsudo nvidia-smi -r -i 3

NVLINK Error (Xid 74)

A GPU’s link to a neighbouring GPU or to an NVSwitch over NVLink is faulty. The source is often at the other end of the line: when one GPU fails, its neighbours report Xid 74 as well. A GPU reset or a node reboot clears the error; if it comes back after that, contact the hardware vendor. nvidia-smi nvlink -s shows the current state of the links, and the card on the bus — lspci with its address from the Xid message header.

bashon the node
# state of the NVLink linesnvidia-smi nvlink -s# who is linked to whom and through whatnvidia-smi topo -m

GSP RPC Timeout (Xid 119)

The driver timed out waiting for a response from the GSP processor — a small processor on the GPU itself that runs part of the driver logic. The cause sits in the software stack: update the driver to the latest release of its branch and reset the GPU. If the error returns after a full power cycle of the node, contact the hardware vendor. Check that the driver and CUDA versions match against the section “Operations: drivers, monitoring and MIG”.

bashon the node
# GSP firmware version shipped with the drivernvidia-smi -q -d GSP_FIRMWARE_VERSION

Job hangs on NCCL

A distributed job stalls on a collective operation and sits idle while the processes are still alive. Turn on verbose NCCL logging as the vLLM guide advises and run the job again: the last lines will show the operation and the ranks where everything stopped.

bashjob environment variables
# verbose NCCL logging, until the end of the sessionexport NCCL_DEBUG=TRACE

If GPU-to-GPU exchange does not start, check the P2P path: the nvidia-smi topo -p2p n matrix should show OK for every pair. When the matrix is fine and exchange still fails, the frequent causes on the physical server are IOMMU address translation and PCI ACS services: the NVIDIA stack does not support P2P exchange through IOMMU, and this mode is disabled. Another frequent cause is the wrong network interface: set it explicitly with the NCCL_SOCKET_IFNAME and GLOO_SOCKET_IFNAME variables. Link topology and P2P checks are covered in the section “Cluster networking: InfiniBand and RoCE”.

bashon the node
# P2P matrix: n — NVLink, p — PCIenvidia-smi topo -p2p nnvidia-smi topo -p2p p# IOMMU mode in the kerneldmesg | grep -i -E "iommu|dmar"

Job runs out of GPU memory

A job fails when the model, the KV cache and the activations no longer fit into GPU memory; the formulas in the section “Cheat sheet: commands and formulas” help estimate memory in advance. The first things to limit are context length, the number of parallel requests and the share of GPU memory per instance: in vLLM they are governed by --max-model-len, --max-num-seqs and --gpu-memory-utilization. If memory is still short, quantisation of the weights or tensor parallelism, which spreads the model over several GPUs, will help.

bashrunning vLLM
vllm serve meta-llama/Llama-3.1-8B-Instruct \  --max-model-len 16384 \  --max-num-seqs 32 \  --gpu-memory-utilization 0.85

Job runs slower than usual

GPU clocks are throttled by protection, not by a fault: a power limit has kicked in or the temperature has crossed the boundary. nvidia-smi -q -d PERFORMANCE lists the active causes; look at the cooling or the power limit of the node.

Reason in the outputWhat it meansWhat to check
HW Thermal Slowdownoverheating: clocks cut by half or morenode cooling — see the section “Power and cooling”
SW Thermal Slowdowntemperature above the maximum operating levelcooling and air flow in the rack
SW Power Cappower draw has hit the power limitthe -pl limit and the node’s power headroom
HW Power Brakerack power demands a cut in drawrack power — see the section “Power and cooling”
bashon the node
# active clock-throttling reasonsnvidia-smi -q -d PERFORMANCE# temperatures and power drawnvidia-smi -q -d TEMPERATURE,POWER

SW Power Cap can be softened by raising the power limit with the -pl flag — within the Min and Max Power Limit bounds from the nvidia-smi -q -d POWER output; overheating is not cured by this flag.

When the GPU itself is not to blame

Some symptoms never reach Xid messages and are sorted out at the driver and environment level. Before contacting the vendor, collect the node configuration, the key log lines, the DCGM diagnostics output and the nvidia-bug-report.sh archive — without them the investigation will drag on.

SymptomCauseWhat to do
after a kernel upgrade nvidia-smi exits with code 9the driver module is not built for the new kernelreinstall the driver and reboot the node
an application will not start: the driver is older than the CUDA it needsdriver and CUDA versions do not matchupdate the driver or hook up cuda-compat — see the section “Operations: drivers, monitoring and MIG”
nvidia-smi takes seconds to answerpersistence mode is off, the driver is loaded afresh on every callenable sudo nvidia-smi -pm 1; after a node reboot the setting has to be enabled again
the job sees the wrong GPUs or not all of themthe CUDA_VISIBLE_DEVICES variable is set in the environmentcheck its value against the placement plan; card UUIDs — in nvidia-smi -L

Section sources

the section is written from these pages

Generations and versions

This reference covers CUDA Toolkit 13.5: the latest release is 13.5.0, from November 2026, and it runs on a driver from the R620 branch. Minor releases of CUDA 13 come out roughly once a quarter, drivers get two production branches a year, and an LTSB branch is supported for three years.

GPU generations

A GPU generation defines the compute capability (CC) — the set of hardware capabilities that code is built for (see the section “GPU: device, memory and precision”).

GenerationGPUs and systemsCCStatus
HopperH100, H200, GH2009.0widely deployed
BlackwellB200, GB200 NVL7210.0HGX B200 is shipping
Blackwell UltraB300, GB300 NVL7210.3HGX B300 is shipping
RubinHGX Rubin NVL8, Vera Rubin NVL72—in full production

NVIDIA has moved the Vera Rubin platform into full production: systems with Rubin GPUs are being manufactured and shipped to system builders. The list of CC values is on the “CUDA GPU Compute Capability” page.

CUDA branches

The CUDA Toolkit number consists of a major version, a minor version and a patch: in 13.5.0 the minor is 5 and the patch is 0. Within a major family, minor version compatibility applies: CUDA 13.x applications run on a driver of 580 or newer (see the section “Operations: drivers, monitoring and MIG”).

BranchLatest release
13.513.5.0 — November 2026
13.413.4.3 — October 2026
13.313.3.1 — June 2026
12.912.9.2 — May 2026

Patches within a minor version come out as fixes become available. New CUDA 13.5 features require a driver of R620 or newer — the compatibility package does not carry them over.

Driver branches

Two production branches come out a year, and fixes for a branch keep arriving for a year. An LTSB (Long Term Support Branch) is a production branch supported for three years: it is the choice when a cluster cannot be touched often. A New Feature Branch lives for about a quarter and is not meant for production use.

BranchTypeEnd of support
R620LTSBSeptember 2029
R595ProductionMarch 2027
R580LTSBJune 2028

Each CUDA release corresponds to a driver branch: 13.5 — R620, 13.4 — R615, 13.3 — R610, 13.2 — R595, 13.0 — R580. All three branches in the table run CUDA 13 without a compatibility package — the driver is updated on its own schedule, not in lockstep with the Toolkit.

What is new in CUDA 13.5

  • Topology check for P2P: cuDeviceCanAccessPeer() and cuCtxEnablePeerAccess() verify whether GPUs may exchange data directly over PCIe when IOMMU and PCI ACS are enabled. It affects multi-GPU systems; disable it with CUDA_DISABLE_IOMMU_ACS_P2P_CAPABILITY_CHECK=1.
  • Confidential Computing for the NVENC encoder on the RTX PRO 6000 Blackwell Server Edition: protected H.264, HEVC and AV1 encoding in Linux virtual machines. Requires a driver from the R620 branch and firmware configuration.
  • PTX ISA 9.5: atomic operations of 1, 2 and 16 bytes with an explicit memory order for CC 10.0 and newer; support for sm_110 GPUs on arm64-sbsa.

Deprecated and removed

  • The nvidia-peermem kernel module is deprecated and will be removed in an upcoming CUDA release. For GPUDirect RDMA — access by a GPU to Mellanox network cards — move to DMA-BUF via nvidia.ko: you need the open kernel module for the GPU and Linux 5.12 or newer.
  • Debian 12 and openSUSE Leap 15.6 are deprecated as of 13.5: this release is the last to support them, move to Debian 13 and openSUSE Leap 16.
  • The NVCC flag --position-independent-code is deprecated: whole-program compilation already produces position-independent code.
  • CUDA 14.0 will raise the minimum for ARM64-SBSA to Armv8.2-A: nodes on older ARM processors will stay on CUDA 13.x.

Security updates

NVIDIA GPU Display Driver bulletins come out several times a year; since October 2026 they have been published on GitHub — in Markdown, CSAF and CVE. Update the driver in every supported branch: patches are issued for LTSB as well.

BulletinWhat is affectedFixed in
GPU Display Driver — September 2026114 vulnerabilities, including in the kernel module: code execution, access to another process’s GPU channel, denial of service; maximum severity 7.8R580 — 580.178.04, R595 — 595.91.07
GPU Display Driver — May 202615 vulnerabilities: incorrect permissions on a critical resource, a use-after-free with privilege escalation; maximum severity 8.8R580 — 580.159.03, R595 — 595.71.05
GPU Display Driver — January 2026Vulnerabilities in the driver for Windows and Linux, including vGPU: code execution, data corruption, denial of serviceR580 — 580.126.09

For R580 and R595 the Linux versions are listed; Windows builds of the same branch receive the fixes under the same bulletin. The R620 branch is younger than these bulletins.

How to update

  • Driver: within a branch, update through patch releases — first on one node with diagnostics via dcgmi diag -r 3, then in groups. Plan a new branch around the end-of-support dates.
  • CUDA in a container: the Toolkit lives in the image — update the image within minor version compatibility and leave the node driver alone.
  • GPU Operator: update it following its release notes — CRD first, then helm upgrade; the order is in the section “Operations: drivers, monitoring and MIG”.
bashon the host
# check the driver branch and CUDA before updatingnvidia-sminvcc --version

The versions of vLLM, PyTorch and NCCL change independently of the NVIDIA stack — check the framework’s build requirements against your CUDA version.

Section sources

the section is written from these pages

End of the reference

What changed

revision history · 3 entries

Every edit is saved as a revision: a snapshot of the reference, the reason and a summary of changes. The published version changes only after the same checks as at creation.

  1. Manual edit

    reason: manual edit
  2. Manual edit

    reason: manual edit
  3. Reference updated

Weekly check

How the reference is checked

Once a week — and right after news of a release or a vulnerability — the reference is checked in three steps.

  1. 1. Freshness

    Sections are compared with the release notes and changelogs from the official sources and with the topic’s news.

  2. 2. Errors

    Every section is read again: wrong facts, outdated APIs and flags, broken examples.

  3. 3. Links — by an HTTP request

    Every source link must respond. A broken link is a reason to recheck the section.

No findings — only the date changes. Findings — only the affected sections are rewritten, and they appear in “What changed”. A new version replaces the published one only after passing the same checks as at creation.

Statuses

Verified
no findings
Updated
sections rewritten, edits are listed
Rechecking
while the check runs, the previous version stays open
Needs review
disputed points: the verified version is shown, editors review

Last check

18 Nov · Check · updated · no findings

Found an error in the reference?

On the topic

tracks, news and other references
The whole “AI infrastructure (GPU)” topic
13 sections
Another reference · Backend

Python

Verified 31 Oct
All references · 61