Profiling LLM Training Workflows on NVIDIA Grace Hopper

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Engineers fine-tuning LLMs on GH200 hardware get a concrete profiling recipe showing their workloads are compute-bound and where GPU idle time hides, enabling targeted optimization today.

Read this as

NVIDIA published a guide on using its Nsight Systems profiling tool to find slowdowns when training large language models, like Llama 2 7B, on its Grace Hopper Superchip, a single chip combining a processor and graphics chip. Profiling showed one matrix-multiplication task eats about half the GPU's time, while moving data between the chip's two halves takes under 1%. This matters to AI engineers deciding how to speed up training and cut costs.

NVIDIA's post shows that LLM fine-tuning on its GH200 Grace Hopper Superchip is compute-bound, not limited by CPU-GPU transfers: matrix multiplication kernels account for 49.9% of GPU time versus 0.5% for data movement. For teams buying or renting AI infrastructure, this suggests Grace Hopper's tightly coupled design is working as intended. The main remaining inefficiency is synchronization delays between CPU and GPU, which NVIDIA says can be tuned. Competing architectures are not evaluated, so buyers should treat this as NVIDIA's own showcase.

NVIDIA profiles Llama 2 7B supervised fine-tuning on the GH200 (Grace CPU + Hopper GPU via NVLink-C2C) using the NeMo 25.02.01 container and nsys profile with delayed start (-d 720) and 360-second capture. Kernel analysis shows sm90_xmma_gemm_bf16f16_bf16f32 consumes 49.9% of GPU time while CPU-GPU transfers use 0.5%, confirming a compute-bound workload. Timeline inspection of pt_main_thread and pt_autograd_0 reveals GPU idle gaps and pthread_cond_wait blocks from CPU-GPU synchronization. Suggested fixes: overlapping compute and communication, tuning kernel launch parameters, and reducing transfer frequency.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

NVIDIA Grace Hopper GH200 Nsight Systems NeMo Llama 2 7B PyTorch

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading