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

Method get_rope_factors

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

Source from the content-addressed store, hash-verified

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;
7465
7466 // choose long/short freq factors based on the context size
7467 if (layers[il].rope_freqs != nullptr) {
7468 return layers[il].rope_freqs;
7469 }
7470
7471 if (n_ctx_seq > hparams.n_ctx_orig_yarn) {
7472 return layers[il].rope_long;
7473 }
7474
7475 return layers[il].rope_short;
7476}
7477
7478llama_memory_i * llama_model::create_memory(const llama_memory_params & params, const llama_cparams & cparams) const {
7479 llama_memory_i * res;

Callers 15

build_graph_shiftMethod · 0.80
llm_build_minicpm3Method · 0.80
build_attention_layerMethod · 0.80
llm_build_deciMethod · 0.80
llm_build_exaoneMethod · 0.80
llm_build_deepseekMethod · 0.80
llm_build_bailingmoeMethod · 0.80
llm_build_apertusMethod · 0.80
build_attention_layerMethod · 0.80
llm_build_llamaMethod · 0.80
llm_build_phi3Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected