What is Batch size?
The number of inputs processed together. Larger batches reuse weights for efficiency but increase latency and memory.
Field: AI Hardware & Software Stack
The number of inputs processed together. Larger batches reuse weights for efficiency but increase latency and memory.
Field: AI Hardware & Software Stack
With batch size B, multiplying the weight matrix by B vectors becomes a product of the weight matrix and a B-wide matrix.
Why does increasing the batch size (the number of inputs pr…Memory for intermediate results and the KV cache also grows with batch size.
What is a drawback of making the inference batch size too l…It cuts computation dramatically, but the amount of stored keys and values grows in proportion to sequence length and batch size.
What is the role of the KV cache in LLM inference?KV cache Arithmetic intensity Throughput GPU Gradient checkpointing Backpropagation AI compiler AI inference All-reduce Attention mechanism