Follow the thread

Batching.

Group work deliberately, with shapes and request identity intact.

Batching introduces a relationship between examples that would otherwise be processed separately. These guides examine what that relationship means for shapes, padding, useful usage records and operational decisions. Begin with the tensor fundamentals article to understand the leading batch axis.

Then look at budgeting and inference to consider how a group of requests should be assembled and measured. Document whether each output still maps to a specific input, how incompatible examples are handled and which measurements belong to the entire batch. Compare like-for-like tasks before concluding that a larger batch improves the workflow you care about.

2 articles tagged Batching

Articles tagged Batching

Explore related subjects