Skip to content
Trending storyDeveloping

Hugging Face explains profiling PyTorch RMSNorm on AWS Trainium with TorchNeuron

1 article1 sourcesince Oct 21Last article 2h ago ·

Overview

AISummary of 1 article

Hugging Face's blog post shows how to profile AWS Trainium workloads with TorchNeuron, the open source native PyTorch backend, using torch.profiler configured through NeuronConfig and NeuronProfiler.

The walkthrough is Part 1 of a series on analyzing inference performance and finding where time is spent. It compares 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, and the output is inspected in Neuron Explorer.

Written by AI from the articles below · updated Oct 21, 1:16 PM ET

Check the sources:

Article timeline

The articles in this story. Times are ET.

Oct 21
  1. Hugging Face BlogOfficial
    Profiling TorchNeuron on AWS Trainium: system-level profiling walkthrough

    AIHugging 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.

Heat Trend

Not enough continuous observations to show a trend yet.