File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -6894,6 +6894,10 @@ int llama_n_embd(const struct llama_model * model) {
6894
6894
return model->hparams .n_embd ;
6895
6895
}
6896
6896
6897
+ float llama_rope_freq_scale_train (const struct llama_model * model) {
6898
+ return model->hparams .rope_freq_scale_train ;
6899
+ }
6900
+
6897
6901
int llama_model_desc (const struct llama_model * model, char * buf, size_t buf_size) {
6898
6902
return snprintf (buf, buf_size, " %s %s %s" ,
6899
6903
llama_model_arch_name (model->arch ).c_str (),
Original file line number Diff line number Diff line change @@ -282,6 +282,9 @@ extern "C" {
282
282
LLAMA_API int llama_n_ctx_train (const struct llama_model * model);
283
283
LLAMA_API int llama_n_embd (const struct llama_model * model);
284
284
285
+ // Get the model's RoPE frequency scaling factor
286
+ LLAMA_API float llama_rope_freq_scale_train (const struct llama_model * model);
287
+
285
288
// Get a string describing the model type
286
289
LLAMA_API int llama_model_desc (const struct llama_model * model, char * buf, size_t buf_size);
287
290
You can’t perform that action at this time.
0 commit comments