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

Method is_recurrent

subprojects/llama.cpp/src/llama-hparams.cpp:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool llama_hparams::is_recurrent(uint32_t il) const {
159 if (il < n_layer) {
160 return recurrent_layer_arr[il];
161 }
162
163 GGML_ABORT("%s: il (%u) out of bounds (n_layer: %u)\n", __func__, il, n_layer);
164}
165
166uint32_t llama_hparams::n_pos_per_embd() const {
167 return rope_type == LLAMA_ROPE_TYPE_MROPE || rope_type == LLAMA_ROPE_TYPE_IMROPE ? 4 : 1;

Callers 9

llama_memory_hybridMethod · 0.80
load_tensorsMethod · 0.80
create_memoryMethod · 0.80
llm_build_nemotron_hMethod · 0.80
llm_build_plamo2Method · 0.80
llm_build_lfm2Method · 0.80
llm_build_qwen3nextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected