In llm training, what exactly is batch size? If model predict just one token at once,…
- User
In llm training, what exactly is batch size? If model predict just one token at once, while i have sequence with 100 tokens to predict, should model forward pass run 100 times? Is gradient accumulated for this 100 times or what?
- Assistant
Batch size in language model (LLM) training refers to the number of training examples (sequences of tokens) used in one iteration of model training. The choice of the batch size can affect the learning dynamics and the efficiency of the training process.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.