File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7982,7 +7982,7 @@ struct llama_context_params llama_context_default_params() {
7982
7982
/* .rope_scaling_type =*/ LLAMA_ROPE_SCALING_UNSPECIFIED,
7983
7983
/* .rope_freq_base =*/ 0 .0f ,
7984
7984
/* .rope_freq_scale =*/ 0 .0f ,
7985
- /* .yarn_ext_factor =*/ NAN ,
7985
+ /* .yarn_ext_factor =*/ - 1 . 0f ,
7986
7986
/* .yarn_attn_factor =*/ 1 .0f ,
7987
7987
/* .yarn_beta_fast =*/ 32 .0f ,
7988
7988
/* .yarn_beta_slow =*/ 1 .0f ,
@@ -8125,7 +8125,7 @@ struct llama_context * llama_new_context_with_model(
8125
8125
cparams.rope_freq_scale = 1 .0f ; // never scale if scaling type is none
8126
8126
}
8127
8127
8128
- if (std::isnan ( cparams.yarn_ext_factor )) { // NaN indicates 'not set'
8128
+ if (cparams.yarn_ext_factor < 0 . 0f ) { // negative indicates 'not set'
8129
8129
cparams.yarn_ext_factor = rope_scaling_type == LLAMA_ROPE_SCALING_YARN ? 1 .0f : 0 .0f ;
8130
8130
}
8131
8131
You can’t perform that action at this time.
0 commit comments