# Profiling TorchNeuron on AWS Trainium: system-level profiling walkthrough

> Original title: Profiling TorchNeuron (Part 1): System-level profiling on AWS Trainium.

- Source: Hugging Face Blog
- Published: 2026-10-21T16:04:43.000Z
- Bad Influence: https://badinfluence.news/items/efin6y2bv3wbirrsu4cdhb4um
- Original: https://huggingface.co/blog/amazon/profiling-torchneuron-part-1-system-level-profilin

## Summary

Hugging Face's blog post walks through profiling AWS Trainium workloads with TorchNeuron, the open source native PyTorch backend, using torch.profiler configured through NeuronConfig and NeuronProfiler. The example profiles three RMSNorm implementations: naive PyTorch operations, the built-in torch.rms_norm() lowered to a fused Neuron kernel, and naive operations under torch.compile. The scripts use matched inputs and profiler settings so results can be compared, and the output is inspected in Neuron Explorer.
