AI dictionary · Deep learning
What is Batch size?Batch size kya hai?
Batch size: How many examples a model processes together in one training step.Ek training step mein model ek saath kitne examples process karta hai.
🧸 Think of it likeAise samjho
Like a teacher correcting 32 copies, then giving the class one round of feedback, instead of giving feedback after every single copy.Jaise teacher 32 copies check karke class ko ek baar feedback deta hai, har ek copy ke baad feedback dene ki jagah.
📘 ExplainedVistaar se
Training updates weights after each mini batch rather than after every example or the whole dataset. Larger batches use the GPU efficiently but need more memory; smaller batches are noisier but can generalise well. In LLM serving, batching many user requests together raises throughput and lowers cost per request.Training har example ya poore dataset ke baad nahi, har mini batch ke baad weights update karti hai. Bade batches GPU ka accha use karte hain par zyaada memory chahiye; chhote batches mein zyaada noise hota hai par generalise acche se kar sakte hain. LLM serving mein bahut saari user requests saath batch karne se throughput badhta aur per request cost ghatta hai.
💡 Real exampleAsli example
Training with batch size 32 means the model looks at 32 images before each weight update.Batch size 32 se training matlab model har weight update se pehle 32 images dekhta hai.
📖 Learn it step by stepStep by step seekho
🔗 Related termsJude hue shabd
Questions people ask
What is Batch size?
How many examples a model processes together in one training step. Training updates weights after each mini batch rather than after every example or the whole dataset. Larger batches use the GPU efficiently but need more memory; smaller batches are noisier but can generalise well. In LLM serving, batching many user requests together raises throughput and lowers cost per request.
How can I understand Batch size in simple words?
Like a teacher correcting 32 copies, then giving the class one round of feedback, instead of giving feedback after every single copy.
What is an example of Batch size?
Training with batch size 32 means the model looks at 32 images before each weight update.
Batch size ka matlab kya hai?
Ek training step mein model ek saath kitne examples process karta hai. Jaise teacher 32 copies check karke class ko ek baar feedback deta hai, har ek copy ke baad feedback dene ki jagah.
See Batch size in the full A to Z dictionary · Start a free AI course