NCA-AIIO Cheatsheet
AI Infrastructure and Operations
Download free PDFAI foundations and software
Learning concepts and model families
- **Artificial intelligence (AI)** is the broad field; **machine learning (ML)** learns patterns from data; **deep learning (DL)** uses multilayer neural networks. Generative AI creates content, commonly through deep learning models.
- **Supervised learning** uses labeled examples. **Unsupervised learning** finds structure such as clusters. **Reinforcement learning** learns actions from rewards and interaction with an environment, including robotic control tasks.
- **Transformers** use attention to relate tokens across a sequence and underpin many large language models. Attention is a mechanism; a transformer is a model architecture.
- **AI adoption** grew through larger datasets, accelerated computing and improved training algorithms. More hardware alone does not guarantee a useful or accurate model.
Training, inference and the AI lifecycle
- **Training** adjusts model parameters through forward passes, loss calculation, backpropagation and optimizer updates. Plan for dataset reads, compute throughput, GPU memory and checkpoints.
- **Inference** applies learned parameters to new inputs. Online services emphasize response latency and availability; batch inference often emphasizes throughput. Large models can require several GPUs even for inference.
- **Multi-node training** can reduce training time or distribute models that exceed one device. **Data parallelism** replicates a model across workers; **model parallelism** divides model computation or parameters.
- **AI factories** integrate accelerated infrastructure with data preparation, training and model serving. **MLOps** adds repeatable deployment, evaluation and monitoring across that lifecycle.
CUDA, libraries and deployment tools
- **CUDA** is NVIDIA's parallel computing platform and programming model. CUDA tools and language integrations let applications launch GPU kernels; optimized libraries supply reusable accelerated operations.
- **cuDNN** accelerates deep neural network operations. **RAPIDS** accelerates data science: **cuDF** for DataFrames, **cuML** for machine learning and **cuGraph** for graph analytics.
- **DALI** accelerates input preprocessing and augmentation. **NGC** provides a catalog of GPU-optimized containers, models and software to reduce environment setup work.
- **TensorRT** optimizes model inference. **Triton Inference Server** serves models with features such as concurrent execution and batching. **NIM** packages optimized inference microservices for simpler deployment.
Match NVIDIA platforms to workloads
- **Merlin** supports recommender systems. **Riva** supports speech AI. **Intelligent video analytics** interprets camera streams to detect objects, activity or events.
- **Isaac** supports AI-powered robotics development and simulation. **Jetson** provides embedded edge AI compute; **DRIVE** targets automotive AI platforms.
- **H100-class data center GPUs** support demanding model training. **L4** targets efficient inference and graphics/video workloads. Select hardware by memory, precision, throughput, latency and deployment constraints.
- **RTX-based systems** suit ray-traced rendering and visualization. Shared real-time 3D workflows also need compatible applications, scene/data access and suitable network performance.
GPU systems and accelerated computing
CPU and GPU architecture
- **CPUs** favor low-latency execution, complex control flow and strong per-thread performance. **GPUs** favor high throughput across many parallel operations; they complement CPUs in accelerated systems.
- **GPU memory bandwidth** feeds parallel computation. High-bandwidth device memory and fast on-chip memory help data-intensive kernels; CPU-to-GPU transfers can still become a bottleneck.
- **Compute-bound** workloads spend time calculating; **memory-bound** workloads wait for data. Profile the limiting resource before adding cores, bandwidth or nodes.
Core types and numerical precision
- **CUDA cores** execute general GPU arithmetic. **Tensor Cores** accelerate supported matrix operations. **RT cores** accelerate ray-tracing operations used in realistic lighting and rendering.
- **Mixed precision** combines lower-precision computation with higher-precision operations where needed. It can reduce memory use and increase throughput while preserving acceptable numerical behavior.
- **FP16**, **BF16**, **TF32** and **FP8** have different range, precision and hardware support. **FP32** provides higher precision than these reduced formats; **FP64** serves precision-sensitive scientific work. Validate model quality after precision changes.
DGX platforms and GPU sharing
- **DGX** integrates GPUs, CPUs, memory, storage, networking and software for AI workloads. **DGX SuperPOD** extends this into a validated multi-node infrastructure design; scaling still depends on workload and communication efficiency.
- **DGX OS** is Ubuntu-based and supplies a validated GPU-system software environment. Keep OS, drivers, firmware, libraries and container requirements compatible.
- **Multi-Instance GPU (MIG)** partitions supported GPUs into hardware-isolated instances with dedicated compute and memory resources. **A100 and H100** support up to **seven** GPU instances, subject to profile combinations.
- **NVIDIA vGPU** provides GPU virtualization for supported virtual machines and workloads. **Time-slicing** shares execution time; it does not provide the dedicated memory partitioning of MIG.
Local interconnects and infrastructure offload
- **PCIe** connects GPUs, NICs and other devices. **NVLink** provides a high-bandwidth GPU interconnect; **NVSwitch** switches NVLink traffic among GPUs in supported systems.
- **GPUDirect peer-to-peer (P2P)** enables supported direct GPU-to-GPU data transfers. The usable path depends on topology, hardware and software support.
- **BlueField DPUs** offload, accelerate and isolate infrastructure work such as networking, storage and security. Their role frees host resources for applications; a DPU is distinct from a training GPU.
- **DOCA** is the development framework for BlueField infrastructure services. **Magnum IO** groups NVIDIA technologies for accelerated data movement and communication.
Cluster networking and storage
Network roles and fabric design
- **Compute fabrics** carry inter-node training communication. **Storage fabrics** feed datasets and checkpoints. **In-band management** uses the running host network; **out-of-band management** provides a separate hardware control path.
- **Fabric separation** can isolate compute, storage and management traffic. The physical fabric count depends on the design; distinguish traffic roles from a universal number of networks.
- **High bandwidth and low latency** matter for distributed training. Oversubscription, congestion and slow links can make communication dominate step time even when GPU compute is underused.
- **InfiniBand** is designed for low-latency, high-bandwidth communication with RDMA and hardware offloads. **RoCE** brings RDMA to Ethernet; both require suitable adapters, switches and configuration.
RDMA and distributed communication
- **Remote Direct Memory Access (RDMA)** lets network adapters transfer data directly between registered memory regions, reducing CPU copying and data-path overhead. Host software still configures and coordinates operations.
- **RoCE v2** carries RDMA over UDP/IP on Ethernet. Engineer congestion control and traffic classes carefully; **ECN** and **PFC** can form part of the design. High packet loss undermines performance.
- **GPUDirect RDMA** lets a supported NIC access GPU memory directly, avoiding intermediate host-memory copies. It reduces CPU involvement and transfer overhead across nodes.
- **NCCL** supplies GPU collective operations such as **all-reduce**, broadcast and all-gather. All-reduce combines values across workers and returns the result to each, commonly synchronizing gradients.
- **MPI** supports communication among distributed processes; **PVM** is an older distributed-computing system. InfiniBand **verbs** expose communication operations. A **subnet manager**, such as OpenSM, configures and manages an InfiniBand subnet.
Storage and the GPU data path
- **Training input pipelines** repeatedly read datasets, often using shuffling and augmentation. Large sequential reads benefit bulk throughput; small files or random sampling can stress metadata and IOPS.
- **Checkpoints** write recoverable model and optimizer state. Size storage for datasets, checkpoints and logs, and keep durable recovery copies separate from disposable caches.
- **GPUDirect Storage (GDS)** provides a supported direct DMA path between storage and GPU memory. It avoids CPU-memory bounce buffers, reducing extra copies and CPU data-movement overhead.
- **End-to-end throughput** remains limited by storage, fabric, PCIe topology and application behavior. GDS does not remove those limits or eliminate all CPU and software control work.
Scheduling, deployment and monitoring
Slurm and policy-driven scheduling
- **Job scheduling** assigns queued work to available cluster resources. A cluster workload manager allocates nodes, CPUs, GPUs and memory; an OS scheduler selects runnable work on one host.
- **Slurm** manages batch and HPC jobs through queues/partitions, resource requests, priorities, reservations and allocation policies. Distributed AI training can run inside those allocations.
- **Priority-based scheduling** gives urgent work earlier access during contention according to policy. **Fair-share**, quotas and reservations balance competing users; preemption must be explicitly designed.
- **Resource requests and monitoring** help prevent overcommitment and identify insufficient allocations. GPU out-of-memory failures can also require a smaller batch, a larger GPU/MIG profile or model sharding; extra idle nodes do not automatically enlarge one GPU's memory.
Containers, Kubernetes and GPU Operator
- **Containers** package applications with user-space dependencies for repeatable execution. Reproducibility also requires pinned images, configuration, data/model artifacts and compatible host GPU drivers.
- **Kubernetes** manages container deployment, scheduling, replica lifecycle and service discovery. Services distribute traffic to eligible endpoints; health checks and controllers support recovery after failures.
- **Slurm** centers on scheduled resource allocations for jobs; **Kubernetes** centers on containerized workload lifecycle. Both can run AI workloads and need configuration appropriate to batch jobs or serving.
- **NVIDIA GPU Operator** automates deployment and management of GPU drivers, Container Toolkit, device plugins, GPU feature discovery and DCGM monitoring components on Kubernetes nodes.
- **GPU Operator** prepares the GPU software stack. Application replica scaling and node autoscaling use separate controllers and available capacity; the operator does not create physical GPU resources.
GPU telemetry and infrastructure management
- **nvidia-smi** reports local GPU status, utilization, memory, temperature, power and processes. **NVML** is a programmatic management interface; a CLI status snapshot is only one view of workload behavior.
- **GPU utilization** measures sampled activity over time. **GPU memory usage** measures allocated device memory. High memory occupancy can coexist with low compute activity while a workload waits for input or communication.
- **DCGM (Data Center GPU Manager)** provides GPU health, telemetry and diagnostics. **DCGM Exporter** exposes metrics for monitoring systems; track trends and correlate them with job and node events.
- **Base Command Manager** supports cluster provisioning, management and monitoring. **NetQ** focuses on network visibility and validation. Choose the tool for the layer being investigated.
Out-of-band access and DGX networking
- **Baseboard Management Controller (BMC)** provides hardware monitoring, remote console and power control independently of the host OS. It can remain reachable with the host off when standby power and the management network are available.
- **DGX H100** has one dedicated **1 GbE BMC** interface. Its host management RJ45 interface is **10 GbE**; distinguish the management port's role from a link's negotiated speed.
- **Management isolation** protects administrative access during production-network or host failures. Restrict credentials and reachability, and collect hardware events when investigating unavailable nodes.
Facilities, placement and reliable operations
Space, power, cooling and PUE
- **Physical space, power and cooling** jointly constrain GPU rack density. Check rack units, weight, electrical capacity and heat removal before adding systems; floor space alone is insufficient.
- **Hot-aisle/cold-aisle layouts** separate hot exhaust from cool intake air. **Blanking panels** close unused rack spaces to reduce recirculation; keep cabling and equipment placement from obstructing airflow.
- **PUE = total facility energy / IT equipment energy** over the same period. Values closer to **1.0** indicate less facility overhead; **1.2** is more efficient than **2.0** on this measure.
- **UPS** supplies short-term backup power and bridges outages to generator operation or orderly shutdown. Redundant power paths and cooling capacity support availability; UPS capacity is finite.
Cloud, on-premises, hybrid and edge
- **Cloud GPUs** lower the initial capital barrier and provide access to elastic capacity. Compare ongoing rental, storage, transfer costs, capacity availability and network topology against the workload.
- **On-premises infrastructure** provides direct control of hardware, data location and operations. It requires capital investment, capacity planning and facility support; security and sovereignty still depend on implementation.
- **Hybrid deployment** can retain sensitive data on-premises while using cloud capacity for suitable work. Plan identity, data movement and consistent environments across both locations.
- **Edge AI** processes data near its source to reduce response delay, bandwidth use or reliance on remote connectivity. Account for limited power, memory and remote-management access.
Availability, scaling and model drift
- **High availability** combines redundant service instances, health detection, traffic rerouting and automated recovery. Spread replicas across failure domains; scaling requires spare capacity and an available dependency chain.
- **Training recovery** uses durable checkpoints to restart interrupted work. Test restores and job resubmission; a running replica is not a substitute for retained recovery state.
- **Scaling efficiency** compares useful performance gained with resources added. If all-reduce dominates, inspect fabric bandwidth, latency, topology and congestion before adding more GPUs.
- **Model drift** is a change affecting deployed behavior or quality as conditions evolve. Monitor input distributions and task-quality metrics, then evaluate retraining with fresh representative data before controlled deployment.