MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / get_rope_freq_scale

Method get_rope_freq_scale

subprojects/llama.cpp/src/llama-model.cpp:7459–7461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7457}
7458
7459float llama_model::get_rope_freq_scale(const llama_cparams & cparams, int il) const {
7460 return hparams.is_swa(il) ? hparams.rope_freq_scale_train_swa : cparams.rope_freq_scale;
7461}
7462
7463ggml_tensor * llama_model::get_rope_factors(const llama_cparams & cparams, int il) const {
7464 const uint32_t n_ctx_seq = cparams.n_ctx_seq;

Callers 12

build_graph_shiftMethod · 0.80
llm_build_gemma2_iswaMethod · 0.80
llm_build_afmoeMethod · 0.80
llm_build_gemma3Method · 0.80
llm_build_mimo2_iswaMethod · 0.80
llm_build_modern_bertMethod · 0.80
llm_build_plamo3Method · 0.80
llm_build_llama_iswaMethod · 0.80

Calls 1

is_swaMethod · 0.80

Tested by

no test coverage detected