- Mon 20 January 2025
- LLM-Inference
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.