Concept

Batching Sequences of Varying Lengths

In practical applications of language models, it is common to process multiple input sequences together in a batch to improve computational efficiency. A key characteristic of these batches is that the individual sequences often have different lengths, as illustrated by the example of processing two distinct sentences simultaneously.

Image 0

0

1

Updated 2026-05-05

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences