Skip to content

Commit

Permalink
ggml: add notes about RoPE Frequency factors arg
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bevenius <[email protected]>
  • Loading branch information
danbev committed Aug 2, 2024
1 parent 550bb2c commit 1d6c4ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fundamentals/ggml/src/rope.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ int main(int argc, char **argv) {
float beta_fast = 32.0f;
// This is a YaRN parameter which I think is named β in the YaRN paper.
float beta_slow = 1.0f;
// RoPE Frequency factors are used with certan models like PHI.
// RoPE Frequency factors are used with certan models like
// Phi-3-mini-128k-instruct (https://huggingface.co/microsoft/Phi-3-mini-128k-instruct/blob/main/config.json#L27)
struct ggml_tensor* freq_factors = NULL;

struct ggml_tensor* s = ggml_rope_ext(ctx,
Expand Down

0 comments on commit 1d6c4ad

Please sign in to comment.