|
TinyLlama.cpp 1.0
A lightweight C++ implementation of the TinyLlama language model
|
Constants for Rotary Position Embedding (RoPE) More...
Variables | |
| constexpr float | ROPE_THETA = 10000.0f |
| constexpr int | MAX_SEQUENCE_LENGTH = 2048 |
Constants for Rotary Position Embedding (RoPE)
RoPE is used to encode positional information in the transformer's attention mechanism.
|
constexpr |
Maximum supported sequence length
Definition at line 57 of file model_constants.h.
Referenced by TinyLlamaModel::initialize_rope_freqs().
|
constexpr |
Base value for frequency computation in RoPE
Definition at line 56 of file model_constants.h.
Referenced by TinyLlamaModel::initialize_rope_freqs().