179 questions
No questions match those filters.
← All questions
LLMOps & ProductionMedium· Profiling· PyTorch· Optimization
How would you use the PyTorch Profiler to identify whic...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansWrap the training step in a torch.profiler.profile context manager with CPU and CUDA activities enabled. After execution, call key_averages().table(sort_by=‘cuda_time_total’) to rank operations by their total GPU time. Focusing on the top entry, such as aten::mm, ensures you optimize the most impactful operations rather than wasting time on minor ones.