End-to-End Latency Profiling on Neuron

End-to-end profiling of LLM inference on Neuron at three levels, the PyTorch profiler on the host, the Neuron system profile across executions, and neuron-profile inside a single NEFF.




EKS Cluster Setup for Trn1 Multi-Node Workloads

A development setup for multi-node Trn1 workloads on EKS, using long-running MPIJob pods, a shared FSx volume and rsync from a laptop, so that a code change does not need a new container image.

Segment Sums and Segmented Softmax

Segment sums reduce the rows of a tensor by group label. A segmented softmax built from them normalizes the scores of many packed sequences at once, and the way it is written decides whether a compiled graph grows with the number of sequences.

Paged Attention and Chunked Prefill for LLM Inference

This post explains how Paged Attention and Chunked Prefill optimize memory and computation in vLLM by organizing key-value caches into dynamic blocks and processing input sequences in manageable chunks. It includes a simple walkthrough with tensor shapes and code to showcase their integration for LLM inference.