Skip to content

Commit c08f999

Browse files
committed
ggml : fix compile warning
1 parent 50db7b9 commit c08f999

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ggml.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14240,8 +14240,7 @@ static float rope_yarn_ramp(const float low, const float high, const int i0) {
1424014240
// MIT licensed. Copyright (c) 2023 Jeffrey Quesnelle and Bowen Peng.
1424114241
static void rope_yarn(
1424214242
float theta_extrap, float freq_scale, float corr_dims[2], int64_t i0, float ext_factor, float mscale,
14243-
float * cos_theta, float * sin_theta
14244-
) {
14243+
float * cos_theta, float * sin_theta) {
1424514244
// Get n-d rotational scaling corrected for extrapolation
1424614245
float theta_interp = freq_scale * theta_extrap;
1424714246
float theta = theta_interp;
@@ -14263,9 +14262,8 @@ static float ggml_rope_yarn_corr_dim(int n_dims, int n_orig_ctx, float n_rot, fl
1426314262
}
1426414263

1426514264
static void ggml_rope_cache_init(
14266-
float theta_base, float freq_scale, float * freq_factors, float corr_dims[2], int64_t ne0, float ext_factor, float mscale,
14267-
float * cache, float sin_sign, float theta_scale
14268-
) {
14265+
float theta_base, float freq_scale, const float * freq_factors, float corr_dims[2], int64_t ne0, float ext_factor, float mscale,
14266+
float * cache, float sin_sign, float theta_scale) {
1426914267
// ref: https://github.com/jquesnelle/yarn/blob/master/scaled_rope/LlamaYaRNScaledRotaryEmbedding.py
1427014268
float theta = theta_base;
1427114269
for (int64_t i0 = 0; i0 < ne0; i0 += 2) {

0 commit comments

Comments
 (0)