Skip to content

Commit 44ffe63

Browse files
committed
fix llama_set_rope_freq_base
1 parent 5d73069 commit 44ffe63

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llama.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7549,8 +7549,8 @@ int llama_token_to_piece(const struct llama_model * model, llama_token token, ch
75497549
return 0;
75507550
}
75517551

7552-
void llama_set_rope_freq_base(struct llama_model * model, float freq) {
7553-
model->hparams.rope_freq_base = freq;
7552+
void llama_set_rope_freq_base(struct llama_context * ctx, float freq) {
7553+
ctx->cparams.rope_freq_base = freq;
75547554
}
75557555

75567556
struct llama_timings llama_get_timings(struct llama_context * ctx) {

llama.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ extern "C" {
518518
char * buf,
519519
int length);
520520

521-
// Sets rope_freq_base of llama model
522-
LLAMA_API void llama_set_rope_freq_base(struct llama_model * model, float freq);
521+
// Sets rope_freq_base of llama context
522+
LLAMA_API void llama_set_rope_freq_base(struct llama_context * ctx, float freq);
523523

524524
//
525525
// Grammar

0 commit comments

Comments
 (0)