|
TinyLlama.cpp 1.0
A lightweight C++ implementation of the TinyLlama language model
|
Constants for ensuring numeric stability. More...
Variables | |
| constexpr float | MIN_NORM_EPS = 1e-5f |
| constexpr float | DEFAULT_EPS = 1e-6f |
| constexpr float | MAX_LOGIT_THRESHOLD = 100.0f |
Constants for ensuring numeric stability.
These constants define thresholds and epsilon values used throughout the model to prevent numerical issues.
|
constexpr |
Default epsilon for general numerical stability
Definition at line 69 of file model_constants.h.
|
constexpr |
Maximum absolute value for logits to prevent overflow
Definition at line 70 of file model_constants.h.
|
constexpr |
Minimum epsilon for normalization operations
Definition at line 68 of file model_constants.h.
Referenced by rmsnorm_vector_cpu().