# Profiling in PyTorch (Part 1): A Beginner's Guide to torch.profiler

DevFeed: [Profiling in PyTorch (Part 1): A Beginner's Guide to torch.profiler](<https://devfeed.tech/articles/profiling-in-pytorch-part-1-a-beginner-s-guide-to-torch-profiler-7523.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/torch-profiler>)

Author: Aritra Roy Gosthipaty; Sayak Paul; Sergio Paniego; Rémi Ouazan Reboul; Pedro Cuenca

Published: 2026-05-29T00:00:00Z

Content type: tutorial

Language: en

Sources: [Hugging Face - Blog](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [GPU](<https://devfeed.tech/topics/gpu.md>), [AI, ML & Data Engineering](<https://devfeed.tech/topics/ai-ml-data-engineering.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [jobs](<https://devfeed.tech/topics/jobs.md>)

Tags: [cpu](<https://devfeed.tech/tags/cpu.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [jobs](<https://devfeed.tech/tags/jobs.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [llm](<https://devfeed.tech/tags/llm.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [profile](<https://devfeed.tech/tags/profile.md>), [python](<https://devfeed.tech/tags/python.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [torch](<https://devfeed.tech/tags/torch.md>), [traces](<https://devfeed.tech/tags/traces.md>), [training](<https://devfeed.tech/tags/training.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>)

## AI overview

A beginner-focused tutorial on using torch.profiler to inspect PyTorch execution, interpret CPU and GPU traces, and connect Python operations to CUDA kernels.

## Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.