# Memory Profiling: torch.profiler, Nsight Systems, OOM Debugging — Production GPU Memory Management

> Source: https://sukruyusufkaya.com/en/learn/llm-muhendisligi/memory-profiling-torch-profiler-nsight-oom
> Updated: 2026-05-13T13:00:25.440Z
> Category: LLM Mühendisliği
> Module: Module 5: PyTorch Engineering — Engineer-Grade
**TLDR:** The hidden life of GPU memory: activation vs gradient vs optimizer state breakdown, memory snapshot with torch.profiler, Nsight Systems timeline analysis, OOM root cause analysis, activation checkpointing, gradient accumulation, fragmentation solutions.

