What is batch size (-b / -ub)?
Number of prompt tokens processed together. In llama.cpp, -b is the logical batch and -ub the physical micro-batch.
Learn it properly in the lesson →
Where it comes up
Lessons that use this term, most mentions first.
- How much GPU do you need to fine-tune? Memory for full fine-tuning, LoRA and QLoRA · 14 min · Pro
- Mixture of experts: routing, memory and why MoE decodes fast but needs big GPUs · 14 min · free
- Set up your fine-tuning environment: GPUs, libraries and a check script · 18 min · free
- Prefill, decode and the roofline: predicting inference speed · 18 min · free
- Attention kernels for serving: MLA, split-KV decoding and FlashAttention 3 and 4 · 18 min · Pro
- Non-determinism and batch invariance: why temperature 0 is not repeatable · 15 min · Pro
- Streams, events and CUDA graphs: timing, overlap and launch overhead · 24 min · Pro
- Units and vocabulary: FLOPs, bytes, bandwidth and the balance point · 20 min · free