remind me what's the magical number 2.7 used in training llm
- User
remind me what's the magical number 2.7 used in training llm
Assistant
The number 2.7 you're thinking of is likely e (Euler's number), which is approximately 2.71828. This mathematical constant appears in several important contexts in LLM training:
Cross-entropy loss: When calculating loss during training, the natural logarithm (ln) is used extensively. Since ln uses base e, this constant appears throughout the loss calculations that guide how the model learns.
Softmax function: The softmax function, which converts raw model outputs into probabilities, uses the exponential function e^x. This is crucial for determining which tokens the model should predict next.
Learning rate schedules: Many optimization algorithms and learning rate decay schedules involve exponential functions based on e.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.