diff --git a/ggml.c b/ggml.c index e8a1f57fcaafd..b9ec0c981b630 100644 --- a/ggml.c +++ b/ggml.c @@ -11889,7 +11889,7 @@ GGML_CALL void ggml_rope_yarn_corr_dims( ) { // start and end correction dims float start = floorf(ggml_rope_yarn_corr_dim(n_dims, n_orig_ctx, beta_fast, freq_base)); - float end = ceilf(ggml_rope_yarn_corr_dim(n_dims, n_orig_ctx, beta_slow, freq_base)); + float end = ceilf(ggml_rope_yarn_corr_dim(n_dims, n_orig_ctx, beta_slow, freq_base)); dims[0] = MAX(0, start); dims[1] = MIN(n_dims - 1, end); }