Optimize throughput with batch_size
mainThe batch_size parameter controls decoding throughput.
- Default value:
12 - Heuristic: Higher batch sizes increase throughput but consume more memory.
- For smaller models: Use a higher
batch_size. - For larger models: Use a lower
batch_size.
- For smaller models: Use a higher
- Constraint: Ensure the batch size does not exceed your Apple Silicon unified memory capacity.