Skip to content

Commit d29218c

Browse files
committed
ggml : fix compile warning
1 parent fa63b76 commit d29218c

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
@@ -14245,8 +14245,7 @@ static float rope_yarn_ramp(const float low, const float high, const int i0) {
1424514245
// MIT licensed. Copyright (c) 2023 Jeffrey Quesnelle and Bowen Peng.
1424614246
static void rope_yarn(
1424714247
float theta_extrap, float freq_scale, float corr_dims[2], int64_t i0, float ext_factor, float mscale,
14248-
float * cos_theta, float * sin_theta
14249-
) {
14248+
float * cos_theta, float * sin_theta) {
1425014249
// Get n-d rotational scaling corrected for extrapolation
1425114250
float theta_interp = freq_scale * theta_extrap;
1425214251
float theta = theta_interp;
@@ -14268,9 +14267,8 @@ static float ggml_rope_yarn_corr_dim(int n_dims, int n_orig_ctx, float n_rot, fl
1426814267
}
1426914268

1427014269
static void ggml_rope_cache_init(
14271-
float theta_base, float freq_scale, float * freq_factors, float corr_dims[2], int64_t ne0, float ext_factor, float mscale,
14272-
float * cache, float sin_sign, float theta_scale
14273-
) {
14270+
float theta_base, float freq_scale, const float * freq_factors, float corr_dims[2], int64_t ne0, float ext_factor, float mscale,
14271+
float * cache, float sin_sign, float theta_scale) {
1427414272
// ref: https://github.com/jquesnelle/yarn/blob/master/scaled_rope/LlamaYaRNScaledRotaryEmbedding.py
1427514273
float theta = theta_base;
1427614274
for (int64_t i0 = 0; i0 < ne0; i0 += 2) {

0 commit comments

Comments
 (0)